[Bug target/112762] New: Cannot build crosscompilers for some uclinux targets
fkastl at suse dot cz
gcc-bugzilla@gcc.gnu.org
Wed Nov 29 12:33:47 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112762
Bug ID: 112762
Summary: Cannot build crosscompilers for some uclinux targets
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Keywords: build
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: fkastl at suse dot cz
Target Milestone: ---
Host: x86_64-pc-linux-gnu
Target: *-uclinux
While building the current upstream GCC configured with --target=bfin-uclinux,
--target=c6x-uclinux, --target=lm32-uclinux or --target=moxie-uclinux, the
build fails. The respective errors look almost the same. I list them at the end
of this report.
Configuration of the GCC I'm building:
../src/configure --prefix=/home/fkastl/gcc/inst --enable-languages=c,c++
--enable-checking --disable-bootstrap --disable-multilib --enable-obsolete
--target= OR bfin-uclinux OR c6x-uclinux OR lm32-uclinux OR moxie-uclinux}
Configuration of system GCC:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/7/lto-wrapper
OFFLOAD_TARGET_NAMES=hsa:nvptx-none
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,ada,go
--enable-offload-targets=hsa,nvptx-none, --without-cuda-driver
--enable-checking=release --disable-werror
--with-gxx-include-dir=/usr/include/c++/7 --enable-ssp --disable-libssp
--disable-libvtv --disable-libcc1 --disable-plugin
--with-bugurl=https://bugs.opensuse.org/ --with-pkgversion='SUSE Linux'
--with-slibdir=/lib64 --with-system-zlib --enable-libstdcxx-allocator=new
--disable-libstdcxx-pch --enable-version-specific-runtime-libs
--with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex
--enable-gnu-indirect-function --program-suffix=-7 --without-system-libunwind
--enable-multilib --with-arch-32=x86-64 --with-tune=generic
--build=x86_64-suse-linux --host=x86_64-suse-linux
Thread model: posix
gcc version 7.5.0 (SUSE Linux)
List of the respective error messages:
bfin-uclinux
g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H
-fno-PIE -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/../include
-I../../src/gcc/../libcpp/include -I../../src/gcc/../libcody
-I../../src/gcc/../libdecnumber -I../../src/gcc/../libdecnumber/dpd
-I../libdecnumber -I../../src/gcc/../libbacktrace -o bfin.o -MT bfin.o -MMD
-MP -MF ./.deps/bfin.TPo ../../src/gcc/config/bfin/bfin.cc
In file included from ../../src/gcc/config/bfin/bfin.cc:28:0:
../../src/gcc/rtl.h:66:26: warning: ‘rtx_def::code’ is too small to hold all
values of ‘enum rtx_code’
#define RTX_CODE_BITSIZE 8
^
../../src/gcc/rtl.h:318:33: note: in expansion of macro ‘RTX_CODE_BITSIZE’
ENUM_BITFIELD(rtx_code) code: RTX_CODE_BITSIZE;
^~~~~~~~~~~~~~~~
In file included from ./tm.h:31:0,
from ../../src/gcc/backend.h:28,
from ../../src/gcc/config/bfin/bfin.cc:26:
../../src/gcc/config/linux.h:221:45: error:
‘linux_fortify_source_default_level’ was not declared in this scope
#define TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL linux_fortify_source_default_level
^
../../src/gcc/config/linux.h:221:45: note: in definition of macro
‘TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL’
#define TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL linux_fortify_source_default_level
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/gcc/config/bfin/bfin.cc:5885:29: note: in expansion of macro
‘TARGET_INITIALIZER’
struct gcc_target targetm = TARGET_INITIALIZER;
^~~~~~~~~~~~~~~~~~
../../src/gcc/config/linux.h:221:45: note: suggested alternative:
‘default_fortify_source_default_level’
#define TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL linux_fortify_source_default_level
^
../../src/gcc/config/linux.h:221:45: note: in definition of macro
‘TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL’
#define TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL linux_fortify_source_default_level
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/gcc/config/bfin/bfin.cc:5885:29: note: in expansion of macro
‘TARGET_INITIALIZER’
struct gcc_target targetm = TARGET_INITIALIZER;
^~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:2531: bfin.o] Error 1
make[1]: Leaving directory '/home/fkastl/gcc/build/gcc'
make: *** [Makefile:4650: all-gcc] Error 2
c6x-uclinux
g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H
-fno-PIE -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/../include
-I../../src/gcc/../libcpp/include -I../../src/gcc/../libcody
-I../../src/gcc/../libdecnumber -I../../src/gcc/../libdecnumber/dpd
-I../libdecnumber -I../../src/gcc/../libbacktrace -o insn-automata.o -MT
insn-automata.o -MMD -MP -MF ./.deps/insn-automata.TPo insn-automata.cc
In file included from insn-automata.cc:14:0:
../../src/gcc/rtl.h:66:26: warning: ‘rtx_def::code’ is too small to hold all
values of ‘enum rtx_code’
#define RTX_CODE_BITSIZE 8
^
../../src/gcc/rtl.h:318:33: note: in expansion of macro ‘RTX_CODE_BITSIZE’
ENUM_BITFIELD(rtx_code) code: RTX_CODE_BITSIZE;
^~~~~~~~~~~~~~~~
g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H
-fno-PIE -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/../include
-I../../src/gcc/../libcpp/include -I../../src/gcc/../libcody
-I../../src/gcc/../libdecnumber -I../../src/gcc/../libdecnumber/dpd
-I../libdecnumber -I../../src/gcc/../libbacktrace -o c6x.o -MT c6x.o -MMD -MP
-MF ./.deps/c6x.TPo ../../src/gcc/config/c6x/c6x.cc
In file included from ../../src/gcc/config/c6x/c6x.cc:29:0:
../../src/gcc/rtl.h:66:26: warning: ‘rtx_def::code’ is too small to hold all
values of ‘enum rtx_code’
#define RTX_CODE_BITSIZE 8
^
../../src/gcc/rtl.h:318:33: note: in expansion of macro ‘RTX_CODE_BITSIZE’
ENUM_BITFIELD(rtx_code) code: RTX_CODE_BITSIZE;
^~~~~~~~~~~~~~~~
In file included from ./tm.h:30:0,
from ../../src/gcc/backend.h:28,
from ../../src/gcc/config/c6x/c6x.cc:27:
../../src/gcc/config/linux.h:221:45: error:
‘linux_fortify_source_default_level’ was not declared in this scope
#define TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL linux_fortify_source_default_level
^
../../src/gcc/config/linux.h:221:45: note: in definition of macro
‘TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL’
#define TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL linux_fortify_source_default_level
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/gcc/config/c6x/c6x.cc:6876:29: note: in expansion of macro
‘TARGET_INITIALIZER’
struct gcc_target targetm = TARGET_INITIALIZER;
^~~~~~~~~~~~~~~~~~
../../src/gcc/config/linux.h:221:45: note: suggested alternative:
‘default_fortify_source_default_level’
#define TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL linux_fortify_source_default_level
^
../../src/gcc/config/linux.h:221:45: note: in definition of macro
‘TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL’
#define TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL linux_fortify_source_default_level
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/gcc/config/c6x/c6x.cc:6876:29: note: in expansion of macro
‘TARGET_INITIALIZER’
struct gcc_target targetm = TARGET_INITIALIZER;
^~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:2532: c6x.o] Error 1
make[1]: Leaving directory '/home/fkastl/gcc/build/gcc'
make: *** [Makefile:4650: all-gcc] Error 2
lm32-uclinux
g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H
-fno-PIE -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/../include
-I../../src/gcc/../libcpp/include -I../../src/gcc/../libcody
-I../../src/gcc/../libdecnumber -I../../src/gcc/../libdecnumber/dpd
-I../libdecnumber -I../../src/gcc/../libbacktrace -o lm32.o -MT lm32.o -MMD
-MP -MF ./.deps/lm32.TPo ../../src/gcc/config/lm32/lm32.cc
In file included from ../../src/gcc/config/lm32/lm32.cc:29:0:
../../src/gcc/rtl.h:66:26: warning: ‘rtx_def::code’ is too small to hold all
values of ‘enum rtx_code’
#define RTX_CODE_BITSIZE 8
^
../../src/gcc/rtl.h:318:33: note: in expansion of macro ‘RTX_CODE_BITSIZE’
ENUM_BITFIELD(rtx_code) code: RTX_CODE_BITSIZE;
^~~~~~~~~~~~~~~~
In file included from ./tm.h:30:0,
from ../../src/gcc/backend.h:28,
from ../../src/gcc/config/lm32/lm32.cc:27:
../../src/gcc/config/linux.h:221:45: error:
‘linux_fortify_source_default_level’ was not declared in this scope
#define TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL linux_fortify_source_default_level
^
../../src/gcc/config/linux.h:221:45: note: in definition of macro
‘TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL’
#define TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL linux_fortify_source_default_level
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/gcc/config/lm32/lm32.cc:122:29: note: in expansion of macro
‘TARGET_INITIALIZER’
struct gcc_target targetm = TARGET_INITIALIZER;
^~~~~~~~~~~~~~~~~~
../../src/gcc/config/linux.h:221:45: note: suggested alternative:
‘default_fortify_source_default_level’
#define TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL linux_fortify_source_default_level
^
../../src/gcc/config/linux.h:221:45: note: in definition of macro
‘TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL’
#define TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL linux_fortify_source_default_level
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/gcc/config/lm32/lm32.cc:122:29: note: in expansion of macro
‘TARGET_INITIALIZER’
struct gcc_target targetm = TARGET_INITIALIZER;
^~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:2530: lm32.o] Error 1
make[1]: Leaving directory '/home/fkastl/gcc/build/gcc'
make: *** [Makefile:4650: all-gcc] Error 2
moxie-uclinux
g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H
-fno-PIE -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/../include
-I../../src/gcc/../libcpp/include -I../../src/gcc/../libcody
-I../../src/gcc/../libdecnumber -I../../src/gcc/../libdecnumber/dpd
-I../libdecnumber -I../../src/gcc/../libbacktrace -o moxie.o -MT moxie.o -MMD
-MP -MF ./.deps/moxie.TPo ../../src/gcc/config/moxie/moxie.cc
In file included from ../../src/gcc/config/moxie/moxie.cc:28:0:
../../src/gcc/rtl.h:66:26: warning: ‘rtx_def::code’ is too small to hold all
values of ‘enum rtx_code’
#define RTX_CODE_BITSIZE 8
^
../../src/gcc/rtl.h:318:33: note: in expansion of macro ‘RTX_CODE_BITSIZE’
ENUM_BITFIELD(rtx_code) code: RTX_CODE_BITSIZE;
^~~~~~~~~~~~~~~~
In file included from ./tm.h:30:0,
from ../../src/gcc/backend.h:28,
from ../../src/gcc/config/moxie/moxie.cc:26:
../../src/gcc/config/linux.h:221:45: error:
‘linux_fortify_source_default_level’ was not declared in this scope
#define TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL linux_fortify_source_default_level
^
../../src/gcc/config/linux.h:221:45: note: in definition of macro
‘TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL’
#define TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL linux_fortify_source_default_level
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/gcc/config/moxie/moxie.cc:660:29: note: in expansion of macro
‘TARGET_INITIALIZER’
struct gcc_target targetm = TARGET_INITIALIZER;
^~~~~~~~~~~~~~~~~~
../../src/gcc/config/linux.h:221:45: note: suggested alternative:
‘default_fortify_source_default_level’
#define TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL linux_fortify_source_default_level
^
../../src/gcc/config/linux.h:221:45: note: in definition of macro
‘TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL’
#define TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL linux_fortify_source_default_level
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/gcc/config/moxie/moxie.cc:660:29: note: in expansion of macro
‘TARGET_INITIALIZER’
struct gcc_target targetm = TARGET_INITIALIZER;
^~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:2530: moxie.o] Error 1
make[1]: Leaving directory '/home/fkastl/gcc/build/gcc'
make: *** [Makefile:4650: all-gcc] Error 2
More information about the Gcc-bugs
mailing list