public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/99410] New: Nios II Error: branch offset out of range
@ 2021-03-05 14:30 giulio.benetti at benettiengineering dot com
  2021-03-05 18:47 ` [Bug target/99410] " pinskia at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: giulio.benetti at benettiengineering dot com @ 2021-03-05 14:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410

            Bug ID: 99410
           Summary: Nios II Error: branch offset out of range
           Product: gcc
           Version: 7.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: giulio.benetti at benettiengineering dot com
  Target Milestone: ---

When building git package on Buildroot gcc throws:
'''
[ 98%] Building C object
src/CMakeFiles/bellesip.dir/antlr3c/src/antlr3treeparser.c.o
/tmp/ccDtjRfo.s: Assembler messages:
/tmp/ccDtjRfo.s:210798: Error: branch offset out of range

/tmp/ccDtjRfo.s: Fatal error: branch relaxation failed
'''

To reproduce it:

# git clone git://git.busybox.net/buildroot
# wget https://git.busybox.net/buildroot-test/tree/utils/br-reproduce-build

- modify BASE_GIT=... with your buildroot path in br-reproduce-build then:
# chmod a+x br-reproduce-build
# ./br-reproduce-build 71f26fd81db8e9b19b3f18f3f3cefd9c768f094f

The only way I've found to build correctly is to turn off optimization
overriding CFLAGS with -O0.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/99410] Nios II Error: branch offset out of range
  2021-03-05 14:30 [Bug c/99410] New: Nios II Error: branch offset out of range giulio.benetti at benettiengineering dot com
@ 2021-03-05 18:47 ` pinskia at gcc dot gnu.org
  2021-03-05 19:03 ` giulio.benetti at benettiengineering dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-03-05 18:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think this is the same as
https://sourceware.org/bugzilla/show_bug.cgi?id=27243 .

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/99410] Nios II Error: branch offset out of range
  2021-03-05 14:30 [Bug c/99410] New: Nios II Error: branch offset out of range giulio.benetti at benettiengineering dot com
  2021-03-05 18:47 ` [Bug target/99410] " pinskia at gcc dot gnu.org
@ 2021-03-05 19:03 ` giulio.benetti at benettiengineering dot com
  2021-03-05 19:28 ` giulio.benetti at benettiengineering dot com
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: giulio.benetti at benettiengineering dot com @ 2021-03-05 19:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410

--- Comment #2 from Giulio Benetti <giulio.benetti at benettiengineering dot com> ---
You’re right, it’s an assembler bug, not gcc.
And yes it’s the same.

Thank you.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/99410] Nios II Error: branch offset out of range
  2021-03-05 14:30 [Bug c/99410] New: Nios II Error: branch offset out of range giulio.benetti at benettiengineering dot com
  2021-03-05 18:47 ` [Bug target/99410] " pinskia at gcc dot gnu.org
  2021-03-05 19:03 ` giulio.benetti at benettiengineering dot com
@ 2021-03-05 19:28 ` giulio.benetti at benettiengineering dot com
  2021-08-20 23:13 ` giulio.benetti at benettiengineering dot com
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: giulio.benetti at benettiengineering dot com @ 2021-03-05 19:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410

--- Comment #3 from Giulio Benetti <giulio.benetti at benettiengineering dot com> ---
Ah no, wait, that happens with older binutils too, so it doesn't look like the
same and most of all it stop to show with gcc 8.x, so it seems that gcc create
a particular Assembly that GAS doesn't like or can't handle.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/99410] Nios II Error: branch offset out of range
  2021-03-05 14:30 [Bug c/99410] New: Nios II Error: branch offset out of range giulio.benetti at benettiengineering dot com
                   ` (2 preceding siblings ...)
  2021-03-05 19:28 ` giulio.benetti at benettiengineering dot com
@ 2021-08-20 23:13 ` giulio.benetti at benettiengineering dot com
  2021-08-20 23:22 ` giulio.benetti at benettiengineering dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: giulio.benetti at benettiengineering dot com @ 2021-08-20 23:13 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410

--- Comment #4 from Giulio Benetti <giulio.benetti at benettiengineering dot com> ---
It's not git package but belle-sip package that fails to build.
I'm going to add .i and .s file soon.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/99410] Nios II Error: branch offset out of range
  2021-03-05 14:30 [Bug c/99410] New: Nios II Error: branch offset out of range giulio.benetti at benettiengineering dot com
                   ` (3 preceding siblings ...)
  2021-08-20 23:13 ` giulio.benetti at benettiengineering dot com
@ 2021-08-20 23:22 ` giulio.benetti at benettiengineering dot com
  2021-08-20 23:28 ` giulio.benetti at benettiengineering dot com
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: giulio.benetti at benettiengineering dot com @ 2021-08-20 23:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410

--- Comment #5 from Giulio Benetti <giulio.benetti at benettiengineering dot com> ---
Disabling parallel build it turns out that the file where it hangs is:
src/grammars/belle_sip_messageParser.c

So I'm going to add .i and .s attachments for it.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/99410] Nios II Error: branch offset out of range
  2021-03-05 14:30 [Bug c/99410] New: Nios II Error: branch offset out of range giulio.benetti at benettiengineering dot com
                   ` (4 preceding siblings ...)
  2021-08-20 23:22 ` giulio.benetti at benettiengineering dot com
@ 2021-08-20 23:28 ` giulio.benetti at benettiengineering dot com
  2021-08-20 23:29 ` giulio.benetti at benettiengineering dot com
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: giulio.benetti at benettiengineering dot com @ 2021-08-20 23:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410

--- Comment #6 from Giulio Benetti <giulio.benetti at benettiengineering dot com> ---
Created attachment 51338
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51338&action=edit
Pre-processed belle_sip_messageParser.c(belle_sip_messageParser.i)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/99410] Nios II Error: branch offset out of range
  2021-03-05 14:30 [Bug c/99410] New: Nios II Error: branch offset out of range giulio.benetti at benettiengineering dot com
                   ` (5 preceding siblings ...)
  2021-08-20 23:28 ` giulio.benetti at benettiengineering dot com
@ 2021-08-20 23:29 ` giulio.benetti at benettiengineering dot com
  2021-08-21 21:12 ` giulio.benetti at benettiengineering dot com
  2022-07-29 16:17 ` giulio.benetti at benettiengineering dot com
  8 siblings, 0 replies; 10+ messages in thread
From: giulio.benetti at benettiengineering dot com @ 2021-08-20 23:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410

--- Comment #7 from Giulio Benetti <giulio.benetti at benettiengineering dot com> ---
Created attachment 51339
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51339&action=edit
Pre-processed belle_sip_messageParser.c(belle_sip_messageParser.s)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/99410] Nios II Error: branch offset out of range
  2021-03-05 14:30 [Bug c/99410] New: Nios II Error: branch offset out of range giulio.benetti at benettiengineering dot com
                   ` (6 preceding siblings ...)
  2021-08-20 23:29 ` giulio.benetti at benettiengineering dot com
@ 2021-08-21 21:12 ` giulio.benetti at benettiengineering dot com
  2022-07-29 16:17 ` giulio.benetti at benettiengineering dot com
  8 siblings, 0 replies; 10+ messages in thread
From: giulio.benetti at benettiengineering dot com @ 2021-08-21 21:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410

--- Comment #8 from Giulio Benetti <giulio.benetti at benettiengineering dot com> ---
This bug still shows up on gcc 9.3.0

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/99410] Nios II Error: branch offset out of range
  2021-03-05 14:30 [Bug c/99410] New: Nios II Error: branch offset out of range giulio.benetti at benettiengineering dot com
                   ` (7 preceding siblings ...)
  2021-08-21 21:12 ` giulio.benetti at benettiengineering dot com
@ 2022-07-29 16:17 ` giulio.benetti at benettiengineering dot com
  8 siblings, 0 replies; 10+ messages in thread
From: giulio.benetti at benettiengineering dot com @ 2022-07-29 16:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410

--- Comment #9 from Giulio Benetti <giulio.benetti at benettiengineering dot com> ---
This bug shows up with gcc 11.3.0 and 12.1.0

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-07-29 16:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-05 14:30 [Bug c/99410] New: Nios II Error: branch offset out of range giulio.benetti at benettiengineering dot com
2021-03-05 18:47 ` [Bug target/99410] " pinskia at gcc dot gnu.org
2021-03-05 19:03 ` giulio.benetti at benettiengineering dot com
2021-03-05 19:28 ` giulio.benetti at benettiengineering dot com
2021-08-20 23:13 ` giulio.benetti at benettiengineering dot com
2021-08-20 23:22 ` giulio.benetti at benettiengineering dot com
2021-08-20 23:28 ` giulio.benetti at benettiengineering dot com
2021-08-20 23:29 ` giulio.benetti at benettiengineering dot com
2021-08-21 21:12 ` giulio.benetti at benettiengineering dot com
2022-07-29 16:17 ` giulio.benetti at benettiengineering dot com

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).