public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/108249] New: cc1plus segmentation fault compiling Marlin on RPI3
@ 2022-12-28 21:48 steinhelten at gmail dot com
  2022-12-28 21:53 ` [Bug middle-end/108249] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: steinhelten at gmail dot com @ 2022-12-28 21:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108249
           Summary: cc1plus segmentation fault compiling Marlin on RPI3
           Product: gcc
           Version: 8.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: steinhelten at gmail dot com
  Target Milestone: ---

Since I am trying to compile Marlin which is very popular code, I am suspecting
that the problem is not with the code but actually in the compiler.  This is my
first attempt to submit a bug report, so I've had to guess as certain things,
like which "component" to specify for the cc1plus SIGSEGV.  Apt says I'm
running the most recent gcc.  I rebooted the system between tries.  Below is
the information I have gathered.

cc1plus: internal compiler error: Segmentation fault
0x76a3210f ???
        ../sysdeps/unix/sysv/linux/arm/sigrestorer.S:64
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
arm-none-eabi-g++: internal compiler error: Segmentation fault signal
terminated program cc1plus
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
Error: Failed to parse Marlin features. See previous error messages.

I added "-save-temps -Wall -Wextra" to the build_flags, but I can't find any
".S" files that would be pertinent as far as I can tell.
Invoking platfromio with --verbose gives, among other things, this:
build_flags: -g3 -D__MARLIN_FIRMWARE__ -DNDEBUG, -fmax-errors=5 -save-temps
-Wall -Wextra;
$ find . -name '*.i*' -exec ls -lt '{}' \+
doesn't find anything useful

pi@octopi:~/Marlin $ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/8/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Raspbian 8.3.0-6+rpi1'
--with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr
--with-gcc-major-version-only --program-suffix=-8
--program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm
--disable-libquadmath --disable-libquadmath-support --enable-plugin
--with-system-zlib --with-target-system-zlib --enable-objc-gc=auto
--enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp
--with-float=hard --disable-werror --enable-checking=release
--build=arm-linux-gnueabihf --host=arm-linux-gnueabihf
--target=arm-linux-gnueabihf
Thread model: posix
gcc version 8.3.0 (Raspbian 8.3.0-6+rpi1) 
pi@octopi:~/Marlin $ uname -a
Linux octopi 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l
GNU/Linux
pi@octopi:~/Marlin $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
pi@octopi:~/Marlin $ cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 1
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 2
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 3
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

Hardware        : BCM2835
Revision        : a22082
Serial          : 00000000fc661003
Model           : Raspberry Pi 3 Model B Rev 1.2

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

* [Bug middle-end/108249] cc1plus segmentation fault compiling Marlin on RPI3
  2022-12-28 21:48 [Bug middle-end/108249] New: cc1plus segmentation fault compiling Marlin on RPI3 steinhelten at gmail dot com
@ 2022-12-28 21:53 ` pinskia at gcc dot gnu.org
  2022-12-28 21:57 ` steinhelten at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-28 21:53 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-12-28
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |WAITING

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Can you provide the full command line which is failing?

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

* [Bug middle-end/108249] cc1plus segmentation fault compiling Marlin on RPI3
  2022-12-28 21:48 [Bug middle-end/108249] New: cc1plus segmentation fault compiling Marlin on RPI3 steinhelten at gmail dot com
  2022-12-28 21:53 ` [Bug middle-end/108249] " pinskia at gcc dot gnu.org
@ 2022-12-28 21:57 ` steinhelten at gmail dot com
  2022-12-28 22:02 ` steinhelten at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: steinhelten at gmail dot com @ 2022-12-28 21:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from John Lind <steinhelten at gmail dot com> ---
I'm not sure how to get that, since I am invoking it through platformio.
What I am entering is:
/home/pi/.platformio/penv/bin/platformio run --verbose
I don't know how to get platformio to show the compiler invocation, except
I THINK that the "build_flags" is most of it.

On Wed, Dec 28, 2022 at 3:53 PM pinskia at gcc dot gnu.org <
gcc-bugzilla@gcc.gnu.org> wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108249
>
> Andrew Pinski <pinskia at gcc dot gnu.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>    Last reconfirmed|                            |2022-12-28
>      Ever confirmed|0                           |1
>              Status|UNCONFIRMED                 |WAITING
>
> --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
> Can you provide the full command line which is failing?
>
> --
> You are receiving this mail because:
> You reported the bug.

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

* [Bug middle-end/108249] cc1plus segmentation fault compiling Marlin on RPI3
  2022-12-28 21:48 [Bug middle-end/108249] New: cc1plus segmentation fault compiling Marlin on RPI3 steinhelten at gmail dot com
  2022-12-28 21:53 ` [Bug middle-end/108249] " pinskia at gcc dot gnu.org
  2022-12-28 21:57 ` steinhelten at gmail dot com
@ 2022-12-28 22:02 ` steinhelten at gmail dot com
  2023-01-07 20:58 ` steinhelten at gmail dot com
  2023-01-07 21:00 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: steinhelten at gmail dot com @ 2022-12-28 22:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from John Lind <steinhelten at gmail dot com> ---
I'm not sure how to get that, since I am invoking it through
platformio.  What I am entering is:
/home/pi/.platformio/penv/bin/platformio run --verbose
I don't know how to get platformio to show the compiler invocation,
except I THINK that the "build_flags" is most of it.


On Wed, Dec 28, 2022 at 3:53 PM pinskia at gcc dot gnu.org
<gcc-bugzilla@gcc.gnu.org> wrote:
>
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108249
>
> Andrew Pinski <pinskia at gcc dot gnu.org> changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>    Last reconfirmed|                            |2022-12-28
>      Ever confirmed|0                           |1
>              Status|UNCONFIRMED                 |WAITING
>
> --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
> Can you provide the full command line which is failing?
>
> --
> You are receiving this mail because:
> You reported the bug.

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

* [Bug middle-end/108249] cc1plus segmentation fault compiling Marlin on RPI3
  2022-12-28 21:48 [Bug middle-end/108249] New: cc1plus segmentation fault compiling Marlin on RPI3 steinhelten at gmail dot com
                   ` (2 preceding siblings ...)
  2022-12-28 22:02 ` steinhelten at gmail dot com
@ 2023-01-07 20:58 ` steinhelten at gmail dot com
  2023-01-07 21:00 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: steinhelten at gmail dot com @ 2023-01-07 20:58 UTC (permalink / raw)
  To: gcc-bugs

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

John Lind <steinhelten at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from John Lind <steinhelten at gmail dot com> ---
Apparently, it was a corrupted install.  Reinstalled and the segfault went
away.

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

* [Bug middle-end/108249] cc1plus segmentation fault compiling Marlin on RPI3
  2022-12-28 21:48 [Bug middle-end/108249] New: cc1plus segmentation fault compiling Marlin on RPI3 steinhelten at gmail dot com
                   ` (3 preceding siblings ...)
  2023-01-07 20:58 ` steinhelten at gmail dot com
@ 2023-01-07 21:00 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-01-07 21:00 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |INVALID

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
.

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

end of thread, other threads:[~2023-01-07 21:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-28 21:48 [Bug middle-end/108249] New: cc1plus segmentation fault compiling Marlin on RPI3 steinhelten at gmail dot com
2022-12-28 21:53 ` [Bug middle-end/108249] " pinskia at gcc dot gnu.org
2022-12-28 21:57 ` steinhelten at gmail dot com
2022-12-28 22:02 ` steinhelten at gmail dot com
2023-01-07 20:58 ` steinhelten at gmail dot com
2023-01-07 21:00 ` pinskia at gcc dot gnu.org

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