Opened 3 months ago

Closed 2 months ago

Last modified 2 months ago

#71233 closed defect (fixed)

opencascade @7.8.0: error: cannot initialize a variable of type 'const char *' with an rvalue of type 'unsigned char *'

Reported by: randymortensen (Randy Mortensen) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: sequoia Cc: Dave-Allured (Dave Allured)
Port: opencascade

Description

Installing kicad on sequoia 15.1 fails due to opencascade build failure. Using MacBook Pro 2021 with Apple M1 Pro, sequoia 15.1 and Xcode 16.1 main.log file attached

Seems caused by:

work/occt-V7_8_0/src/StdPrs/StdPrs_BRepFont.cxx:460:17: error: cannot initialize a variable of type 'const char *' with an rvalue of type 'unsigned char *'
:info:build   460 |     const char* aTags      = &anOutline->tags[aStartIndex];
:info:build       |                 ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Attachments (1)

main.log.gz (143.4 KB) - added by randymortensen (Randy Mortensen) 3 months ago.
main.log

Download all attachments as: .zip

Change History (8)

Changed 3 months ago by randymortensen (Randy Mortensen)

Attachment: main.log.gz added

main.log

comment:1 Changed 3 months ago by jmroot (Joshua Root)

Owner: set to MarcusCalhoun-Lopez
Status: newassigned

comment:2 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: sequoia added
Summary: opencascade @7.8.0 build failopencascade @7.8.0: error: cannot initialize a variable of type 'const char *' with an rvalue of type 'unsigned char *'

comment:3 Changed 2 months ago by Dave-Allured (Dave Allured)

Cc: Dave-Allured added

comment:4 Changed 2 months ago by Dave-Allured (Dave Allured)

Tested latest upstream release, 7.8.1. Tested on CI. Got same error cannot initialize in same source file StdPrs_BRepFont.cxx. Same error on CI OS 13, 14, and 15.

Last edited 2 months ago by Dave-Allured (Dave Allured) (previous) (diff)

comment:5 Changed 2 months ago by Dave-Allured (Dave Allured)

Has upstream report.
https://github.com/Open-Cascade-SAS/OCCT/discussions/48

Has upstream fix in master branch.
https://github.com/Open-Cascade-SAS/OCCT/pull/49

Looks like an easy one-line patch.

comment:6 Changed 2 months ago by Dave-Allured (Dave Allured)

Resolution: fixed
Status: assignedclosed

In 989f21e6522d45375da7d375427e0b6eff4858f5/macports-ports (master):

opencascade: fix build, initialization error

Closes: #71233

comment:7 Changed 2 months ago by randymortensen (Randy Mortensen)

Thanks for the fix.

Note: See TracTickets for help on using tickets.