[GH-ISSUE #252] LTO fails with gcc 4.6.3 #20

Closed
opened 2026-10-14 02:49:56 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @rofl0r on GitHub (Apr 11, 2013).
Original GitHub issue: https://github.com/openwall/john/issues/252

make clean ; make CC=gcc-4.6.3 CXX=g++4.6.3 JOHN_CFLAGS="-flto -fwhole-program
 -O3" -j9 linux-x86-64
gcc-4.6.3 -c -Wall -Wdeclaration-after-statement -O2 -fomit-frame-pointer -I/usr/local/include   -DHAVE_GMP   -flto -fwhole-program -O3  -DHAVE_CRYPT -DHAVE_DL -funroll-loops NT_fmt.c
rawSHA1_ng_fmt.c:741:1: sorry, unimplemented: gimple bytecode streams do not support the optimization attribute
make[1]: *** [rawSHA1_ng_fmt.o] Error 1

same result for linux-x86-64-xop target

edit: works with gcc 4.7.2

Originally created by @rofl0r on GitHub (Apr 11, 2013). Original GitHub issue: https://github.com/openwall/john/issues/252 ``` make clean ; make CC=gcc-4.6.3 CXX=g++4.6.3 JOHN_CFLAGS="-flto -fwhole-program -O3" -j9 linux-x86-64 ``` ``` gcc-4.6.3 -c -Wall -Wdeclaration-after-statement -O2 -fomit-frame-pointer -I/usr/local/include -DHAVE_GMP -flto -fwhole-program -O3 -DHAVE_CRYPT -DHAVE_DL -funroll-loops NT_fmt.c rawSHA1_ng_fmt.c:741:1: sorry, unimplemented: gimple bytecode streams do not support the optimization attribute make[1]: *** [rawSHA1_ng_fmt.o] Error 1 ``` same result for linux-x86-64-xop target edit: works with gcc 4.7.2
Author
Owner

@magnumripper commented on GitHub (Apr 12, 2013):

I assume this is a problem with gcc 4.6.3 rather than our code?

<!-- gh-comment-id:16314759 --> @magnumripper commented on GitHub (Apr 12, 2013): I assume this is a problem with gcc 4.6.3 rather than our code?
Author
Owner

@rofl0r commented on GitHub (Apr 12, 2013):

it is an issue that happens with "our code" and widely deployed toolchains.
so it may be in the interest of the community to find a workaround.

<!-- gh-comment-id:16317031 --> @rofl0r commented on GitHub (Apr 12, 2013): it is an issue that happens with "our code" and widely deployed toolchains. so it may be in the interest of the community to find a workaround.
Author
Owner

@magnumripper commented on GitHub (Apr 12, 2013):

Yes, or at least document it. Maybe this issue tracking system is a good place, maybe it's not. A better place might be john-dev because only a handfull people watch this issue tracking system.

<!-- gh-comment-id:16317419 --> @magnumripper commented on GitHub (Apr 12, 2013): Yes, or at least document it. Maybe this issue tracking system is a good place, maybe it's not. A better place might be john-dev because only a handfull people watch this issue tracking system.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#20
No description provided.