Bug 7570 - openssl fails to build for x86_64 on i686 platform
Summary: openssl fails to build for x86_64 on i686 platform
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: connectivity (show other bugs)
Version: 1.8
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.9 M1
Assignee: Cristian Iorga
QA Contact: Yi Zhao
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-04-07 09:01 UTC by Yi Zhao
Modified: 2015-08-19 01:52 UTC (History)
8 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
log.do_complie (92.07 KB, application/octet-stream)
2015-04-07 09:01 UTC, Yi Zhao
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2015-04-07 09:01:11 UTC
Created attachment 2467 [details]
log.do_complie

git rev: fido/33558eacc8a2d3dce3396b9ab2fd0773ac5076bc

Host: fedora21 i686 or Centos 6.6 i686

Steps:
1. Set the machine to qemux86-64
2. bitbake openssl

Error message:
##################
| 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 '/buildarea/poky/build/tmp/work/core2-64-poky-linux/openssl/1.0.2a-r0/openssl-1.0.2a/crypto/modes'
| Makefile:88: recipe for target 'subdirs' failed
| make[1]: *** [subdirs] Error 1
| make[1]: Leaving directory '/buildarea/poky/build/tmp/work/core2-64-poky-linux/openssl/1.0.2a-r0/openssl-1.0.2a/crypto'
| Makefile:280: recipe for target 'build_crypto' failed
| make: *** [build_crypto] Error 1
| ERROR: oe_runmake failed
| WARNING: /buildarea/poky/build/tmp/work/core2-64-poky-linux/openssl/1.0.2a-r0/temp/run.do_compile.22301:1 exit 1 from
|   exit 1
| ERROR: Function failed: do_compile (log file is located at /buildarea/poky/build/tmp/work/core2-64-poky-linux/openssl/1.0.2a-r0/temp/log.do_compile.22301)
###################

Please see the attachment for the detail log
Comment 1 Yi Zhao 2015-04-07 09:04:57 UTC
I searched in google and found someone also encountered this issue:
https://trac.macports.org/ticket/47328

I also tried a patch from gentoo: 
https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/openssl/files/openssl-1.0.2a-x32-asm.patch

It works well on yocto.
Comment 2 Cristian Iorga 2015-06-15 20:37:24 UTC
Investigation started.
Comment 3 Cristian Iorga 2015-06-15 20:38:05 UTC
Patch sent in for review.
Comment 5 Ke Zou 2015-08-19 01:52:17 UTC
veryfied with git: master/83836c5dba9cad78b6cc06f7c2e33de13cb237ac on both fedora21 and centos6.6 32-bit host.