OSDev.org

The Place to Start for Operating System Developers
It is currently Thu May 02, 2024 3:18 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: GCC Cross-Compiler issue
PostPosted: Fri Feb 19, 2010 2:08 pm 
Offline

Joined: Fri Feb 19, 2010 1:49 pm
Posts: 17
Location: Sweden
Hi!
I am very new to using GNU tools and doing os deving, so i apologize if the answer to this question is obvious! I have been following some simple os dev tutorials using DJGPP on Windows Vista, but earlier today i decided to install Ubuntu 9.10 (dual boot), and i wanted to make a working GCC Cross-Compiler for i386 target that i can use for os deving.

I followed the tutorial at this link to compile a GCC Cross-compiler:
http://wiki.osdev.org/GCC_Cross-Compiler

... and the AS asm from binutils seems to work, but GCC doesnt.

When i try to compile anything with the gcc cross-compiler i get this error message:

Code:
/usr/cross/libexec/gcc/i386-elf/4.4.3/cc1: error while loading shared libraries: libgmp.so.10: cannot open shared object file: No such file or directory


Btw I did not forget this before compiling gcc:
(if it even has to do with this)

Quote:
If you plan to use GCC 4.3.0 or a later version, you will also have to install the following:
GMP (this package is also readily available for MSYS)
MPFR


If I can't get this to work i will have to go back and do os dev on Windows. But linux seems much more intresting to me! :)

So if anyone knows how to fix this it would be very nice!

tobbebia

_________________
My GitHub account: http://github.com/tobbebia


Last edited by tobbebia on Wed Sep 14, 2011 1:19 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: GCC Cross-Compiler issue
PostPosted: Fri Feb 19, 2010 2:25 pm 
Offline
Member
Member

Joined: Mon Jan 14, 2008 5:53 am
Posts: 188
Location: Helsinki
Is that shared library in a directory where your loader is told to look at?


Top
 Profile  
 
 Post subject: Re: GCC Cross-Compiler issue
PostPosted: Fri Feb 19, 2010 2:43 pm 
Offline

Joined: Fri Feb 19, 2010 1:49 pm
Posts: 17
Location: Sweden
fronty wrote:
Is that shared library in a directory where your loader is told to look at?

How can I see where the loader is looking? Thx for your reply.

_________________
My GitHub account: http://github.com/tobbebia


Top
 Profile  
 
 Post subject: Re: GCC Cross-Compiler issue
PostPosted: Fri Feb 19, 2010 3:01 pm 
Offline
Member
Member

Joined: Mon Jan 14, 2008 5:53 am
Posts: 188
Location: Helsinki
/etc/ld.so.conf (or ld-elf), LD_LIBRARY_PATH, man ldconfig. If the directory containing that library isn't in anywhere loader thinks it should be, try setting LD_LIBRARY_PATH and running it then. If it works, change your configuration.


Top
 Profile  
 
 Post subject: Re: GCC Cross-Compiler issue
PostPosted: Fri Feb 19, 2010 3:22 pm 
Offline

Joined: Fri Feb 19, 2010 1:49 pm
Posts: 17
Location: Sweden
fronty wrote:
/etc/ld.so.conf (or ld-elf), LD_LIBRARY_PATH, man ldconfig. If the directory containing that library isn't in anywhere loader thinks it should be, try setting LD_LIBRARY_PATH and running it then. If it works, change your configuration.


Thanks!
Your solution worked.

tobbebia

_________________
My GitHub account: http://github.com/tobbebia


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: AlmaX3 and 19 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