ChakraCore icon indicating copy to clipboard operation
ChakraCore copied to clipboard

Failed to build on FreeBSD

Open Curculigo opened this issue 1 year ago • 4 comments

$ 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

Curculigo avatar Aug 10 '24 09:08 Curculigo

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.

ppenzin avatar Oct 04 '24 22:10 ppenzin

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.

Curculigo avatar Oct 06 '24 18:10 Curculigo

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.

ppenzin avatar Jan 02 '25 22:01 ppenzin

@Curculigo see #7008

ppenzin avatar Jan 03 '25 04:01 ppenzin