public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/112762] New: Cannot build crosscompilers for some uclinux targets
@ 2023-11-29 12:33 fkastl at suse dot cz
2023-11-29 17:46 ` [Bug target/112762] [14 Regression] Cannot build crosscompilers for some uclinux targets since r14-5791-g24592abd68e6ef pinskia at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: fkastl at suse dot cz @ 2023-11-29 12:33 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/112762] [14 Regression] Cannot build crosscompilers for some uclinux targets since r14-5791-g24592abd68e6ef
2023-11-29 12:33 [Bug target/112762] New: Cannot build crosscompilers for some uclinux targets fkastl at suse dot cz
@ 2023-11-29 17:46 ` pinskia at gcc dot gnu.org
2023-11-29 17:54 ` pinskia at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-29 17:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112762
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
Summary|Cannot build crosscompilers |[14 Regression] Cannot
|for some uclinux targets |build crosscompilers for
| |some uclinux targets since
| |r14-5791-g24592abd68e6ef
Target Milestone|--- |14.0
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Almost definitely caused by r14-5791-g24592abd68e6ef .
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/112762] [14 Regression] Cannot build crosscompilers for some uclinux targets since r14-5791-g24592abd68e6ef
2023-11-29 12:33 [Bug target/112762] New: Cannot build crosscompilers for some uclinux targets fkastl at suse dot cz
2023-11-29 17:46 ` [Bug target/112762] [14 Regression] Cannot build crosscompilers for some uclinux targets since r14-5791-g24592abd68e6ef pinskia at gcc dot gnu.org
@ 2023-11-29 17:54 ` pinskia at gcc dot gnu.org
2023-11-29 17:58 ` mpolacek at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-29 17:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112762
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2023-11-29
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
It looks like config.gcc is partly a mess when it comes to *-uclinux targets
too.
Is bfin*-uclinux* or bfin*-linux-uclibc* canonical form here? The later will
work while the former is now broken ...
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/112762] [14 Regression] Cannot build crosscompilers for some uclinux targets since r14-5791-g24592abd68e6ef
2023-11-29 12:33 [Bug target/112762] New: Cannot build crosscompilers for some uclinux targets fkastl at suse dot cz
2023-11-29 17:46 ` [Bug target/112762] [14 Regression] Cannot build crosscompilers for some uclinux targets since r14-5791-g24592abd68e6ef pinskia at gcc dot gnu.org
2023-11-29 17:54 ` pinskia at gcc dot gnu.org
@ 2023-11-29 17:58 ` mpolacek at gcc dot gnu.org
2023-11-29 18:03 ` pinskia at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2023-11-29 17:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112762
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I'm not really sure what the problem is but I wonder if this would help:
--- a/gcc/config/linux.h
+++ b/gcc/config/linux.h
@@ -215,7 +215,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively.
If not, see
# undef TARGET_LIBM_FUNCTION_MAX_ERROR
# define TARGET_LIBM_FUNCTION_MAX_ERROR linux_libm_function_max_error
-#endif
-
#undef TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL
#define TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL linux_fortify_source_default_level
+
+#endif
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/112762] [14 Regression] Cannot build crosscompilers for some uclinux targets since r14-5791-g24592abd68e6ef
2023-11-29 12:33 [Bug target/112762] New: Cannot build crosscompilers for some uclinux targets fkastl at suse dot cz
` (2 preceding siblings ...)
2023-11-29 17:58 ` mpolacek at gcc dot gnu.org
@ 2023-11-29 18:03 ` pinskia at gcc dot gnu.org
2023-11-29 19:00 ` joseph at codesourcery dot com
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-29 18:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112762
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Part of the problem is *-uclinux is not matched in config.gcc where
linux-protos.h/linux.o gets added:
```
*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* |
*-*-kopensolaris*-gnu | *-*-uclinuxfdpiceabi)
...
# Linux C libraries selection switch: glibc / uclibc / bionic.
# uclibc and bionic aren't usable for GNU/Hurd and neither for GNU/k*BSD.
case $target in
*linux*)
tm_p_file="${tm_p_file} linux-protos.h"
tmake_file="${tmake_file} t-linux"
extra_objs="${extra_objs} linux.o"
extra_options="${extra_options} linux.opt"
;;
esac
```
As I mentioned there seems to be some misunderstanding what is the canonical
form for the triplet, or is both canonical (and different?) and just need fix
the usage for when uclinux is used and have them set tm_p_file/extra_objs
correctly, if they use linux.h .
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/112762] [14 Regression] Cannot build crosscompilers for some uclinux targets since r14-5791-g24592abd68e6ef
2023-11-29 12:33 [Bug target/112762] New: Cannot build crosscompilers for some uclinux targets fkastl at suse dot cz
` (3 preceding siblings ...)
2023-11-29 18:03 ` pinskia at gcc dot gnu.org
@ 2023-11-29 19:00 ` joseph at codesourcery dot com
2023-12-06 13:34 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: joseph at codesourcery dot com @ 2023-11-29 19:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112762
--- Comment #5 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
The *-uclinux* targets are generally for systems without an MMU and a
corresponding ABI (FLAT, FDPIC, etc.), whereas *-linux-uclibc* targets are
for systems with an MMU and an associated conventional ELF ABI.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/112762] [14 Regression] Cannot build crosscompilers for some uclinux targets since r14-5791-g24592abd68e6ef
2023-11-29 12:33 [Bug target/112762] New: Cannot build crosscompilers for some uclinux targets fkastl at suse dot cz
` (4 preceding siblings ...)
2023-11-29 19:00 ` joseph at codesourcery dot com
@ 2023-12-06 13:34 ` cvs-commit at gcc dot gnu.org
2023-12-06 13:37 ` mpolacek at gcc dot gnu.org
2023-12-06 13:37 ` mpolacek at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-12-06 13:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112762
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Marek Polacek <mpolacek@gcc.gnu.org>:
https://gcc.gnu.org/g:e0eca4a55bd14d506708fb0396b31e7f7383160c
commit r14-6220-ge0eca4a55bd14d506708fb0396b31e7f7383160c
Author: Marek Polacek <polacek@redhat.com>
Date: Tue Dec 5 13:39:49 2023 -0500
build: unbreak bootstrap on uclinux targets [PR112762]
Currently, cross-compiling with --target=c6x-uclinux (and several other)
fails due to:
../../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
In the PR Andrew mentions that another fix would be in config.gcc,
but really, here I meant to use the target hook for glibc only, not
uclibc. This trivial patch fixes the build problem. It means that
-fhardened with uclibc will use -D_FORTIFY_SOURCE=2 and not =3.
PR target/112762
gcc/ChangeLog:
* config/linux.h: Redefine TARGET_FORTIFY_SOURCE_DEFAULT_LEVEL for
glibc only.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/112762] [14 Regression] Cannot build crosscompilers for some uclinux targets since r14-5791-g24592abd68e6ef
2023-11-29 12:33 [Bug target/112762] New: Cannot build crosscompilers for some uclinux targets fkastl at suse dot cz
` (5 preceding siblings ...)
2023-12-06 13:34 ` cvs-commit at gcc dot gnu.org
@ 2023-12-06 13:37 ` mpolacek at gcc dot gnu.org
2023-12-06 13:37 ` mpolacek at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2023-12-06 13:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112762
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/112762] [14 Regression] Cannot build crosscompilers for some uclinux targets since r14-5791-g24592abd68e6ef
2023-11-29 12:33 [Bug target/112762] New: Cannot build crosscompilers for some uclinux targets fkastl at suse dot cz
` (6 preceding siblings ...)
2023-12-06 13:37 ` mpolacek at gcc dot gnu.org
@ 2023-12-06 13:37 ` mpolacek at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2023-12-06 13:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112762
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Should be fixed, sorry.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-12-06 13:37 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-29 12:33 [Bug target/112762] New: Cannot build crosscompilers for some uclinux targets fkastl at suse dot cz
2023-11-29 17:46 ` [Bug target/112762] [14 Regression] Cannot build crosscompilers for some uclinux targets since r14-5791-g24592abd68e6ef pinskia at gcc dot gnu.org
2023-11-29 17:54 ` pinskia at gcc dot gnu.org
2023-11-29 17:58 ` mpolacek at gcc dot gnu.org
2023-11-29 18:03 ` pinskia at gcc dot gnu.org
2023-11-29 19:00 ` joseph at codesourcery dot com
2023-12-06 13:34 ` cvs-commit at gcc dot gnu.org
2023-12-06 13:37 ` mpolacek at gcc dot gnu.org
2023-12-06 13:37 ` mpolacek at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).