Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 542618 - dev-libs/openssl-1.0.2-r2 on ABI=x32 - Integer overflow in hexadecimal number at asm/../../perlasm/ line 201, <> line 890
Summary: dev-libs/openssl-1.0.2-r2 on ABI=x32 - Integer overflow in hexadecimal number...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Blocks: x32
  Show dependency tree
Reported: 2015-03-09 01:18 UTC by Bertrand Jacquin
Modified: 2018-08-21 13:24 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

build.log (build.log,189.67 KB, text/x-log)
2015-03-09 01:19 UTC, Bertrand Jacquin
emerge --info (info.log,16.86 KB, text/x-log)
2015-03-09 01:20 UTC, Bertrand Jacquin

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2015-03-09 01:18:51 UTC
dev-libs/openssl-1.0.2-r2 fail to build on ABI=x32 with the following error:

/usr/bin/perl asm/ elf > ghash-x86_64.s
Integer overflow in hexadecimal number at asm/../../perlasm/ line 201, <> line 890.
x86_64-pc-linux-gnux32-gcc -m64 -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -march=native -O2 -pipe -fomit-frame-pointer -fno-strict-aliasing -Wa,--noexecstack -c  -o ghash-x86_64.o ghash-x86_64.s
ghash-x86_64.s: Assembler messages:
ghash-x86_64.s:890: Error: junk `.15473355479995e+19' after expression
<builtin>: recipe for target 'ghash-x86_64.o' failed
make[2]: *** [ghash-x86_64.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-libs/openssl-1.0.2-r2/work/openssl-1.0.2-abi_x86_64.amd64/crypto/modes'
Makefile:88: recipe for target 'subdirs' failed
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-libs/openssl-1.0.2-r2/work/openssl-1.0.2-abi_x86_64.amd64/crypto'
Makefile:282: recipe for target 'build_crypto' failed
make: *** [build_crypto] Error 1
 * ERROR: dev-libs/openssl-1.0.2-r2::gentoo failed (compile phase):
 *   emake failed

Full log and emerge --info attached

Reproducible: Always
Comment 1 Bertrand Jacquin 2015-03-09 01:19:50 UTC
Created attachment 398446 [details]
Comment 2 Bertrand Jacquin 2015-03-09 01:20:03 UTC
Created attachment 398448 [details]
emerge --info
Comment 3 SpanKY gentoo-dev 2015-03-21 11:02:45 UTC
should be all set now in the tree; thanks for the report!

Commit message: Fix building on x32 ABIs
Comment 4 Larry the Git Cow gentoo-dev 2018-08-21 13:24:30 UTC
The bug has been referenced in the following commit(s):

commit fd5cf8ed9414ace7fb2b765228809c4335feab09
Author:     Thomas Deutschmann <>
AuthorDate: 2018-08-21 13:15:16 +0000
Commit:     Thomas Deutschmann <>
CommitDate: 2018-08-21 13:23:48 +0000

    dev-libs/openssl: bump to v1.1.1 pre release 9 (beta)
    - openssl-1.0.2a-x32-asm.patch dropped which shouldn't be
      necessary anymore according to upstream [Link 1].
    Link 1:
    Package-Manager: Portage-2.3.48, Repoman-2.3.10

 dev-libs/openssl/Manifest                  |   1 +
 dev-libs/openssl/openssl-1.1.1_pre9.ebuild | 242 +++++++++++++++++++++++++++++
 2 files changed, 243 insertions(+)