building gdb for sparc with gcc.3.3.3

Ralf Corsepius ralf_corsepius at rtems.org
Thu Nov 18 04:11:07 UTC 2004


On Wed, 2004-11-17 at 14:11 -0500, Jerry Needell wrote:
> thanks for the reply -
> On Nov 17, 2004, at 9:44 AM, Ralf Corsepius wrote:
> 
> > On Wed, 2004-11-17 at 07:38 -0500, Jerry Needell wrote:
> >> I thought this had been addressed earlier, but I have not been able to
> >> find anything in the archives or GNATS so I'll ask it here.
> >>
> >> i am trying to build the sparc-rtems toolset on a Fedora Core 2 system
> >> using gcc. 3.3.3 but gdb 5.2 fails to build because it contains
> >> multi-string litererals which are not permitted by gcc 3.3.3. Is there
> >> a patch to fix this or am I just missing some other piece of
> >> information.
> > Seems so. This issue is supposed to be addressed in rtems-gdb patches.
> > So if you insist on rebuilding the toolchain, get yourself the
> > *.nosrc.rpms and try to get them building.
> 
> This is what I am doing. I apply the three patches, but the compilation  
> still fails.
I.e. you're manually building it, and don't use the src.rpm?

> > However, these also won't bring you much further, because you'll then
> > hit another bug in gdb-5.2, nobody has taken care about so far..
> What problem is this?

To be investigated.

On FC3, fails with the error below:
# rpmbuild \
--rebuild rtems-4.6-sparc-rtems-gdb-collection-5.2-1.nosrc.rpm
..
gcc -c -DHAVE_CONFIG_H     -DPROFILE=1 -DWITH_PROFILE=-1          -
DDEFAULT_INLINE=0           -DSTAT -DFAST_UART -DIUREV0 -DMECREV0   -I.
-I../../../gdb -5.2/sim/erc32 -I../common -
I../../../gdb-5.2/sim/erc32/../common -I../../include -
I../../../gdb-5.2/sim/erc32/../../include -I../../bfd -
I../../../gdb-5 .2/sim/erc32/../../bfd -I../../opcodes -
I../../../gdb-5.2/sim/erc32/../../opcodes -I../../intl -
I../../../gdb-5.2/sim/erc32/../../intl -g -O2 ../../../gd
b-5.2/sim/erc32/sis.c
../../../gdb-5.2/sim/erc32/sis.c:37: error: conflicting types for
'fprintf'
../../../gdb-5.2/sim/erc32/sis.c:37: note: a parameter list with an
ellipsis can't match an empty parameter name list declaration
../../../gdb-5.2/sim/erc32/sis.c:37: error: conflicting types for
'fprintf'
../../../gdb-5.2/sim/erc32/sis.c:37: note: a parameter list with an
ellipsis can't match an empty parameter name list declaration
make[2]: *** [sis.o] Error 1
make[2]: Leaving directory `/users/rtems/src/rpms/BUILD/rtems-4.6-sparc-
rtems-gdb-collection-5.2/build/sim/erc32'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/users/rtems/src/rpms/BUILD/rtems-4.6-sparc-
rtems-gdb-collection-5.2/build/sim'
make: *** [all-sim] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.81792 (%build)

Without having looked into details, it seems to be a simple conflict
between gdb-5.2 and glibc2, which probably can easily to be worked
around, but ... somebody will have to do it - I currently don't have
sufficient time to do so - All I did was to invoke "rpmbuild" :-)

> >>  Is anyone else using FC2 as a development platform?
> > Until last week, yes - I just switched to FC3.
> >
> > However, you can simply use the RH-7.3 binaries from
> > ftp://ftp.rtems.com.
> unfortunately, I do not want to use the precompiled binaries for  
> several reasons, but one being that I  do not want the tree located in  
> /opt/rtems

/opt/<package> is the location recommended by the FHS and the LSB for
add-on packages like the RTEMS toolchains.

> > In case you didn't already do, I'd recommend you to install apt from
> > fedora.us and then to install
> > ftp://ftp.rtems.com/pub/rtems/linux/redhat/7.3/i386/apt/RPMS.rtems 
> > -4.6/rtems-4.6-apt-conf-0.0-0.noarch.rpm
> >
> > It configures apt in such way that it will automatically d/l and  
> > install
> > the RH-7.3 rpms at rtems.com. Unfortunately there currently are no FC*
> > rpms available. In general, these RPMS are rebuildable under FC2,
> > however rtems-4.6-sparc-rtems-gdb-5.2 is an exception.
> What do you use as a replacement?

I am not using sparc-rtems-gdb :-)

Ralf





More information about the users mailing list