public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Building GCC 4.3.2 fails
@ 2008-10-07  5:58 Angel Tsankov
  2008-10-07  7:43 ` Andrew Haley
  0 siblings, 1 reply; 5+ messages in thread
From: Angel Tsankov @ 2008-10-07  5:58 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 889 bytes --]

Hi,

I'm trying to build GCC 4.3.2 (core, c++, and fortran). The configuration 
step (configure --prefix=...) seems to complete without problems, but during 
the build step (make -j 2 bootstrap) I get the following on stderr:

configure: error:
*** LIBRARY_PATH shouldn't contain the current directory when
*** building gcc. Please change the environment variable
*** and run configure again.

LIBRARY_PATH contains the paths to GMP 4.2.1 and to MPFR2.3.0 only. I found 
out that clearing LIBRARY_PATH just before the build step takes me to 
another error:

/home/angel/software/gcc/source/unpacked/gcc/dbgcnt.def:67: error: 
'UINT_MAX' undeclared here (not in a function)

Can any one help me build this version of GCC? I'm configuring and building 
in a separate directory and I've attached the console output from the 
configuration step in case it might help.

Regards,
Angel Tsankov 

[-- Attachment #2: configure_step_-_output.tar.gz --]
[-- Type: application/octet-stream, Size: 1020 bytes --]

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

* Re: Building GCC 4.3.2 fails
  2008-10-07  5:58 Building GCC 4.3.2 fails Angel Tsankov
@ 2008-10-07  7:43 ` Andrew Haley
  2008-10-07  9:09   ` Angel Tsankov
  2008-10-08 21:09   ` Angel Tsankov
  0 siblings, 2 replies; 5+ messages in thread
From: Andrew Haley @ 2008-10-07  7:43 UTC (permalink / raw)
  To: Angel Tsankov; +Cc: gcc-help

Angel Tsankov wrote:

> I'm trying to build GCC 4.3.2 (core, c++, and fortran). The
> configuration step (configure --prefix=...) seems to complete without
> problems, but during the build step (make -j 2 bootstrap) I get the
> following on stderr:
> 
> configure: error:
> *** LIBRARY_PATH shouldn't contain the current directory when
> *** building gcc. Please change the environment variable
> *** and run configure again.
> 
> LIBRARY_PATH contains the paths to GMP 4.2.1 and to MPFR2.3.0 only. I
> found out that clearing LIBRARY_PATH just before the build step takes me
> to another error:
> 
> /home/angel/software/gcc/source/unpacked/gcc/dbgcnt.def:67: error:
> 'UINT_MAX' undeclared here (not in a function)
> 
> Can any one help me build this version of GCC? I'm configuring and
> building in a separate directory and I've attached the console output
> from the configuration step in case it might help.

UINT_MAX should be defined in limits.h.

Are you sure that it's installed?

Andrew.

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

* Re: Building GCC 4.3.2 fails
  2008-10-07  7:43 ` Andrew Haley
@ 2008-10-07  9:09   ` Angel Tsankov
  2008-10-07 12:17     ` Andrew Haley
  2008-10-08 21:09   ` Angel Tsankov
  1 sibling, 1 reply; 5+ messages in thread
From: Angel Tsankov @ 2008-10-07  9:09 UTC (permalink / raw)
  To: gcc-help

Andrew Haley wrote:
> Angel Tsankov wrote:
>
>> I'm trying to build GCC 4.3.2 (core, c++, and fortran). The
>> configuration step (configure --prefix=...) seems to complete without
>> problems, but during the build step (make -j 2 bootstrap) I get the
>> following on stderr:
>>
>> configure: error:
>> *** LIBRARY_PATH shouldn't contain the current directory when
>> *** building gcc. Please change the environment variable
>> *** and run configure again.
>>
>> LIBRARY_PATH contains the paths to GMP 4.2.1 and to MPFR2.3.0 only. I
>> found out that clearing LIBRARY_PATH just before the build step
>> takes me to another error:
>>
>> /home/angel/software/gcc/source/unpacked/gcc/dbgcnt.def:67: error:
>> 'UINT_MAX' undeclared here (not in a function)
>>
>> Can any one help me build this version of GCC? I'm configuring and
>> building in a separate directory and I've attached the console output
>> from the configuration step in case it might help.
>
> UINT_MAX should be defined in limits.h.
>
> Are you sure that it's installed?
>
Well, in fact glibc is not in the paths.  I tried installing glibc 2.7 but I 
get

configure: error: compiler support for visibility attribute is required

even after applying the patch described here:

http://sourceware.org/ml/glibc-bugs/2007-07/msg00024.html




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

* Re: Building GCC 4.3.2 fails
  2008-10-07  9:09   ` Angel Tsankov
@ 2008-10-07 12:17     ` Andrew Haley
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Haley @ 2008-10-07 12:17 UTC (permalink / raw)
  To: Angel Tsankov; +Cc: gcc-help

Angel Tsankov wrote:
> Andrew Haley wrote:
>> Angel Tsankov wrote:
>>
>>> I'm trying to build GCC 4.3.2 (core, c++, and fortran). The
>>> configuration step (configure --prefix=...) seems to complete without
>>> problems, but during the build step (make -j 2 bootstrap) I get the
>>> following on stderr:
>>>
>>> configure: error:
>>> *** LIBRARY_PATH shouldn't contain the current directory when
>>> *** building gcc. Please change the environment variable
>>> *** and run configure again.
>>>
>>> LIBRARY_PATH contains the paths to GMP 4.2.1 and to MPFR2.3.0 only. I
>>> found out that clearing LIBRARY_PATH just before the build step
>>> takes me to another error:
>>>
>>> /home/angel/software/gcc/source/unpacked/gcc/dbgcnt.def:67: error:
>>> 'UINT_MAX' undeclared here (not in a function)
>>>
>>> Can any one help me build this version of GCC? I'm configuring and
>>> building in a separate directory and I've attached the console output
>>> from the configuration step in case it might help.
>> UINT_MAX should be defined in limits.h.
>>
>> Are you sure that it's installed?
>>
> Well, in fact glibc is not in the paths.  I tried installing glibc 2.7 but I 
> get
> 
> configure: error: compiler support for visibility attribute is required
> 
> even after applying the patch described here:
> 
> http://sourceware.org/ml/glibc-bugs/2007-07/msg00024.html

You shouldn't be recompiling glibc.  Install it as a binary
package.

Andrew.

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

* Re: Building GCC 4.3.2 fails
  2008-10-07  7:43 ` Andrew Haley
  2008-10-07  9:09   ` Angel Tsankov
@ 2008-10-08 21:09   ` Angel Tsankov
  1 sibling, 0 replies; 5+ messages in thread
From: Angel Tsankov @ 2008-10-08 21:09 UTC (permalink / raw)
  To: gcc-help

Andrew Haley wrote:
> Angel Tsankov wrote:
>
>> I'm trying to build GCC 4.3.2 (core, c++, and fortran). The
>> configuration step (configure --prefix=...) seems to complete without
>> problems, but during the build step (make -j 2 bootstrap) I get the
>> following on stderr:
>>
>> configure: error:
>> *** LIBRARY_PATH shouldn't contain the current directory when
>> *** building gcc. Please change the environment variable
>> *** and run configure again.
>>
>> LIBRARY_PATH contains the paths to GMP 4.2.1 and to MPFR2.3.0 only. I
>> found out that clearing LIBRARY_PATH just before the build step
>> takes me to another error:
>>
>> /home/angel/software/gcc/source/unpacked/gcc/dbgcnt.def:67: error:
>> 'UINT_MAX' undeclared here (not in a function)
>>
>> Can any one help me build this version of GCC? I'm configuring and
>> building in a separate directory and I've attached the console output
>> from the configuration step in case it might help.
>
> UINT_MAX should be defined in limits.h.
>
> Are you sure that it's installed?
>
OK, I put /usr/include to CPATH, C_INCLUDE_PATH and to CPLUS_INCLUDE_PATH 
but I still get the above error message. limits.h is in /usr/include and it 
does contain a definition for UINT_MAX. Any other ideas?



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

end of thread, other threads:[~2008-10-08 21:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-07  5:58 Building GCC 4.3.2 fails Angel Tsankov
2008-10-07  7:43 ` Andrew Haley
2008-10-07  9:09   ` Angel Tsankov
2008-10-07 12:17     ` Andrew Haley
2008-10-08 21:09   ` Angel Tsankov

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).