This is the mail archive of the mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem building tool-chain for amd64->powerpc64

Christoph, All,

On Monday 21 February 2011 10:13:01 Christoph Baumann wrote:
> the config is attached. Meanwhile I solved the original problem.
> I switched from the default glibc version to 2.9.

Attached a .config that works OK here with the latest tip of the repository.

> Now the toolchain is build and  
> installed without error (for test purposes I installed to /tmp). But when compiling 
> "Hello world" I get this linker error:
> "
> baumann@baumann-laptop:~/Projekte/Power7_GCC$ powerpc64-ibm-linux-gnu-gcc -o hello hello.c
> /tmp/usr/local/x-tools/powerpc64-ibm-linux-gnu/lib/gcc/powerpc64-ibm-linux-gnu/4.4.5/../../../../powerpc64-ibm-linux-gnu/bin/ld: skipping incompatible /lib64/ when searching for /lib64/
> /tmp/usr/local/x-tools/powerpc64-ibm-linux-gnu/lib/gcc/powerpc64-ibm-linux-gnu/4.4.5/../../../../powerpc64-ibm-linux-gnu/bin/ld: cannot find /lib64/
> collect2: ld returned 1 exit status
> "

This is caused by the removal of the symlinks, as you found out. It seems
that those symlinks are needed, after all, and the attached patch fixes that
for me. Care to test and report back, please?

NB. The symlinks are needed because, if absent, the build breaks when
building gcc, as it complains that it can't find (whatever
it is) that it is just building.

Yann E. MORIN.

|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |

Attachment: .config
Description: Text document

diff --git a/scripts/build/ b/scripts/build/
--- a/scripts/build/
+++ b/scripts/build/
@@ -157,8 +157,6 @@
     # the standard lib/ dirs, so we can get rid of the symlinks
     for d in                            \
         "${CT_PREFIX_DIR}"              \
-        "${CT_SYSROOT_DIR}"             \
-        "${CT_SYSROOT_DIR}/usr"         \
         "${CT_PREFIX_DIR}/${CT_TARGET}" \
     ; do
         CT_DoExecLog ALL rm -f "${d}/lib32"

For unsubscribe information see

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]