1 |
Mike Frysinger schrieb: |
2 |
> the majority of the time, the compiler driver (i.e. `gcc`) should be used for |
3 |
> linking. very few packages should invoke the linker directly. that is why |
4 |
> currently the toolchain-func.eclass has tc-getLD return `ld` -- a few packages |
5 |
> need it, but not most. if we're going to be forcing the setting of the LD env |
6 |
> var all the time, then it needs to default to ${CC}. packages that need funky |
7 |
> behavior should still work as they will be calling $(tc-getLD) anyways. |
8 |
> |
9 |
>>> - the -L paths to system dirs in LDFLAGS should not be there -- the |
10 |
>>> toolchain can handle these just fine |
11 |
>> Last time i tried without, some packages failed to compile, will test it |
12 |
>> again to check, if its still needed |
13 |
> |
14 |
> if things are failing, then we should look at gcc/binutils to make sure they |
15 |
> use the right default search paths when given -m32/-m64 |
16 |
|
17 |
This is an example from configure failure with ABI=x86 for cvs-1.12.12-r6 |
18 |
|
19 |
last lines from configure: |
20 |
|
21 |
checking for ssh... ssh |
22 |
checking for vim... /bin/nano |
23 |
checking for temporary directory... /tmp |
24 |
checking security/pam_appl.h usability... yes |
25 |
checking security/pam_appl.h presence... yes |
26 |
checking for security/pam_appl.h... yes |
27 |
checking for pam_start in -lpam... no |
28 |
configure: error: Could not find PAM libraries but the headers exist. |
29 |
Give the --disable-pam option to compile without PAM support (or fix |
30 |
your broken configuration) |
31 |
|
32 |
!!! Please attach the following file when seeking support: |
33 |
!!! /var/tmp/portage/dev-util/cvs-1.12.12-r6/work/cvs-1.12.12/config.log |
34 |
* ERROR: dev-util/cvs-1.12.12-r6 failed: |
35 |
* econf failed |
36 |
|
37 |
relevant lines from config.log: |
38 |
|
39 |
configure:38697: checking for pam_start in -lpam |
40 |
configure:38727: x86_64-pc-linux-gnu-gcc -o conftest -march=nocona -O2 -pipe -m32 |
41 |
-L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib -march=nocona -O2 -pipe -Wl,--as-needed conftest.c |
42 |
-lpam -lnsl -lz >&5 |
43 |
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../lib32/libpam.a(pam_dynamic.o): In function |
44 |
`_pam_dlerror': |
45 |
(.text+0x1f): undefined reference to `dlerror' |
46 |
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../lib32/libpam.a(pam_dynamic.o): In function |
47 |
`_pam_dlclose': |
48 |
(.text+0x5f): undefined reference to `dlclose' |
49 |
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../lib32/libpam.a(pam_dynamic.o): In function |
50 |
`_pam_dlsym': |
51 |
(.text+0xa6): undefined reference to `dlsym' |
52 |
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../lib32/libpam.a(pam_dynamic.o): In function |
53 |
`_pam_dlopen': |
54 |
(.text+0xf2): undefined reference to `dlopen' |
55 |
collect2: ld returned 1 exit status |
56 |
configure:38733: $? = 1 |
57 |
|
58 |
If you need some more lines or complete build.log/config.log, feel free to tell me and i will send |
59 |
them directly. |
60 |
|
61 |
-- |
62 |
Thomas Sachau |
63 |
|
64 |
Gentoo Linux Developer |