lm32-rtems4.10-gcc-4.4.0 doesn't build

Ralf Corsepius ralf.corsepius at rtems.org
Wed Apr 15 14:38:00 UTC 2009


Hi,

I am currently preparing gcc-4.4.0 rpms for rtems-4.10, based GCC's 
first release candidate tarball + a gcc-4.4.0 port of the RTEMS patches.

Unfortunately, building lm32-gcc fails:

...
# gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c  -g 
-O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings 
-Wstrict-prototypes -Wmissing-prototypes -Wcast-qual 
-Wold-style-definition -Wc++-compat -Wmissing-format-attribute -pedantic 
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings 
-DHAVE_CONFIG_H -I. -I. -I../../gcc-4.4.0-RC-20090414/gcc 
-I../../gcc-4.4.0-RC-20090414/gcc/. 
-I../../gcc-4.4.0-RC-20090414/gcc/../include 
-I../../gcc-4.4.0-RC-20090414/gcc/../libcpp/include 
-I../../gcc-4.4.0-RC-20090414/gcc/../libdecnumber 
-I../../gcc-4.4.0-RC-20090414/gcc/../libdecnumber/dpd -I../libdecnumber 
    insn-modes.c -o insn-modes.o
../../gcc-4.4.0-RC-20090414/gcc/config/lm32/lm32.md: In function 
'gen_movsi':
../../gcc-4.4.0-RC-20090414/gcc/config/lm32/lm32.md:181: error: 
'current_function_uses_pic_offset_table' undeclared (first use in this 
function)
../../gcc-4.4.0-RC-20090414/gcc/config/lm32/lm32.md:181: error: (Each 
undeclared identifier is reported only once
../../gcc-4.4.0-RC-20090414/gcc/config/lm32/lm32.md:181: error: for each 
function it appears in.)
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c  -g 
-O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings 
-Wstrict-prototypes -Wmissing-prototypes -Wcast-qual 
-Wold-style-definition -Wc++-compat -Wmissing-format-attribute -pedantic 
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings 
-DHAVE_CONFIG_H -I. -I. -I../../gcc-4.4.0-RC-20090414/gcc 
-I../../gcc-4.4.0-RC-20090414/gcc/. 
-I../../gcc-4.4.0-RC-20090414/gcc/../include 
-I../../gcc-4.4.0-RC-20090414/gcc/../libcpp/include 
-I../../gcc-4.4.0-RC-20090414/gcc/../libdecnumber 
-I../../gcc-4.4.0-RC-20090414/gcc/../libdecnumber/dpd -I../libdecnumber 
    insn-opinit.c -o insn-opinit.o


Any ideas what to do? Wasn't there a gcc-4.4.0-lm32 patch?

The sources I am using are:
ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.0-RC-20090414.tar.bz2
ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gcc-core-4.4.0-RC-20090414-rtems4.10-20090414.diff
and
ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.17.0.tar.gz
ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.17.0-rtems4.10-20090311.diff


Ralf




More information about the users mailing list