Bug#407057: gcc-3.3: building m68k cross-compiler fails
Package: gcc-3.3
Version: 1:3.3.6-15
Severity: normal
I am trying to build the latest gcc-3.3 m68k cross-compiler on i386 and
amd64 following the instructions in the source package. On both i386 and
amd64 (were I can build -13), building -15 fails here:
gcc-3.3 -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I../../src/gcc -I../../src/gcc/.
-I../../src/gcc/config -I../../src/gcc/../include \
-DGCC_INCLUDE_DIR=\"/usr/lib/gcc-lib/m68k-linux-gnu/3.3.6/include\"
-DGPLUSPLUS_INCLUDE_DIR=\"/usr/m68k-linux-gnu/include/c++/3.3\"
-DGPLUSPLUS_TOOL_INCLUDE_DIR=\"/usr/m68k-linux-gnu/include/c++/3.3/m68k-linux-gnu\"
-DGPLUSPLUS_BACKWARD_INCLUDE_DIR=\"/usr/m68k-linux-gnu/include/c++/3.3/backward\"
-DLOCAL_INCLUDE_DIR=\"/usr/local/include\"
-DCROSS_INCLUDE_DIR=\"/usr/lib/gcc-lib/m68k-linux-gnu/3.3.6/../../../../m68k-linux-gnu/sys-include\"
-DTOOL_INCLUDE_DIR=\"/usr/lib/gcc-lib/m68k-linux-gnu/3.3.6/../../../../m68k-linux-gnu/include\"
-DTARGET_MACHINE=\"m68k-linux-gnu\" \
-c ../../src/gcc/cppdefault.c -o cppdefault.o
../../src/gcc/cppdefault.c:52: warning: traditional C rejects string concatenation
../../src/gcc/cppdefault.c:52: error: `LOCAL_INCLUDE_DIR' undeclared here (not in a function)
../../src/gcc/cppdefault.c:52: error: initializer element is not constant
../../src/gcc/cppdefault.c:52: error: (near initialization for `cpp_include_defaults[3].fname')
../../src/gcc/cppdefault.c:52: error: syntax error before string constant
../../src/gcc/cppdefault.c:52: error: initializer element is not constant
../../src/gcc/cppdefault.c:52: error: (near initialization for `cpp_include_defaults[3]')
../../src/gcc/cppdefault.c:59: error: initializer element is not constant
../../src/gcc/cppdefault.c:59: error: (near initialization for `cpp_include_defaults[4]')
../../src/gcc/cppdefault.c:63: error: initializer element is not constant
../../src/gcc/cppdefault.c:63: error: (near initialization for `cpp_include_defaults[5]')
../../src/gcc/cppdefault.c:67: error: initializer element is not constant
../../src/gcc/cppdefault.c:67: error: (near initialization for `cpp_include_defaults[6]')
../../src/gcc/cppdefault.c:74: warning: traditional C rejects string concatenation
../../src/gcc/cppdefault.c:74: error: `STANDARD_INCLUDE_DIR' undeclared here (not in a function)
../../src/gcc/cppdefault.c:74: error: initializer element is not constant
../../src/gcc/cppdefault.c:74: error: (near initialization for `cpp_include_defaults[7].fname')
../../src/gcc/cppdefault.c:74: error: syntax error before string constant
../../src/gcc/cppdefault.c:74: error: initializer element is not constant
../../src/gcc/cppdefault.c:74: error: (near initialization for `cpp_include_defaults[7]')
../../src/gcc/cppdefault.c:80: error: initializer element is not constant
../../src/gcc/cppdefault.c:80: error: (near initialization for `cpp_include_defaults[8]')
make[3]: *** [cppdefault.o] Error 1
gcc-3.3.6-15 built fine natively on m68k, so I wonder what the problem is here.
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (400, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18.3
Locale: LANG=C, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages gcc-3.3 depends on:
ii binutils 2.17-3 The GNU assembler, linker and bina
ii cpp-3.3 1:3.3.6-15 The GNU C preprocessor
ii gcc-3.3-base 1:3.3.6-15 The GNU Compiler Collection (base
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii libgcc1 1:4.1.1-19 GCC support library
Versions of packages gcc-3.3 recommends:
ii libc6-dev 2.3.6.ds1-8 GNU C Library: Development Librari
-- no debconf information
Christian
Reply to: