1 |
On 10/05/2010 10:59:20 PM, François Bissey wrote: |
2 |
>> Hey, what do I know! |
3 |
>> |
4 |
>> On x86 maxima doesn't respect LDFLAGS! And I remember talking with David |
5 |
>> Kirby on sage-devel that actually ecls doesn't either. |
6 |
>> But from the logs from JF, on amd64 the LDFLAGS are duplicated and the |
7 |
>> problem is that in the failing call one of them is still in double quotes |
8 |
>> which I think is the problem. |
9 |
> |
10 |
> Just a bit more details on this. From JF's log: |
11 |
> ;;; Note: |
12 |
> ;;; Invoking external command: |
13 |
> ;;; x86_64-pc-linux-gnu-gcc -o "/var/tmp/portage/sci- |
14 |
> mathematics/maxima-5.20.1-r3/work/maxima-5.20.1/src/binary-ecl/init-cl.fas" - |
15 |
> L"/usr/lib64/" "/var/tmp/portage/sci-mathematics/maxima-5.20.1- |
16 |
> r3/temp/ECLINITcTeFmu.o" "/var/tmp/portage/sci-mathematics/maxima-5.20.1- |
17 |
> r3/work/maxima-5.20.1/src/binary-ecl/init-cl.o" -shared -Wl,-O1 -Wl,--sort- |
18 |
> common -Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -lecl |
19 |
> -lgmp |
20 |
> -lgc -ldl -lm |
21 |
> ;;; |
22 |
> |
23 |
> but the failing call ends with: |
24 |
> |
25 |
> "/var/tmp/portage/sci-mathematics/maxima-5.20.1- |
26 |
> r3/work/maxima-5.20.1/src/binary-ecl/init-cl.o" "-Wl,-O1 -Wl,--sort-common - |
27 |
> Wl,--as-needed" -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -lecl -lgmp |
28 |
> -lgc |
29 |
> -ldl -lm |
30 |
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: |
31 |
> unrecognized option '--sort-common -Wl' |
32 |
> |
33 |
> ------------------- |
34 |
> in contrast on my x86 system: |
35 |
> ;;; Note: |
36 |
> ;;; Invoking external command: |
37 |
> ;;; i686-pc-linux-gnu-gcc -o "/var/tmp/portage/sci- |
38 |
> mathematics/maxima-5.20.1-r3/work/maxima-5.20.1/src/binary-ecl/init-cl.fas" - |
39 |
> L"/usr/lib/" "/var/tmp/portage/sci-mathematics/maxima-5.20.1- |
40 |
> r3/temp/ECLINITL4BVJx.o" "/var/tmp/portage/sci-mathematics/maxima-5.20.1- |
41 |
> r3/work/maxima-5.20.1/src/binary-ecl/init-cl.o" -shared -lecl -lgmp |
42 |
> -lgc |
43 |
> -ldl -lm |
44 |
> |
45 |
> No LDFLAGS in the call where JF's build fail either. |
46 |
> |
47 |
> Francois |
48 |
> |
49 |
Interesting. Invoking |
50 |
|
51 |
LDFLAGS="-Wl,-01 -Wl,--sort-common -Wl,--as-needed" emerge -1v --nodeps maxima |
52 |
|
53 |
I get, |
54 |
|
55 |
32bit chroot: |
56 |
|
57 |
;;; Note: |
58 |
;;; Invoking external command: |
59 |
;;; i686-pc-linux-gnu-gcc -o |
60 |
"/var/tmp/portage/sci-mathematics/maxima-5.20.1-r3/work/maxima-5.20.1/src/binary-ecl/maxima" |
61 |
|
62 |
... a very long line ... |
63 |
|
64 |
"-Wl,-01 -Wl,--sort-common -Wl,--as-needed" -Wl,-O1 -lecl -lgmp -lgc -ldl |
65 |
-lm |
66 |
usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld: |
67 |
unrecognized option '-01 -Wl' |
68 |
|
69 |
---------------------- |
70 |
amd64: |
71 |
;;; Note: |
72 |
;;; Invoking external command: |
73 |
;;; x86_64-pc-linux-gnu-gcc -o |
74 |
"/var/tmp/portage/sci-mathematics/maxima-5.20.1-r3/work/maxima-5.20.1/src/binary-ecl/maxima" |
75 |
|
76 |
... a very long line ... |
77 |
|
78 |
"-Wl,-01 -Wl,--sort-common -Wl,--as-needed" -Wl,-O1 -lecl -lgmp -lgc |
79 |
-lpthread -ldl -lm |
80 |
;;; |
81 |
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: |
82 |
unrecognized option '-01 -Wl' |
83 |
|
84 |
So in both cases -Wl,-O1 is appended to the LDFLAGS passed to emerge. |
85 |
|
86 |
Steve |