pkgsrc-Users archive

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

Re: Trouble Cross-compiling for hpcarm (seems related to lang/gcc2)



I haven't gotten any packages to build yet. "./build.sh -m hpcarm kernel=JORNADA720 distribution" did render a nice sandbox of the hpcarm base userland in $DESTDIR. gcc2 is an early dependency of cross/libtool-base which I have to get up and running first. /usr/pkgsrc/packages.* doesn't exist yet. 

Thanks for the heads' up on MACHINE_ARCH. That also explains why packages I build on my RPi2 (earmv6hf NetBSD-7.0.0-PATCH) don't run on my lowly earmv4 H/PCs. I'm still a newbie. I'll give your suggestions a shot and let you know how it goes.


On Tue, May 31, 2016 at 2:39 PM, Robert Swindells <rjs%fdy2.co.uk@localhost> wrote:

Ax0n <ax0n%h-i-r.net@localhost> 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



Home | Main Index | Thread Index | Old Index