public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Error in make building gcc-4.7.2
@ 2013-03-21 16:55 Ellis N. Thomas
  2013-03-21 17:56 ` Tim Prince
  2013-03-21 18:14 ` Jonathan Wakely
  0 siblings, 2 replies; 5+ messages in thread
From: Ellis N. Thomas @ 2013-03-21 16:55 UTC (permalink / raw)
  To: gcc-help

	Error in make building gcc-4.7.2

To: gcc-help@gcc.gnu.org

1 Background

	Trying to build gcc-4.7.2.

Running Mac OS X:

   System Version:	Mac OS X 10.5.8 (9L30)
   Kernel Version:	Darwin 9.8.0
   uname -mpv
   Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009;  
root:xnu-1228.15.4~1/RELEASE_I386 i386 i386

	Configure had completed:
  ../src/gcc-4.7.2/configure --enable-languages=ada,c,c++ > config4.log
Gave:
*** This configuration is not supported in the following subdirectories:
      target-libmudflap target-libgfortran target-libgo target-libffi  
target-zlib target-libjava target-libobjc target-boehm-gc
     (Any other directories should still work fine.)
rm: conftest.dSYM: is a directory


2 An error reported by make

make &> make-2.log
... last few lines:
checking for MPFR... no
configure: error: libmpfr not found or uses a different ABI (including  
static vs shared).
make[2]: *** [configure-stage1-mpc] Error 1
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2

	Log also contains many "rm: conftest.dSYM: is a directory" from the
standard error stream.   It is not clear whether these matter (or the  
one
from configure).


3 Extra Information

	Although gmp, mpfr, and mpc were not installed at the time, there were
source downloads in nearby directories.  It had previously been  
established
that gmp, mpfr, and mpc were prerequisites, so they were placed ready  
to be
installed along with the gcc sources.

(As suggested in the gcc downloading information:
"Likewise the GMP, MPFR and MPC libraries can be automatically built
together with GCC.  Unpack the GMP, MPFR and/or MPC source distributions
in the directory containing the GCC sources and rename their  
directories to
gmp, mpfr and mpc, respectively (or use symbolic links with the same  
name)."


Directories:

/Gnu/gcc/src/gcc-4.7.2/	Sources preparing for installation
/Gnu/gcc/obj/				Area for building

/Gnu/gmp/gmp-5.1.0		Sources preparing for installation
/Gnu/mpfr/mpfr-3.1.1		Ditto
/Gnu/mpc/mpc-1.0.1		Ditto

The gcc directory includes links for gmp, mpfr, and mpc

/Gnu/gcc/src/gcc-4.7.2/gmp -> /Gnu/gmp/gmp-5.1.0
/Gnu/gcc/src/gcc-4.7.2/mpc -> /Gnu/mpc/mpc-1.0.1
/Gnu/gcc/src/gcc-4.7.2/mpfr -> /Gnu/mpfr/mpfr-3.1.1

	The sources came from ftp://www.mirrorservice.org/sites/ftp.gnu.org/gnu/

gmp-5.1.0a.tar.bz2
mpc-1.0.1.tar.gz
mpfr-3.1.1.tar.gz


4 Compilers for Bootstrap

	The aim of this is to get an up to date Gnat compiler for Ada. Since
gcc requires a working gnat to build the Ada compiler, a binary  
version was
downloaded last year from: http://macada.org/macada/Downloads.html

Gnati386-4.3-xcode3.0.dmg

Installed from gnat_i386.pkg in that image.  This has installed to / 
usr/local/ada-4.3/bin

	This compiler has successfully compiled some of my old Ada programs.

	Along with gnat, this download included gcc-4.4.0.  (It is not clear  
why it
is 4.4.0 when 4.3 was downloaded.)

  /usr/local/ada-4.3/bin/gcc --version
gcc (GCC) 4.4.0 20080314 (experimental) [trunk revision 133226]

  /usr/local/ada-4.3/bin/gnat
GNAT 4.4.0 20080314 (experimental) [trunk revision 133226]

	The Apple Mac OS system on this machine includes
gcc --version
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)

	However, a previous run of configure had indicated that this
gcc did not support Ada.  Therefore /usr/local/ada-4.3/bin was first
in $PATH.  The configure just prior to the last make was run in an
empty /Gnu/gcc/obj/ directory.


5 Conclusion

	As the failure involved "libmpfr", a search was done for this on
http://www.gnu.org/software/gcc/ page.  This failed with:

Internal Server Error
The server encountered an internal error or misconfiguration and was  
unable to complete your request.

	However, a later attempt showed a set of similar errors from make in a
discussion about "struggle to create a 64-bit gcc on Solaris 10".

	Is my error with "libmpfr" related to the 32/64 bit problems for  
Solaris 10?

	I am trying to build for ada,c,c++.  Perhaps I need to omit ada  
first, produce
a gcc that can support Ada, then a separate build that includes ada?

	The config.log file is available (28kB).  Also the redirected outputs
config4.log file (4kB), and make-2.log (712kB) are available .


Ellis N. Thomas/21-Mar-2013



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Error in make building gcc-4.7.2
  2013-03-21 16:55 Error in make building gcc-4.7.2 Ellis N. Thomas
@ 2013-03-21 17:56 ` Tim Prince
  2013-03-21 18:14 ` Jonathan Wakely
  1 sibling, 0 replies; 5+ messages in thread
From: Tim Prince @ 2013-03-21 17:56 UTC (permalink / raw)
  To: gcc-help

On 03/21/2013 12:55 PM, Ellis N. Thomas wrote:
>     Error in make building gcc-4.7.2
>
> To: gcc-help@gcc.gnu.org
>
> 1 Background
>
>     Trying to build gcc-4.7.2.
>
> Running Mac OS X:
>
>   System Version:    Mac OS X 10.5.8 (9L30)
>   Kernel Version:    Darwin 9.8.0
>   uname -mpv
>   Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; 
> root:xnu-1228.15.4~1/RELEASE_I386 i386 i386
>
>     Configure had completed:
>  ../src/gcc-4.7.2/configure --enable-languages=ada,c,c++ > config4.log
> Gave:
> *** This configuration is not supported in the following subdirectories:
>      target-libmudflap target-libgfortran target-libgo target-libffi 
> target-zlib target-libjava target-libobjc target-boehm-gc
>     (Any other directories should still work fine.)
> rm: conftest.dSYM: is a directory
>
>
> 2 An error reported by make
>
> make &> make-2.log
> ... last few lines:
> checking for MPFR... no
> configure: error: libmpfr not found or uses a different ABI (including 
> static vs shared).
> make[2]: *** [configure-stage1-mpc] Error 1
> make[1]: *** [stage1-bubble] Error 2
> make: *** [all] Error 2
>
>     Log also contains many "rm: conftest.dSYM: is a directory" from the
> standard error stream.   It is not clear whether these matter (or the one
> from configure).
>
>
> 3 Extra Information
>
>     Although gmp, mpfr, and mpc were not installed at the time, there 
> were
> source downloads in nearby directories.  It had previously been 
> established
> that gmp, mpfr, and mpc were prerequisites, so they were placed ready 
> to be
> installed along with the gcc sources.
>
> (As suggested in the gcc downloading information:
> "Likewise the GMP, MPFR and MPC libraries can be automatically built
> together with GCC.  Unpack the GMP, MPFR and/or MPC source distributions
> in the directory containing the GCC sources and rename their 
> directories to
> gmp, mpfr and mpc, respectively (or use symbolic links with the same 
> name)."
>
>
> Directories:
>
> /Gnu/gcc/src/gcc-4.7.2/    Sources preparing for installation
> /Gnu/gcc/obj/                Area for building
>
> /Gnu/gmp/gmp-5.1.0        Sources preparing for installation
> /Gnu/mpfr/mpfr-3.1.1        Ditto
> /Gnu/mpc/mpc-1.0.1        Ditto
>
> The gcc directory includes links for gmp, mpfr, and mpc
>
> /Gnu/gcc/src/gcc-4.7.2/gmp -> /Gnu/gmp/gmp-5.1.0
> /Gnu/gcc/src/gcc-4.7.2/mpc -> /Gnu/mpc/mpc-1.0.1
> /Gnu/gcc/src/gcc-4.7.2/mpfr -> /Gnu/mpfr/mpfr-3.1.1
>
>     The sources came from 
> ftp://www.mirrorservice.org/sites/ftp.gnu.org/gnu/
>
> gmp-5.1.0a.tar.bz2
> mpc-1.0.1.tar.gz
> mpfr-3.1.1.tar.gz
>
>
> 4 Compilers for Bootstrap
>
>     The aim of this is to get an up to date Gnat compiler for Ada. Since
> gcc requires a working gnat to build the Ada compiler, a binary 
> version was
> downloaded last year from: http://macada.org/macada/Downloads.html
>
> Gnati386-4.3-xcode3.0.dmg
>
> Installed from gnat_i386.pkg in that image.  This has installed to 
> /usr/local/ada-4.3/bin
>
>     This compiler has successfully compiled some of my old Ada programs.
>
>     Along with gnat, this download included gcc-4.4.0.  (It is not 
> clear why it
> is 4.4.0 when 4.3 was downloaded.)
>
>  /usr/local/ada-4.3/bin/gcc --version
> gcc (GCC) 4.4.0 20080314 (experimental) [trunk revision 133226]
>
>  /usr/local/ada-4.3/bin/gnat
> GNAT 4.4.0 20080314 (experimental) [trunk revision 133226]
>
>     The Apple Mac OS system on this machine includes
> gcc --version
> i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)
>
>     However, a previous run of configure had indicated that this
> gcc did not support Ada.  Therefore /usr/local/ada-4.3/bin was first
> in $PATH.  The configure just prior to the last make was run in an
> empty /Gnu/gcc/obj/ directory.
>
>
> 5 Conclusion
>
>     As the failure involved "libmpfr", a search was done for this on
> http://www.gnu.org/software/gcc/ page.  This failed with:
>
> Internal Server Error
> The server encountered an internal error or misconfiguration and was 
> unable to complete your request.
>
>     However, a later attempt showed a set of similar errors from make 
> in a
> discussion about "struggle to create a 64-bit gcc on Solaris 10".
>
>     Is my error with "libmpfr" related to the 32/64 bit problems for 
> Solaris 10?
>
>     I am trying to build for ada,c,c++.  Perhaps I need to omit ada 
> first, produce
> a gcc that can support Ada, then a separate build that includes ada?
>
>     The config.log file is available (28kB).  Also the redirected outputs
> config4.log file (4kB), and make-2.log (712kB) are available .
>
>
> Ellis N. Thomas/21-Mar-2013
>
>
>
gcc/contrib/download_prerequisites sets up to build libmpfr, mpc, gmp 
with compatible versions as part of the gcc build.   If you have no 
reason to keep any other versions of those, you can un-install them and 
build and install the prerequisites separately with the standard 
--prefix (where gcc resides).  Otherwise, separate installations require 
the --with- specifications during gcc configure.

-- 
Tim Prince

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Error in make building gcc-4.7.2
  2013-03-21 16:55 Error in make building gcc-4.7.2 Ellis N. Thomas
  2013-03-21 17:56 ` Tim Prince
@ 2013-03-21 18:14 ` Jonathan Wakely
  2013-03-22 17:40   ` Ellis N. Thomas
  1 sibling, 1 reply; 5+ messages in thread
From: Jonathan Wakely @ 2013-03-21 18:14 UTC (permalink / raw)
  To: Ellis N. Thomas; +Cc: gcc-help

On 21 March 2013 16:55, Ellis N. Thomas wrote:
>
> 3 Extra Information
>
>         Although gmp, mpfr, and mpc were not installed at the time, there
> were
> source downloads in nearby directories.  It had previously been established
> that gmp, mpfr, and mpc were prerequisites, so they were placed ready to be
> installed along with the gcc sources.

That should have worked fine, assuming you didn't do anything like try
to run 'configure' in the mpfr soure directory.

Have you previously attempted to configure GCC in the same
/Gnu/gcc/obj dir?  If yes, remove everything in that directory and
start again.

I don't think the problem is including 'ada' in the languages to be
built, because the failure is happening very early in the build.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Error in make building gcc-4.7.2
  2013-03-21 18:14 ` Jonathan Wakely
@ 2013-03-22 17:40   ` Ellis N. Thomas
  2013-04-19 21:17     ` Ellis N. Thomas
  0 siblings, 1 reply; 5+ messages in thread
From: Ellis N. Thomas @ 2013-03-22 17:40 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: gcc-help

Jonathan,

	Thanks for the swift reply.

	As in the extract below, configure had been run before, but
this latest run of make was following a new configure in an empty
obj directory.  (The end result in make was actually the same as
on my previous attempt.)

	My point about "Perhaps I need to omit ada first, produce a
gcc that can support Ada, then a separate build that includes ada?"
was trying to suggest building gcc initially with the "native" gcc
provided by Apple, then using the resulting compilation system
to do the entire build (but still needing the 4.3 gnat).

	Thanks,
		Ellis

On 21 Mar 2013, at 18:14, Jonathan Wakely wrote:

> Have you previously attempted to configure GCC in the same
> /Gnu/gcc/obj dir?  If yes, remove everything in that directory and
> start again.


On 21 Mar 2013, at 16:55, Ellis N. Thomas wrote:

> However, a previous run of configure had indicated that this
> gcc did not support Ada.  Therefore /usr/local/ada-4.3/bin was first
> in $PATH.  The configure just prior to the last make was run in an
> empty /Gnu/gcc/obj/ directory.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Error in make building gcc-4.7.2
  2013-03-22 17:40   ` Ellis N. Thomas
@ 2013-04-19 21:17     ` Ellis N. Thomas
  0 siblings, 0 replies; 5+ messages in thread
From: Ellis N. Thomas @ 2013-04-19 21:17 UTC (permalink / raw)
  To: Jonathan Wakely, Tim Prince; +Cc: gcc-help

Further to my message of 22-March, and to Tim Prince's of 21 Mar:
Jonathan, Tim,

	To ensure a clean starting point, I deleted the entire directory
source and object trees, and re-extracted from gcc-4.7.2.tar.gz.
Then added links for gmp, mpc, and mpfr (as before).
Repeated the configure - same as before.  Compared config?.log:
"Files logs/config4.log and logs/config5.log are identical"

	Ran make &> ../logs/make-3.log
Failed as before: "Files logs/make-2.log and logs/make-3.log are  
identical"

	So this has been a "clean" rerun of what was done before, and confirms
that it does not work with the latest versions of gmp, mpc, and mpfr  
placed
for automatic inclusion.  (As per Install "Downloading GCC":
"Likewise the GMP, MPFR and MPC libraries can be automatically built
together with GCC. Unpack the GMP, MPFR and/or MPC source distributions
in the directory containing the GCC sources and rename their  
directories to
gmp, mpfr and mpc, respectively (or use symbolic links with the same  
name)."
).


	Following the previous message from Tim Prince (on Gnu web site mail
archive only) referring to versions of mpfr etc, tried downloading the  
versions
of mpfr, mpc, and gmp listed in src/gcc-4.7.2/contrib/ 
download_prerequisites,
using ftp rather than wget (wget not available, but ftp seems to  
operate the same!).
Copied  mpfr-2.4.2.tar.bz2, gmp-4.3.2.tar.bz2, and mpc-0.8.1.tar.gz  OK.
Unzipped all three, and changed links in /Gnu/gcc/src/gcc-4.7.2 for  
mpfr, mpc, and gmp
to the new ones.

	Emptied /Gnu/gcc/obj.  Reran configure in obj/.
Gave same response as before.  Compared config?.log:
"Files ../logs/config5.log and ../logs/config6.log are identical

	Ran make &> ../logs/make-4.log.
This ran much further than previous attempts.  So these versions of  
gmp, mpc, and mpfr
seem to be better.
The file /Gnu/gcc/obj/stage_current changed from stage1 to stage2.

	Failed in stage2, last few lines of make-4.log:
../../src/gcc-4.7.2/libcpp/lex.c:463:Unknown pseudo-op: .balign
../../src/gcc-4.7.2/libcpp/lex.c:463:Rest of line ignored. 1st junk  
character valued 49 (1).
make[3]: *** [lex.o] Error 1
make[2]: *** [all-stage2-libcpp] Error 2
make[1]: *** [stage2-bubble] Error 2
make: *** [all] Error 2

	It seems that the first build using the older C and Ada compilers has
completed OK, but the next bootstrap stage has failed.

	Any suggestions for what has gone astray now?

	Thanks,
		Ellis

On 22 Mar 2013, at 17:40, Ellis N. Thomas wrote:

> 	Thanks for the swift reply.
>
> 	As in the extract below, configure had been run before, but
> this latest run of make was following a new configure in an empty
> obj directory.  (The end result in make was actually the same as
> on my previous attempt.)

On 21 Mar 2013, at 18:14, Jonathan Wakely wrote:

> Have you previously attempted to configure GCC in the same
> /Gnu/gcc/obj dir?  If yes, remove everything in that directory and
> start again.

On 21 Mar 2013, Tim Prince wrote:

> gcc/contrib/download_prerequisites sets up to build libmpfr, mpc,  
> gmp with compatible versions as part of the gcc build. If you have  
> no reason to keep any other versions of those, you can un-install  
> them and build and install the prerequisites separately with the  
> standard --prefix (where gcc resides). Otherwise, separate  
> installations require the --with- specifications during gcc configure.
> --
> Tim Prince

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-19 21:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-21 16:55 Error in make building gcc-4.7.2 Ellis N. Thomas
2013-03-21 17:56 ` Tim Prince
2013-03-21 18:14 ` Jonathan Wakely
2013-03-22 17:40   ` Ellis N. Thomas
2013-04-19 21:17     ` Ellis N. Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).