* [Buildroot] [Bug 497] New: OpenSSL RSA key generation hangs on x86_64
@ 2009-07-29 14:23 bugzilla at busybox.net
2009-07-29 15:07 ` [Buildroot] [Bug 497] " bugzilla at busybox.net
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: bugzilla at busybox.net @ 2009-07-29 14:23 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=497
Target: x86_64
Summary: OpenSSL RSA key generation hangs on x86_64
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: info at je-eigen-domein.nl
CC: buildroot at uclibc.org
Estimated Hours: 0.0
OpenSSL ends up in an endless 100% CPU loop when generating keys on x86_64.
E.g. when running "openssh" for the first time, or executing "openssl genrsa"
It seems that the openssl library buildroot produces includes code for 32-bit
systems, and does not work properly on x86_64.
In openssl.mk It tests for BR2_ARCH:
==
OPENSSL_TARGET_ARCH=generic32
[...]
ifeq ($(BR2_ARCH),x86_64)
OPENSSL_TARGET_ARCH=x86_64
endif
==
Not sure why, but this does not seem to work, and OpenSSL always builds as
"generic32"
If I use $(ARCH) instead, it does work properly and solves the key generation
problem:
==
ifeq ($(ARCH),x86_64)
OPENSSL_TARGET_ARCH=x86_64
endif
==
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [Bug 497] OpenSSL RSA key generation hangs on x86_64
2009-07-29 14:23 [Buildroot] [Bug 497] New: OpenSSL RSA key generation hangs on x86_64 bugzilla at busybox.net
@ 2009-07-29 15:07 ` bugzilla at busybox.net
2009-07-29 19:15 ` bugzilla at busybox.net
2009-07-29 19:51 ` bugzilla at busybox.net
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla at busybox.net @ 2009-07-29 15:07 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=497
--- Comment #1 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 2009-07-29 15:07:30 UTC ---
You're right.
There are two solutions to fix the issue. The first solution is to use $(ARCH),
as you suggested. ARCH is defined by project/Makefile.in. The second solution
if to change the test to be
ifeq ($(BR2_ARCH),"x86_64")
note the double quotes around x86_64.
Not sure which one is best, though.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [Bug 497] OpenSSL RSA key generation hangs on x86_64
2009-07-29 14:23 [Buildroot] [Bug 497] New: OpenSSL RSA key generation hangs on x86_64 bugzilla at busybox.net
2009-07-29 15:07 ` [Buildroot] [Bug 497] " bugzilla at busybox.net
@ 2009-07-29 19:15 ` bugzilla at busybox.net
2009-07-29 19:51 ` bugzilla at busybox.net
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla at busybox.net @ 2009-07-29 19:15 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=497
Peter Korsgaard <jacmet@uclibc.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #2 from Peter Korsgaard <jacmet@uclibc.org> 2009-07-29 19:15:36 UTC ---
It's because BR2_ARCH is a string value, so it contains " chars as well, E.G.
the tests have to be written as:
ifeq ($(BR2_ARCH),"x86_64")
OPENSSL_TARGET_ARCH=x86_64
endif
I'll fix it in git - Thanks.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [Bug 497] OpenSSL RSA key generation hangs on x86_64
2009-07-29 14:23 [Buildroot] [Bug 497] New: OpenSSL RSA key generation hangs on x86_64 bugzilla at busybox.net
2009-07-29 15:07 ` [Buildroot] [Bug 497] " bugzilla at busybox.net
2009-07-29 19:15 ` bugzilla at busybox.net
@ 2009-07-29 19:51 ` bugzilla at busybox.net
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla at busybox.net @ 2009-07-29 19:51 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=497
Peter Korsgaard <jacmet@uclibc.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Peter Korsgaard <jacmet@uclibc.org> 2009-07-29 19:51:37 UTC ---
Fixed in git (2a966bc) using ARCH
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-07-29 19:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-29 14:23 [Buildroot] [Bug 497] New: OpenSSL RSA key generation hangs on x86_64 bugzilla at busybox.net
2009-07-29 15:07 ` [Buildroot] [Bug 497] " bugzilla at busybox.net
2009-07-29 19:15 ` bugzilla at busybox.net
2009-07-29 19:51 ` bugzilla at busybox.net
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox