Re: Trouble Cross-compiling for hpcarm (seems related to lang/gcc2)
Robert Swindells <[email protected]> Tue, 31 May 2016 20:39:56 +0100 (BST)
| Newsgroups | gmane.os.netbsd.ports.hpcarm,gmane.os.netbsd.devel.pkgsrc.user |
|---|---|
| Message-ID | <[email protected]> |
Ax0n <[email protected]> wrote: >I currently have three NetBSD/hpcarm systems stuck on NetBSD 6.1 due to the >lack of binary packages in pkgsrc. I'd love to move them over to 7.0.1. I >am trying to build hpcarm binaries under NetBSD-7.0.1/amd64 and I've run >into the same trouble as outlined at the bottom of this page by Silas Cou: >http://www.silas.net.br/tech/pkgsrc/pkgsrc-troubleshooting.html > >This is on a fresh install of NetBSD/amd64. I unpacked pkgsrc from inside >the installer, then followed the instructions outlined here: >ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/doc/HOWTO-use-crosscompile What have you got built so far ? [snip] >mk.conf is as follows (comments stripped for brevity) > >USE_CROSS_COMPILE?= yes >CROSSBASE= ${LOCALBASE}/cross-${TARGET_ARCH:U${MACHINE_ARCH}} >.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) >MACHINE=hpcarm >MACHINE_ARCH= arm This line should be 'earmv4' not 'arm'. >TOOLDIR= /usr/obj/tooldir.NetBSD-7.0.1-amd64 >CROSS_DESTDIR= /usr/obj/destdir.hpcarm >PACKAGES=${PKGSRCDIR}/packages.${MACHINE_ARCH} >WRKDIR_BASENAME= work.${MACHINE_ARCH} >.endif I would delete your TOOLDIR and CROSS_DESTDIR and start again with the new value for MACHINE_ARCH. Robert Swindells