Opened 13 years ago

Closed 11 years ago

#33925 closed defect (fixed)

gmsh does not build with clang

Reported by: Josef.Buergler@… Owned by: Christophe.Prudhomme@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: mf2k (Frank Schima)
Port: gmsh

Description (last modified by ryandesign (Ryan Carsten Schmidt))

When trying to install gmsh using macports, the following error message is returned:

my-MBP: $ sudo port install gmsh
Password:
--->  Computing dependencies for gmsh
--->  Building gmsh
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for gmsh is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_gmsh/gmsh/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Before trying to install gmsh, I upgraded the ports as follows

my-MBP: $ sudo port -v selfupdate
Password:
--->  Updating MacPorts base sources using rsync
receiving file list ... done
base.tar

sent 10894 bytes  received 111 bytes  3144.29 bytes/sec
total size is 3236352  speedup is 294.08
receiving file list ... done
base.tar.rmd160

sent 64 bytes  received 116 bytes  72.00 bytes/sec
total size is 512  speedup is 2.84
MacPorts base version 2.0.4 installed,
MacPorts base version 2.0.4 downloaded.
--->  Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar
receiving file list ... done
ports.tar
...

my-MBP: $ sudo port upgrade outdated

Attachments (2)

main.log (119.6 KB) - added by Josef.Buergler@… 13 years ago.
Log for gmsh
main.2.log (332.7 KB) - added by Josef.Buergler@… 13 years ago.
main.log after "sudo port clean gmsh"

Download all attachments as: .zip

Change History (11)

Changed 13 years ago by Josef.Buergler@…

Attachment: main.log added

Log for gmsh

comment:1 Changed 13 years ago by Josef.Buergler@…

Cc: Josef.Buergler@… added

Cc Me!

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

Cc: Josef.Buergler@… removed
Description: modified (diff)
Keywords: install failed removed

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

Owner: changed from macports-tickets@… to Christophe.Prudhomme@…

Please "sudo port clean gmsh" and try again and attach the new main.log file. (The one you attached already is incomplete.)

Changed 13 years ago by Josef.Buergler@…

Attachment: main.2.log added

main.log after "sudo port clean gmsh"

comment:5 Changed 13 years ago by christophe.prudhomme@…

Gmsh indeed fails to compile properly. There is some c++ code that g++ fails to compile. I will upload a new version of gmsh that fixes the problem

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

workaround committed r91786.

@christophe.prudhomme: I will commit your code fixes for clang. Please attach a portfile patch/new patchfiles when you are ready.

comment:7 Changed 13 years ago by mf2k (Frank Schima)

Cc: macsforever2000@… added

Cc Me!

comment:7 in reply to:  6 Changed 13 years ago by Josef.Buergler@…

Replying to macsforever2000@…:

Thanks for Your help! Now, "gmsh" compiles without problems (as You can see below)!

myMBP: $ sudo port clean gmsh
--->  Cleaning gmsh
myMBP: $ sudo port install gmsh
--->  Computing dependencies for fltk-devel
--->  Fetching archive for fltk-devel
--->  Attempting to fetch fltk-devel-1.3.x-r9327_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/fltk-devel
--->  Fetching fltk-devel
--->  Attempting to fetch fltk-1.3.x-r9327.tar.bz2 from http://lil.fr.distfiles.macports.org/fltk-devel
--->  Verifying checksum(s) for fltk-devel
--->  Extracting fltk-devel
--->  Configuring fltk-devel
--->  Building fltk-devel
--->  Staging fltk-devel into destroot
--->  Installing fltk-devel @1.3.x-r9327_0
--->  Cleaning fltk-devel
--->  Computing dependencies for fltk-devel
--->  Deactivating fltk-devel @1.3.x-r9224_0
--->  Cleaning fltk-devel
--->  Activating fltk-devel @1.3.x-r9327_0
--->  Cleaning fltk-devel
--->  Computing dependencies for gmsh
--->  Fetching archive for gmsh
--->  Attempting to fetch gmsh-2.5.0_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/gmsh
--->  Fetching gmsh
--->  Verifying checksum(s) for gmsh
--->  Extracting gmsh
--->  Applying patches to gmsh
--->  Configuring gmsh
--->  Building gmsh
--->  Staging gmsh into destroot
--->  Installing gmsh @2.5.0_0
--->  Activating gmsh @2.5.0_0
--->  Cleaning gmsh
myMBP: $

comment:8 Changed 12 years ago by jmroot (Joshua Root)

Summary: gmsh does not build under Lion (10.7.3)gmsh does not build with clang

comment:9 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

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