Page 1 of 1
Linker not compiling
Posted: Fri Nov 04, 2016 2:06 pm
by NunoLava1998
I am running Manjaro Linux 16 (Daniella).
I got a github version of the bare bones, ran setenv.sh and i am now compiling.
However, when i try to run the command that compiles the linker:
"i686-elf-gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated."
How can i fix this?
Re: Linker not compiling
Posted: Fri Nov 04, 2016 2:17 pm
by Roman
What do you mean by "a github version of bare bones"?
Re: Linker not compiling
Posted: Fri Nov 04, 2016 2:20 pm
by NunoLava1998
Roman wrote:What do you mean by "a github version of bare bones"?
https://github.com/rm-hull/barebones-toolchain
Re: Linker not compiling
Posted: Fri Nov 04, 2016 2:21 pm
by BrightLight
The title doesn't even make sense; the compiler compiles, the linker links.
BTW, try Google before this forum. It always works.
Re: Linker not compiling
Posted: Fri Nov 04, 2016 2:22 pm
by NunoLava1998
omarrx024 wrote:The title doesn't even make sense; the compiler compiles, the linker links.
BTW, try Google before this forum. It always works.
I mean that, yes.
Code: Select all
i686-elf-gcc -T linker.ld -o myos.bin -ffreestanding -O2 -nostdlib boot.o kernel.o -lgcc
Re: Linker not compiling
Posted: Fri Nov 04, 2016 2:24 pm
by BrightLight
NunoLava1998 wrote:I mean that, yes.
Code: Select all
i686-elf-gcc -T linker.ld -o myos.bin -ffreestanding -O2 -nostdlib boot.o kernel.o -lgcc
BTW, try Google before this forum. It always works.
Re: Linker not compiling
Posted: Fri Nov 04, 2016 2:28 pm
by NunoLava1998
omarrx024 wrote:NunoLava1998 wrote:I mean that, yes.
Code: Select all
i686-elf-gcc -T linker.ld -o myos.bin -ffreestanding -O2 -nostdlib boot.o kernel.o -lgcc
BTW, try Google before this forum. It always works.
no solution though
Re: Linker not compiling
Posted: Fri Nov 04, 2016 3:15 pm
by osdever
Try do simply copy toolchain with architecture you need to /usr/bin. Don't forget to install other dependecies. This is the simplest way.
Re: Linker not compiling
Posted: Fri Nov 04, 2016 4:40 pm
by iansjack
This is the problem with using someone else's pre-compiled cross-compiler. It is using an option (linker-plugin) that doesn't work on your system. Presumably it was compiled with the option enabled by default. The simple answer is to compile your own cross-compiler, using the instructions in the Wiki, so that you know it will work on your system.
Know your toolchain.