Gentoo Archives: gentoo-amd64

From: Nicolas MASSE <nicolas27.masse@×××××××.net>
To: gentoo-amd64@l.g.o
Subject: [gentoo-amd64] bash compilation failed when linking
Date: Mon, 28 Nov 2005 16:09:17
Message-Id: 200511281507.31914.nicolas27.masse@laposte.net
1 Hello,
2
3 I experience problems when trying to emerge bash-3.0-r13 on amd64.
4
5 The compilation ends with :
6
7 make[1]: Leaving directory `/tmp/portage/bash-3.0-r13/work/bash-3.0/lib/tilde'
8 rm -f bash
9 x86_64-pc-linux-gnu-gcc -L./builtins -L./lib/readline -L./lib/readline
10 -L./lib/glob -L./lib/tilde -L./lib/sh -rdynamic -march=athlon64 -O2 -pipe
11 -fforce-addr -o bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o
12 dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o expr.o flags.o
13 jobs.o subst.o hashcmd.o hashlib.o mailcheck.o trap.o input.o unwind_prot.o
14 pathexp.o sig.o test.o version.o alias.o array.o arrayfunc.o braces.o
15 bracecomp.o bashhist.o bashline.o list.o stringlib.o locale.o findcmd.o
16 redir.o pcomplete.o pcomplib.o syntax.o xmalloc.o -lbuiltins
17 -lsh ./lib/readline/libreadline.a ./lib/readline/libhistory.a -Wl,-Bstatic
18 -lncurses -Wl,-Bdynamic -lglob -ltilde -ldl
19 /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):
20 relocation R_X86_64_32S against `boolcodes' can not be used when making a
21 shared object; recompile with -fPIC
22 /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libncurses.a: could
23 not read symbols: Bad value
24 collect2: ld returned 1 exit status
25 make: *** [bash] Error 1
26
27 !!! ERROR: app-shells/bash-3.0-r13 failed.
28 !!! Function src_compile, Line 123, Exitcode 2
29 !!! make failed
30 !!! If you need support, post the topmost build error, NOT this status
31 message.
32
33 I use the profile default-linux/amd64/2005.1 and I started from a stage 3.
34
35 I understand that I must recompile something with the -fPIC option, but I
36 don't know if it's bash or ncurses. And then, I think I shouldn't add -fPIC
37 to my LDFLAGS or CFLAGS because it seems discouraged. Is it a bug in an
38 ebuild ?
39
40 Here are information :
41 CFLAGS="-march=athlon64 -O2 -pipe -fforce-addr"
42 CHOST="x86_64-pc-linux-gnu"
43 USE="amd64 X acl alsa berkdb crypt hardened ipv6 jpeg kde nls nptl nptlonly
44 pam pic png readline ssl tcpd tiff unicode userlocales xinerama zlib
45 userland_GNU kernel_linux elibc_glibc"
46
47 I hope it was not to hard to understand my (bad) english.
48
49 Thanks.
50
51 Nicolas MASSE
52
53
54 --
55 gentoo-amd64@g.o mailing list

Replies

Subject Author
Re: [gentoo-amd64] bash compilation failed when linking Tres Melton <tres@××××××××××.com>