[Bug target/78926] Build fails after update to GCC 6.3

2024-04-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78926

Andrew Pinski  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |WONTFIX

--- Comment #15 from Andrew Pinski  ---
We have been more careful at LTO versioning in recent versions of GCC releases.
There is not much we can do with older releases so closing as won't fix.

[Bug target/78926] Build fails after update to GCC 6.3

2017-04-28 Thread d.v.a at ngs dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78926

--- Comment #14 from __vic  ---
GCC 7-RC1 now reports

lto1: fatal error: bytecode stream in file ‘lib/libssl.a’ generated with LTO
version 5.1 instead of the expected 6.0
compilation terminated.
lto-wrapper: fatal error: g++ returned 1 exit status
compilation terminated.
/opt/binutils/bin/ld: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status

in such situation. Very helpful!

[Bug target/78926] Build fails after update to GCC 6.3

2016-12-25 Thread d.v.a at ngs dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78926

--- Comment #13 from __vic  ---
Rebuilt openssl with 6.3, the problem has gone.
What was that? Bug in the previous version or in the new one?

[Bug target/78926] Build fails after update to GCC 6.3

2016-12-25 Thread d.v.a at ngs dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78926

--- Comment #12 from __vic  ---
Actually it can be 6.1 as well. Don't remember exactly.

[Bug target/78926] Build fails after update to GCC 6.3

2016-12-25 Thread d.v.a at ngs dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78926

--- Comment #11 from __vic  ---
Yes. As it is said in Comment 0:

> OpenSSL library (static) built with previous version - GCC 6.2.

[Bug target/78926] Build fails after update to GCC 6.3

2016-12-25 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78926

--- Comment #10 from Andrew Pinski  ---
Is openssl compiled with 6.2 while the program is compiled with 6.3?

[Bug target/78926] Build fails after update to GCC 6.3

2016-12-25 Thread d.v.a at ngs dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78926

--- Comment #9 from __vic  ---
$ ld --version
GNU gold (GNU Binutils 2.27) 1.12

Built from sources. Both gold and BFD produce the same result

[Bug target/78926] Build fails after update to GCC 6.3

2016-12-25 Thread d.v.a at ngs dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78926

--- Comment #8 from __vic  ---
OpenSSL v 1.0.2j

$ env CC="gcc -flto -ffunction-sections -fdata-sections" AR=gcc-ar
RANLIB=gcc-ranlib ./config threads no-shared

[Bug target/78926] Build fails after update to GCC 6.3

2016-12-25 Thread d.v.a at ngs dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78926

--- Comment #7 from __vic  ---
But it works with 6.2

[Bug target/78926] Build fails after update to GCC 6.3

2016-12-25 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78926

--- Comment #6 from Andrew Pinski  ---
(In reply to __vic from comment #1)
> Why I see messages about lto-wrapper if LTO isn't used? It's debug build w/o
> LTO.

Because openssl is compiled with lto. Maybe something is wrong in the way
openssl is compiled.

[Bug target/78926] Build fails after update to GCC 6.3

2016-12-25 Thread d.v.a at ngs dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78926

--- Comment #5 from __vic  ---
$ gcc -flto -ffunction-sections -fdata-sections -I. -I.. -I../include 
-DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack
-m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT
-DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM
-DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM
-DGHASH_ASM -DECP_NISTZ256_ASM   -c -o uid.o uid.c

[Bug target/78926] Build fails after update to GCC 6.3

2016-12-25 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78926

--- Comment #4 from Andrew Pinski  ---
I mean the openssl libraries.

[Bug target/78926] Build fails after update to GCC 6.3

2016-12-25 Thread d.v.a at ngs dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78926

--- Comment #3 from __vic  ---
See the first $. Or you mean openssl objects?

[Bug target/78926] Build fails after update to GCC 6.3

2016-12-25 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78926

--- Comment #2 from Andrew Pinski  ---
How are the other objects built?