Opened 12 years ago

Closed 12 years ago

#31969 closed defect (invalid)

glpk 4.7 build on mac os 10.7.2 build 11C74

Reported by: danielpath2o@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: lutz.horn@…, ryandesign (Ryan Carsten Schmidt)
Port: glpk

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

Cannot upgrade from version 4.5 to 4.7

Appears to be library issue.

Here is where it crashes:

libtool: link: /Developer/usr/bin/llvm-gcc-4.2 -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libglpk.0.dylib  .libs/glpapi01.o .libs/glpapi02.o .libs/glpapi03.o .libs/glpapi04.o .libs/glpapi05.o .libs/glpapi06.o .libs/glpapi07.o .libs/glpapi08.o .libs/glpapi09.o .libs/glpapi10.o .libs/glpapi11.o .libs/glpapi12.o .libs/glpapi13.o .libs/glpapi14.o .libs/glpapi15.o .libs/glpapi16.o .libs/glpapi17.o .libs/glpapi18.o .libs/glpapi19.o .libs/glpapi20.o .libs/glpapi21.o .libs/glpavl.o .libs/glpbfd.o .libs/glpbfx.o .libs/glpcpx.o .libs/glpdmp.o .libs/glpdmx.o .libs/glpenv01.o .libs/glpenv02.o .libs/glpenv03.o .libs/glpenv04.o .libs/glpenv05.o .libs/glpenv06.o .libs/glpenv07.o .libs/glpenv08.o .libs/glpfhv.o .libs/glpgmp.o .libs/glphbm.o .libs/glpini01.o .libs/glpini02.o .libs/glpios01.o .libs/glpios02.o .libs/glpios03.o .libs/glpios04.o .libs/glpios05.o .libs/glpios06.o .libs/glpios07.o .libs/glpios08.o .libs/glpios09.o .libs/glpios10.o .libs/glpios11.o .libs/glpios12.o .libs/glpipm.o .libs/glplib01.o .libs/glplib02.o .libs/glplib03.o .libs/glplpf.o .libs/glplpx01.o .libs/glplpx02.o .libs/glplpx03.o .libs/glpluf.o .libs/glplux.o .libs/glpmat.o .libs/glpmpl01.o .libs/glpmpl02.o .libs/glpmpl03.o .libs/glpmpl04.o .libs/glpmpl05.o .libs/glpmpl06.o .libs/glpmps.o .libs/glpnet01.o .libs/glpnet02.o .libs/glpnet03.o .libs/glpnet04.o .libs/glpnet05.o .libs/glpnet06.o .libs/glpnet07.o .libs/glpnet08.o .libs/glpnet09.o .libs/glpnpp01.o .libs/glpnpp02.o .libs/glpnpp03.o .libs/glpnpp04.o .libs/glpnpp05.o .libs/glpnpp06.o .libs/glpqmd.o .libs/glprgr.o .libs/glprng01.o .libs/glprng02.o .libs/glpscf.o .libs/glpscl.o .libs/glpsdf.o .libs/glpspm.o .libs/glpspx01.o .libs/glpspx02.o .libs/glpsql.o .libs/glpssx01.o .libs/glpssx02.o .libs/glptsp.o .libs/amd_1.o .libs/amd_2.o .libs/amd_aat.o .libs/amd_control.o .libs/amd_defaults.o .libs/amd_dump.o .libs/amd_info.o .libs/amd_order.o .libs/amd_post_tree.o .libs/amd_postorder.o .libs/amd_preprocess.o .libs/amd_valid.o .libs/colamd.o .libs/minisat.o .libs/adler32.o .libs/compress.o .libs/crc32.o .libs/deflate.o .libs/gzclose.o .libs/gzlib.o .libs/gzread.o .libs/gzwrite.o .libs/infback.o .libs/inffast.o .libs/inflate.o .libs/inftrees.o .libs/trees.o .libs/uncompr.o .libs/zio.o .libs/zutil.o   -L/opt/local/lib /usr/local/lib/libgmp.a -lm  -arch x86_64 -arch x86_64   -install_name  /opt/local/lib/libglpk.0.dylib -compatibility_version 33 -current_version 33.0 -Wl,-single_module -Wl,-exported_symbols_list,.libs/libglpk-symbols.expsym
ld: illegal text reloc to ___gmp_binvert_limb_table from /usr/local/lib/libgmp.a(mp_minv_tab.o) in ___gmpn_divexact_1 for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [libglpk.la] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_glpk/glpk/work/glpk-4.47/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_glpk/glpk/work/glpk-4.47'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_glpk/glpk/work/glpk-4.47'
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_glpk/glpk/work/glpk-4.47" && /usr/bin/make -j2 -w all " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for details)

Change History (1)

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

Cc: lutz.horn@… ryandesign@… added
Description: modified (diff)
Port: glpk added
Priority: HighNormal
Resolution: invalid
Status: newclosed

Based on the error message, the file /usr/local/lib/libgmp.a apparently exists on your system. Please remove this, and anything else in /usr/local, then "sudo port clean glpk" and try again. It's not supported to have things in /usr/local while using MacPorts because of the problems it can cause, like the one you're experiencing.

Note: See TracTickets for help on using tickets.