public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-amd64] bash compilation failed when linking
@ 2005-11-28 14:07 Nicolas MASSE
  2005-11-29 14:33 ` Tres Melton
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolas MASSE @ 2005-11-28 14:07 UTC (permalink / raw
  To: gentoo-amd64

Hello,

I experience problems when trying to emerge bash-3.0-r13 on amd64.

The compilation ends with :

make[1]: Leaving directory `/tmp/portage/bash-3.0-r13/work/bash-3.0/lib/tilde'
rm -f bash
x86_64-pc-linux-gnu-gcc -L./builtins -L./lib/readline -L./lib/readline 
-L./lib/glob -L./lib/tilde  -L./lib/sh  -rdynamic  -march=athlon64 -O2 -pipe 
-fforce-addr -o bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o  
dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o expr.o flags.o 
jobs.o subst.o hashcmd.o hashlib.o mailcheck.o trap.o input.o unwind_prot.o 
pathexp.o sig.o test.o version.o alias.o array.o arrayfunc.o braces.o 
bracecomp.o bashhist.o bashline.o  list.o stringlib.o locale.o findcmd.o 
redir.o pcomplete.o pcomplib.o syntax.o xmalloc.o -lbuiltins 
-lsh ./lib/readline/libreadline.a ./lib/readline/libhistory.a -Wl,-Bstatic 
-lncurses -Wl,-Bdynamic -lglob -ltilde    -ldl
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libncurses.a(lib_termcap.o): 
relocation R_X86_64_32S against `boolcodes' can not be used when making a 
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libncurses.a: could 
not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [bash] Error 1

!!! ERROR: app-shells/bash-3.0-r13 failed.
!!! Function src_compile, Line 123, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status 
message.

I use the profile default-linux/amd64/2005.1 and I started from a stage 3.

I understand that I must recompile something with the -fPIC option, but I 
don't know if it's bash or ncurses. And then, I think I shouldn't add -fPIC 
to my LDFLAGS or CFLAGS because it seems discouraged. Is it a bug in an 
ebuild ?

Here are information :
CFLAGS="-march=athlon64 -O2 -pipe -fforce-addr"
CHOST="x86_64-pc-linux-gnu"
USE="amd64 X acl alsa berkdb crypt hardened ipv6 jpeg kde nls nptl nptlonly 
pam pic png readline ssl tcpd tiff unicode userlocales xinerama zlib 
userland_GNU kernel_linux elibc_glibc"

I hope it was not to hard to understand my (bad) english.

Thanks.

Nicolas MASSE


-- 
gentoo-amd64@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-amd64] bash compilation failed when linking
  2005-11-28 14:07 [gentoo-amd64] bash compilation failed when linking Nicolas MASSE
@ 2005-11-29 14:33 ` Tres Melton
  0 siblings, 0 replies; 2+ messages in thread
From: Tres Melton @ 2005-11-29 14:33 UTC (permalink / raw
  To: gentoo-amd64

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

On Mon, 2005-11-28 at 15:07 +0100, Nicolas MASSE wrote:
> Hello,
> 
> I experience problems when trying to emerge bash-3.0-r13 on amd64.
> 
> The compilation ends with :
> 
> make[1]: Leaving directory `/tmp/portage/bash-3.0-r13/work/bash-3.0/lib/tilde'
> rm -f bash
> x86_64-pc-linux-gnu-gcc -L./builtins -L./lib/readline -L./lib/readline 
> -L./lib/glob -L./lib/tilde  -L./lib/sh  -rdynamic  -march=athlon64 -O2 -pipe 
> -fforce-addr -o bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o  
> dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o expr.o flags.o 
> jobs.o subst.o hashcmd.o hashlib.o mailcheck.o trap.o input.o unwind_prot.o 
> pathexp.o sig.o test.o version.o alias.o array.o arrayfunc.o braces.o 
> bracecomp.o bashhist.o bashline.o  list.o stringlib.o locale.o findcmd.o 
> redir.o pcomplete.o pcomplib.o syntax.o xmalloc.o -lbuiltins 
> -lsh ./lib/readline/libreadline.a ./lib/readline/libhistory.a -Wl,-Bstatic 
> -lncurses -Wl,-Bdynamic -lglob -ltilde    -ldl
> /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libncurses.a(lib_termcap.o): 
> relocation R_X86_64_32S against `boolcodes' can not be used when making a 
> shared object; recompile with -fPIC
> /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libncurses.a: could 
> not read symbols: Bad value
> collect2: ld returned 1 exit status
> make: *** [bash] Error 1
> 
> !!! ERROR: app-shells/bash-3.0-r13 failed.
> !!! Function src_compile, Line 123, Exitcode 2
> !!! make failed
> !!! If you need support, post the topmost build error, NOT this status 
> message.
> 
> I use the profile default-linux/amd64/2005.1 and I started from a stage 3.
> 
> I understand that I must recompile something with the -fPIC option, but I 
> don't know if it's bash or ncurses. And then, I think I shouldn't add -fPIC 
> to my LDFLAGS or CFLAGS because it seems discouraged. Is it a bug in an 
> ebuild ?
> 
> Here are information :
> CFLAGS="-march=athlon64 -O2 -pipe -fforce-addr"
> CHOST="x86_64-pc-linux-gnu"
> USE="amd64 X acl alsa berkdb crypt hardened ipv6 jpeg kde nls nptl nptlonly 
> pam pic png readline ssl tcpd tiff unicode userlocales xinerama zlib 
> userland_GNU kernel_linux elibc_glibc"
> 
> I hope it was not to hard to understand my (bad) english.
> 
> Thanks.
> 
> Nicolas MASSE
> 
First, I suggest that you try it without the -fforce-addr option as that
forces registers to be used for addr arithmetic and the pic stuff uses
the rbx register for other address stuff.  The -fPIC option should only
be enabled by the ebuild author and never placed in your CFLAGS.  If the
problem persists without the un-advised cflag then please file a bug
report and include me in the CC list.

-- 
Tres Melton
IRC & Gentoo: RiverRat

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-29 14:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-28 14:07 [gentoo-amd64] bash compilation failed when linking Nicolas MASSE
2005-11-29 14:33 ` Tres Melton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox