akkartik / mu

Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.
http://akkartik.name/akkartik-convivial-20200607.pdf
Other
1.35k stars 47 forks source link

Mu: Can't build due to linker error #16

Closed tekknolagi closed 5 years ago

tekknolagi commented 5 years ago
willow% CFLAGS="-O0" ./mu
updating mu_bin
-- /home/max/Documents/Dev/mu/.build
-- /home/max/Documents/Dev/mu/termbox
-- /home/max/Documents/Dev/mu
/usr/bin/ld: termbox/libtermbox.a(utf8.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
willow% uname -a
Linux willow 4.15.0-12-generic #13-Ubuntu SMP Thu Mar 8 06:24:47 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
willow% lsb_release -irc
Distributor ID: Ubuntu
Release:    18.04
Codename:   bionic
willow% 
tekknolagi commented 5 years ago

After upgrading gcc (???), cleaning, and rebuilding, this no longer appears to be an issue.

akkartik commented 5 years ago

Thanks!