OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 8:48 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Can't use -lgcc flag with i686-elf-ld
PostPosted: Mon Oct 25, 2021 7:14 am 
Offline
Member
Member

Joined: Wed Oct 20, 2021 6:00 pm
Posts: 102
Location: Paraguay
Like the title, can anyone help me solve this issue?


Top
 Profile  
 
 Post subject: Re: Can't use -lgcc flag with i686-elf-ld
PostPosted: Mon Oct 25, 2021 7:23 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7612
Location: Germany
Have you possibly built a cross-compiler (judging from 'i686-elf-ld')? Have you double-checked that you have actually built and installed the lib, which you're to do in the GCC build step

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
 Post subject: Re: Can't use -lgcc flag with i686-elf-ld
PostPosted: Mon Oct 25, 2021 7:41 am 
Offline
Member
Member

Joined: Wed Oct 20, 2021 6:00 pm
Posts: 102
Location: Paraguay
Solar wrote:
Have you possibly built a cross-compiler (judging from 'i686-elf-ld')? Have you double-checked that you have actually built and installed the lib, which you're to do in the GCC build step

I see. But I really don't understand (cause my bad English). Could you help me explain it?


Top
 Profile  
 
 Post subject: Re: Can't use -lgcc flag with i686-elf-ld
PostPosted: Mon Oct 25, 2021 8:39 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7612
Location: Germany
You do not really give enough information for us to help you.

And please do not be offended when I say: You need to be able to read, and write, English on a pretty high level if you want to get anywhere in system programming. If English poses a problem to you, you should practice English, not OS development...

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
 Post subject: Re: Can't use -lgcc flag with i686-elf-ld
PostPosted: Mon Oct 25, 2021 7:08 pm 
Offline
Member
Member

Joined: Wed Oct 20, 2021 6:00 pm
Posts: 102
Location: Paraguay
Solar wrote:
You do not really give enough information for us to help you.

And please do not be offended when I say: You need to be able to read, and write, English on a pretty high level if you want to get anywhere in system programming. If English poses a problem to you, you should practice English, not OS development...

No no no. I think my English is not a big problem for me. I'm good enough to read, write document in English and able to understand them. In https://wiki.osdev.org/GCC_Cross-Compiler I just say that I don't understand that problem. Wiki's solution makes me confuse...


Top
 Profile  
 
 Post subject: Re: Can't use -lgcc flag with i686-elf-ld
PostPosted: Tue Oct 26, 2021 2:19 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
NeonLightions wrote:
No no no. I think my English is not a big problem for me.
Quote:
But I really don't understand (cause my bad English).
Both of these cannot be true. Solar is correct that, as so much documentation is written in English, you really need to make sure that you understand the language.

You need to give more information, and make your question more meaningful. At present it's the equivalent of saying "I don't feel well; what's wrong with me.

1. Did you follow the wiki instructions, exactly, when constructing your cross-compiler? Indeed, did you construct it or did you get it from some other source?
2. Dos the library libgcc exist in the lib directory of your cross-compiler installation?
3. Your question is far too vague:
    i. What functions from libgcc are you trying to use?
    ii. What exact compile command are you using?
    iii. In what way does the command not work? Does it produce an executable that doesn't work properly, or does it fail with an error message?
    iv. If the latter, what is that error message (exactly)?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 68 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group