You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been testing out pyzmq's updated build system on scikit-build-core (great experience so far!).
openbsd doesn't have wheels, so this package attempts to build cmake, which in turn requires system-installed cmake (it would be super nice if #33 could be solved, so I didn't need to install cmake to get cmake).
Currently, building the cmake wheel fails with:
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - broken
CMake Error at /usr/local/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (mes
sage):
The C compiler
"/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/tmp/pip-install-kjsyd9hs/cmake_53a116a403e347e2803e32ebc0544
c72/_skbuild/openbsd-7.4-arm64-3.10/cmake-build/CMakeProject-build/CMakeFiles/CM
akeScratch/TryCompile-vovk2d'
Run Build Command(s): /usr/local/bin/cmake -E env VERBOSE=1 /usr/bin/make
-f Makefile cmTC_eda68/fast
/usr/bin/make -f CMakeFiles/cmTC_eda68.dir/build.make CMakeFiles/cmTC_eda
68.dir/build
Building C object CMakeFiles/cmTC_eda68.dir/testCCompiler.c.o
/usr/bin/cc -D_POSIX_C_SOURCE=199506L -D_POSIX_SOURCE=1 -D_SVID_SOURCE=1
-D_BSD_SOURCE=1 -MD -MT CMakeFiles/cmTC_eda68.dir/testCCompiler.c.o -MF CMakeF
iles/cmTC_eda68.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_eda68.dir/testCCompil
er.c.o -c /tmp/pip-install-kjsyd9hs/cmake_53a116a403e347e2803e32ebc0544c72/_skbu
ild/openbsd-7.4-arm64-3.10/cmake-build/CMakeProject-build/CMakeFiles/CMakeScratc
h/TryCompile-vovk2d/testCCompiler.c
Linking C executable cmTC_eda68
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_eda68.dir/link.t
xt --verbose=1
/usr/bin/cc -D_POSIX_C_SOURCE=199506L -D_POSIX_SOURCE=1 -D_SVID_SOURCE=1 -
D_BSD_SOURCE=1 -lstdc++ -lgcc -lrt CMakeFiles/cmTC_eda68.dir/testCCompiler.c.o
-o cmTC_eda68 -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib:/home/vm
a5/build/bundled/lib
ld: error: unable to find library -lgcc
ld: error: unable to find library -lrt
cc: error: linker command failed with exit code 1 (use -v to see invocatio
n)
I don't know why cmake is looking for libgcc and librt, which don't make sense on openbsd, so I don't know if that's an issue for cmake itself or this package. FWIW, building my package after lowering the cmake requirement in my pyproject.toml to accept the system cmake (3.27.5) doesn't have this issue.
The text was updated successfully, but these errors were encountered:
While investigating this issue, I took some notes:
Reviewing the change log associated with CMake 3.28.21, it is mentioned:
Source: Restore compilation on OpenBSD
After review the associated merge request MR-90852, it does not seem related to this issue.
Reviewing the commit history, I also noticed Kitware/CMake@e527c2d (LinkerId: Fix detection of linker tool for Clang on OpenBSD) introduced through MR-90863, it also does not seem related to this issue.
I've been testing out pyzmq's updated build system on scikit-build-core (great experience so far!).
openbsd doesn't have wheels, so this package attempts to build cmake, which in turn requires system-installed cmake (it would be super nice if #33 could be solved, so I didn't need to install cmake to get cmake).
Currently, building the cmake wheel fails with:
I don't know why cmake is looking for libgcc and librt, which don't make sense on openbsd, so I don't know if that's an issue for cmake itself or this package. FWIW, building my package after lowering the cmake requirement in my pyproject.toml to accept the system cmake (3.27.5) doesn't have this issue.
The text was updated successfully, but these errors were encountered: