Date: Mon, 14 Nov 2016 18:40:34 +0000 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 Message-ID: <bug-214513-4077-oUR9lqBMYx@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-214513-4077@https.bugs.freebsd.org/bugzilla/> References: <bug-214513-4077@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
Ting-Wei Lan <lantw44@gmail.com> has reassigned Bugzilla Automation <bugzilla@FreeBSD.org>'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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-214513-4077-oUR9lqBMYx>