chakra-core / ChakraCore

ChakraCore is an open source Javascript engine with a C API.
MIT License
9.13k stars 1.2k forks source link

Failed to build on FreeBSD #6999

Open Curculigo opened 3 months ago

Curculigo commented 3 months ago
$ 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
ppenzin commented 1 month ago

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.

Curculigo commented 1 month ago

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.