LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 01-04-2009, 03:22 PM   #1
zvivered
Member
 
Registered: Sep 2007
Posts: 294

Rep: Reputation: 23
Build gcc for powerpc 405


I'm trying to compile gcc for powerpc 405.
mpfr and gmp were successfully configured and installed.
The output libraries are located in my_gmp_path, my_mpfr_path
Then successfully ran ./configure for gcc:
./configure --target=powerpc-405-linux --with-gmp=my_gmp_path --with-mpfr=my_mpfr_path --prefix=my_gcc_path

Then I ran make which gave the following error message:
/GNU/gcc/gcc-4.3.2/host-x86_64-unknown-linux-gnu/gcc/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make: *** [all] Error 2


I tried to update LD_LIBRARY_PATH by adding 2 lines to ld.so.conf:
my_gmp_path/lib
my_mpfr_path/lib

But I still got the above error message.
Can you help ?

Thanks.
 
Old 01-04-2009, 05:36 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
1) 'gcc' alone won't do. Things compiled with this new
tool will depend on libs etc. not present in the target
system.
And gcc must be build in a build directory just outside
gcc-4.3.2/
A --prefix different from /usr/local/ is necessary,
files will conflict with your system, if the tools are
in a known path. ( libc6 )
/home/zvivered/crosstools/ or /usr/local/tools/ will do.

2) A tool chain will usually be 'binutils' 'gcc'
'newlib' (or glibc) 'insight' (or gdb)

3) Build tools for making tool chains are here
http://www.kegel.com/crosstool/
http://www.kegel.com/crosstool/crosstool-0.43/
....
 
Old 01-04-2009, 05:43 PM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
I second the recommendation for crosstool. I've successfully used it to create cross compilers for ARM hosts, and it was fairly simple. Slow, but straightforward if you follow the recipe.
--- rod.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help: failed build of GCC 4.3 on SLES 10/gcc 4.1 ia64 ron7000 Programming 6 05-27-2008 11:24 PM
Problem with gcc powerpc cross compile !! rohya_joshi Linux - Software 2 02-07-2006 12:44 AM
Need help in adding PowerPC libraries to GCC 3.3.4 rmurthy Linux - Software 0 12-07-2005 09:52 AM
Building cross-compiler gcc for powerpc-linux ccool Linux - General 3 09-17-2004 06:33 AM
kernel build from gcc 3.3.2 to gcc 3.4.1 alcarbone Linux - Software 1 09-13-2004 08:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration