Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jan 2019 01:21:14 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        ports-list freebsd <freebsd-ports@freebsd.org>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   How to get multimedia/libvpx to build on a world that was built using WITHOUT_BINUTILS (armv7 example)
Message-ID:  <EB410592-5ABB-488A-9AA6-1D770EED0600@yahoo.com>

next in thread | raw e-mail | index | archive | help
[Note: My armv7 context builds ports with -mcpu=3Dcortex-a7 via a =
make.conf
like file. The in-use world also was built with -mcpu=3Dcortex-a7 .]

In order to avoid the likes of:

.  . .
as -meabi=3D5 --defsym ARCHITECTURE=3D7 -march=3Darmv7-a =
-mfloat-abi=3Dhard -mfpu=3Dneon -I./ =
-I"/wrkdirs/usr/ports/multimedia/libvpx/work/libvpx-1.7.0"/ -o =
vpx_dsp/arm/intrapred_neon_asm.asm.S.o =
vpx_dsp/arm/intrapred_neon_asm.asm.S
/bin/sh: as: not found
gmake[2]: *** [Makefile:199: vpx_dsp/arm/intrapred_neon_asm.asm.S.o] =
Error 127
gmake[1]: *** [Makefile:17: .DEFAULT] Error 2
gmake[1]: Leaving directory =
'/wrkdirs/usr/ports/multimedia/libvpx/work/libvpx-1.7.0'
*** Error code 1

Stop.
make: stopped in /usr/ports/multimedia/libvpx
. . .

in a context where FreeBSD world was built using WITHOUT_BINUTILS=3D
and then installed as the context for building ports, I made a change
to multimedia/libvpx/Makefile . I used:

# svnlite diff /usr/ports/multimedia/libvpx/Makefile=20
Index: /usr/ports/multimedia/libvpx/Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- /usr/ports/multimedia/libvpx/Makefile	(revision 488859)
+++ /usr/ports/multimedia/libvpx/Makefile	(working copy)
@@ -14,7 +14,9 @@
 LICENSE_FILE=3D	${WRKSRC}/LICENSE
=20
 BUILD_DEPENDS=3D	nasm:devel/nasm
+BUILD_DEPENDS+=3D as:devel/binutils
=20
+
 USE_GITHUB=3D	yes
 GH_ACCOUNT=3D	webmproject
=20

After which the reattempted build via poudriere-devel got:

[00:02:35] [02] [00:00:00] Building multimedia/libvpx | libvpx-1.7.0_3
. . .
[00:05:49] [02] [00:03:14] Finished multimedia/libvpx | libvpx-1.7.0_3: =
Success



(That text was actually taken from a amd64->armv7 cross-build =
environment
output.)


=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EB410592-5ABB-488A-9AA6-1D770EED0600>