public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/102278] New: Fails to build on powerpc-unknown-freebsd since 20210801 snapshot
@ 2021-09-10 14:56 pkubaj at anongoth dot pl
  2021-09-10 19:43 ` [Bug bootstrap/102278] [12 regression] Bootstrap fails with LLVM 11.0.1 on powerpc-unknown-freebsd: libgcov-interface.c:201:1: internal compiler error pkubaj at anongoth dot pl
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: pkubaj at anongoth dot pl @ 2021-09-10 14:56 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102278
           Summary: Fails to build on powerpc-unknown-freebsd since
                    20210801 snapshot
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pkubaj at anongoth dot pl
  Target Milestone: ---

20210725 was the last snapshot that built.
20210801 fails with:
/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210801/gcc/lra-constraints.c:
In function 'bool curr_insn_transform(bool)':                                  
                                                                           
/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210801/gcc/lra-constraints.c:4367:21:
error: suggest parentheses around assignment used as truth value
[-Werror=parentheses]                                                          
    4367 |                  (c = *constraint) && c != ',' && c != '#';     


After that, build fails with:
during GIMPLE pass: ldist
/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210808/libgcc/libgcov-interface.c:
In function '__gcov_execl':
/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210808/libgcc/libgcov-interface.c:201:1:
internal compiler error: Segmentation fault
  201 | __gcov_execl (const char *path, char *arg, ...)
      | ^~~~~~~~~~~~

I build on FreeBSD 13.0-RELEASE using LLVM 11.0.1.

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

* [Bug bootstrap/102278] [12 regression] Bootstrap fails with LLVM 11.0.1 on powerpc-unknown-freebsd: libgcov-interface.c:201:1: internal compiler error
  2021-09-10 14:56 [Bug libgcc/102278] New: Fails to build on powerpc-unknown-freebsd since 20210801 snapshot pkubaj at anongoth dot pl
@ 2021-09-10 19:43 ` pkubaj at anongoth dot pl
  2021-09-10 19:53 ` pinskia at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pkubaj at anongoth dot pl @ 2021-09-10 19:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Piotr Kubaj <pkubaj at anongoth dot pl> ---
The full error with the command line executed is:
/wrkdirs/usr/ports/lang/gcc12-devel/work/.build/./gcc/xgcc
-B/wrkdirs/usr/ports/lang/gcc12-devel/work/.build/./gcc/
-B/usr/local/powerpc-portbld-freebsd13.0/bin/
-B/usr/local/powerpc-portbld-freebsd13.0/lib/ -isystem
/usr/local/powerpc-portbld-freebsd13.0/include -isystem
/usr/local/powerpc-portbld-freebsd13.0/sys-include   -fno-checking -g -O2 -pipe
-DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -O2  -g -O2 -pipe
 -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing  -DIN_GCC -fPIC 
 -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag
-Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag
-Wold-style-definition  -isystem ./include  -fPIC -pthread -g -DIN_LIBGCC2
-fbuilding-libgcc -fno-stack-protector  -fPIC -pthread -I. -I. -I../.././gcc
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/libgcc
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/libgcc/.
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/libgcc/../gcc
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/libgcc/../include 
-DHAVE_CC_TLS  -o _gcov_execl.o -MT _gcov_execl.o -MD -MP -MF _gcov_execl.dep
-DL_gcov_execl -c
/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/libgcc/libgcov-interface.c
during GIMPLE pass: ldist
/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/libgcc/libgcov-interface.c:
In function '__gcov_execl':
/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/libgcc/libgcov-interface.c:201:1:
internal compiler error: Segmentation fault
  201 | __gcov_execl (const char *path, char *arg, ...)

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

* [Bug bootstrap/102278] [12 regression] Bootstrap fails with LLVM 11.0.1 on powerpc-unknown-freebsd: libgcov-interface.c:201:1: internal compiler error
  2021-09-10 14:56 [Bug libgcc/102278] New: Fails to build on powerpc-unknown-freebsd since 20210801 snapshot pkubaj at anongoth dot pl
  2021-09-10 19:43 ` [Bug bootstrap/102278] [12 regression] Bootstrap fails with LLVM 11.0.1 on powerpc-unknown-freebsd: libgcov-interface.c:201:1: internal compiler error pkubaj at anongoth dot pl
@ 2021-09-10 19:53 ` pinskia at gcc dot gnu.org
  2021-09-10 23:14 ` pkubaj at anongoth dot pl
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-10 19:53 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |WAITING
           Keywords|                            |build
   Last reconfirmed|                            |2021-09-10

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
A couple of things:
How did you configure GCC?
Do you have any env variables set that could influence the bootstrap e.g.
CXXFLAGS or STAGE1_CXXFLAGS, etc.?  I am trying to check to see if LLVM is not
miscompiling GCC here (it could be).

Also can you attach the full build log?
What stage is the building failing, stage 1 or stage2 or stage 3?

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

* [Bug bootstrap/102278] [12 regression] Bootstrap fails with LLVM 11.0.1 on powerpc-unknown-freebsd: libgcov-interface.c:201:1: internal compiler error
  2021-09-10 14:56 [Bug libgcc/102278] New: Fails to build on powerpc-unknown-freebsd since 20210801 snapshot pkubaj at anongoth dot pl
  2021-09-10 19:43 ` [Bug bootstrap/102278] [12 regression] Bootstrap fails with LLVM 11.0.1 on powerpc-unknown-freebsd: libgcov-interface.c:201:1: internal compiler error pkubaj at anongoth dot pl
  2021-09-10 19:53 ` pinskia at gcc dot gnu.org
@ 2021-09-10 23:14 ` pkubaj at anongoth dot pl
  2021-09-10 23:19 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pkubaj at anongoth dot pl @ 2021-09-10 23:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Piotr Kubaj <pkubaj at anongoth dot pl> ---
Created attachment 51436
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51436&action=edit
build log

The full build log is attached. The used compilation flags and configuration
options are listed there.

To make sure it's not misoptimization, I also built now with (FreeBSD by
default uses -O2):
CFLAGS_FOR_TARGET="-O0" CXXFLAGS_FOR_TARGET="-O0" BOOT_CFLAGS="-O0"

It fails with another error:
/wrkdirs/usr/ports/lang/gcc12-devel/work/.build/./prev-gcc/xg++
-B/wrkdirs/usr/ports/lang/gcc12-devel/work/.build/./prev-gcc/
-B/usr/local/powerpc-portbld-freebsd13.0/bin/ -nostdinc++
-B/wrkdirs/usr/ports/lang/gcc12-devel/work/.build/prev-powerpc-portbld-freebsd13.0/libstdc++-v3/src/.libs
-B/wrkdirs/usr/ports/lang/gcc12-devel/work/.build/prev-powerpc-portbld-freebsd13.0/libstdc++-v3/libsupc++/.libs
 -isystem
/wrkdirs/usr/ports/lang/gcc12-devel/work/.build/prev-powerpc-portbld-freebsd13.0/libstdc++-v3/include/powerpc-portbld-freebsd13.0
 -isystem
/wrkdirs/usr/ports/lang/gcc12-devel/work/.build/prev-powerpc-portbld-freebsd13.0/libstdc++-v3/include
 -isystem
/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/libstdc++-v3/libsupc++
-L/wrkdirs/usr/ports/lang/gcc12-devel/work/.build/prev-powerpc-portbld-freebsd13.0/libstdc++-v3/src/.libs
-L/wrkdirs/usr/ports/lang/gcc12-devel/work/.build/prev-powerpc-portbld-freebsd13.0/libstdc++-v3/libsupc++/.libs
 -fno-PIE -c   -O0 -fno-checking -gtoggle -DIN_GCC -fPIC    -fno-exceptions
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I.
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/gcc
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/gcc/.
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/gcc/../include
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/gcc/../libcpp/include
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/gcc/../libcody
-I/usr/local/include 
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/gcc/../libdecnumber
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/gcc/../libdecnumber/dpd
-I../libdecnumber
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/gcc/../libbacktrace 
-DLIBICONV_PLUG -o opts.o -MT opts.o -MMD -MP -MF ./.deps/opts.TPo
/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/gcc/opts.c
/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/gcc/opts.c: In
function 'void print_filtered_help(unsigned int, unsigned int, unsigned int,
unsigned int, gcc_options*, unsigned int)':
/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/gcc/opts.c:1517:26:
error: '  ' directive output may be truncated writing 2 bytes into a region
of size between 1 and 256 [-Werror=format-truncation=]
 1517 |                       "%s  %s", help, _(use_diagnosed_msg));
      |                          ^~
/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/gcc/opts.c:1516:22:
note: 'snprintf' output between 37 and 292 bytes into a destination of size
256
 1516 |             snprintf (new_help, sizeof new_help,
      |             ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
 1517 |                       "%s  %s", help, _(use_diagnosed_msg));
      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors

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

* [Bug bootstrap/102278] [12 regression] Bootstrap fails with LLVM 11.0.1 on powerpc-unknown-freebsd: libgcov-interface.c:201:1: internal compiler error
  2021-09-10 14:56 [Bug libgcc/102278] New: Fails to build on powerpc-unknown-freebsd since 20210801 snapshot pkubaj at anongoth dot pl
                   ` (2 preceding siblings ...)
  2021-09-10 23:14 ` pkubaj at anongoth dot pl
@ 2021-09-10 23:19 ` pinskia at gcc dot gnu.org
  2021-09-13 10:16 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-10 23:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Can you unuset all *FLAGS env and try that?

The BOOT_CFLAGS="-O0" might be broken and is a full on different issue.

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

* [Bug bootstrap/102278] [12 regression] Bootstrap fails with LLVM 11.0.1 on powerpc-unknown-freebsd: libgcov-interface.c:201:1: internal compiler error
  2021-09-10 14:56 [Bug libgcc/102278] New: Fails to build on powerpc-unknown-freebsd since 20210801 snapshot pkubaj at anongoth dot pl
                   ` (3 preceding siblings ...)
  2021-09-10 23:19 ` pinskia at gcc dot gnu.org
@ 2021-09-13 10:16 ` rguenth at gcc dot gnu.org
  2021-09-14  0:39 ` pkubaj at anongoth dot pl
  2022-03-22  9:09 ` pkubaj at anongoth dot pl
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-09-13 10:16 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0

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

* [Bug bootstrap/102278] [12 regression] Bootstrap fails with LLVM 11.0.1 on powerpc-unknown-freebsd: libgcov-interface.c:201:1: internal compiler error
  2021-09-10 14:56 [Bug libgcc/102278] New: Fails to build on powerpc-unknown-freebsd since 20210801 snapshot pkubaj at anongoth dot pl
                   ` (4 preceding siblings ...)
  2021-09-13 10:16 ` rguenth at gcc dot gnu.org
@ 2021-09-14  0:39 ` pkubaj at anongoth dot pl
  2022-03-22  9:09 ` pkubaj at anongoth dot pl
  6 siblings, 0 replies; 8+ messages in thread
From: pkubaj at anongoth dot pl @ 2021-09-14  0:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Piotr Kubaj <pkubaj at anongoth dot pl> ---
Still the same issue:
/wrkdirs/usr/ports/lang/gcc12-devel/work/.build/./gcc/xgcc
-B/wrkdirs/usr/ports/lang/gcc12-devel/work/.build/./gcc/
-B/usr/local/powerpc-portbld-freebsd13.0/bin/
-B/usr/local/powerpc-portbld-freebsd13.0/lib/ -isystem
/usr/local/powerpc-portbld-freebsd13.0/include -isystem
/usr/local/powerpc-portbld-freebsd13.0/sys-include   -fno-checking -g -O2 -O2 
-g -O2   -DIN_GCC -fPIC   -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual
-Wno-error=format-diag -Wno-format -Wstrict-prototypes -Wmissing-prototypes
-Wno-error=format-diag -Wold-style-definition  -isystem ./include  -fPIC
-pthread -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector  -fPIC -pthread
-I. -I. -I../.././gcc
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/libgcc
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/libgcc/.
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/libgcc/../gcc
-I/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/libgcc/../include 
-DHAVE_CC_TLS  -o _gcov_execl.o -MT _gcov_execl.o -MD -MP -MF _gcov_execl.dep
-DL_gcov_execl -c
/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/libgcc/libgcov-interface.c
during GIMPLE pass: ldist
/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/libgcc/libgcov-interface.c:
In function '__gcov_execl':
/wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20210829/libgcc/libgcov-interface.c:201:1:
internal compiler error: Segmentation fault
  201 | __gcov_execl (const char *path, char *arg, ...)

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

* [Bug bootstrap/102278] [12 regression] Bootstrap fails with LLVM 11.0.1 on powerpc-unknown-freebsd: libgcov-interface.c:201:1: internal compiler error
  2021-09-10 14:56 [Bug libgcc/102278] New: Fails to build on powerpc-unknown-freebsd since 20210801 snapshot pkubaj at anongoth dot pl
                   ` (5 preceding siblings ...)
  2021-09-14  0:39 ` pkubaj at anongoth dot pl
@ 2022-03-22  9:09 ` pkubaj at anongoth dot pl
  6 siblings, 0 replies; 8+ messages in thread
From: pkubaj at anongoth dot pl @ 2022-03-22  9:09 UTC (permalink / raw)
  To: gcc-bugs

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

Piotr Kubaj <pkubaj at anongoth dot pl> changed:

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

--- Comment #6 from Piotr Kubaj <pkubaj at anongoth dot pl> ---
Builds fine now.

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

end of thread, other threads:[~2022-03-22  9:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-10 14:56 [Bug libgcc/102278] New: Fails to build on powerpc-unknown-freebsd since 20210801 snapshot pkubaj at anongoth dot pl
2021-09-10 19:43 ` [Bug bootstrap/102278] [12 regression] Bootstrap fails with LLVM 11.0.1 on powerpc-unknown-freebsd: libgcov-interface.c:201:1: internal compiler error pkubaj at anongoth dot pl
2021-09-10 19:53 ` pinskia at gcc dot gnu.org
2021-09-10 23:14 ` pkubaj at anongoth dot pl
2021-09-10 23:19 ` pinskia at gcc dot gnu.org
2021-09-13 10:16 ` rguenth at gcc dot gnu.org
2021-09-14  0:39 ` pkubaj at anongoth dot pl
2022-03-22  9:09 ` pkubaj at anongoth dot pl

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