Linker not compiling

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
NunoLava1998
Member
Member
Posts: 273
Joined: Sun Oct 09, 2016 4:38 am
Libera.chat IRC: NunoLava1998

Linker not compiling

Post 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?
Developing TRIODIUM OS. Or call it Dixium if you want. It doesn't matter.

https://github.com/NunoLava1998/DixiumOS
User avatar
Roman
Member
Member
Posts: 568
Joined: Thu Mar 27, 2014 3:57 am
Location: Moscow, Russia
Contact:

Re: Linker not compiling

Post by Roman »

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
NunoLava1998
Member
Member
Posts: 273
Joined: Sun Oct 09, 2016 4:38 am
Libera.chat IRC: NunoLava1998

Re: Linker not compiling

Post by NunoLava1998 »

Roman wrote:What do you mean by "a github version of bare bones"?
https://github.com/rm-hull/barebones-toolchain
Developing TRIODIUM OS. Or call it Dixium if you want. It doesn't matter.

https://github.com/NunoLava1998/DixiumOS
User avatar
BrightLight
Member
Member
Posts: 901
Joined: Sat Dec 27, 2014 9:11 am
Location: Maadi, Cairo, Egypt
Contact:

Re: Linker not compiling

Post by BrightLight »

The title doesn't even make sense; the compiler compiles, the linker links. ;)
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.
NunoLava1998
Member
Member
Posts: 273
Joined: Sun Oct 09, 2016 4:38 am
Libera.chat IRC: NunoLava1998

Re: Linker not compiling

Post 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
Developing TRIODIUM OS. Or call it Dixium if you want. It doesn't matter.

https://github.com/NunoLava1998/DixiumOS
User avatar
BrightLight
Member
Member
Posts: 901
Joined: Sat Dec 27, 2014 9:11 am
Location: Maadi, Cairo, Egypt
Contact:

Re: Linker not compiling

Post 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.
You know your OS is advanced when you stop using the Intel programming guide as a reference.
NunoLava1998
Member
Member
Posts: 273
Joined: Sun Oct 09, 2016 4:38 am
Libera.chat IRC: NunoLava1998

Re: Linker not compiling

Post 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
Developing TRIODIUM OS. Or call it Dixium if you want. It doesn't matter.

https://github.com/NunoLava1998/DixiumOS
User avatar
osdever
Member
Member
Posts: 492
Joined: Fri Apr 03, 2015 9:41 am
Contact:

Re: Linker not compiling

Post 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.
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.
User avatar
iansjack
Member
Member
Posts: 4706
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Linker not compiling

Post 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.
Post Reply