-
Notifications
You must be signed in to change notification settings - Fork 543
Closed
Description
System information
SolveSpace version: git master 0288c0a
Operating system: OpenBSD 6.7 amd64
Expected behavior
Successful compile / build of git master on OpenBSD per instructions in the README.md
Actual behavior
The make step is unable to complete due to errors with unknown type name 'locale_t'.
$ make
...
Scanning dependencies of target flatbuffers
[ 8%] Building CXX object extlib/flatbuffers/CMakeFiles/flatbuffers.dir/src/idl_parser.cpp.o
[ 8%] Building CXX object extlib/flatbuffers/CMakeFiles/flatbuffers.dir/src/idl_gen_text.cpp.o
[ 8%] Building CXX object extlib/flatbuffers/CMakeFiles/flatbuffers.dir/src/reflection.cpp.o
[ 9%] Building CXX object extlib/flatbuffers/CMakeFiles/flatbuffers.dir/src/util.cpp.o
In file included from /home/username/packages/apps/solvespace/extlib/flatbuffers/src/util.cpp:41:
In file included from /home/username/packages/apps/solvespace/extlib/flatbuffers/include/flatbuffers/util.h:25:
In file included from /usr/include/c++/v1/sstream:174:
In file included from /usr/include/c++/v1/ostream:138:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:32:
In file included from /usr/include/c++/v1/support/newlib/xlocale.h:26:
/usr/include/c++/v1/support/xlocale/__strtonum_fallback.h:24:64: error: unknown type name 'locale_t'
char **endptr, locale_t) {
...
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
*** Error 1 in . (extlib/flatbuffers/CMakeFiles/flatbuffers.dir/build.make:102 'extlib/flatbuffers/CMakeFiles/flatbuffers.dir/src/util.cpp.o')
*** Error 2 in . (CMakeFiles/Makefile2:325 'extlib/flatbuffers/CMakeFiles/flatbuffers.dir/all': make -f extlib/flatbuffers/CMakeFiles/flatbu...)
*** Error 2 in /home/username/packages/apps/solvespace/build (Makefile:152 'all': make -f CMakeFiles/Makefile2 all)
The full output from the cmake step is below:
$ cmake .. -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is Clang 8.0.1
-- The CXX compiler identification is Clang 8.0.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAS_FILE_PREFIX_MAP
-- Performing Test HAS_FILE_PREFIX_MAP - Failed
-- Using in-tree libdxfrw
-- Using in-tree flatbuffers
-- Looking for strtof_l
-- Looking for strtof_l - not found
-- Looking for strtoull_l
-- Looking for strtoull_l - not found
-- Using in-tree q3d
-- Using in-tree mimalloc
--
-- Library base name: mimalloc
-- Build type : release
-- Install directory: /usr/local/lib/mimalloc-1.6
-- Build targets : static
--
-- Looking for backtrace
-- Looking for backtrace - not found
-- Found Backtrace: /usr/local/lib/libexecinfo.so.2.0
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Found ZLIB: /usr/lib/libz.so.5.0 (found version "1.2.3")
-- Found PNG: /usr/local/lib/libpng.so.18.0 (found version "1.6.37")
-- Found Freetype: /usr/X11R6/lib/libfreetype.so.30.0 (found version "2.10.1")
-- Checking for module 'cairo'
-- Found cairo, version 1.16.0
-- Found OpenGL: /usr/X11R6/lib/libGL.so.17.1
-- Could NOT find SPACEWARE (missing: SPACEWARE_LIBRARY SPACEWARE_INCLUDE_DIR)
-- Checking for module 'fontconfig'
-- Found fontconfig, version 2.12.4
-- Checking for module 'json-c'
-- Found json-c, version 0.13.1
-- Checking for modules 'gtkmm-3.0>=3.18;pangomm-1.4;x11'
-- Found gtkmm-3.0, version 3.24.2
-- Found pangomm-1.4, version 2.42.1
-- Found x11, version 1.6.9
-- Configuring done
-- Generating done
-- Build files have been written to: /home/username/packages/apps/solvespace/build
Additional information
In addition to README.md instructions I also installed gettext-tools using pkg_add to address following warning during cmake step:
$ cmake .. -DCMAKE_BUILD_TYPE=Release
...
CMake Warning at CMakeLists.txt:315 (message):
Gettext not found, translations will not be updated
...
Metadata
Metadata
Assignees
Labels
No labels