On 10/05/2010 10:59:20 PM, François Bissey wrote:
Hey, what do I know!

On x86 maxima doesn't respect LDFLAGS! And I remember talking with David
Kirby on sage-devel that actually ecls doesn't either.
But from the logs from JF, on amd64 the LDFLAGS are duplicated and the
problem is that in the failing call one of them is still in double quotes
which I think is the problem.

Just a bit more details on this. From JF's log:
;;; Note:
;;;   Invoking external command:
;;;   x86_64-pc-linux-gnu-gcc -o "/var/tmp/portage/sci-
mathematics/maxima-5.20.1-r3/work/maxima-5.20.1/src/binary-ecl/init-cl.fas" -
L"/usr/lib64/" "/var/tmp/portage/sci-mathematics/maxima-5.20.1-
r3/temp/ECLINITcTeFmu.o" "/var/tmp/portage/sci-mathematics/maxima-5.20.1-
r3/work/maxima-5.20.1/src/binary-ecl/init-cl.o"   -shared -Wl,-O1 -Wl,--sort-
common -Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -lecl -lgmp
-lgc -ldl  -lm
;;;

but the failing call ends with:

"/var/tmp/portage/sci-mathematics/maxima-5.20.1-
r3/work/maxima-5.20.1/src/binary-ecl/init-cl.o" "-Wl,-O1 -Wl,--sort-common -
Wl,--as-needed" -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -lecl -lgmp -lgc
-ldl  -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:
unrecognized option '--sort-common -Wl'

-------------------
in contrast on my x86 system:
;;; Note:
;;;   Invoking external command:
;;;   i686-pc-linux-gnu-gcc -o "/var/tmp/portage/sci-
mathematics/maxima-5.20.1-r3/work/maxima-5.20.1/src/binary-ecl/init-cl.fas" -
L"/usr/lib/" "/var/tmp/portage/sci-mathematics/maxima-5.20.1-
r3/temp/ECLINITL4BVJx.o" "/var/tmp/portage/sci-mathematics/maxima-5.20.1-
r3/work/maxima-5.20.1/src/binary-ecl/init-cl.o" -shared -lecl -lgmp -lgc
-ldl  -lm

No LDFLAGS in the call where JF's build fail either.

Francois

Interesting. Invoking

LDFLAGS="-Wl,-01 -Wl,--sort-common -Wl,--as-needed" emerge -1v --nodeps maxima

I get,

32bit chroot:

;;; Note:
;;;   Invoking external command:
;;; i686-pc-linux-gnu-gcc -o "/var/tmp/portage/sci-mathematics/maxima-5.20.1-r3/work/maxima-5.20.1/src/binary-ecl/maxima"

... a very long line ...

"-Wl,-01 -Wl,--sort-common -Wl,--as-needed" -Wl,-O1 -lecl -lgmp -lgc -ldl -lm usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '-01 -Wl'

----------------------
amd64:
;;; Note:
;;;   Invoking external command:
;;; x86_64-pc-linux-gnu-gcc -o "/var/tmp/portage/sci-mathematics/maxima-5.20.1-r3/work/maxima-5.20.1/src/binary-ecl/maxima"

... a very long line ...

"-Wl,-01 -Wl,--sort-common -Wl,--as-needed" -Wl,-O1 -lecl -lgmp -lgc -lpthread -ldl -lm ;;; /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: unrecognized option '-01 -Wl'

So in both cases -Wl,-O1 is appended to the LDFLAGS passed to emerge.

Steve

Attachment: pgpaZT6HRyK1T.pgp
Description: PGP signature

Reply via email to