Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed on OpenBSD #3292

Closed
ChihHao-Su opened this issue Feb 3, 2023 · 2 comments · Fixed by #3295
Closed

Build failed on OpenBSD #3292

ChihHao-Su opened this issue Feb 3, 2023 · 2 comments · Fixed by #3295

Comments

@ChihHao-Su
Copy link

Platform

OS: OPENBSD 7.2 amd64
Compiler: Clang 13.0.0

Build procedure

# download & config
☁  compile_from_src  git clone https://github.com/fmtlib/fmt.git
正複製到 'fmt'...
remote: Enumerating objects: 31478, done.
remote: Total 31478 (delta 0), reused 0 (delta 0), pack-reused 31478
接收物件中: 100% (31478/31478), 13.63 MiB | 2.69 MiB/s, 完成.
處理 delta 中: 100% (21322/21322), 完成.
☁  compile_from_src  cd fmt
☁  fmt [master] mkdir BUILD
☁  fmt [master] cd BUILD
☁  BUILD [master] cmake .. -DBUILD_SHARED_LIBS=ON -DFMT_MODULE=ON
-- CMake version: 3.24.2
-- The CXX compiler identification is Clang 13.0.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Module support is disabled.
-- Version: 9.1.1
-- Build type: Release
-- Performing Test HAS_NULLPTR_WARNING
-- Performing Test HAS_NULLPTR_WARNING - Success
-- Target 'doc' disabled (requires doxygen)
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Looking for strptime
-- Looking for strptime - found
-- FMT_PEDANTIC: OFF
-- Configuring done
-- Generating done
-- Build files have been written to: /home/niko/compile_from_src/fmt/BUILD

# build
☁  BUILD [master] cmake --build .
Consolidate compiler generated dependencies of target fmt
[  1%] Building CXX object CMakeFiles/fmt.dir/src/os.cc.o
/home/niko/compile_from_src/fmt/src/os.cc:209:27: error: expected unqualified-id
  int fd = FMT_POSIX_CALL(fileno(file_));
                          ^
/usr/include/stdio.h:410:19: note: expanded from macro 'fileno'
#define fileno(p)       (!__isthreaded ? __sfileno(p) : (fileno)(p))
                        ^
1 error generated.
*** Error 1 in . (CMakeFiles/fmt.dir/build.make:90 'CMakeFiles/fmt.dir/src/os.cc.o': /usr/bin/c++ -DFMT_EXPORT -Dfmt_EXPORTS -I/home/niko/co...)
*** Error 2 in . (CMakeFiles/Makefile2:175 'CMakeFiles/fmt.dir/all': /usr/bin/make -s -f CMakeFiles/fmt.dir/build.make CMakeFiles/fmt.dir/bu...)
*** Error 2 in /home/niko/compile_from_src/fmt/BUILD (Makefile:166 'all': /usr/bin/make -s -f CMakeFiles/Makefile2 all)
@ChihHao-Su
Copy link
Author

The problem still exists even without FMT_MODULE enabled

@ChihHao-Su
Copy link
Author

osmcode/libosmium#259

@ChihHao-Su ChihHao-Su changed the title Build failed on clang Build failed on OpenBSD Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant