Linker not compiling
-
- Member
- Posts: 273
- Joined: Sun Oct 09, 2016 4:38 am
- Libera.chat IRC: NunoLava1998
Linker not compiling
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?
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?
Developing TRIODIUM OS. Or call it Dixium if you want. It doesn't matter.
https://github.com/NunoLava1998/DixiumOS
https://github.com/NunoLava1998/DixiumOS
Re: Linker not compiling
What do you mean by "a github version of bare bones"?
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay
- Alan Kay
-
- Member
- Posts: 273
- Joined: Sun Oct 09, 2016 4:38 am
- Libera.chat IRC: NunoLava1998
Re: Linker not compiling
https://github.com/rm-hull/barebones-toolchainRoman wrote:What do you mean by "a github version of bare bones"?
Developing TRIODIUM OS. Or call it Dixium if you want. It doesn't matter.
https://github.com/NunoLava1998/DixiumOS
https://github.com/NunoLava1998/DixiumOS
- BrightLight
- Member
- Posts: 901
- Joined: Sat Dec 27, 2014 9:11 am
- Location: Maadi, Cairo, Egypt
- Contact:
Re: Linker not compiling
The title doesn't even make sense; the compiler compiles, the linker links.
BTW, try Google before this forum. It always works.
BTW, try Google before this forum. It always works.
You know your OS is advanced when you stop using the Intel programming guide as a reference.
-
- Member
- Posts: 273
- Joined: Sun Oct 09, 2016 4:38 am
- Libera.chat IRC: NunoLava1998
Re: Linker not compiling
I mean that, yes.omarrx024 wrote:The title doesn't even make sense; the compiler compiles, the linker links.
BTW, try Google before this forum. It always works.
Code: Select all
i686-elf-gcc -T linker.ld -o myos.bin -ffreestanding -O2 -nostdlib boot.o kernel.o -lgcc
Developing TRIODIUM OS. Or call it Dixium if you want. It doesn't matter.
https://github.com/NunoLava1998/DixiumOS
https://github.com/NunoLava1998/DixiumOS
- BrightLight
- Member
- Posts: 901
- Joined: Sat Dec 27, 2014 9:11 am
- Location: Maadi, Cairo, Egypt
- Contact:
Re: Linker not compiling
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.
You know your OS is advanced when you stop using the Intel programming guide as a reference.
-
- Member
- Posts: 273
- Joined: Sun Oct 09, 2016 4:38 am
- Libera.chat IRC: NunoLava1998
Re: Linker not compiling
no solution thoughomarrx024 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.
Developing TRIODIUM OS. Or call it Dixium if you want. It doesn't matter.
https://github.com/NunoLava1998/DixiumOS
https://github.com/NunoLava1998/DixiumOS
Re: Linker not compiling
Try do simply copy toolchain with architecture you need to /usr/bin. Don't forget to install other dependecies. This is the simplest way.
Developing U365.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing
OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing
OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
Re: Linker not compiling
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.
Know your toolchain.