Error in compiling of Meaty Skeleton

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
cheapskate01
Member
Member
Posts: 58
Joined: Sat Aug 01, 2015 9:05 pm

Error in compiling of Meaty Skeleton

Post by cheapskate01 »

I downloaded the meaty skeleton repo from github and compared the files to the tutorials. No differences. So, i studied the code line for line and did my best to understand it. I went to compile it the way it said to on the article. It got held up on iso.sh with the error:

Code: Select all

/usr/local/cross/bin/../lib/gcc/i686-elf/4.9.1/../../../../i686-elf/bin/ld: this linker was not configured to use sysroots
collect2: error: ld returned 1 exit status
make: *** [myos.kernel] Error 1
make: Leaving directory `/home/andrew/meaty-skeleton/kernel'
I used a downloaded i686 cross compiler from this link found on the cross compiling article: http://newos.org/toolchains/i686-elf-4. ... _64.tar.xz

Can anybody help me please?
"That I'm in forum signatures is just a sign the invasion of sortie is nearing completion. Soon you'll all have to become me to defeat me." ~ Sortie
Nable
Member
Member
Posts: 453
Joined: Tue Nov 08, 2011 11:35 am

Re: Error in compiling of Meaty Skeleton

Post by Nable »

It's better to build cross-compiler on your own. As you can see, this cross-compiler is incompatible with the options that are used in build scripts. Either way, you should learn more about what happenes inside these scripts to fully understand what commands and options are used and why.
cheapskate01
Member
Member
Posts: 58
Joined: Sat Aug 01, 2015 9:05 pm

Re: Error in compiling of Meaty Skeleton

Post by cheapskate01 »

Yeah, I really wanted to originally, but it's super confusing to me and I kept getting errors. Do you know of any clear as day video tutorials? I'm really a visual learner.
"That I'm in forum signatures is just a sign the invasion of sortie is nearing completion. Soon you'll all have to become me to defeat me." ~ Sortie
Nable
Member
Member
Posts: 453
Joined: Tue Nov 08, 2011 11:35 am

Re: Error in compiling of Meaty Skeleton

Post by Nable »

I'm sorry but I didn't use anything beyond this article: http://wiki.osdev.org/GCC_Cross-Compiler .
Be sure to download latest compiler and binutils versions: a lot of people reported strange error messages just because they've downloaded ancient versions of binutils due to alphabetic sorting of names.
User avatar
Nutterts
Member
Member
Posts: 159
Joined: Wed Aug 05, 2015 5:33 pm
Libera.chat IRC: Nutterts
Location: Drenthe, Netherlands

Re: Error in compiling of Meaty Skeleton

Post by Nutterts »

cheapskate01 wrote:Yeah, I really wanted to originally, but it's super confusing to me and I kept getting errors.
It's really important that you make sure you have the right tools for the job and know how to use them. Don't skip that part. If you can't get something to work, learn how you can.

I've followed the steps in that wiki more then a dozen times and it hasn't ever failed for me. Just make sure you use the latest binutils for it. I think that's v2.25.1.

What platform are you working on and which errors did you get?
"Always code as if the guy who ends up maintaining it will be a violent psychopath who knows where you live." - John F. Woods

Failed project: GoOS - https://github.com/nutterts/GoOS
cheapskate01
Member
Member
Posts: 58
Joined: Sat Aug 01, 2015 9:05 pm

Re: Error in compiling of Meaty Skeleton

Post by cheapskate01 »

Nutterts wrote:
cheapskate01 wrote:Yeah, I really wanted to originally, but it's super confusing to me and I kept getting errors.
It's really important that you make sure you have the right tools for the job and know how to use them. Don't skip that part. If you can't get something to work, learn how you can.

I've followed the steps in that wiki more then a dozen times and it hasn't ever failed for me. Just make sure you use the latest binutils for it. I think that's v2.25.1.

What platform are you working on and which errors did you get?
I don't remember, It was last year on my old machine and the hard drive was fried. It was running arch I think.

I'm rebuilding right now under 64bit LinuxMint with binutils version 2.24 so it isn't ancient and has been tested with my gcc version.

I'll let you know how it goes.

Edit: Is it okay If I get a bunch of notes? I don't know if I should watch out for these or not.
"That I'm in forum signatures is just a sign the invasion of sortie is nearing completion. Soon you'll all have to become me to defeat me." ~ Sortie
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: Error in compiling of Meaty Skeleton

Post by onlyonemac »

cheapskate01 wrote:Edit: Is it okay If I get a bunch of notes? I don't know if I should watch out for these or not.
I haven't built a cross-compiler before but usually when you get "notes" or "warnings" they're intended for the developers to help them improve their code and don't mean that your compiled object files won't work. Short answer, "notes" and "warnings" aren't anything you need to worry about as long as the build process completes without errors.
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
cheapskate01
Member
Member
Posts: 58
Joined: Sat Aug 01, 2015 9:05 pm

Re: Error in compiling of Meaty Skeleton

Post by cheapskate01 »

onlyonemac wrote:
cheapskate01 wrote:Edit: Is it okay If I get a bunch of notes? I don't know if I should watch out for these or not.
I haven't built a cross-compiler before but usually when you get "notes" or "warnings" they're intended for the developers to help them improve their code and don't mean that your compiled object files won't work. Short answer, "notes" and "warnings" aren't anything you need to worry about as long as the build process completes without errors.

Okay, thanks. I was just wondering because multiple sources tell me to treat warnings as errors.

Also, Why do I need to have the source for TeXinfo If i'm not building it?
"That I'm in forum signatures is just a sign the invasion of sortie is nearing completion. Soon you'll all have to become me to defeat me." ~ Sortie
User avatar
Nutterts
Member
Member
Posts: 159
Joined: Wed Aug 05, 2015 5:33 pm
Libera.chat IRC: Nutterts
Location: Drenthe, Netherlands

Re: Error in compiling of Meaty Skeleton

Post by Nutterts »

cheapskate01 wrote:Edit: Is it okay If I get a bunch of notes? I don't know if I should watch out for these or not.
Depends, when compiling my own stuff I treat warnings like errors. On a warning the build will fail.

But that should be something you set as a commandline option thru your makefile. So with other people's code I assume that if having no warnings is important they will have done the same. I do try to read them but it's generally seemingly harmless stuff.
"Always code as if the guy who ends up maintaining it will be a violent psychopath who knows where you live." - John F. Woods

Failed project: GoOS - https://github.com/nutterts/GoOS
Nable
Member
Member
Posts: 453
Joined: Tue Nov 08, 2011 11:35 am

Re: Error in compiling of Meaty Skeleton

Post by Nable »

cheapskate01 wrote:Also, Why do I need to have the source for TeXinfo If i'm not building it?
I think that build system asks you for binaries, not for source. You can avoid this dependency by specifying something like --disable-docs while configuring your cross-compiler.
cheapskate01
Member
Member
Posts: 58
Joined: Sat Aug 01, 2015 9:05 pm

Re: Error in compiling of Meaty Skeleton

Post by cheapskate01 »

Nable wrote:
cheapskate01 wrote:Also, Why do I need to have the source for TeXinfo If i'm not building it?
I think that build system asks you for binaries, not for source. You can avoid this dependency by specifying something like --disable-docs while configuring your cross-compiler.
Ahh. Thanks. I spent 30 mins downloading and extracting the tar of source bc my internet decided to act up at 8:30 last night.

Also, the cross compiler compiled successfully! Now to try the meaty skeleton...
"That I'm in forum signatures is just a sign the invasion of sortie is nearing completion. Soon you'll all have to become me to defeat me." ~ Sortie
cheapskate01
Member
Member
Posts: 58
Joined: Sat Aug 01, 2015 9:05 pm

Re: Error in compiling of Meaty Skeleton

Post by cheapskate01 »

Good Game. Thanks for the help guys!

Now i guess the next step would be to port the 20 extra functions I wrote on BareBones kernel to these files.

Edit: Done
"That I'm in forum signatures is just a sign the invasion of sortie is nearing completion. Soon you'll all have to become me to defeat me." ~ Sortie
CrafterMan24
Member
Member
Posts: 28
Joined: Sun Nov 01, 2015 12:19 am

Re: Error in compiling of Meaty Skeleton

Post by CrafterMan24 »

Nable wrote:I'm sorry but I didn't use anything beyond this article: http://wiki.osdev.org/GCC_Cross-Compiler .
Be sure to download latest compiler and binutils versions: a lot of people reported strange error messages just because they've downloaded ancient versions of binutils due to alphabetic sorting of names.
Yes, i were getting these strange messages until i compile with same gcc and same binutils version...

Before i was compiling a gcc 5.1.0 - binutils 2.5.10 cross compiler with gcc 4.5 and a really old binutils version... And i was getting endless of error messages...

Last month i wanted to try the compiling gcc again. I fully readed the http://wiki.osdev.org/GCC_Cross-Compiler article and build my cross compiler successfully. I build my gcc 5.2.0 - binutils 2.5.10 cross compiler with gcc 5.2.1 (beta) and binutils 2.5.10 successfully...
Nable
Member
Member
Posts: 453
Joined: Tue Nov 08, 2011 11:35 am

Re: Error in compiling of Meaty Skeleton

Post by Nable »

GCC 4.5 is really old. It makes sense to use at least 4.7.
Post Reply