Opened 9 years ago

Closed 4 years ago

#46349 closed defect (fixed)

gildas: undefined symbols

Reported by: ricky.nilsson@… Owned by: bardeau
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), simonradford, jinhuahe2009@…, mrm@…, jtb1435@…
Port: gildas

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

Mac OS X 10.6.8 with Xcode 3.2.6

I need GILDAS for reduction of astronomical data, but the build fails. Help appreciated!

--->  Building gildas
Error: org.macports.build for port gildas returned: command execution failed
Please see the log file for port gildas for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_gildas/gildas/main.log

Attachments (3)

port_gildas_attempt_1.log (219.4 KB) - added by ricky.nilsson@… 9 years ago.
gildas.diff (622 bytes) - added by ryandesign (Ryan Carsten Schmidt) 9 years ago.
patch to blacklist old compilers
gildas-install-2.log (153.4 KB) - added by simonradford 8 years ago.

Download all attachments as: .zip

Change History (13)

Changed 9 years ago by ricky.nilsson@…

Attachment: port_gildas_attempt_1.log added

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Description: modified (diff)
Keywords: build command execution failed removed
Owner: changed from macports-tickets@… to sebastien.maret@…
Summary: gildas build error: command execution failedgildas: undefined symbols

We should see if updating the port (#46172) will help. If not, we may need to blacklist older compilers like gcc-4.2.

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

The port has been updated. The update built ok on Yosemite, Mavericks, Mountain Lion, and Lion, but still failed on Snow Leopard.

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

I tried blacklisting Apple gcc, llvm-gcc, and the old version of clang in Snow Leopard that uses llvm-g++ as its C++ compiler, as in the attached patch. This now failed with this different error:

:info:build /usr/bin/cpp  -P -traditional -C  -DIEEE="ieee" -DBITS64="bits64" -DDARWIN="darwin" -DFORTRAN2003_PP -DGFORTRAN="gfortran" -DGFORTRAN_VERSION="492" -DCFITSIO="yes" -DATM2009="atm2009" -DPNG="yes" -DGAG_USE_GTK -DGAG_USE_POSIX -DGAG_USE_PYTHON -DGAG_USE_THREADS -DGAG_USE_UNDERSCORE   -I/Volumes/Data/macports/snowleopard/include  astro.f90 | grep -v \#pragma > built/x86_64-darwin-gfortran/astro.f90
:info:build /Volumes/Data/macports/snowleopard/bin/gfortran-mp-4.9 -c   -fimplicit-none -Wuninitialized -Wunused-variable -Wunused-label -Os   -I./ -I./built/x86_64-darwin-gfortran -I/Volumes/Data/macports/snowleopard/var/macports/build/_Volumes_Data_macports_dports_science_gildas/gildas/work/gildas-src-jul14c/integ/x86_64-darwin-gfortran/include -Wrealloc-lhs-all -J./built/x86_64-darwin-gfortran -pipe -fno-backslash -fno-range-check -fno-second-underscore -fPIC -O built/x86_64-darwin-gfortran/astro.f90 -o built/x86_64-darwin-gfortran/astro.o
:info:build /Volumes/Data/macports/snowleopard/bin/gfortran-mp-4.9  -Wl,-commons,use_dylibs   -L/Volumes/Data/macports/snowleopard/lib -Wl,-headerpad_max_install_names  built/x86_64-darwin-gfortran/astro.o  -o /Volumes/Data/macports/snowleopard/var/macports/build/_Volumes_Data_macports_dports_science_gildas/gildas/work/gildas-src-jul14c/integ/x86_64-darwin-gfortran/bin/astro \
:info:build 	      -L/Volumes/Data/macports/snowleopard/var/macports/build/_Volumes_Data_macports_dports_science_gildas/gildas/work/gildas-src-jul14c/integ/x86_64-darwin-gfortran/lib -L/Volumes/Data/macports/snowleopard/lib -L/Volumes/Data/macports/snowleopard/Library/Frameworks/Python.framework/Versions/2.7/lib -L/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Versions/Current/ -lastro -latm -latm2009 -lstdc++ -lgreg -lsic  -lggtk -lgtv -lgcont -lgchar  -lggui -lgcore -lgio -lgwcs -lgmath -lgsys -lginc -lslatec -framework Accelerate -lcfitsio -lpython2.7 -lutil -lpng -lz  -L/Volumes/Data/macports/snowleopard/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -lgio-2.0 -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes -lX11 -lXext -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lm -lgobject-2.0 -lfontconfig -lfreetype -lgthread-2.0 -lglib-2.0 -lintl  -L/Volumes/Data/macports/snowleopard/lib -lpng16   -lm -ldl
:info:build Undefined symbols for architecture x86_64:
:info:build   "_astro_pack_set_", referenced from:
:info:build       _main in astro.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build collect2: error: ld returned 1 exit status

I'm not sure what to make of this one. Sebastien, do you have any idea?

Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: gildas.diff added

patch to blacklist old compilers

comment:4 Changed 8 years ago by simonradford

Cc: sradford@… added

Cc Me!

Changed 8 years ago by simonradford

Attachment: gildas-install-2.log added

comment:5 Changed 8 years ago by simonradford

I've encountered a similar problem with glides 201508b, mac ports 2.3.4, and OS X 10.11.1 (El Capitain). It cannot build libatm2009.so because of missing symbols. Perhaps there is a mismatch with the development libraries? Log file attached.

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

Owner: changed from sebastien.maret@… to smaret@…

comment:7 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jinhuahe2009@… mrm@… jtb1435@… bardeau@… added

Has duplicates #50626, #50661, #51726.

comment:8 Changed 8 years ago by bardeau

As far as I can say this bug is fixed.

comment:9 Changed 5 years ago by mf2k (Frank Schima)

Cc: bardeau@… removed
Owner: changed from smaret to bardeau
Status: newassigned

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

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