Re: PDP-11 ABI for cross compiler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Hmmm, I tried gcc-4.1.2 for 'pdp11-bsd2.11' target and that seemed to
> succeed. Maybe gcc-4.3.2 is
> broken for PDP11 :(   Support dropped (obsolete) in 4.3.3...

At your suggestion I tried gcc-4.1.2.

> You must like things being as complicate as possible...   My simple
> configure was :

After building binutils 2.20 with target pdp11-bsd2.11, I tried to
build gcc with your options. Build fails with the following error:

mkdir build-i386-unknown-freebsd8.0/fixincludes
Configuring in build-i386-unknown-freebsd8.0/fixincludes
configure: loading cache ../config.cache
checking build system type... (cached) i386-unknown-freebsd8.0
checking host system type... (cached) i386-unknown-freebsd8.0
checking target system type... pdp11-unknown-bsd2.11
checking for i386-unknown-freebsd8.0-gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking whether gcc supports -W... yes
checking whether gcc supports -Wall... yes
checking whether gcc supports -Wwrite-strings... yes
checking whether gcc supports -Wstrict-prototypes... yes
checking whether gcc supports -Wmissing-prototypes... yes
checking whether gcc supports -Wold-style-definition... yes
checking whether gcc supports -Wmissing-format-attribute... yes
checking whether gcc supports -pedantic -Wno-long-long... yes
checking how to run the C preprocessor... (cached) gcc -E
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for clearerr_unlocked... yes
checking for feof_unlocked... yes
checking for ferror_unlocked... yes
checking for fflush_unlocked... no
checking for fgetc_unlocked... no
checking for fgets_unlocked... no
checking for fileno_unlocked... yes
checking for fprintf_unlocked... no
checking for fputc_unlocked... no
checking for fputs_unlocked... no
checking for fread_unlocked... no
checking for fwrite_unlocked... no
checking for getchar_unlocked... yes
checking for getc_unlocked... yes
checking for putchar_unlocked... yes
checking for putc_unlocked... yes
checking whether abort is declared... yes
checking whether errno is declared... no
checking whether clearerr_unlocked is declared... yes
checking whether feof_unlocked is declared... yes
checking whether ferror_unlocked is declared... yes
checking whether fflush_unlocked is declared... no
checking whether fgetc_unlocked is declared... no
checking whether fgets_unlocked is declared... no
checking whether fileno_unlocked is declared... yes
checking whether fprintf_unlocked is declared... no
checking whether fputc_unlocked is declared... no
checking whether fputs_unlocked is declared... no
checking whether fread_unlocked is declared... no
checking whether fwrite_unlocked is declared... no
checking whether getchar_unlocked is declared... yes
checking whether getc_unlocked is declared... yes
checking whether putchar_unlocked is declared... yes
checking whether putc_unlocked is declared... yes
checking for an ANSI C-conforming const... (cached) yes
checking for sys/mman.h... (cached) yes
checking for mmap... yes
checking whether read-only mmap of a plain file works... yes
checking whether mmap from /dev/zero works... yes
checking for MAP_ANON(YMOUS)... yes
checking whether mmap with MAP_ANON(YMOUS) works... yes
checking whether to enable maintainer-specific portions of Makefiles... no
updating cache ../config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mkheaders.almost
config.status: creating config.h
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long  -DHA
VE_CONFIG_H -I. -I../../../gcc-4.1.2/fixincludes -I../include -I../../../gcc-4.1
.2/fixincludes/../include ../../../gcc-4.1.2/fixincludes/fixincl.c
In file included from ../../../gcc-4.1.2/fixincludes/fixincl.c:101:
../../../gcc-4.1.2/fixincludes/fixincl.x:77: warning: string length '4662' is gr
eater than the length '509' ISO C90 compilers are required to support
../../../gcc-4.1.2/fixincludes/fixincl.x:225: warning: string length '
eater than the length '509' ISO C90 compilers are required to support
../../../gcc-4.1.2/fixincludes/fixincl.x:270: warning: string length '532' is gr
eater than the length '509' ISO C90 compilers are required to support
../../../gcc-4.1.2/fixincludes/fixincl.x:314: warning: string length '808' is gr
eater than the length '509' ISO C90 compilers are required to support
../../../gcc-4.1.2/fixincludes/fixincl.x:400: warning: string length '5139' is g
reater than the length '509' ISO C90 compilers are required to support
../../../gcc-4.1.2/fixincludes/fixincl.x:2459: warning: string length '729' is g
reater than the length '509' ISO C90 compilers are required to support
../../../gcc-4.1.2/fixincludes/fixincl.x:7552: warning: string length '575' is g
reater than the length '509' ISO C90 compilers are required to support
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long  -DHA
VE_CONFIG_H -I. -I../../../gcc-4.1.2/fixincludes -I../include -I../../../gcc-4.1
.2/fixincludes/../include ../../../gcc-4.1.2/fixincludes/fixtests.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long  -DHA
VE_CONFIG_H -I. -I../../../gcc-4.1.2/fixincludes -I../include -I../../../gcc-4.1
.2/fixincludes/../include ../../../gcc-4.1.2/fixincludes/fixfixes.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long  -DHA
VE_CONFIG_H -I. -I../../../gcc-4.1.2/fixincludes -I../include -I../../../gcc-4.1
.2/fixincludes/../include ../../../gcc-4.1.2/fixincludes/server.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long  -DHA
VE_CONFIG_H -I. -I../../../gcc-4.1.2/fixincludes -I../include -I../../../gcc-4.1
.2/fixincludes/../include ../../../gcc-4.1.2/fixincludes/procopen.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long  -DHA
VE_CONFIG_H -I. -I../../../gcc-4.1.2/fixincludes -I../include -I../../../gcc-4.1
.2/fixincludes/../include ../../../gcc-4.1.2/fixincludes/fixlib.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long  -DHA
VE_CONFIG_H -I. -I../../../gcc-4.1.2/fixincludes -I../include -I../../../gcc-4.1
.2/fixincludes/../include ../../../gcc-4.1.2/fixincludes/fixopts.c
gcc -g -O2  -o fixincl fixincl.o fixtests.o fixfixes.o server.o procopen.o  fixl
ib.o fixopts.o ../libiberty/libiberty.a
echo timestamp > full-stamp
srcdir="../../../gcc-4.1.2/fixincludes" /bin/sh ../../../gcc-4.1.2/fixincludes/m
kfixinc.sh pdp11-unknown-bsd2.11
sed -e 's/@gcc_version@//' <  > mkheadersT
Syntax error: redirection unexpected
*** Error code 2

Stop in /var/tmp/gcc-4.1.2-obj/build-i386-unknown-freebsd8.0/fixincludes.
*** Error code 1

Stop in /var/tmp/gcc-4.1.2-obj.

I am using FreeBSD 8.0. Can this be FreeBSD related? Should I install
a Linux box and try there?

Thanks,

-- 
Aram Hăvărneanu


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux