Bug 5505 - sato-sdk for genericx86 fails to build with gcc security flags
Summary: sato-sdk for genericx86 fails to build with gcc security flags
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.6
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-11-07 15:02 UTC by Alexandru Georgescu
Modified: 2013-12-04 11:00 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
compile log (1.14 MB, application/octet-stream)
2013-11-07 15:02 UTC, Alexandru Georgescu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Georgescu 2013-11-07 15:02:16 UTC
Created attachment 1610 [details]
compile log

poky master:57498cede4696526c121e0112b5dea3e6e8365ac

Refer to: https://bugzilla.yoctoproject.org/show_bug.cgi?id=3868 on how to enable security flags.

Build a core-image-sato-sdk for genericx86 machine (se full log attached).

| grep 'MARKER' gcry_rijndael.marker.new > gcry_rijndael.marker; rm -f gcry_rijndael.marker.new
| grep 'MARKER' gcry_serpent.marker.new > gcry_serpent.marker; rm -f gcry_serpent.marker.new
| /usr/bin/ld: -r and -shared may not be used together
| collect2: error: ld returned 1 exit status
| make[3]: *** [trig.module] Error 1
| make[3]: *** Waiting for unfinished jobs....
| make[3]: Leaving directory `/mnt/ssd/poky-gcc-security/build/tmp/work/x86_64-linux/grub-efi-i586-native/2.00-r2/build/grub-core'
| make[2]: *** [all] Error 2
| make[2]: Leaving directory `/mnt/ssd/poky-gcc-security/build/tmp/work/x86_64-linux/grub-efi-i586-native/2.00-r2/build/grub-core'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/mnt/ssd/poky-gcc-security/build/tmp/work/x86_64-linux/grub-efi-i586-native/2.00-r2/build'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: /mnt/ssd/poky-gcc-security/build/tmp/work/x86_64-linux/grub-efi-i586-native/2.00-r2/temp/run.do_compile.14239:1 exit 1 from
|   exit 1
| ERROR: Function failed: do_compile (log file is located at /mnt/ssd/poky-gcc-security/build/tmp/work/x86_64-linux/grub-efi-i586-native/2.00-r2/temp/log.do_compile.14239)
ERROR: Task 267 (/mnt/ssd/poky-gcc-security/meta/recipes-bsp/grub/grub-efi-native_2.00.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4731 tasks of which 429 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  /mnt/ssd/poky-gcc-security/meta/recipes-bsp/grub/grub-efi-native_2.00.bb, do_compile
Summary: There were 2 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
[yocto@localhost build]$
Comment 1 Alexandru Georgescu 2013-11-08 08:20:23 UTC
for qemux86 it didn't fail
Comment 2 Saul Wold 2013-11-20 23:48:31 UTC
qemux86 does not include grub-efi, so you would not find this problem there.
Comment 4 Ionut Chisanovici 2013-12-04 11:00:22 UTC
This is now ok and was verified with:

Build Configuration:
BB_VERSION        = "1.21.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Fedora-19"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "genericx86"
DISTRO            = "poky"
DISTRO_VERSION    = "1.5+snapshot-20131204"
TUNE_FEATURES     = "m32 core2"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    = "master:c51730aaa91066cfb51ad6ec2920fb4f9d9ea94c"

Cheers,
Ionut C