Current-Users archive

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

cross build failure

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/
/home/install.amd64/lib/ file not recognized: File format not 
collect2: ld returned 1 exit status

*** Failed target:
*** Failed command:
/usr/src/obj.amd64/tooldir.NetBSD-5.99.48-i386/bin/x86_64--netbsd-gcc -Wl,-x 
-shared -Wl,-soname, -Wl,--warn-shared-textrel 
--sysroot=/home/install.amd64 -o 
-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 
*** Error code 1

nbmake: stopped in /usr/src/external/bsd/libarchive/lib/libarchive

*** Failed target:  dependall
*** Failed command: cd
"/usr/src/external/bsd/libarchive/lib/libarchive"; /usr/s
rc/obj.amd64/tooldir.NetBSD-5.99.48-i386/bin/nbmake realall
*** Error code 1

file tells me that /home/install.amd64/lib/ 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.  I did remove
everything from /usr/obj and try again, the build stopped at the same
point.  FWIW the command line was:

./ -m amd64 -D /home/install.amd64 -R /home/release.amd64 -N 1 release 

Brett Lymn
The information contained in this email and any attached files is
confidential to BAE Systems Australia. If you are not the intended
recipient, any use, disclosure or copying of this email or any
attachments is expressly prohibited.  If you have received this email
in error, please notify us immediately. VIRUS: Every care has been
taken to ensure this email and its attachments are virus free,
however, any loss or damage incurred in using this email is not the
sender's responsibility.  It is your responsibility to ensure virus
checks are completed before installing any data sent in this email to
your computer."

Home | Main Index | Thread Index | Old Index