Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Difficulty building gcc form source
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Philip B  
View profile  
 More options Jul 10 2012, 5:03 pm
Newsgroups: gnu.gcc.help
From: Philip B <pb.some...@gmail.com>
Date: Tue, 10 Jul 2012 14:03:24 -0700 (PDT)
Local: Tues, Jul 10 2012 5:03 pm
Subject: Difficulty building gcc form source
I am trying to build gcc from source on a FreeBSD 8.1 system.  The existing gcc is 3.4.6.

My steps are as follows, starting from the untarred gcc-4.2.2 directory.
I get the following error:

checking whether /usr/src/local/gcc-4.2.2/host-i386-unknown-freebsd8.1/gcc/gfortran -B/usr/src/local/gcc-4.2.2/host-i386-unknown-freebsd8.1/gcc/ -B/usr/local/i386-unknown-freebsd8.1/bin/ -B/usr/local/i386-unknown-freebsd8.1/lib/ -isystem /usr/local/i386-unknown-freebsd8.1/include -isystem /usr/local/i386-unknown-freebsd8.1/sys-include accepts -g... no
checking whether the GNU Fortran compiler is working... no
configure: error: GNU Fortran is not working; the most common reason for that is that you might have linked it to shared GMP and/or MPFR libraries, and not set LD_LIBRARY_PATH accordingly. If you suspect any other reason, please report a bug in http://gcc.gnu.org/bugzilla, attaching /usr/src/local/gcc-4.2.2/i386-unknown-freebsd8.1/libgfortran/config.log
gmake[1]: *** [configure-target-libgfortran] Error 1
gmake[1]: Leaving directory `/usr/src/local/gcc-4.2.2'

Looking at ldconfig to see the math libraries that the build thinks I have misplaced...

philipb@pb-devel /usr/src/local/gcc-4.2.2]$ ldconfig -r | grep 'libgm'
        108:-lgmodule-12.3 => /usr/X11R6/lib/libgmodule-12.so.3
        150:-lgmodule-2.0.0 => /usr/X11R6/lib/libgmodule-2.0.so.0
        215:-lgmp.10 => /usr/X11R6/lib/libgmp.so.10
        250:-lgmodule-12.3 => /usr/local/lib/libgmodule-12.so.3
        292:-lgmodule-2.0.0 => /usr/local/lib/libgmodule-2.0.so.0
        357:-lgmp.10 => /usr/local/lib/libgmp.so.10

[philipb@pb-devel /usr/src/local/gcc-4.2.2]$ ldconfig -r | grep 'mpf'
        218:-lmpfr.5 => /usr/X11R6/lib/libmpfr.so.5
        360:-lmpfr.5 => /usr/local/lib/libmpfr.so.5

My steps are:
tar zxf
./configure --with-gmp=/usr/local --with-mpfr=/usr/local
gmake

A very lengthy build ensues, and errors out as described above.

I have tried numerous combinations of versions of gcc, and of ./configure arguments and of monkeying with ldconfig.  It always chokes on the same thing.  Can anybody help?

Thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Warren Oates  
View profile  
 More options Jul 10 2012, 11:24 pm
Newsgroups: gnu.gcc.help
From: Warren Oates <warren.oa...@gmail.com>
Date: Tue, 10 Jul 2012 23:24:52 -0400
Local: Tues, Jul 10 2012 11:24 pm
Subject: Re: Difficulty building gcc form source
In article <c370cd74-3947-45e7-8221-0a8a1dbd297f@googlegroups.com>,
 Philip B <pb.some...@gmail.com> wrote:

> I have tried numerous combinations of versions of gcc, and of ./configure
> arguments and of monkeying with ldconfig.  It always chokes on the same
> thing.  Can anybody help?

Try building it without fortran. Start simple.

--enable-languages=c

is a pretty good place to start. You'll get c++ with it.
--

... do not cover a warm kettle or your stock may sour. -- Julia Child


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Haley  
View profile  
 More options Jul 11 2012, 6:31 am
Newsgroups: gnu.gcc.help
From: Andrew Haley <andre...@littlepinkcloud.invalid>
Date: Wed, 11 Jul 2012 05:31:19 -0500
Local: Wed, Jul 11 2012 6:31 am
Subject: Re: Difficulty building gcc form source

Philip B <pb.some...@gmail.com> wrote:
> tar zxf
> ./configure --with-gmp=/usr/local --with-mpfr=/usr/local

Don't try to build in srcdir.  It won't work.

--enable-languages=c , as suggested, is a good idea.

I'd build local copies of mpfr and gmp.  Run
./contrib/download_prerequisites to do this.

Building gcc with such an old gcc may be difficult.

Andrew.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »