Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Apr 2024 23:30:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 278387] devel/wasi-compiler-rt17: build fails if -march= set
Message-ID:  <bug-278387-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278387

            Bug ID: 278387
           Summary: devel/wasi-compiler-rt17: build fails if -march=3D set
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: vishwin@freebsd.org
          Reporter: iron.udjin@gmail.com
          Assignee: vishwin@freebsd.org
             Flags: maintainer-feedback?(vishwin@freebsd.org)

OS: stable/14-n267222-89dd0612d933:

wasi-compiler-rt17-17.0.6_1 fails to build if -match cflag set. My default
version CFLAGS is: -march=3Dskylake -O2 -pipe. But the port builds only if I
remove -march=3Dskylake from them. Is it possible to make the port build wi=
th
-march set?

build log:

[  4% 8/147] /usr/local/llvm17/bin/clang --target=3Dwasm32-wasi
--sysroot=3D/usr/local/share/wasi-sysroot   -O2 -pipe -march=3Dskylake -O2 =
-pipe=20
-fno-strict-aliasing -O2 -pipe -march=3Dskylake -O2 -pipe  -fno-strict-alia=
sing=20
-DNDEBUG -fPIC -MD -MT CMakeFiles/clang_rt.builtins-wasm32.dir/divtf3.c.o -=
MF
CMakeFiles/clang_rt.builtins-wasm32.dir/divtf3.c.o.d -o
CMakeFiles/clang_rt.builtins-wasm32.dir/divtf3.c.o -c
/wrkdirs/usr/ports/devel/wasi-compiler-rt17/work/llvm-project-17.0.6.src/co=
mpiler-rt/lib/builtins/divtf3.c
FAILED: CMakeFiles/clang_rt.builtins-wasm32.dir/divtf3.c.o=20
/usr/local/llvm17/bin/clang --target=3Dwasm32-wasi
--sysroot=3D/usr/local/share/wasi-sysroot   -O2 -pipe -march=3Dskylake -O2 =
-pipe=20
-fno-strict-aliasing -O2 -pipe -march=3Dskylake -O2 -pipe  -fno-strict-alia=
sing=20
-DNDEBUG -fPIC -MD -MT CMakeFiles/clang_rt.builtins-wasm32.dir/divtf3.c.o -=
MF
CMakeFiles/clang_rt.builtins-wasm32.dir/divtf3.c.o.d -o
CMakeFiles/clang_rt.builtins-wasm32.dir/divtf3.c.o -c
/wrkdirs/usr/ports/devel/wasi-compiler-rt17/work/llvm-project-17.0.6.src/co=
mpiler-rt/lib/builtins/divtf3.c
clang: error: unsupported option '-march=3D' for target 'wasm32-wasi'
clang: error: unsupported option '-march=3D' for target 'wasm32-wasi'
[  5% 8/147] /usr/local/llvm17/bin/clang --target=3Dwasm32-wasi
--sysroot=3D/usr/local/share/wasi-sysroot   -O2 -pipe -march=3Dskylake -O2 =
-pipe=20
-fno-strict-aliasing -O2 -pipe -march=3Dskylake -O2 -pipe  -fno-strict-alia=
sing=20
-DNDEBUG -fPIC -MD -MT CMakeFiles/clang_rt.builtins-wasm32.dir/extendsftf2.=
c.o
-MF CMakeFiles/clang_rt.builtins-wasm32.dir/extendsftf2.c.o.d -o
CMakeFiles/clang_rt.builtins-wasm32.dir/extendsftf2.c.o -c
/wrkdirs/usr/ports/devel/wasi-compiler-rt17/work/llvm-project-17.0.6.src/co=
mpiler-rt/lib/builtins/extendsftf2.c
FAILED: CMakeFiles/clang_rt.builtins-wasm32.dir/extendsftf2.c.o=20
/usr/local/llvm17/bin/clang --target=3Dwasm32-wasi
--sysroot=3D/usr/local/share/wasi-sysroot   -O2 -pipe -march=3Dskylake -O2 =
-pipe=20
-fno-strict-aliasing -O2 -pipe -march=3Dskylake -O2 -pipe  -fno-strict-alia=
sing=20
-DNDEBUG -fPIC -MD -MT CMakeFiles/clang_rt.builtins-wasm32.dir/extendsftf2.=
c.o
-MF CMakeFiles/clang_rt.builtins-wasm32.dir/extendsftf2.c.o.d -o
CMakeFiles/clang_rt.builtins-wasm32.dir/extendsftf2.c.o -c
/wrkdirs/usr/ports/devel/wasi-compiler-rt17/work/llvm-project-17.0.6.src/co=
mpiler-rt/lib/builtins/extendsftf2.c
clang: error: unsupported option '-march=3D' for target 'wasm32-wasi'
clang: error: unsupported option '-march=3D' for target 'wasm32-wasi'
ninja: build stopped: subcommand failed.
=3D=3D=3D> Compilation failed unexpectedly.

--=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-278387-7788>