Trouble Cross-compiling for hpcarm (seems related to lang/gcc2)
Ax0n <[email protected]> Sat, 28 May 2016 18:18:01 -0500
| Newsgroups | gmane.os.netbsd.devel.pkgsrc.user,gmane.os.netbsd.ports.hpcarm |
|---|---|
| Message-ID | <CABmxVL3wcg5+0gpO64+t9jCWmqVd5UaH6YJi5vgWf3jpoftnjg@mail.gmail.com> |
--001a1140717e1865f50533ef3c50
Content-Type: text/plain; charset=UTF-8
Howdy.
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
While doing "make package" on /usr/pkgsrc/cross/libtool-base,
=> Bootstrap dependency digest>=20010302: found digest-20160304
===> Skipping vulnerability checks.
WARNING: No /usr/obj/destdir.hpcarm/var/db/pkg/pkg-vulnerabilities file
found.
WARNING: To fix run: `/usr/pkg/sbin/pkg_admin -K
/usr/obj/destdir.hpcarm/var/db/pkg fetch-pkg-vulnerabilities'.
=> Checksum SHA1 OK for libtool-2.4.2.tar.gz
=> Checksum RMD160 OK for libtool-2.4.2.tar.gz
=> Checksum SHA512 OK for libtool-2.4.2.tar.gz
===> Installing dependencies for cross-libtool-base-hpcarm-2.4.2nb2
=> Full dependency gcc2>=2.95.3nb7: NOT found
=> Verifying package-install for ../../lang/gcc2
=> Bootstrap dependency digest>=20010302: found digest-20160304
ERROR: This package is not available for these platforms: Darwin-*-*
Interix-*-* *-*-x86_64 DragonFly-*-* NetBSD-[6789]*-*
ERROR: This package has set PKG_SKIP_REASON:
ERROR: gcc2-2.95.3nb7 is not available for NetBSD-7.0.1-hpcarm
*** Error code 1
Stop.
make[1]: stopped in /usr/pkgsrc/lang/gcc2
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/cross/libtool-base
The above error seems to be related to "NOT_FOR_PLATFORM+=NetBSD-[6789]*-*"
in the lang/gcc2 Makefile. Commenting that line out is probably not the
right thing to do, but in case it is, that's yielding a whole other set of
errors, ultimately transpiring from the fact that arm--netbsdelf-gcc
doesn't exist while trying to build lang/gcc2.
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
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'm an admitted newbie to cross-compiling, but I'm beginning to think this
is why there aren't any binary packages for NetBSD7/hpcarm yet...
Advice?
--Noah
--001a1140717e1865f50533ef3c50
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Howdy.<div><br></div><div>I currently have three NetBSD/hp=
carm systems stuck on NetBSD 6.1 due to the lack of binary packages in pkgs=
rc. I'd love to move them over to 7.0.1. I am trying to build hpcarm bi=
naries under NetBSD-7.0.1/amd64 and I've run into the same trouble as o=
utlined at the bottom of this page by Silas Cou:=C2=A0<a href=3D"http://www=
.silas.net.br/tech/pkgsrc/pkgsrc-troubleshooting.html" target=3D"_blank">ht=
tp://www.silas.net.br/tech/pkgsrc/pkgsrc-troubleshooting.html</a></div><div=
><br></div><div>This is on a fresh install of NetBSD/amd64. I unpacked pkgs=
rc from inside the installer, then followed the instructions outlined here:=
=C2=A0<a href=3D"ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/doc/HOWTO-u=
se-crosscompile">ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/doc/HOWTO-u=
se-crosscompile</a><br></div><div><br></div><div>While doing "make pac=
kage" on /usr/pkgsrc/cross/libtool-base,</div>=3D> Bootstrap depend=
ency digest>=3D20010302: found digest-20160304<br>=3D=3D=3D> Skipping=
vulnerability checks.<br>WARNING: No /usr/obj/destdir.hpcarm/var/db/pkg/pk=
g-vulnerabilities file found.<br>WARNING: To fix run: `/usr/pkg/sbin/pkg_ad=
min -K /usr/obj/destdir.hpcarm/var/db/pkg fetch-pkg-vulnerabilities'.<b=
r>=3D> Checksum SHA1 OK for libtool-2.4.2.tar.gz<br>=3D> Checksum RMD=
160 OK for libtool-2.4.2.tar.gz<br>=3D> Checksum SHA512 OK for libtool-2=
.4.2.tar.gz<br>=3D=3D=3D> Installing dependencies for cross-libtool-base=
-hpcarm-2.4.2nb2<br>=3D> Full dependency gcc2>=3D2.95.3nb7: NOT found=
<br>=3D> Verifying package-install for ../../lang/gcc2<br>=3D> Bootst=
rap dependency digest>=3D20010302: found digest-20160304<br>ERROR: This =
package is not available for these platforms: Darwin-*-* Interix-*-* *-*-x8=
6_64 DragonFly-*-* NetBSD-[6789]*-*<br>ERROR: This package has set PKG_SKIP=
_REASON:<br>ERROR: gcc2-2.95.3nb7 is not available for NetBSD-7.0.1-hpcarm<=
br>*** Error code 1<br>Stop.<br>make[1]: stopped in /usr/pkgsrc/lang/gcc2<b=
r>*** Error code 1<br>Stop.<br>make: stopped in /usr/pkgsrc/cross/libtool-b=
ase<div><br><div>The above error seems to be related to "NOT_FOR_PLATF=
ORM+=3DNetBSD-[6789]*-*" in the lang/gcc2 Makefile. Commenting that li=
ne out is probably not the right thing to do, but in case it is, that's=
yielding a whole other set of errors, ultimately transpiring from the fact=
that arm--netbsdelf-gcc doesn't exist while trying to build lang/gcc2.=
</div></div><div><br></div><div>mk.conf is as follows (comments stripped fo=
r brevity)<br><br>USE_CROSS_COMPILE?=3D =C2=A0yes<br>CROSSBASE=3D =C2=A0${L=
OCALBASE}/cross-${TARGET_ARCH:U${MACHINE_ARCH}}<br>.if !empty(USE_CROSS_COM=
PILE:M[yY][eE][sS])<br>MACHINE=3Dhpcarm<br>MACHINE_ARCH=3D =C2=A0arm<br>TOO=
LDIR=3D /usr/obj/tooldir.NetBSD-7.0.1-amd64<br>CROSS_DESTDIR=3D /usr/obj/de=
stdir.hpcarm<br>PACKAGES=3D${PKGSRCDIR}/packages.${MACHINE_ARCH}<br>WRKDIR_=
BASENAME=3D =C2=A0work.${MACHINE_ARCH}<br>.endif</div><div><br></div><div>I=
'm an admitted newbie to cross-compiling, but I'm beginning to thin=
k this is why there aren't any binary packages for NetBSD7/hpcarm yet..=
.</div><div><br></div><div>Advice?</div><div><br></div><div>--Noah</div></d=
iv>
--001a1140717e1865f50533ef3c50--