OSDev.org

The Place to Start for Operating System Developers
It is currently Sun Apr 28, 2024 12:57 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Wed Jun 04, 2008 3:15 pm 
Offline
Member
Member
User avatar

Joined: Tue Oct 17, 2006 9:29 pm
Posts: 2426
Location: Canada
I made a change to the article which removes some irrelevant information, do you agree with how it is now AJ?

My reason for this was, none of the environment variables set in the cross-compiler article are required for the installation of GMP or MPFR.

It may also be a possibility to recommend using the host OS's package management functionality, ports/packages for OpenBSD, pkgsrc for NetBSD, RPM/DEB's for Linux, etc.

They'll just need to ensure --with-gmp/mpfr are pointing to the correct location..

_________________
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 04, 2008 3:25 pm 
Offline
Member
Member
User avatar

Joined: Tue Oct 17, 2006 9:29 pm
Posts: 2426
Location: Canada
I'm torn, jnc100's method removes the requirement of building GMP/MPFR separately (and/or installing them system wide..).

Personally, it's not a big deal.. they're fairly small packages, in the end, the decision is up to you guys.

_________________
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 05, 2008 3:29 am 
Offline
Member
Member
User avatar

Joined: Sun Oct 22, 2006 7:01 am
Posts: 2646
Location: Devon, UK
Brynet-Inc wrote:
I made a change to the article which removes some irrelevant information, do you agree with how it is now AJ?


Yes - I just made a small change to the numbering now one of the points has been removed, but otherwise, it looks good.

Quote:
I'm torn, jnc100's method removes the requirement of building GMP/MPFR separately (and/or installing them system wide..).


Hmm...I suppose one disadvantage of this method is that GMP/MPFR have to be added to the GCC path each time you do this, whereas the first method makes them immediately available for when GCC 4.3.1+ is released (assuming that it doesn't require a later version of the other libraries, which IMHO is unlikely).

Perhaps an additional section could be added just before the links. Something like 'Alternative Method' (unless you feel this is promoting the first method and sidelining jnc100's way too much :wink: )

Cheers,
Adam


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 06, 2008 10:39 am 
Offline
Member
Member

Joined: Mon Apr 09, 2007 12:10 pm
Posts: 775
Location: London, UK
AJ wrote:
Something like 'Alternative Method'
I completely agree. The additional disadvantage with my method is that we cannot guarantee that the gcc build system will always support such a method. The compile-each-package-separately method is a much more standard way of doing things.

Regards,
John.

_________________
Tysos | rpi-boot


Top
 Profile  
 
 Post subject: Re: Cross-Compiler Problem - GMP and MPFR
PostPosted: Sat Mar 21, 2009 9:33 am 
Offline

Joined: Sat Mar 21, 2009 9:22 am
Posts: 1
Your solution almost work, but It seems that gcc is looking for the gmp headers at ../../gcc.4.3.3/gmp So I wrote

Code:
cd /usr/src
tar zxf gcc-4.3.3.tar.gz
tar zxf mpfr-2.3.1.tar.gz
tar zxf gmp-4.2.2.tar.gz
cd gcc-4.3.0
ln -s ../mpfr-2.3.1 ./mpfr
ln -s ../gmp-4.2.2 ./gmp
cd ..

# the following as per cross compiler article
[color=#FF0000]mkdir build
cd build
mkdir gcc
cd gcc[/color]
export PATH=$PATH:$PREFIX/bin
../gcc-4.3.0/configure --target=$TARGET --prefix=$PREFIX --disable-nls --enable-languages=c,c++ --without-headers --with-newlib
make all-gcc
make install-gcc


And it works! You have saved me the afternoon. Thanks a lot. =D>
and... remember to install g++ before... :wink:


Top
 Profile  
 
 Post subject: Re: Cross-Compiler Problem - GMP and MPFR
PostPosted: Sat Mar 21, 2009 4:58 pm 
Offline
Member
Member

Joined: Sun Jan 14, 2007 9:15 pm
Posts: 2566
Location: Sydney, Australia (I come from a land down under!)
Wouldn't it have been easier to use --with-gmp and --with-mpfr rather than creating the symlinks?

_________________
Pedigree | GitHub | Twitter | LinkedIn


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

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