Boost logo

Boost-Build :

From: Philipp Frauenfelder (pfrauenf_at_[hidden])
Date: 2004-07-20 07:45:03


Hi

I am trying to compile my project on Sun Solaris 2.8 with gcc
3.2. First in 32bit, then in 64bit (its for scientific
computations, so we need _a lot_ of memory).

Well, I have the project building on Debian GNU/Linux and now
tried the stuff on Solaris. I seem to be facing two major
problems, one is solved:

1) (the one I solved myself)

----8<----8<----8<----8<----8<----8<----8<----8<----
...found 136 targets...
...updating 14 targets...
testing.capture-output ../../builds/basics/testsuite/debugTest.test/gcc/debug/debugTest.run
/bin/sh: LD_LIBRARY_PATH=/scratch/pfrauenf/concepts-2/builds/basics/gcc/debug:/scratch/pfrauenf/concepts-2/builds/basics/gcc/debug:/u/pfrauenf/scratch/concepts-cvs/Linux:/r/localsam/lib:/usr/openwin/lib:/usr/lib/X11:/usr/local.hg/lib:/usr/local.ifor/lib:/usr/local.sfs/lib:/usr/dt/lib:/usr/local.hg/opt/SUNWspro/lib: is not an identifier

export LD_LIBRARY_PATH=/scratch/pfrauenf/concepts-2/builds/basics/gcc/debug:$LD_LIBRARY_PATH
../../builds/basics/testsuite/debugTest.test/gcc/debug/debugTest > ../../builds/basics/testsuite/debugTest.test/gcc/debug/debugTest.output 2>&1
status=$?
echo >> ../../builds/basics/testsuite/debugTest.test/gcc/debug/debugTest.output
echo EXIT STATUS: $status >> ../../builds/basics/testsuite/debugTest.test/gcc/debug/debugTest.output
if test $status -eq 0 ; then
cp ../../builds/basics/testsuite/debugTest.test/gcc/debug/debugTest.output ../../builds/basics/testsuite/debugTest.test/gcc/debug/debugTest.run
fi
verbose=0
if test $status -ne 0 ; then
verbose=1
fi
if test $verbose -eq 1 ; then
echo ====== BEGIN OUTPUT ======
cat ../../builds/basics/testsuite/debugTest.test/gcc/debug/debugTest.output
echo ====== END OUTPUT ======
fi
exit $status

...failed testing.capture-output ../../builds/basics/testsuite/debugTest.test/gcc/debug/debugTest.run...
----8<----8<----8<----8<----8<----8<----8<----8<----

This is due to a bashism in common.jam: the normal 'sh' shell
does not allow 'export VAR=value' but only 'VAR=value;export
VAR' instead. The patch against 1.24 is attached (I also
removed some trailing white space, there is more 4 lines down
but I did not correct it).

2) (this one is more misterious)

----8<----8<----8<----8<----8<----8<----8<----8<----
gcc.link ../../builds/basics/testsuite/testTest.test/gcc/debug/testTest
ld: fatal: option -dn and -P are incompatible
ld: fatal: Flags processing errors
collect2: ld returned 1 exit status

"g++" -g -mimpure-text -Wl,-R -Wl,"/scratch/pfrauenf/concepts-2/builds/basics/gcc/debug" -Wl,-rpath-link -Wl,"/scratch/pfrauenf/concepts-2/builds/basics/gcc/debug" -o "../../builds/basics/testsuite/testTest.test/gcc/debug/testTest" "../../builds/basics/testsuite/testTest.test/gcc/debug/testTest.o" "../../builds/basics/gcc/debug/libconceptsbasics.so" -Wl,-Bdynamic -Wl,-Bstatic -Wl,-Bdynamic

...failed gcc.link ../../builds/basics/testsuite/testTest.test/gcc/debug/testTest...
----8<----8<----8<----8<----8<----8<----8<----8<----

Trying to find out what went wrong I took the g++ command
from above, pasted it to the command line and added the '-v'
switch right after 'g++' to see what went wrong. This gives
again the same error message and some debugging output:

----8<----8<----8<----8<----8<----8<----8<----8<----
Reading specs from /usr/local.hg/app/gcc/3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2/specs
Configured with: /usr/local.hg/app/gcc/SRC/3.2/gcc-3.2/configure --prefix=/usr/local.hg/app/gcc/3.2 --enable-threads
Thread model: posix
gcc version 3.2
/usr/local.hg/app/gcc/3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2/collect2-V -Y P,/usr/ccs/lib:/usr/lib -Qy -o ../../builds/basics/testsuite/point.test/gcc/debug/point /usr/local.hg/app/gcc/3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2/crt1.o /usr/local.hg/app/gcc/3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2/crti.o /usr/ccs/lib/values-Xa.o /usr/local.hg/app/gcc/3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2/crtbegin.o -L/usr/local.hg/app/gcc/3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2 -L/usr/ccs/bin -L/usr/ccs/lib -L/usr/local.hg/app/gcc/3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2/../../.. -R /scratch/pfrauenf/concepts-2/builds/basics/gcc/debug -rpath-link /scratch/pfrauenf/concepts-2/builds/basics/gcc/debug ../../builds/basics/testsuite/point.test/gcc/debug/point.o ../../builds/basics/gcc/debug/libconceptsbasics.so -Bdynamic -Bstatic -Bdynamic -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc -lc /usr/local.hg/app/gcc/3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2/crtend.o /usr/local.hg/app/gcc/3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2/crtn.o
ld: Software Generation Utilities - Solaris Link Editors: 5.8-1.283
ld: fatal: option -dn and -P are incompatible
ld: fatal: Flags processing errors
collect2: ld returned 1 exit status
----8<----8<----8<----8<----8<----8<----8<----8<----

However, copy-pasting the collect2 command to the command
line and executing it gives the following output:

----8<----8<----8<----8<----8<----8<----8<----8<----
GNU ld version 2.11.2 (with BFD 2.11.2)
Supported emulations:
elf32_sparc
elf64_sparc
----8<----8<----8<----8<----8<----8<----8<----8<----

and NO error message (and a successfully linked binary).

Any hints?

Thanks in advance.

Regards

-- 
Philipp | work: pfrauenf_at_[hidden] +41 44 632 60 38
Frauenfelder | home: pfrauenf_at_[hidden] +41 44 862 73 14
[PGP] | http://www.math.ethz.ch/~pfrauenf/
Proudly running Debian GNU/Linux. See http://www.debian.org/
 --uAKRQypu60I7Lcqm Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: attachment; filename="common.diff"
Content-Transfer-Encoding: base64
SW5kZXg6IGNvbW1vbi5qYW0NCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NClJDUyBmaWxlOiAvY3Zzcm9vdC9i
b29zdC9ib29zdC90b29scy9idWlsZC92Mi90b29scy9jb21tb24uamFtLHYNCnJldHJpZXZp
bmcgcmV2aXNpb24gMS4yNA0KZGlmZiAtdSAtcjEuMjQgY29tbW9uLmphbQ0KLS0tIGNvbW1v
bi5qYW0JMTIgSnVsIDIwMDQgMTU6MTM6MTQgLTAwMDAJMS4yNA0KKysrIGNvbW1vbi5qYW0J
MjAgSnVsIDIwMDQgMTI6MzE6MjQgLTAwMDANCkBAIC0yODAsNyArMjgwLDcgQEANCiAgICAg
ICAgIGxvY2FsIHNlcCA9ICI6IiA7DQogICAgICAgICBpZiAkKGV4cG9ydGVkKQ0KICAgICAg
ICAgeyAgICAgICAgICAgICAgICAgICAgICAgDQotICAgICAgICAgICAgcmVzdWx0ID0gZXhw
b3J0ICQodmFyaWFibGUpPSQodmFsdWVzOko9JChzZXApKSA7ICAgICAgICAgICAgDQorICAg
ICAgICAgICAgcmVzdWx0ID0gJCh2YXJpYWJsZSk9JCh2YWx1ZXM6Sj0kKHNlcCkpO2V4cG9y
dCAkKHZhcmlhYmxlKSA7DQogICAgICAgICB9DQogICAgICAgICBlbHNlDQogICAgICAgICB7
DQo --uAKRQypu60I7Lcqm-- 

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk