public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* RH 8.0 build of gcc-3.2
@ 2002-10-09  5:29 Jan Bergman
  2002-10-09  6:43 ` Jakub Jelinek
  2002-10-14 10:24 ` Janis Johnson
  0 siblings, 2 replies; 3+ messages in thread
From: Jan Bergman @ 2002-10-09  5:29 UTC (permalink / raw)
  To: gcc; +Cc: jan.bergman

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

Hello!

I have built gcc-3.2 on my Red Hat 8.0 system (Dell Inspiron 8000, PIII
800 MHz laptop). See the attached file gcc-3.2-build.txt for details.

Best regards,
Jan Bergman



[-- Attachment #2: gcc-3.2-build.txt --]
[-- Type: text/plain, Size: 5022 bytes --]

Hello!


1. Output from config.guess:

[root@dhcppc1 buildgcc]# /home/JBn/gcc-3.2/config.guess
i686-pc-linux-gnu

2. Output from gcc -v

[root@dhcppc1 buildgcc]# /usr/local/gcc/bin/gcc -v
Reading specs from /usr/local/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Configured with: /home/JBn/gcc-3.2/configure --prefix=/usr/local/gcc
--enable-shared --enable-threads=posix --without-cxx --with-libtool
--enable-__cxa_atexit --with-system-zlib 
Thread model: posix
gcc version 3.2

3. GNU/Linux

3.1 Distribution: Red Hat 8.0
3.2 Kernel: 2.4.18-14
3.2 GNU libc: 2.2.93-5 

4. Other info

My reason for building gcc-3.2 on Red Hat 8.0 (which comes with gcc-3.2)
is that I had problems with g++ when trying to build OpenDX
(www.opendx.org) and the c++ part of the netCDF library
(www.unidata.ucar.edu/packages/netcdf). 

I started out
with a plain "configure", no options but --prefix. The build stopped
at libstdc++ part (see transcript below). 
I then looked at your successful build 
list and found that people tend to use some options after all. 
The --enable-__cxa_atexit option (what does it mean?) I copied 
from the original Red Hat built gcc-3.2. The build still stopped at the
same point no matter what options I used.  

Taking a look into the "<objdir>/i686-pc-linux-gnu/libstdc++-v3/src" 
directory I found the strange looking filename
"locale.loT"! In the header of "locale.loT" it said that the filename
should be "locale.lo". So, I renamed the file, changed back to my <objdir>,
issued the "make bootstrap" command once more and the build continued.

Transcript from my session.
I got the following error in the libstdc++ build:

#########################################################################

In file included from /home/JBn/gcc-3.2/libstdc++-v3/src/locale.cc:406:
/var/software/buildgcc/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h: In
   static member function `static const short unsigned int*
   std::ctype<char>::classic_table()':
/var/software/buildgcc/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:45: `
   __ctype_b' undeclared (first use this function)
/var/software/buildgcc/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:45: (Each
   undeclared identifier is reported only once for each function it appears
   in.)
/var/software/buildgcc/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h: In
   constructor `std::ctype<char>::ctype(int*, const short unsigned int*, bool,
   unsigned int)':
/var/software/buildgcc/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:61: `
   __ctype_toupper' undeclared (first use this function)
/var/software/buildgcc/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:61: `
   __ctype_tolower' undeclared (first use this function)
make[4]: *** [locale.lo] Error 1
make[4]: Leaving directory `/var/software/buildgcc/i686-pc-linux-gnu/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/software/buildgcc/i686-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory `/var/software/buildgcc/i686-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/var/software/buildgcc'
make: *** [bootstrap] Error 2

#########################################################################

  
Transcript from my remedy:
########################################################################

[root@dhcppc1 buildgcc]# cd i686-pc-linux-gnu/libstdc++-v3/src/
[root@dhcppc1 src]# ls
basic_file.cc  c++locale.lo   functexcept.lo  limits.lo    monetary.cc
time.cc
basic_file.lo  c++locale.o    functexcept.o   limits.o     numeric.cc
vterminate.lo
basic_file.o   collate.cc     globals.lo      linker.map   stdexcept.lo
vterminate.o
bitset.lo      complex_io.lo  globals.o       locale.loT   stdexcept.o
bitset.o       complex_io.o   ios.lo          Makefile     strstream.lo
c++locale.cc   ctype.cc       ios.o           messages.cc  strstream.o
[root@dhcppc1 src]# cp locale.loT locale.lo
[root@dhcppc1 src]# cd ../../
[root@dhcppc1 buildgcc]# make bootstrap

############################################################################

The following programs got installed in the "/usr/local/gcc/bin" directory.

###########################################################################
[JBn@dhcppc1 bin]$ ls
addr2name.awk  gcc     gnatbind               jcf-dump
c++            gccbug  grepjar                jv-convert
c++filt        gcj     i686-pc-linux-gnu-c++  jv-scan
cpp            gcjh    i686-pc-linux-gnu-g++  rmic
g++            gcov    i686-pc-linux-gnu-gcc  rmiregistry
g77            gij     jar 

##########################################################################

Is something missing?
Best regards,

Jan Bergman

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

* Re: RH 8.0 build of gcc-3.2
  2002-10-09  5:29 RH 8.0 build of gcc-3.2 Jan Bergman
@ 2002-10-09  6:43 ` Jakub Jelinek
  2002-10-14 10:24 ` Janis Johnson
  1 sibling, 0 replies; 3+ messages in thread
From: Jakub Jelinek @ 2002-10-09  6:43 UTC (permalink / raw)
  To: Jan Bergman; +Cc: gcc

On Wed, Oct 09, 2002 at 10:29:15AM +0200, Jan Bergman wrote:
> Hello!
> 
> I have built gcc-3.2 on my Red Hat 8.0 system (Dell Inspiron 8000, PIII
> 800 MHz laptop). See the attached file gcc-3.2-build.txt for details.

You need gcc-3_2-branch to build on glibc-2.3.

> 4. Other info
> 
> My reason for building gcc-3.2 on Red Hat 8.0 (which comes with gcc-3.2)
> is that I had problems with g++ when trying to build OpenDX
> (www.opendx.org) and the c++ part of the netCDF library
> (www.unidata.ucar.edu/packages/netcdf). 

Have you reported it?

	Jakub

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

* Re: RH 8.0 build of gcc-3.2
  2002-10-09  5:29 RH 8.0 build of gcc-3.2 Jan Bergman
  2002-10-09  6:43 ` Jakub Jelinek
@ 2002-10-14 10:24 ` Janis Johnson
  1 sibling, 0 replies; 3+ messages in thread
From: Janis Johnson @ 2002-10-14 10:24 UTC (permalink / raw)
  To: Jan Bergman; +Cc: gcc

On Wed, Oct 09, 2002 at 10:29:15AM +0200, Jan Bergman wrote:
> 
> 1. Output from config.guess:
> 
> [root@dhcppc1 buildgcc]# /home/JBn/gcc-3.2/config.guess
> i686-pc-linux-gnu
> 
> 2. Output from gcc -v
> 
> [root@dhcppc1 buildgcc]# /usr/local/gcc/bin/gcc -v
> Reading specs from /usr/local/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
> Configured with: /home/JBn/gcc-3.2/configure --prefix=/usr/local/gcc
> --enable-shared --enable-threads=posix --without-cxx --with-libtool
> --enable-__cxa_atexit --with-system-zlib 
> Thread model: posix
> gcc version 3.2
> 
> 3. GNU/Linux
> 
> 3.1 Distribution: Red Hat 8.0
> 3.2 Kernel: 2.4.18-14
> 3.2 GNU libc: 2.2.93-5 

Thanks!  Your message is linked from the GCC 3.2 build status list at
http://gcc.gnu.org/gcc-3.2/buildstat.html.  I said that your build was
"Successful with tweaks".

Janis

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

end of thread, other threads:[~2002-10-14 16:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-09  5:29 RH 8.0 build of gcc-3.2 Jan Bergman
2002-10-09  6:43 ` Jakub Jelinek
2002-10-14 10:24 ` Janis Johnson

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