Opened 13 years ago

Closed 13 years ago

#3 closed defect (fixed)

Coin-Cbc: make in Cbc/examples fails on OS X 10.4.6 PPC, gcc 4.0.1

Reported by: sdv Owned by: somebody
Priority: major Component: component1
Version: Keywords:
Cc:

Description

Hi, on iBook G4, OS X 10.4.6 with gcc: gcc -v Using built-in specs. Target: powerpc-apple-darwin8 Configured with: /private/var/tmp/gcc/gcc-5250.obj~12/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/[cg][.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8 Thread model: posix gcc version 4.0.1 (Apple Computer, Inc. build 5250) I did:

svn co https://projects.coin-or.org/svn/Cbc/trunk coin-Cbc cd coin-Cbc ./configure -C make make test make install cd Cbc/examples make

which fails with: g++ -Wl,--rpath -Wl,/tmp/Coin-Cbc/lib -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -o driver $bla -L/tmp/Coin-Cbc/lib -lCbc -lCgl -lOsiClp -lOsiCbc -lOsi -lClp -lCoinUtils -lm cat /tmp/Coin-Cbc/lib/cgl_addlibs.txt `cat /tmp/Coin-Cbc/lib/osi_addlibs.txt cat /tmp/Coin-Cbc/lib/clp_addlibs.txt cat /tmp/Coin-Cbc/lib/coinutils_addlibs.txt` /usr/bin/ld: unknown flag: --rpath collect2: ld returned 1 exit status make: * [driver] Error 1 now replacing in the Makefile CXXLINKFLAGS = -Wl,--rpath -Wl,/Users/devries/coin-Cbc/lib by CXXLINKFLAGS = -Wl,-rpath -Wl,/Users/devries/coin-Cbc/lib yields... /usr/bin/ld: unknown flag: -rpath collect2: ld returned 1 exit status

replacing it by

CXXLINKFLAGS = -dynamiclib -undefined dynamic_lookup -Wl/tmp/Coin-Cbc/lib

compiles fine, but ./driver and ./driver ../../Data/miplib3/mod008 segfault.

(it compile too, if i remove from the dynamiclib version the -Wl.... part; but that segfaults too.) best regards, sven

Change History (1)

comment:1 Changed 13 years ago by andreasw

  • Resolution set to fixed
  • Status changed from new to closed

No rpath flag is necessary on Darwin. Now set RPATH_FLAGS depending on platforms, not compilers. Cbc examples now works with i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5341)

Note: See TracTickets for help on using tickets.