OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Mar 19, 2024 3:10 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Error with generating a cross compiler
PostPosted: Sun Jan 03, 2016 1:55 pm 
Offline

Joined: Sun Jan 03, 2016 1:48 pm
Posts: 2
Hey Guys
I'm fairly new to the os developing and I'm trying to build a cross compiler on Linux (debian) following this tutorial: http://wiki.osdev.org/GCC_Cross-Compiler
when I execute the command:
Code:
make all-target-libgcc
it always crashs with this error.

Code:
/home/djedefre/opt/cross/i686-elf/bin/ar  rc libgcc.a $objects
/home/djedefre/opt/cross/i686-elf/bin/ar: error while loading shared libraries: libfl.so.2: cannot open shared object file: No such file or directory
Makefile:895: the rule „libgcc.a“ fails
make[1]: *** [libgcc.a] Error 127
make[1]: Leaving Directory „/home/djedefre/src/build-gcc/i686-elf/libgcc“
Makefile:12915:the rule for target „all-target-libgcc“ fails
make: *** [all-target-libgcc] Error 2

I'm using Binutils-2.26.51 and gcc-5.3.0
Can anyone help me with this?


Top
 Profile  
 
 Post subject: Re: Error with generating a cross compiler
PostPosted: Sun Jan 03, 2016 4:51 pm 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
You don't have flex installed on your computer, which is a pre-requisite for building GCC. Use your package manager to install flex and flex-devel. (The package names may differ slightly on your OS.)


Top
 Profile  
 
 Post subject: Re: Error with generating a cross compiler
PostPosted: Mon Jan 04, 2016 8:08 am 
Offline

Joined: Sun Jan 03, 2016 1:48 pm
Posts: 2
Thanks for your help.
Now it works absolutely fine.
Djedefre


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 7 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