libgfortran still fails to build for sh-elf
Joern RENNECKE
joern.rennecke@st.com
Wed Nov 15 13:31:00 GMT 2006
François-Xavier Coudert wrote:
>> I suggest that you test the following patch and report back to us:
>
>
> I got the patch wrong (it's not a real printf function we have there):
>
> Index: libgfortran/runtime/error.c
> ===================================================================
> --- libgfortran/runtime/error.c (revision 118806)
> +++ libgfortran/runtime/error.c (working copy)
> @@ -285,7 +285,7 @@
> if (!options.locus || cmp == NULL || cmp->filename == NULL)
> return;
>
> - st_printf ("At line %d of file %s\n", cmp->line, cmp->filename);
> + st_printf ("At line %d of file %s\n", (int) cmp->line, cmp->filename);
> }
That still leaves the undefined symbol error:
/home/amylaar/bld/2006-11-10/sh-multi-elf-f/./gcc/xgcc
-B/home/amylaar/bld/2006-11-10/sh-multi-elf-f/./gcc/ -nostdinc
-B/home/amylaar/bld/2006-11-10/sh-multi-elf-f/sh-multi-elf/newlib/
-isystem
/home/amylaar/bld/2006-11-10/sh-multi-elf-f/sh-multi-elf/newlib/targ-include
-isystem /home/amylaar/bld/2006-11-10/srcw/newlib/libc/include
-B/usr/local/sh-multi-elf/bin/ -B/usr/local/sh-multi-elf/lib/ -isystem
/usr/local/sh-multi-elf/include -isystem
/usr/local/sh-multi-elf/sys-include
-L/home/amylaar/bld/2006-11-10/sh-multi-elf-f/./ld -DHAVE_CONFIG_H -I.
-I../../../srcw/libgfortran -I. -iquote../../../srcw/libgfortran/io
-I../../../srcw/libgfortran/../gcc
-I../../../srcw/libgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE
-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wextra -Wwrite-strings -O2 -g -O2 -c
../../../srcw/libgfortran/runtime/error.c -o error.o
../../../srcw/libgfortran/runtime/error.c:334: error:
'_gfortran_runtime_error' aliased to undefined symbol
'__gfortrani_runtime_error'
make[2]: *** [error.lo] Error 1
make[2]: Leaving directory
`/home/amylaar/bld/2006-11-10/sh-multi-elf-f/sh-multi-elf/libgfortran'
More information about the Gcc
mailing list