[Bug 262134] textproc/re-flex: ARM build fails due to -march=native
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 23 Feb 2022 06:04:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262134
Bug ID: 262134
Summary: textproc/re-flex: ARM build fails due to -march=native
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=232024&action=edit
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:
===> 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=native -mfpu=neon
-std=gnu++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
/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=native -mfpu=neon
-std=gnu++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=native'
ninja: build stopped: subcommand failed.
*** Error code 1
Stop.
make: stopped in /usr/ports/textproc/re-flex
---
This is because -march=native is only supported on x86. Furthermore, ports
should not use this option (see porter's handbook, ยง13.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=native.
--
You are receiving this mail because:
You are the assignee for the bug.