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 CAD4DC41C99 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 B38F71F72 for ; Mon, 14 Nov 2016 18:40:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B2EEEC41C98; 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 B2A7EC41C97 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 89D7F1F71 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 uAEIeYfH085562 for ; Mon, 14 Nov 2016 18:40:34 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [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-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 Only Me X-Bugzilla-Who: lantw44@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@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 flagtypes.name 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-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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214513 Bug ID: 214513 Summary: devel/linux_libusb: gcc provided by CentOS is too old to understand some valid CPUTYPE Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: emulation@FreeBSD.org Reporter: lantw44@gmail.com Flags: maintainer-feedback?(emulation@FreeBSD.org) Assignee: emulation@FreeBSD.org 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 --=20 You are receiving this mail because: You are the assignee for the bug.=