Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cross build failure



On Tue, 20 Sep 2011, Brett Lymn wrote:

> I am trying to cross build the amd64 target on a i386 machine and the
> build fails with the following:
>
>       build libarchive/libarchive_pic.a
>       build libarchive/libarchive.so.3.1
> /home/install.amd64/lib/liblzma.so: file not recognized: File format not
> recognized collect2: ld returned 1 exit status
>
> *** Failed target:  libarchive.so.3.1 *** Failed command:
> /usr/src/obj.amd64/tooldir.NetBSD-5.99.48-i386/bin/x86_64--netbsd-gcc
> -Wl,-x -shared -Wl,-soname,libarchive.so.3 -Wl,--warn-shared-textrel
> --sysroot=/home/install.amd64 -o libarchive.so.3.1
> -Wl,-rpath-link,/home/install.amd64/lib -L=/lib -Wl,--whole-archive
> libarchive_pic.a -Wl,--no-whole-archive -L/usr/src/lib/libbz2/obj.amd64
> -lbz2 -L/usr/src/external/public-domain/xz/lib/obj.amd64 -llzma
> -L/usr/src/lib/libz/obj.amd64 -lz

ktracing this command might show some useful information?

> file tells me that /home/install.amd64/lib/liblzma.so is a x86_64 shared
> library.  I guess something is using a host tool instead of a cross tool
> but I couldn't see anything obvious when I looked.

could also be taint in the srcdir?

>  I did remove everything from /usr/obj and try again, the build stopped
> at the same point.  FWIW the build.sh command line was:
>
> ./build.sh -m amd64 -D /home/install.amd64 -R /home/release.amd64 -N 1
> release iso-image

do any tools need to be rebuilt?

iain
(I cross built some stuff ok at the weekend, sources current as of 16th)


Home | Main Index | Thread Index | Old Index