ChakraCore
ChakraCore copied to clipboard
Failed to build on FreeBSD
$ bash ./build.sh
Warning: Installation script couldn't detect host OS..
Build path: /work/ChakraCore/out/Release
Compile Target : System Default
Generating Release build
CMake Warning:
Ignoring extra path from command line:
"/work/ChakraCore/out/Release/ "
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is Clang 18.1.5
-- The CXX compiler identification is Clang 18.1.5
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- 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
CMake Error at CMakeLists.txt:76 (message):
Unsupported target processor: amd64
-- Configuring incomplete, errors occurred!
make: no target to make.
make: stopped in /work/ChakraCore/out/Release
See error details above. Exit code was 2
FreeBSD is not supported as of yet, and the main problem would be code in pal directory. @Curculigo are you interested in participating in the porting effort?
I've had some changes started for FreeBSD support, but must've deleted them. I can definitely provide CMake changes pretty quickly.
If it's only about CMake and some ifdef in source code then I could help. But I don't have the skills needed to deal with anything more complex than that.
It is some CMake changes and a lot of ifdefs :smile: The gist is PAL in CC is a bit different from the PAL in dotnet, as some code was removed for performance reasons. @rhuanjl has done the heroic work to get that to work on arm64 MacOS, it should be possible to handle FreeBSD too.
I will recreate partial change and post it as a branch.
@Curculigo see #7008