(10-27-2015, 03:37 AM)bearbin Wrote: I am working on getting a FreeBSD build set up, and everything works so far, apart from that clang emits a load of errors and refuses to build.
Here's a build log: http://builds.cuberite.org/job/Cuberite%.../8/console
Does anybody have an idea of what I need to change to make the build work?
Code:
...
-- Check size of int - failed
-- Check size of long - failed
...
...seems to be the problem, and that's cascading down to libevent which uses this CMake system to define its integer types.
I've no idea what's wrong, but I can suggest:
- Updating Clang
- Updating CMake
- Updating FreeBSD
- (potentially reinstalling the above)
- Ensuring that there aren't any leftover files from compiles on other operating systems
(10-27-2015, 05:48 AM)SphinxC0re Wrote: My build goes up to 52% and then this:
[ 52%] Building CXX object src/Bindings/CMakeFiles/Bindings.dir/ManualBindings.cpp.o
/home/freebsd/cuberite/src/Bindings/ManualBindings.cpp:2478:9: error: use of undeclared identifier 'BUILD_COMMIT_ID'
L.Push(BUILD_COMMIT_ID);
^
/home/freebsd/cuberite/src/Bindings/ManualBindings.cpp:2489:9: error: use of undeclared identifier 'BUILD_DATETIME'
L.Push(BUILD_DATETIME);
^
/home/freebsd/cuberite/src/Bindings/ManualBindings.cpp:2500:9: error: use of undeclared identifier 'BUILD_ID'
L.Push(BUILD_ID);
^
/home/freebsd/cuberite/src/Bindings/ManualBindings.cpp:2511:9: error: use of undeclared identifier 'BUILD_SERIES_NAME'
L.Push(BUILD_SERIES_NAME);
^
4 errors generated.
*** Error code 1
Stop.
make[2]: stopped in /usr/home/freebsd/cuberite
*** Error code 1
Stop.
make[1]: stopped in /usr/home/freebsd/cuberite
*** Error code 1
Stop.
make: stopped in /usr/home/freebsd/cuberite
In theory, these macros should be generated by CMake. Could you check for the existence of a BuildInfo.h file in src/ ?