-
Notifications
You must be signed in to change notification settings - Fork 46
Description
Describe the bug
'Make' and 'sudo make install' went well, but for 'make unit-test', I got :
'/sbin/ld: cannot find -ltos: No such file or directory'
Which led to :
ERROR: Failed to execute command: 'gcc -L/usr/local/lib /tmp/holyc-asm.s -ltos -lpthread -lc -lm -o test-runner'
make[4]: *** [CMakeFiles/unit-test.dir/build.make:72: CMakeFiles/unit-test] Error 1
make[3]: *** [CMakeFiles/Makefile2:120: CMakeFiles/unit-test.dir/all] Error 2
make[2]: *** [CMakeFiles/Makefile2:127: CMakeFiles/unit-test.dir/rule] Error 2
make[1]: *** [Makefile:182: unit-test] Error 2
I also tried to compile a simple test.HC file and I got :
hcc test.HC
/sbin/ld: cannot find -ltos: No such file or directory
collect2: error: ld returned 1 exit status
ERROR: Failed to execute command: 'gcc -L/home/purple/.local/lib /tmp/holyc-asm.s -ltos -lpthread -lc -lm -o a.out'
To Reproduce
- git clone https://github.com/Jamesbarford/holyc-lang
- make && sudo make install && make unit-test
Expected behavior
A successfull execution of the test and the working Holy-C compiler
Compiler version
hcc beta-v0.0.10
Desktop:
- OS: Arch Linux x86_64
- Kernel: Linux 6.16.8-arch3-1