> On 15/01/2021 17:16, Jakub Jelinek via Gcc-patches wrote:
> > On Sun, Nov 15, 2020 at 11:41:24PM +0100, Mark Wielaard wrote:
> >> From: Mark Wielaard<m...@klomp.org>
> >> Date: Tue, 29 Sep 2020 15:52:44 +0200
> >> Subject: [PATCH] Default to DWARF5
> >>
> >> gcc/ChangeLog:
> >>
> >>    * common.opt (gdwarf-): Init(5).
> >>    * doc/invoke.texi (-gdwarf): Document default to 5.
> > Ok for trunk.
> 
> I noticed a build error with aarch64-rtems recently:
> [...]
> -fdata-sections -frandom-seed=cxx11-ios_failure.lo -g -O2 -g0 -c 
> cxx11-ios_failure-lt.s -o cxx11-ios_failure.o
> cxx11-ios_failure-lt.s: Assembler messages:
> cxx11-ios_failure-lt.s:38443: Error: file number less than one
> 
> This is the related code:
> 
> .Ldebug_line0:
>      .file 0 
> "/tmp/sh/b-gcc-git-aarch64-rtems6/aarch64-rtems6/libstdc++-
> v3/src/c++11" 
> "/home/EB/sebastian_h/src/gcc/libstdc++-v3/src/c++11/cxx11-
> ios_failure.cc"
>      .section    .debug_str,"MS",@progbits,1
> 
> I am not sure if this is related to the change

It was, sorry. I thought I had tested with both old and new binutils,
but apparently I messed up and didn't properly test with new binutils.

This is tracked as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98708
and Jakub pushed a workaround:
https://gcc.gnu.org/pipermail/gcc-patches/2021-January/563744.html

Cheers,

Mark

Reply via email to