-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Open
Labels
category:port-bugThe issue is with a library, which is something the port should already supportThe issue is with a library, which is something the port should already support
Description
Operating system
macOS
Compiler
clang
Steps to reproduce the behavior
`./vcpkg install farmhash`
Failure logs
/usr/bin/make all-recursive
make[1]: Entering directory '/home/jenkins/workspace/ext-libs/src/vcpkg/buildtrees/farmhash/x64-linux-bitwig-rel'
Making all in src
make[2]: Entering directory '/home/jenkins/workspace/ext-libs/src/vcpkg/buildtrees/farmhash/x64-linux-bitwig-rel/src'
/usr/lib/llvm-21/bin/clang++ -DHAVE_CONFIG_H -I. -I.././../src/97573ad06d-1f9c88951d.clean/src -I.. -DNDEBUG -maes -msse4.2 -fPIC -pipe -mavx2 -mfma -mf16c -O3 -O3 -MT farm-test.o -MD -MP -MF .deps/farm-test.Tpo -c -o farm-test.o .././../src/97573ad06d-1f9c88951d.clean/src/farm-test.cc
/bin/bash ../libtool --tag=CXX --mode=compile /usr/lib/llvm-21/bin/clang++ -DHAVE_CONFIG_H -I. -I.././../src/97573ad06d-1f9c88951d.clean/src -I.. -DNDEBUG -maes -msse4.2 -fPIC -pipe -mavx2 -mfma -mf16c -O3 -O3 -MT farmhash.lo -MD -MP -MF .deps/farmhash.Tpo -c -o farmhash.lo .././../src/97573ad06d-1f9c88951d.clean/src/farmhash.cc
libtool: compile: /usr/lib/llvm-21/bin/clang++ -DHAVE_CONFIG_H -I. -I.././../src/97573ad06d-1f9c88951d.clean/src -I.. -DNDEBUG -maes -msse4.2 -fPIC -pipe -mavx2 -mfma -mf16c -O3 -O3 -MT farmhash.lo -MD -MP -MF .deps/farmhash.Tpo -c .././../src/97573ad06d-1f9c88951d.clean/src/farmhash.cc -o farmhash.o
mv -f .deps/farmhash.Tpo .deps/farmhash.Plo
/bin/bash ../libtool --tag=CXX --mode=link /usr/lib/llvm-21/bin/clang++ -maes -msse4.2 -fPIC -pipe -mavx2 -mfma -mf16c -O3 -O3 -L/home/jenkins/workspace/ext-libs/src/vcpkg/installed/x64-linux-bitwig/lib -L/home/jenkins/workspace/ext-libs/src/vcpkg/installed/x64-linux-bitwig/lib/manual-link -o libfarmhash.la -rpath /home/jenkins/workspace/ext-libs/src/vcpkg/installed/x64-linux-bitwig/lib farmhash.lo
libtool: link: llvm-ar cr .libs/libfarmhash.a farmhash.o
libtool: link: llvm-ranlib .libs/libfarmhash.a
libtool: link: ( cd ".libs" && rm -f "libfarmhash.la" && ln -s "../libfarmhash.la" "libfarmhash.la" )
mv -f .deps/farm-test.Tpo .deps/farm-test.Po
/bin/bash ../libtool --tag=CXX --mode=link /usr/lib/llvm-21/bin/clang++ -maes -msse4.2 -fPIC -pipe -mavx2 -mfma -mf16c -O3 -O3 -L/home/jenkins/workspace/ext-libs/src/vcpkg/installed/x64-linux-bitwig/lib -L/home/jenkins/workspace/ext-libs/src/vcpkg/installed/x64-linux-bitwig/lib/manual-link -o farmhash_unittest farm-test.o libfarmhash.la
libtool: link: /usr/lib/llvm-21/bin/clang++ -maes -msse4.2 -fPIC -pipe -mavx2 -mfma -mf16c -O3 -O3 -o farmhash_unittest farm-test.o -L/home/jenkins/workspace/ext-libs/src/vcpkg/installed/x64-linux-bitwig/lib -L/home/jenkins/workspace/ext-libs/src/vcpkg/installed/x64-linux-bitwig/lib/manual-link ./.libs/libfarmhash.a
make[2]: Leaving directory '/home/jenkins/workspace/ext-libs/src/vcpkg/buildtrees/farmhash/x64-linux-bitwig-rel/src'
make[2]: Entering directory '/home/jenkins/workspace/ext-libs/src/vcpkg/buildtrees/farmhash/x64-linux-bitwig-rel'
make[2]: Leaving directory '/home/jenkins/workspace/ext-libs/src/vcpkg/buildtrees/farmhash/x64-linux-bitwig-rel'
make[1]: Leaving directory '/home/jenkins/workspace/ext-libs/src/vcpkg/buildtrees/farmhash/x64-linux-bitwig-rel'
Additional context
The problem is obvious:
vcpkg/ports/farmhash/portfile.cmake
Line 20 in 50c0cb4
set(ENV{CXXFLAGS} "-maes -msse4.2") |
This forces invalid compilation options on arm64 targets.
Metadata
Metadata
Assignees
Labels
category:port-bugThe issue is with a library, which is something the port should already supportThe issue is with a library, which is something the port should already support