From owner-freebsd-ports-bugs@freebsd.org Tue Dec 5 10:57:20 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8BF3BE5DA1E for ; Tue, 5 Dec 2017 10:57:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7091075947 for ; Tue, 5 Dec 2017 10:57:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vB5AvKjB072613 for ; Tue, 5 Dec 2017 10:57:20 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 224107] multimedia/libvpx: broken on armv*, add an armv6-linux-gcc target Date: Tue, 05 Dec 2017 10:57:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: mikael.urankar@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jbeich@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2017 10:57:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224107 Bug ID: 224107 Summary: multimedia/libvpx: broken on armv*, add an armv6-linux-gcc target Product: Ports & Packages Version: Latest Hardware: arm OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: jbeich@FreeBSD.org Reporter: mikael.urankar@gmail.com CC: freebsd-arm@FreeBSD.org Flags: maintainer-feedback?(jbeich@FreeBSD.org) CC: freebsd-arm@FreeBSD.org Assignee: jbeich@FreeBSD.org Created attachment 188541 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D188541&action= =3Dedit patch * the following condition is not correct, we can specify -mcpu=3Dcortex-a7 = to build for armv7: if ${CFLAGS:M-march=3Darmv7*} * I would like to add an armv6-linux-gcc target so we can benefit the arm_cpudetect feature on armv6 * 2 problems (an error and a warning) in patch-vpx__ports_arm__cpudetect.c: When we have the sys/auxv.h header we miss the getauxval function (sys/auxv= .h doesn't provide it) #if __has_include() #include #else snip int arm_cpu_caps(void) { snip hwcaps =3D getauxval(AT_HWCAP); snip so the build fails: vpx_ports/arm_cpudetect.c.o: In function `arm_cpu_caps': vpx_ports/arm_cpudetect.c:(.text+0x50): undefined reference to `getauxval' the 2nd problem is that we don't provide the prototype for getauxval: cc -O -pipe -fno-strict-aliasing -march=3Darmv6 -DNDEBUG -O3 -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D0 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -Wall -Wdeclaration-after-statement -Wdisabled-optimization -W float-conversion -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused -Wextra -Wundef -Wshorten-64-to-32 -I. -I"/usr/ports/multimedia/libvpx/work/libvpx-1.6.1 " -c -o vpx_ports/arm_cpudetect.c.o vpx_ports/arm_cpudetect.c=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 vpx_ports/arm_cpudetect.c:198:12: warning: implicit declaration of function 'getauxval' is invalid in C99 [-Wimplicit-function-declaration]=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 hwcaps =3D getauxval(AT_HWCAP); The attached patch addresses the first 2 points, I don't know the code well enough to fix the others problems. --=20 You are receiving this mail because: You are the assignee for the bug.=