public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/115567] New: Internal Compiler Error: Segmentation Fault during build
@ 2024-06-20 21:00 jjleksmi at gmail dot com
  2024-06-20 21:22 ` [Bug c++/115567] " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jjleksmi at gmail dot com @ 2024-06-20 21:00 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 115567
           Summary: Internal Compiler Error: Segmentation Fault during
                    build
           Product: gcc
           Version: 12.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jjleksmi at gmail dot com
  Target Milestone: ---

I am facing issues while building packages using cmake and make commands. When
I run the make command it leads to an internal compiler error segmentation
fault. I also get segmentation fault (core dumped) certain times when trying to
run programs.

This is the error I am getting while trying to make a package:
```
cmakefrom /home/jjayalekshmi/gz-rendering-cpy/src/ArrowVisual.cc:18:
/usr/include/c++/11/tr1/exp_integral.tcc: In function ‘_Tp
std::__detail::__expint_En_series(unsigned int, _Tp)’:
/usr/include/c++/11/tr1/exp_integral.tcc:180:20: internal compiler error:
Segmentation fault
  180 |           if (std::abs(__del) < __eps * std::abs(__ans))
      |                    ^~~
0x70dff104251f ???
        ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x70dff1029d8f __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58
0x70dff1029e3f __libc_start_main_impl
        ../csu/libc-start.c:392
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.
make[2]: *** [src/CMakeFiles/gz-rendering8.dir/build.make:76:
src/CMakeFiles/gz-rendering8.dir/ArrowVisual.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1626: src/CMakeFiles/gz-rendering8.dir/all]
Error 2
make: *** [Makefile:166: all] Error 2
```
And when I am trying to build
https://github.com/UniversalRobots/Universal_Robots_ROS2_Driver?tab=readme-ov-file
I am facing the same issue:
```
/home/jjayalekshmi/workspaces/ros_ur_driver/src/ros2_control/hardware_interface/test/mock_components/test_generic_system.cpp:1639:1:
internal compiler error: Segmentation fault
1639 | }
      | ^
0x7595d264251f ???
        ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
c++: internal compiler error: Segmentation fault signal terminated program
cc1plus
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.
gmake[2]: *** [CMakeFiles/test_generic_system.dir/build.make:76:
CMakeFiles/test_generic_system.dir/test/mock_components/test_generic_system.cpp.o]
Error 4
gmake[1]: *** [CMakeFiles/Makefile2:437:
CMakeFiles/test_generic_system.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed   <<< hardware_interface [23.2s, exited with code 2]

Summary: 13 packages finished [24.7s]
  1 package failed: hardware_interface
  1 package had stderr output: hardware_interface
  30 packages not processed
```

This is my gcc version:
```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/12/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
12.3.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-12/README.Bugs
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr
--with-gcc-major-version-only --program-suffix=-12
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new
--enable-gnu-unique-object --disable-vtable-verify --enable-plugin
--enable-default-pie --with-system-zlib --enable-libphobos-checking=release
--with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch
--disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
--enable-offload-targets=nvptx-none=/build/gcc-12-ALHxjy/gcc-12-12.3.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-12-ALHxjy/gcc-12-12.3.0/debian/tmp-gcn/usr
--enable-offload-defaulted --without-cuda-driver --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.3.0 (Ubuntu 12.3.0-1ubuntu1~22.04)
```

How can I resolve this compiler issue?

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

* [Bug c++/115567] Internal Compiler Error: Segmentation Fault during build
  2024-06-20 21:00 [Bug c++/115567] New: Internal Compiler Error: Segmentation Fault during build jjleksmi at gmail dot com
@ 2024-06-20 21:22 ` pinskia at gcc dot gnu.org
  2024-06-21  3:38 ` xry111 at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-06-20 21:22 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2024-06-20

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.


First see that file since you found the bug with Ubuntu's GCC and not the
upstream GCC.

Second please read https://gcc.gnu.org/bugs/ . And provide the preprocessed
source as requested.

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

* [Bug c++/115567] Internal Compiler Error: Segmentation Fault during build
  2024-06-20 21:00 [Bug c++/115567] New: Internal Compiler Error: Segmentation Fault during build jjleksmi at gmail dot com
  2024-06-20 21:22 ` [Bug c++/115567] " pinskia at gcc dot gnu.org
@ 2024-06-21  3:38 ` xry111 at gcc dot gnu.org
  2024-06-21 18:57 ` jjleksmi at gmail dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: xry111 at gcc dot gnu.org @ 2024-06-21  3:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
*** Bug 115569 has been marked as a duplicate of this bug. ***

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

* [Bug c++/115567] Internal Compiler Error: Segmentation Fault during build
  2024-06-20 21:00 [Bug c++/115567] New: Internal Compiler Error: Segmentation Fault during build jjleksmi at gmail dot com
  2024-06-20 21:22 ` [Bug c++/115567] " pinskia at gcc dot gnu.org
  2024-06-21  3:38 ` xry111 at gcc dot gnu.org
@ 2024-06-21 18:57 ` jjleksmi at gmail dot com
  2024-06-21 19:13 ` jjleksmi at gmail dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jjleksmi at gmail dot com @ 2024-06-21 18:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jayalekshmi Jayakumar <jjleksmi at gmail dot com> ---
I have downgraded to gcc 11.4.0

gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
11.4.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr
--with-gcc-major-version-only --program-suffix=-11
--program-prefix=x86_64-linux-gnu- --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-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib
--enable-libphobos-checking=release --with-target-system-zlib=auto
--enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet
--with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32
--enable-multilib --with-tune=generic
--enable-offload-targets=nvptx-none=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-gcn/usr
--without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
--with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)

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

* [Bug c++/115567] Internal Compiler Error: Segmentation Fault during build
  2024-06-20 21:00 [Bug c++/115567] New: Internal Compiler Error: Segmentation Fault during build jjleksmi at gmail dot com
                   ` (2 preceding siblings ...)
  2024-06-21 18:57 ` jjleksmi at gmail dot com
@ 2024-06-21 19:13 ` jjleksmi at gmail dot com
  2024-06-22 18:49 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jjleksmi at gmail dot com @ 2024-06-21 19:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jayalekshmi Jayakumar <jjleksmi at gmail dot com> ---
Created attachment 58482
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58482&action=edit
Preprocessed file

There are multiple preprocessed files in the package this is one of them.

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

* [Bug c++/115567] Internal Compiler Error: Segmentation Fault during build
  2024-06-20 21:00 [Bug c++/115567] New: Internal Compiler Error: Segmentation Fault during build jjleksmi at gmail dot com
                   ` (3 preceding siblings ...)
  2024-06-21 19:13 ` jjleksmi at gmail dot com
@ 2024-06-22 18:49 ` pinskia at gcc dot gnu.org
  2024-06-24 13:48 ` jjleksmi at gmail dot com
  2024-06-24 13:48 ` jjleksmi at gmail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-06-22 18:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Works for me on the trunk.

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

* [Bug c++/115567] Internal Compiler Error: Segmentation Fault during build
  2024-06-20 21:00 [Bug c++/115567] New: Internal Compiler Error: Segmentation Fault during build jjleksmi at gmail dot com
                   ` (4 preceding siblings ...)
  2024-06-22 18:49 ` pinskia at gcc dot gnu.org
@ 2024-06-24 13:48 ` jjleksmi at gmail dot com
  2024-06-24 13:48 ` jjleksmi at gmail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: jjleksmi at gmail dot com @ 2024-06-24 13:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jayalekshmi Jayakumar <jjleksmi at gmail dot com> ---
Could you please tell me how I can get it to work without this error

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

* [Bug c++/115567] Internal Compiler Error: Segmentation Fault during build
  2024-06-20 21:00 [Bug c++/115567] New: Internal Compiler Error: Segmentation Fault during build jjleksmi at gmail dot com
                   ` (5 preceding siblings ...)
  2024-06-24 13:48 ` jjleksmi at gmail dot com
@ 2024-06-24 13:48 ` jjleksmi at gmail dot com
  6 siblings, 0 replies; 8+ messages in thread
From: jjleksmi at gmail dot com @ 2024-06-24 13:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Jayalekshmi Jayakumar <jjleksmi at gmail dot com> ---
Could you please tell me how I can get it to work without this error

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

end of thread, other threads:[~2024-06-24 13:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-20 21:00 [Bug c++/115567] New: Internal Compiler Error: Segmentation Fault during build jjleksmi at gmail dot com
2024-06-20 21:22 ` [Bug c++/115567] " pinskia at gcc dot gnu.org
2024-06-21  3:38 ` xry111 at gcc dot gnu.org
2024-06-21 18:57 ` jjleksmi at gmail dot com
2024-06-21 19:13 ` jjleksmi at gmail dot com
2024-06-22 18:49 ` pinskia at gcc dot gnu.org
2024-06-24 13:48 ` jjleksmi at gmail dot com
2024-06-24 13:48 ` jjleksmi at gmail 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).