public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/101952] New: SH4 ICE: Error: unaligned opcodes detected in executable segment
@ 2021-08-17 17:43 giulio.benetti at benettiengineering dot com
  2021-08-19 20:41 ` [Bug target/101952] " thomas.petazzoni@free-electrons.com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: giulio.benetti at benettiengineering dot com @ 2021-08-17 17:43 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101952
           Summary: SH4 ICE: Error: unaligned opcodes detected in
                    executable segment
           Product: gcc
           Version: 11.1.0
            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 package bullet on buildroot we get this error:
'''
[ 40%] Building CXX object
src/BulletDynamics/CMakeFiles/BulletDynamics.dir/MLCPSolvers/btLemkeAlgorithm.o
/tmp/ccvpRXwT.s: Assembler messages:
/tmp/ccvpRXwT.s: Error: unaligned opcodes detected in executable segment
make[3]: *** [src/BulletDynamics/CMakeFiles/BulletDynamics.dir/build.make:560:
src/BulletDynamics/CMakeFiles/BulletDynamics.dir/MLCPSolvers/btDantzigLCP.o]
Error 1
make[3]: *** Waiting for unfinished jobs....
[ 41%] Linking CXX shared library libConvexDecomposition.so
'''

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 32bfaf0aae57ed18c18e82a72a958af9b3e1b241
'''

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

* [Bug target/101952] SH4 ICE: Error: unaligned opcodes detected in executable segment
  2021-08-17 17:43 [Bug c/101952] New: SH4 ICE: Error: unaligned opcodes detected in executable segment giulio.benetti at benettiengineering dot com
@ 2021-08-19 20:41 ` thomas.petazzoni@free-electrons.com
  2021-08-20 17:59 ` giulio.benetti at benettiengineering dot com
  2021-08-20 18:00 ` giulio.benetti at benettiengineering dot com
  2 siblings, 0 replies; 4+ messages in thread
From: thomas.petazzoni@free-electrons.com @ 2021-08-19 20:41 UTC (permalink / raw)
  To: gcc-bugs

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

Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thomas.petazzoni@free-elect
                   |                            |rons.com

--- Comment #1 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> ---
Giulio: to help gcc developers, you should add a pre-processed version of the
file that exhibits the issue. It is a lot easier for them than running the
whole Buildroot build.

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

* [Bug target/101952] SH4 ICE: Error: unaligned opcodes detected in executable segment
  2021-08-17 17:43 [Bug c/101952] New: SH4 ICE: Error: unaligned opcodes detected in executable segment giulio.benetti at benettiengineering dot com
  2021-08-19 20:41 ` [Bug target/101952] " thomas.petazzoni@free-electrons.com
@ 2021-08-20 17:59 ` giulio.benetti at benettiengineering dot com
  2021-08-20 18:00 ` giulio.benetti at benettiengineering dot com
  2 siblings, 0 replies; 4+ messages in thread
From: giulio.benetti at benettiengineering dot com @ 2021-08-20 17:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Giulio Benetti <giulio.benetti at benettiengineering dot com> ---
Created attachment 51334
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51334&action=edit
Pre-processed btDantzigLCP.cpp(btDantzigLCP.ii)

As suggested by Thomas here is pre-processed btDantzigLCP.cpp(btDantzigLCP.ii)
to help you fix the bug.
btDantzigLCP.S follows.
Hope this is enough, otherwise ask me and I'll provide what you need.

Thank you

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

* [Bug target/101952] SH4 ICE: Error: unaligned opcodes detected in executable segment
  2021-08-17 17:43 [Bug c/101952] New: SH4 ICE: Error: unaligned opcodes detected in executable segment giulio.benetti at benettiengineering dot com
  2021-08-19 20:41 ` [Bug target/101952] " thomas.petazzoni@free-electrons.com
  2021-08-20 17:59 ` giulio.benetti at benettiengineering dot com
@ 2021-08-20 18:00 ` giulio.benetti at benettiengineering dot com
  2 siblings, 0 replies; 4+ messages in thread
From: giulio.benetti at benettiengineering dot com @ 2021-08-20 18:00 UTC (permalink / raw)
  To: gcc-bugs

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

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

Here is the assembler file too.

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

end of thread, other threads:[~2021-08-20 18:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-17 17:43 [Bug c/101952] New: SH4 ICE: Error: unaligned opcodes detected in executable segment giulio.benetti at benettiengineering dot com
2021-08-19 20:41 ` [Bug target/101952] " thomas.petazzoni@free-electrons.com
2021-08-20 17:59 ` giulio.benetti at benettiengineering dot com
2021-08-20 18:00 ` 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).