sio2project / sio2jail

A tool for supervising execution of programs submitted in algorithmic competitions
MIT License
29 stars 10 forks source link

Cannot find -lc -lm #13

Closed maciektr closed 5 years ago

maciektr commented 5 years ago

I'm trying to install sio2jail on fedora 28. I'm getting stuck on "[ 77%] Linking C executable leak-tiny_32" followed by "/usr/bin/ld: cannot find -lm /usr/bin/ld: cannot find -lc collect2: error: ld returned 1 exit status" As far as I'm concerned I've got the standard libs. Can I kindly ask for help with that?

Michcioperz commented 5 years ago

I can't say I'm familiar with Fedora, but do you have the 32-bit versions of the standard libs? leak-tiny_32 is built with -m32 flag.

Michcioperz commented 5 years ago

I familiarized myself a little with Fedora using Docker just now.

Michcioperz commented 5 years ago

So, I believe the problem here is that everything we build for sio2jail, we link statically in order to cut down on runtime dependencies.

maciektr commented 5 years ago

Worked for me, thanks a lot :)