[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #50790] Some kind of memory corruption in error messages with gcc-6
From: |
Jan Ziak |
Subject: |
[bug #50790] Some kind of memory corruption in error messages with gcc-6.3.0 -flto=4 |
Date: |
Wed, 12 Apr 2017 14:07:22 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?50790>
Summary: Some kind of memory corruption in error messages
with gcc-6.3.0 -flto=4
Project: make
Submitted by: atomsymbol
Submitted on: Wed 12 Apr 2017 06:07:20 PM UTC
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: 4.2.1
Operating System: POSIX-Based
Fixed Release: None
Triage Status: None
_______________________________________________________
Details:
Hello.
The following is the output of a Makefile-based project which uses GCC 6.3.0
to compile C/C++ files. make is invoked with -j4 on the command line. The
command-line option -flto=4 is being passed to the GCC compiler. The bug goes
away if -flto=1 or -flto is used instead of -flto=4.
Is this a make-4.2.1 bug, or a gcc-6.3.0 bug? The line numbers in the garbled
error messages, in this case 79 and 84, are correct.
$ make -j4
...
collect2: error: ld returned 1 exit status
make: *** [Makefile:84: target1] Error 1
make: *** Waiting for unfinished jobs....
...
make: *** [Makefile:79: target2] Error 1
...
collect2: error: ld returned 1 exit status
make[1]: *** [4
�:79: target2] Error 1
make[1]: *** Waiting for unfinished jobs....
...
collect2: error: ld returned 1 exit status
make[1]: *** [4
�:84: target1] Error 1
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make: *** [Makefile:71: tul] Error 1
A line obtained by running /usr/bin/make under /usr/bin/strace is:
execve("/usr/bin/make", ["/usr/bin/make", "-f", "/tmp/ccZfEp7k.mk", "-j4"],
[/* 101 vars */] <unfinished ...>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50790>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #50790] Some kind of memory corruption in error messages with gcc-6.3.0 -flto=4,
Jan Ziak <=