Opened 6 years ago

Closed 6 years ago

#55317 closed defect (fixed)

gmsh @2.8.4: error: read-only variable is not assignable

Reported by: dershow Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: xcode9 highsierra sierra haspatch Cc: kurthindenburg (Kurt Hindenburg), Schamschula (Marius Schamschula), caverac
Port: gmsh

Description

I just upgraded to OS 10.13 and migrated. Now gmsh will not build. However, I tried to xcode-select to use xcode 8.3.3 and that does allow it to build. So, it fails with 9.1

Attachments (2)

main.log (493.3 KB) - added by dershow 6 years ago.
Portfile (2.2 KB) - added by seanfarley (Sean Farley) 6 years ago.
update to 3.0.6 -- errors with linking

Download all attachments as: .zip

Change History (15)

comment:1 Changed 6 years ago by mf2k (Frank Schima)

Keywords: xcode9 added

comment:2 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Could you attach the main.log, please?

comment:3 Changed 6 years ago by dershow

I had to uninstall and rebuild, since I had gotten it to install with Xcode 8.3.3. It is attached.

Changed 6 years ago by dershow

Attachment: main.log added

comment:4 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: gmsh won't build with xcode 9.1gmsh @2.8.4: error: read-only variable is not assignable

Confirmed with Xcode 9.0.1 on Sierra.

Looks like the gmsh port hasn't been updated since 2014, and there have been many releases of gmsh since then. Maybe this issue would be fixed by updating the port to a newer version.

Note that Xcode 8.3.3 is not meant to work with High Sierra. If it worked for compiling gmsh, great, but you shouldn't leave it selected because it will probably cause other ports to fail to build.

comment:5 Changed 6 years ago by dershow

Thanks. I had some other code that won't build with Xcode 9. Openmodelica, that uses macports, but has its own repository. So, I had downloaded the old Xcode, and just used Xcode-select to use it for a bit. In that case, it seems to be an issue with pthread that I have found on a few other projects with the switch to Xcode 9.

comment:6 Changed 6 years ago by kurthindenburg (Kurt Hindenburg)

Cc: kurthindenburg added

3.0.6 seems to build fine but I get this link error on HS

 -o gmsh -Wl,-rpath,/opt/local/lib -L/opt/local/lib -Wl,-headerp
ad_max_install_names -lfltk_images -lpng -lz -ljpeg -lfltk_gl -framework OpenGL -lflt
k -lpthread -framework Cocoa /opt/local/lib/libjpeg.dylib /opt/local/lib/libz.dylib /
opt/local/lib/libpng.dylib /opt/local/lib/libz.dylib -framework OpenGL -framework Acc
elerate /opt/local/lib/libpng.dylib -framework OpenGL -framework Accelerate
Error running link command: Invalid argument

comment:7 Changed 6 years ago by Schamschula (Marius Schamschula)

Cc: Schamschula added

comment:8 Changed 6 years ago by Schamschula (Marius Schamschula)

While building 3.0.6 under Sierra (Xcode 9.1), under trace mode, I also see the same error, along with

sh: /bin/ps: Operation not permitted

Without trace mode the linking succeeds.

comment:9 Changed 6 years ago by seanfarley (Sean Farley)

I don't get the same /bin/ps error when upgrading to 3.0.6 so I'm hoping that's fixed with the newer release. However, I do run into the same problem @kurthindenburg ran into with an invalid link command. It seems just re-running the exact same command succeeds, though, making this a bit more difficult to debug.

Changed 6 years ago by seanfarley (Sean Farley)

Attachment: Portfile added

update to 3.0.6 -- errors with linking

comment:10 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: caverac added
Keywords: highsierra sierra haspatch added
Owner: set to ryandesign
Status: newaccepted

Has duplicate #55678.

comment:11 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

gmsh was updated to version 4.0.0 in [b75bfd254a4d9783a3b58df2a95d7daf69f011e2/macports-ports]. Does that work for you?

comment:12 Changed 6 years ago by dershow

Yes, it does now work. Thank you.

comment:13 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.