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

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