[Bug bootstrap/120556] GCC trunk 2a8af97e3528f fail to build on Debian/Trixie/x86-64

2025-06-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120556

Jonathan Wakely  changed:

   What|Removed |Added

 Resolution|--- |INVALID
 Status|WAITING |RESOLVED

--- Comment #3 from Jonathan Wakely  ---
It bootstraps fine for me with this configuration:

~/src/gcc/gcc/configure --disable-multilib --with-gcc-major-version-only
--program-suffix=-trunk --enable-cet --enable-checking=release
--enable-host-shared --enable-languages=c,c++,jit,lto --enable-plugins
--enable-libgdiagnostics

Closing as invalid, this is just your local changes to gcc.

[Bug bootstrap/120556] GCC trunk 2a8af97e3528f fail to build on Debian/Trixie/x86-64

2025-06-05 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120556

Jonathan Wakely  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2025-06-05

--- Comment #2 from Jonathan Wakely  ---
Your build fails with:

In file included from /usr/src/Lang/gcc/gcc/jit/jit-playback.h:31,
 from /usr/src/Lang/gcc/gcc/jit/dummy-frontend.cc:24:
/usr/src/Lang/gcc/gcc/jit/jit-recording.h: In member function ‘const
std::string
gcc::jit::recording::location::get_filename() const’:
/usr/src/Lang/gcc/gcc/jit/jit-recording.h:586:36: error: no matching function
for call to
‘std::__cxx11::basic_string::basic_string(gcc::jit::recording::string*
const&)’
  586 |   return std::string(m_filename);
  |^


That code is not on trunk.

$ git grep -F 'return std::string(m_filename);' gcc/jit
$

So it looks like you've modified GCC, and this is an error in your changes.

[Bug bootstrap/120556] GCC trunk 2a8af97e3528f fail to build on Debian/Trixie/x86-64

2025-06-05 Thread basile at starynkevitch dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120556

--- Comment #1 from Basile Starynkevitch  ---
this bug is still observable with GCC trunk 1d90f8c7933eb

[Bug bootstrap/120556] New: GCC trunk 2a8af97e3528f fail to build on Debian/Trixie/x86-64

2025-06-05 Thread basile at starynkevitch dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120556

Bug ID: 120556
   Summary: GCC trunk  2a8af97e3528f fail to build on
Debian/Trixie/x86-64
   Product: gcc
   Version: 16.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: bootstrap
  Assignee: unassigned at gcc dot gnu.org
  Reporter: basile at starynkevitch dot net
  Target Milestone: ---

Details on https://gcc.gnu.org/pipermail/gcc-bugs/2025-June/916978.html


--
Basile STARYNKEVITCH   
8 rue de la Faïencerie
92340 Bourg-la-Reine,  France

GCC trunk 2a8af97e3528f fail to build on Debian/Trixie/x86-64

2025-06-05 Thread Basile Starynkevitch
Hello all,

On Linux/Debian/Trixie/x86-64

/usr/src/Lang/gcc contains the GCC trunk source tree (commit 2a8af97e3528f)

/usr/src/Lang/_GccTrunk is my build tree with configuration

usr/src/Lang/gcc/configure --enable-shared --enable-threads=posix
--with-default-libstdcxx-abi=new --enable-libstdcxx-backtrace
--disable-multilib --with-gcc-major-version-only --program-suffix=-trunk
--enable-cet --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu --enable-host-shared
--enable-languages=c,c++,jit,lto -with-tune=native --enable-plugins
--enable-libgdiagnostics CFLAGS='-O2 -g' CXXFLAGS='-O2 -g'


the build fails reproductibly at 

make[3]: Entering directory '/usr/src/Lang/_GccTrunk/gcc'
if [ -f ../stage_final ] \
   && cmp -s ../stage_current ../stage_final; then \
   cp ../prev-gcc/cc1plus-checksum.cc cc1plus-checksum.cc; \
else \
  build/genchecksum cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/class.o
cp/constexpr.o cp/constraint.o cp/coroutines.o cp/cp-gimplify.o cp/cp-objcp-
common.o cp/cp-ubsan.o cp/cvt.o cp/contracts.o cp/cxx-pretty-print.o cp/decl.o
cp/decl2.o cp/dump.o cp/error.o cp/except.o cp/expr.o cp/friend.o cp/init.o
cp/lambda.o cp/lex.o cp/logic.o cp/mangle.o cp/mapper-client.o cp/mapper-
resolver.o cp/method.o cp/module.o cp/name-lookup.o cp/optimize.o cp/parser.o
cp/pt.o cp/ptree.o cp/rtti.o cp/search.o cp/semantics.o cp/tree.o cp/typeck.o
cp/typeck2.o cp/vtable-class-hierarchy.o attribs.o c-family/c-common.o c-
family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-
gimplify.o c-family/c-indentation.o c-family/c-lex.o c-family/c-omp.o c-
family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-
family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-
ubsan.o c-family/known-headers.o c-family/c-attribs.o c-family/c-warn.o c-
family/c-spellcheck.o c-family/c-type-mismatch.o i386-c.o glibc-c.o simple-
diagnostic-path.o lazy-diagnostic-path.o libbackend.a main.o libcommon-target.a
libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a
../libcody/libcody.a libcommon.a ../libcpp/libcpp.a ../libiberty/pic/libiberty.a
../libdecnumber/libdecnumber.a ../libbacktrace/.libs/libbacktrace.a  \
 checksum-options > cc1plus-checksum.cc.tmp && \
  /usr/src/Lang/gcc/gcc/../move-if-change cc1plus-checksum.cc.tmp cc1plus-
checksum.cc; \
fi
make[3]: Leaving directory '/usr/src/Lang/_GccTrunk/gcc'
Checking multilib configuration for libgcc...
make[3]: Entering directory '/usr/src/Lang/_GccTrunk/x86_64-linux-gnu/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
# Early copyback; see "all" above for the rationale.  The
# early copy is necessary so that the gcc -B options find
# the right startup files when linking shared libgcc.
/bin/bash /usr/src/Lang/gcc/libgcc/../mkinstalldirs ../.././gcc
parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o crtprec32.o
crtprec64.o crtprec80.o crtfastmath.o"; \
for file in $parts; do  \
  rm -f ../.././gcc/$file;  \
  /usr/bin/install -c -m 644 $file ../.././gcc/;\
  case $file in \
*.a)\
  x86_64-linux-gnu-ranlib --plugin /usr/libexec/gcc/x86_64-linux-
gnu/14/liblto_plugin.so ../.././gcc/$file ;;\
  esac; \
done
# @multilib_flags@ is still needed because this may use
# /usr/src/Lang/_GccTrunk/./gcc/xgcc -B/usr/src/Lang/_GccTrunk/./gcc/ -
B/usr/local/x86_64-linux-gnu/bin/ -B/usr/local/x86_64-linux-gnu/lib/ -isystem
/usr/local/x86_64-linux-gnu/include -isystem /usr/local/x86_64-linux-gnu/sys-
include   -fno-checking and -O2  -O2 -g -DIN_GCC   -W -Wall -Wno-error=narrowing
-Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -fpic -mlong-double-80 -
DUSE_ELF_SYMVER -fcf-protection -mshstk -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-
stack-protector  directly.
# @multilib_dir@ is not really necessary, but sometimes it has
# more uses than just a directory name.
/bin/bash /usr/src/Lang/gcc/libgcc/../mkinstalldirs .
/usr/src/Lang/_GccTrunk/./gcc/xgcc -B/usr/src/Lang/_GccTrunk/./gcc/ -
B/usr/local/x86_64-linux-gnu/bin/ -B/usr/local/x86_64-linux-gnu/lib/ -isystem
/usr/local/x86_64-linux-gnu/include -isystem /usr/local/x86_64-linux-gnu/sys-
include   -fno-checking -O2  -O2 -g -DIN_GCC   -W -Wall -Wno-error=narrowing -
Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -fpic -mlong-double-80 -
DUSE_ELF_SYMVER -fcf-protection -mshstk -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-
stack-protector  -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--
version-script=libgcc.map  -o ./libgcc_s.so.1.tmp -O2 -g -B./ _muldi3_s.o
_negdi2_s.o _lshrdi3_s.o _ashldi