From owner-freebsd-emulation@freebsd.org Mon Nov 14 18:40:34 2016 Return-Path: Delivered-To: freebsd-emulation@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 8839FC41C93 for ; Mon, 14 Nov 2016 18:40:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 71D471F70 for ; Mon, 14 Nov 2016 18:40:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 6E4CCC41C92; Mon, 14 Nov 2016 18:40:34 +0000 (UTC) Delivered-To: emulation@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 6DF43C41C91 for ; Mon, 14 Nov 2016 18:40:34 +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 438031F6E for ; Mon, 14 Nov 2016 18:40:34 +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 uAEIeYfD085562 for ; Mon, 14 Nov 2016 18:40:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: maintainer-feedback requested: [Bug 214513] devel/linux_libusb: gcc provided by CentOS is too old to understand some valid CPUTYPE Date: Mon, 14 Nov 2016 18:40:34 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2016 18:40:34 -0000 Ting-Wei Lan has reassigned Bugzilla Automation 's request for maintainer-feedback to emulation@FreeBSD.org: Bug 214513: devel/linux_libusb: gcc provided by CentOS is too old to unders= tand some valid CPUTYPE https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214513 --- Description --- I set CPUTYPE=3Dcorei7 in /etc/make.conf, and the value is converted to -march=3Dnehalem by Makefiles installed on FreeBSD 11.0-RELEASE. CentOS 6 u= ses gcc 4.4 and CentOS 7 uses gcc 4.8, but this option is only supported on gcc= >=3D 4.9, which can cause build failure for devel/linux_libusb. This problem also happens in native FreeBSD gcc (gcc 4.8) and a bug (bug 214173) is already f= iled for the native port. =3D=3D=3D> Building for linux_libusb-11.0r261448_2 echo libusb.so.3: /usr/lib/libpthread.a >> .depend Warning: Object directory not changed from original /wrkdirs/usr/ports/devel/linux_libusb/work/linux_libusb-11.0r261448 /compat/linux/usr/bin/gcc -O2 -pipe -march=3Dcorei7=20 -I/wrkdirs/usr/ports/devel/linux_libusb/work/sys -fstack-protector -fno-strict-aliasing -DCOMPAT_32BIT -DLIBUSB_GLOBAL_INCLUDE_FILE=3D\"libusb_global_linux.h\" -DUSB_GLOBAL_INCLUDE_FILE=3D\"libusb_global_linux.h\" -I ../../sys -march= =3Dcorei7=20 -MD -MF.depend.libusb20.o -MTlibusb20.o -std=3Dgnu99 -Wsystem-headers -Wer= ror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c libusb20.= c -o libusb20.o libusb20.c:1: error: bad value (corei7) for -march=3D switch libusb20.c:1: error: bad value (corei7) for -mtune=3D switch *** Error code 1