Date: Wed, 23 Feb 2022 06:04:08 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 262134] textproc/re-flex: ARM build fails due to -march=native Message-ID: <bug-262134-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262134 Bug ID: 262134 Summary: textproc/re-flex: ARM build fails due to -march=3Dnative Product: Ports & Packages Version: Latest Hardware: arm OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: gahr@FreeBSD.org Reporter: fuz@fuz.su Assignee: gahr@FreeBSD.org Flags: maintainer-feedback?(gahr@FreeBSD.org) Attachment #232024 text/plain mime type: Created attachment 232024 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D232024&action= =3Dedit textproc/re-flex 3.1.0 armv7 build log While building textproc/re-flex from 2022Q1, I noticed that the build fails= due to an unsupported compiler flag: =3D=3D=3D> Building for re-flex-3.1.0 [ 3% 1/32] /usr/bin/c++ -DHAVE_NEON -DReflexLib_EXPORTS -I/wrkdirs/usr/ports/textproc/re-flex/work/RE-flex-3.1.0/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -march=3Dnative -mfpu= =3Dneon -std=3Dgnu++11 -MD -MT CMakeFiles/ReflexLib.dir/lib/convert.cpp.o -MF CMakeFiles/ReflexLib.dir/lib/convert.cpp.o.d -o CMakeFiles/ReflexLib.dir/lib/convert.cpp.o -c /wrkdirs/usr/ports/textproc/re-flex/work/RE-flex-3.1.0/lib/convert.cpp FAILED: CMakeFiles/ReflexLib.dir/lib/convert.cpp.o=20 /usr/bin/c++ -DHAVE_NEON -DReflexLib_EXPORTS -I/wrkdirs/usr/ports/textproc/re-flex/work/RE-flex-3.1.0/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -march=3Dnative -mfpu= =3Dneon -std=3Dgnu++11 -MD -MT CMakeFiles/ReflexLib.dir/lib/convert.cpp.o -MF CMakeFiles/ReflexLib.dir/lib/convert.cpp.o.d -o CMakeFiles/ReflexLib.dir/lib/convert.cpp.o -c /wrkdirs/usr/ports/textproc/re-flex/work/RE-flex-3.1.0/lib/convert.cpp c++: error: the clang compiler does not support '-march=3Dnative' ninja: build stopped: subcommand failed. *** Error code 1 Stop. make: stopped in /usr/ports/textproc/re-flex --- This is because -march=3Dnative is only supported on x86. Furthermore, por= ts should not use this option (see porter's handbook, =C2=A713.14.4) as it may= cause packages to be built that do not run on other machines of the same architecture. Please patch the port to build without -march=3Dnative. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262134-7788>