Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS build error: ld: unknown option: --stack #283

Open
barracuda156 opened this issue Dec 7, 2024 · 2 comments
Open

macOS build error: ld: unknown option: --stack #283

barracuda156 opened this issue Dec 7, 2024 · 2 comments

Comments

@barracuda156
Copy link

From eb8ef1e commit:

[ 75%] Building C object CMakeFiles/sljit_test.dir/sljit_src/sljitLir.c.o
/opt/local/bin/ccache /usr/bin/gcc-4.2 -DSLJIT_HAVE_CONFIG_PRE -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_sljit/sljit/work/sljit-eb8ef1e81902e14ae3bfdfcb423b932963b8cc10/sljit_src -I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_sljit/sljit/work/sljit-eb8ef1e81902e14ae3bfdfcb423b932963b8cc10/test_src -pipe -Os -DNDEBUG -I/opt/local/include -arch ppc -mmacosx-version-min=10.6 -MD -MT CMakeFiles/sljit_test.dir/sljit_src/sljitLir.c.o -MF CMakeFiles/sljit_test.dir/sljit_src/sljitLir.c.o.d -o CMakeFiles/sljit_test.dir/sljit_src/sljitLir.c.o -c /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_sljit/sljit/work/sljit-eb8ef1e81902e14ae3bfdfcb423b932963b8cc10/sljit_src/sljitLir.c
[100%] Linking C executable sljit_test
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/sljit_test.dir/link.txt --verbose=ON
ld: unknown option: --stack
collect2: ld returned 1 exit status
/usr/bin/gcc-4.2 -pipe -Os -DNDEBUG -I/opt/local/include -arch ppc -mmacosx-version-min=10.6 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,--stack,4194304 CMakeFiles/sljit_test.dir/test_src/sljitMain.c.o CMakeFiles/sljit_test.dir/test_src/sljitTest.c.o CMakeFiles/sljit_test.dir/sljit_src/sljitLir.c.o -o sljit_test  -Wl,-rpath,/opt/local/lib
make[2]: *** [sljit_test] Error 1
@barracuda156
Copy link
Author

Also install target is missing:

Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_sljit/sljit/work/build" && /usr/bin/make -w install/fast DESTDIR=/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_sljit/sljit/work/destroot 
make: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_sljit/sljit/work/build'
make: *** No rule to make target `install/fast'.  Stop.
make: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_sljit/sljit/work/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_sljit/sljit/work/build" && /usr/bin/make -w install/fast DESTDIR=/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_sljit/sljit/work/destroot 
Exit code: 2

@carenas
Copy link
Contributor

carenas commented Dec 9, 2024

cmake for SLJIT was only meant to be an aid for environments where you don't have a working GNU make (mainly Windows with MSVC)

the missing functionality is indeed ia "feature"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants