Bug 2278 - mklibs-native failed to compile fedora17 64bit
Summary: mklibs-native failed to compile fedora17 64bit
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.2
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.2 M4
Assignee: Robert Yang
QA Contact:
URL:
Whiteboard: (1.2) Patch Review 30%
Depends on:
Blocks:
 
Reported: 2012-04-11 07:19 UTC by yilong, sun
Modified: 2012-04-13 13:26 UTC (History)
9 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
mklibs-native failed log (2.82 KB, application/octet-stream)
2012-04-11 07:19 UTC, yilong, sun
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description yilong, sun 2012-04-11 07:19:47 UTC
Created attachment 458 [details]
mklibs-native failed log

With 1.2 M4, Package mklibs-native do compile failed. function '::close' has not been declared

tree/branch: poky/1.2_M4
commit: 27aa5489fb40d99c58bb2a4bbf2311e2c502a091

detailed error information as follows:
ERROR: Function failed: do_compile (see /home/build/distro/poky/build/tmp/work/x86_64-linux/mklibs-native-0.1.33-r0/temp/log.do_compile.14993 for further information)
ERROR: Logfile of failure stored in: /home/build/distro/poky/build/tmp/work/x86_64-linux/mklibs-native-0.1.33-r0/temp/log.do_compile.14993
Log data follows:
| ERROR: Function failed: do_compile (see /home/build/distro/poky/build/tmp/work/x86_64-linux/mklibs-native-0.1.33-r0/temp/log.do_compile.14993 for further information)
| NOTE: make -j 4
| make  all-recursive
| make[1]: Entering directory `/home/build/distro/poky/build/tmp/work/x86_64-linux/mklibs-native-0.1.33-r0/mklibs'
| Making all in lib
| make[2]: Entering directory `/home/build/distro/poky/build/tmp/work/x86_64-linux/mklibs-native-0.1.33-r0/mklibs/lib'
| Making all in mklibs
| make[3]: Entering directory `/home/build/distro/poky/build/tmp/work/x86_64-linux/mklibs-native-0.1.33-r0/mklibs/lib/mklibs'
| Making all in utils
| make[4]: Entering directory `/home/build/distro/poky/build/tmp/work/x86_64-linux/mklibs-native-0.1.33-r0/mklibs/lib/mklibs/utils'
| make[4]: Nothing to be done for `all'.
| make[4]: Leaving directory `/home/build/distro/poky/build/tmp/work/x86_64-linux/mklibs-native-0.1.33-r0/mklibs/lib/mklibs/utils'
| make[4]: Entering directory `/home/build/distro/poky/build/tmp/work/x86_64-linux/mklibs-native-0.1.33-r0/mklibs/lib/mklibs'
| make[4]: Nothing to be done for `all-am'.
| make[4]: Leaving directory `/home/build/distro/poky/build/tmp/work/x86_64-linux/mklibs-native-0.1.33-r0/mklibs/lib/mklibs'
| make[3]: Leaving directory `/home/build/distro/poky/build/tmp/work/x86_64-linux/mklibs-native-0.1.33-r0/mklibs/lib/mklibs'
| make[3]: Entering directory `/home/build/distro/poky/build/tmp/work/x86_64-linux/mklibs-native-0.1.33-r0/mklibs/lib'
| make[3]: Nothing to be done for `all-am'.
| make[3]: Leaving directory `/home/build/distro/poky/build/tmp/work/x86_64-linux/mklibs-native-0.1.33-r0/mklibs/lib'
| make[2]: Leaving directory `/home/build/distro/poky/build/tmp/work/x86_64-linux/mklibs-native-0.1.33-r0/mklibs/lib'
| Making all in src
| make[2]: Entering directory `/home/build/distro/poky/build/tmp/work/x86_64-linux/mklibs-native-0.1.33-r0/mklibs/src'
| Making all in mklibs-readelf
| make[3]: Entering directory `/home/build/distro/poky/build/tmp/work/x86_64-linux/mklibs-native-0.1.33-r0/mklibs/src/mklibs-readelf'
| ccache g++ -DHAVE_CONFIG_H -I. -I../..   -isystem/home/build/distro/poky/build/tmp/sysroots/x86_64-linux/usr/include  -isystem/home/build/distro/poky/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -c -o elf.o elf.cpp
| elf.cpp: In static member function 'static Elf::file* Elf::file::open(const char*)':
| elf.cpp:68:5: error: '::close' has not been declared
| make[3]: *** [elf.o] Error 1
| make[3]: Leaving directory `/home/build/distro/poky/build/tmp/work/x86_64-linux/mklibs-native-0.1.33-r0/mklibs/src/mklibs-readelf'
| make[2]: *** [all-recursive] Error 1
| make[2]: Leaving directory `/home/build/distro/poky/build/tmp/work/x86_64-linux/mklibs-native-0.1.33-r0/mklibs/src'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/home/build/distro/poky/build/tmp/work/x86_64-linux/mklibs-native-0.1.33-r0/mklibs'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
NOTE: package mklibs-native-0.1.33-r0: task do_compile: Failed
ERROR: Task 41 (/home/build/distro/poky/meta/recipes-devtools/mklibs/mklibs-native_0.1.33.bb, do_compile) failed with exit code '1'
Comment 1 Nitin Kamble 2012-04-12 00:53:18 UTC
Nitin also saw same issue in the 1.2 testing on fedora 64bit 17.
Comment 2 Nitin Kamble 2012-04-12 01:07:44 UTC
Khem,
  Are you seeing this issue with gcc 4.7 ?

Nitin
Comment 3 Saul Wold 2012-04-12 01:38:26 UTC
Please refer to this patch on the list.

http://lists.debian.org/debian-boot/2012/04/msg00038.html
Comment 4 Richard Purdie 2012-04-12 08:52:16 UTC
This is a gcc 4.7 issue, likely a missing unistd.h include.
Comment 5 Robert Yang 2012-04-12 09:06:49 UTC
(In reply to comment #4)
> This is a gcc 4.7 issue, likely a missing unistd.h include.
I'm trying to reproduce the error, but the networking is bad today in China,
so it cost me much time to download the fedora 17 x86_64 and install the tools on the host, I will report the status when I reproduce it.
Comment 6 Robert Yang 2012-04-12 10:04:10 UTC
(In reply to comment #4)
> This is a gcc 4.7 issue, likely a missing unistd.h include.

Yes, add the unistd.h to elf.cpp would fix the problem, I will send the patch review as soon as I figure the reason.