public inbox for gentoo-science@lists.gentoo.org
 help / color / mirror / Atom feed
From: Steven Trogdon <strogdon@d.umn.edu>
To: gentoo-science@lists.gentoo.org
Subject: Re: [gentoo-science] sci-mathematics/maxima fails to build
Date: Wed, 06 Oct 2010 00:15:03 -0500	[thread overview]
Message-ID: <1286342110.7119.0@pavilion64> (raw)
In-Reply-To: <201010061659.20751.f.r.bissey@massey.ac.nz> (from f.r.bissey@massey.ac.nz on Tue Oct  5 22:59:20 2010)

[-- Attachment #1: Type: text/plain, Size: 3024 bytes --]

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 #2: Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2010-10-06  5:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-05 16:12 [gentoo-science] sci-mathematics/maxima fails to build Jean-Francis Roy
2010-10-05 23:57 ` François Bissey
2010-10-06  0:24   ` Steven Trogdon
2010-10-06  3:08     ` François Bissey
2010-10-06  3:25       ` François Bissey
2010-10-06  3:59         ` François Bissey
2010-10-06  5:15           ` Steven Trogdon [this message]
2010-10-06  8:01             ` François Bissey
2010-10-06 11:33               ` Steven Trogdon
2010-10-06 11:43                 ` François Bissey
2010-10-06 11:49                   ` Jean-Francis Roy
2010-10-06 11:54                   ` Steven Trogdon
2010-10-06 20:45                   ` Steven Trogdon
2010-10-06  3:28       ` Steven Trogdon
2010-10-06  3:51         ` François Bissey
2010-10-06  6:26           ` Steven Trogdon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1286342110.7119.0@pavilion64 \
    --to=strogdon@d.umn.edu \
    --cc=gentoo-science@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox