[Buildtools-tickets] [BuildTools] #3: Coin-Cbc: make in
Cbc/examples fails on OS X 10.4.6 PPC, gcc 4.0.1
BuildTools
coin-trac at coin-or.org
Wed Jun 21 15:43:59 EDT 2006
#3: Coin-Cbc: make in Cbc/examples fails on OS X 10.4.6 PPC, gcc 4.0.1
------------------------+---------------------------------------------------
Reporter: sdv | Owner: somebody
Type: defect | Status: new
Priority: major | Milestone:
Component: component1 | Version:
Keywords: |
------------------------+---------------------------------------------------
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
--
Ticket URL: <https://projects.coin-or.org/BuildTools/ticket/3>
BuildTools <http://www.coin-or.org>
My example project
More information about the Buildtools-tickets
mailing list