[prev in list] [next in list] [prev in thread] [next in thread] 

List:       uclinux-dev
Subject:    [uClinux-dev] FW: Problems compiling gcc
From:       "Heikki Jaakkola" <heikki.jaakkola () clothingplus ! fi>
Date:       2001-08-29 15:22:27
[Download RAW message or body]

Hi again,

now I got a little bit further by compiling first without c++ (make
LANGUAGES=c).
Then 'make LANGUAGES=c install' was succesful. After that I tried make
LANGUAGES='c c++', which fails:

stdiostream.cc: In method `streamsize stdiobuf::sys_read(char *, int)':
stdiostream.cc:84: implicit declaration of function `int fread(...)'
stdiostream.cc: In method `streamsize stdiobuf::sys_write(const char *,
int)':
stdiostream.cc:89: implicit declaration of function `int fwrite(...)'
make[1]: *** [stdiostream.o] Error 1
make[1]: Leaving directory
`/usr/src/redhat/SOURCES/gcc-2.95.3/arm-elf/libio'
make: *** [all-target-libio] Error 2


Before that there was lots of redefinition warnings, similar to ones that I
have had before when compiling c-programs:

In file included from
/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/sys/type
s.h:4,
                 from
/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/stdio.h:
6,
                 from stdiostream.h:35,
                 from stdiostream.cc:32:
/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/gnu/type
s.h:133: warning: `__FD_SETSIZE' redefined
/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/linux/po
six_types.h:33: warning: this is the location of the previous definition
/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/gnu/type
s.h:136: warning: `__NFDBITS' redefined
/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/linux/po
six_types.h:30: warning: this is the location of the previous definition
/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/gnu/type
s.h:138: warning: `__FDMASK' redefined
/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/linux/po
six_types.h:47: warning: this is the location of the previous definition
/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/gnu/type
s.h:147: warning: `__FD_ZERO' redefined
/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/asm/posi
x_types.h:56: warning: this is the location of the previous definition
/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/gnu/type
s.h:148: warning: `__FD_SET' redefined
/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/asm/posi
x_types.h:44: warning: this is the location of the previous definition
/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/gnu/type
s.h:149: warning: `__FD_CLR' redefined
/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/asm/posi
x_types.h:48: warning: this is the location of the previous definition
/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/gnu/type
s.h:150: warning: `__FD_ISSET' redefined
/opt/uClinux/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/include/asm/posi
x_types.h:52: warning: this is the location of the previous definition

I guess these warnings come because stdio.h includes some file that include
another file that includes another files which defines something that has
already been defined...

Still, any solutions to my problems?

Thankfully waiting,

Heikki



-----Original Message-----
From: Heikki Jaakkola [mailto:heikki.jaakkola@clothingplus.fi]
Sent: 29. elokuuta 2001 17:31
To: Uclinux-Dev
Subject: Problems compiling gcc


Hello,

I've installed uClinux from distribution CD (V2.0.38.1, ARM7TDMI Board
Development Kit for Lineo's Atmel EB40-LS). The gcc that is installed from
these RPMS is not however capable of compiling c++ code.

I need to compile some c++ code and now I'm trying to recompile gcc to
support c++ from the sources that came on the CD (SRPMS folder). Here's what
I've done:

I installed the source RPM arm-elf-gcc-2.95.3-2.src.rpm.

>From this rpm I got two files, the compiler itself and the patch.

I extracted the tar files and applied the patch
(gcc-2.95.3-010218-arm-linux-uclinux-dflts).

The I run ./configure --prefix=/opt/uClinux --target=arm-elf. I read from
some post that I should use arm-uclinux target but I only get an error from
that telling that the target is unknown. I've also tried arm-uclinux-elf.
With that configure is successful but make will fail.

OK, after previous step I try to run 'make LANGUAGES="c c++"' but it fails
after a while (couple of minutesand hudreds of lines of printing), printing
this:

In file included from ./cp/tinfo.cc:32:
include/new:28: 'operator new' takes type 'size_t' as first parameter
include/new:29: 'operator new' takes type 'size_t' as first parameter
include/new:32: 'operator new' takes type 'size_t' as first parameter
include/new:33: 'operator new' takes type 'size_t' as first parameter
include/new:39: 'operator new' takes type 'size_t' as first parameter
make[2]: *** [tinfo.o] Error 1
make[2]: Leaving directory '/usr/src/redhat/SOURCES/gcc-2.95.3/gcc'
make[1]: *** [libgcc2.a] Error 1
make[1]: Leaving directory '/usr/src/redhat/SOURCES/gcc-2.95.3/gcc'
make: *** [all-gcc] Error 2



Does anyone of you have any idea what have I done wrong? Should I use some
other sources? Should I compile something else first? The binutils are the
ones that were installed from the RPMS-folder in the CD. I'm running Redhat
7.1.


Heikki

This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic