Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 676060

Summary: dev-libs/openssl-1.1.0j USE=asm on sparc - ./libcrypto.so: undefined reference to `gcm_ghash_vis3'
Product: Gentoo Linux Reporter: Ben Kohler <bkohler>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: James_McMechan, sparc
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=697560
https://github.com/openssl/openssl/issues/10165
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info '=dev-libs/openssl-1.1.1d-r2::gentoo'
emerge -pqv '=dev-libs/openssl-1.1.1d-r2::gentoo'
environment
build log

Description Ben Kohler gentoo-dev 2019-01-22 18:00:47 UTC
Created attachment 562516 [details]
build.log

See attached build log.  Haven't found a relevant upstream issue/bug yet.
Comment 1 James McMechan 2019-10-23 02:08:38 UTC
I was attempting to run a normal world update and dev-libs/openssl-1.1.1d-r2 also fails to compile the asm functions correctly.

What appears to be happening is that something is overriding the -mcpu setting from make.conf CFLAGS, I started with the normal -mcpu=ultrasparc and then tried -mcpu=native and -mcpu=niagara2 all are being forced to -mcpu=v8 for some unknown reason.

The upstream issue is at https://github.com/openssl/openssl/issues/10165
but upstream is wondering why it is being set to linux-sparcv8 since v9 dates back to 1993

I was looking at the environment and it has replace-sparc64-flags which for ultrasparc, ultrasparc3, v9 would seem to replace the -mcpu=X with -mcpu=v8
I do not know where this is actually from though.
Comment 2 James McMechan 2019-10-23 02:10:02 UTC
Created attachment 593672 [details]
emerge --info '=dev-libs/openssl-1.1.1d-r2::gentoo'
Comment 3 James McMechan 2019-10-23 02:11:19 UTC
Created attachment 593674 [details]
emerge -pqv '=dev-libs/openssl-1.1.1d-r2::gentoo'
Comment 4 James McMechan 2019-10-23 02:13:34 UTC
Created attachment 593676 [details]
environment
Comment 5 James McMechan 2019-10-23 02:22:10 UTC
replace-sparc64-flags appears to be from eclass/flag-o-matic.eclass
I am not sure how to get debugging info out though...

The submit button was erroring out with
Malformed multipart POST: data truncated
When I tried to include build.log even though it is only 400k
Still errored out with 17k build.log.xz
Comment 6 James McMechan 2019-10-23 14:31:19 UTC
Created attachment 593696 [details]
build log
Comment 7 Larry the Git Cow gentoo-dev 2019-12-01 17:32:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d23227d2253257b0a674d9edb3b4b220cfc11275

commit d23227d2253257b0a674d9edb3b4b220cfc11275
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2019-12-01 17:31:58 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2019-12-01 17:32:23 +0000

    profiles/sparc: Move USE=asm mask for openssl up a level
    
    Closes: https://bugs.gentoo.org/676060
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 profiles/arch/sparc/64ul/package.use.mask | 4 ----
 profiles/arch/sparc/package.use.mask      | 4 ++++
 2 files changed, 4 insertions(+), 4 deletions(-)
Comment 8 Larry the Git Cow gentoo-dev 2023-01-13 08:33:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=619319357c7a8b08e2a8fb6b990208e6a97f840b

commit 619319357c7a8b08e2a8fb6b990208e6a97f840b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-01-13 08:32:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-13 08:32:13 +0000

    profiles/arch/sparc/32ul: restore openssl[asm] mask for 32-bit
    
    Closes: https://bugs.gentoo.org/676060
    See: 009aa30edecb3843cb9d4ad6704fb32e4bd4216a
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/sparc/32ul/package.use.mask | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)