Bug 947

Summary: libnewt-0.52.12-r0, slang: do_compile: Failed
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Dexuan Cui <dexuan.cui>
Component: coreAssignee: Kai Kang <kai.kang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: liang.li2, meta.mr.watcher, meta.watcher, sgw
Version: unspecified   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
Add DEPENDS for slang to fix compile errors. none

Description Dexuan Cui 2011-04-01 21:55:34 UTC
The ERROR log on qemuarm:
http://autobuilder.yoctoproject.org:8010/builders/nightly-external-lsb/builds/7/steps/shell_5/logs/stdio

| mkdir -p shared
| arm-poky-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s --sysroot=/srv/home/pokybuild/poky-slave/nightly-external-lsb/build/build/tmp/sysroots/qemuarm -fPIC -c -O2 -pipe -g -feliminate-unused-debug-types -D_GNU_SOURCE -I/usr/include/slang   -o shared/newt.o newt.c
| arm-poky-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s --sysroot=/srv/home/pokybuild/poky-slave/nightly-external-lsb/build/build/tmp/sysroots/qemuarm -fPIC -c -O2 -pipe -g -feliminate-unused-debug-types -D_GNU_SOURCE -I/usr/include/slang   -o shared/button.o button.c
| Assembler messages:
| Fatal error: can't create shared/newt.o: No such file or directory
| Assembler messages:
| Fatal error: can't create shared/button.o: No such file or directory
| arm-poky-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s --sysroot=/srv/home/pokybuild/poky-slave/nightly-external-lsb/build/build/tmp/sysroots/qemuarm -fPIC -c -O2 -pipe -g -feliminate-unused-debug-types -D_GNU_SOURCE -I/usr/include/slang   -o shared/form.o form.c
| arm-poky-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s --sysroot=/srv/home/pokybuild/poky-slave/nightly-external-lsb/build/build/tmp/sysroots/qemuarm -fPIC -c -O2 -pipe -g -feliminate-unused-debug-types -D_GNU_SOURCE -I/usr/include/slang   -o shared/checkbox.o checkbox.c
| arm-poky-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s --sysroot=/srv/home/pokybuild/poky-slave/nightly-external-lsb/build/build/tmp/sysroots/qemuarm -fPIC -c -O2 -pipe -g -feliminate-unused-debug-types -D_GNU_SOURCE -I/usr/include/slang   -o shared/entry.o entry.c
| arm-poky-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s --sysroot=/srv/home/pokybuild/poky-slave/nightly-external-lsb/build/build/tmp/sysroots/qemuarm -fPIC -c -O2 -pipe -g -feliminate-unused-debug-types -D_GNU_SOURCE -I/usr/include/slang   -o shared/label.o label.c
| make: *** [shared/newt.o] Error 2
| make: *** Waiting for unfinished jobs....
| make: *** [shared/button.o] Error 2
| FATAL: oe_runmake failed


The ERROR log on qemux86:
http://autobuilder.yoctoproject.org:8010/builders/nightly-external-lsb/builds/7/steps/shell_3/logs/stdio
Comment 1 Kai Kang 2011-04-06 21:37:06 UTC
Dexuan,

I tried to compile libnewt on qemuarm and libnewt was fine. Would you please send me the log file
/srv/home/pokybuild/poky-slave/nightly-external-lsb/build/build/tmp/work/armv5te-poky-linux-gnueabi/libnewt-0.52.12-r0/temp/log.do_compile.24629

I also meet slang build failed, and do you have the same build failure?

Thank you!
Kai
Comment 2 Dexuan Cui 2011-04-06 22:28:19 UTC
(In reply to comment #1)
> Dexuan,
> I tried to compile libnewt on qemuarm and libnewt was fine. Would you please
> send me the log file
> /srv/home/pokybuild/poky-slave/nightly-external-lsb/build/build/tmp/work/armv5te-poky-linux-gnueabi/libnewt-0.52.12-r0/temp/log.do_compile.24629
sorry, looks the file doesn't exist now, and in the latest arm build, libnewt can build.

In my original report, qemux86 also has the same issue, but looks the latest log doesn't show the failure:
http://autobuilder.yoctoproject.org:8010/builders/nightly-internal-lsb/builds/12/steps/shell_5/logs/stdio -- in it we can see libnewt can build fine.

Maybe this is parallel make issue? 

> I also meet slang build failed, and do you have the same build failure?
I don't see such an issue.
Comment 3 Dexuan Cui 2011-04-06 23:22:35 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Dexuan,
> > I tried to compile libnewt on qemuarm and libnewt was fine. Would you please
> > send me the log file
> > /srv/home/pokybuild/poky-slave/nightly-external-lsb/build/build/tmp/work/armv5te-poky-linux-gnueabi/libnewt-0.52.12-r0/temp/log.do_compile.24629
> sorry, looks the file doesn't exist now, and in the latest arm build, libnewt
> can build.
> In my original report, qemux86 also has the same issue, but looks the latest
> log doesn't show the failure:
> http://autobuilder.yoctoproject.org:8010/builders/nightly-internal-lsb/builds/12/steps/shell_5/logs/stdio
> -- in it we can see libnewt can build fine.
> Maybe this is parallel make issue? 
> > I also meet slang build failed, and do you have the same build failure?
> I don't see such an issue.

Well, now I saw a failure of slang:
http://autobuilder.yoctoproject.org:8010/builders/nightly-external-lsb/builds/9/steps/shell_13/logs/stdio

| powerpc-poky-linux-gcc: slkeymap.o: No such file or directory
| powerpc-poky-linux-gcc: slmalloc.o: No such file or directory
Comment 4 Kai Kang 2011-04-06 23:44:52 UTC
Created attachment 134 [details]
Add DEPENDS for slang to fix compile errors.
Comment 5 Kai Kang 2011-04-06 23:46:42 UTC
Comment on attachment 134 [details]
Add DEPENDS for slang to fix compile errors.

Dexuan,
could you help me to verify this patch. I have tested it on both qemuarm and qemux86.
Thank you!
Comment 6 Dexuan Cui 2011-04-07 00:08:07 UTC
(In reply to comment #5)
> Comment on attachment 134 [details]
> Add DEPENDS for slang to fix compile errors.
> Dexuan,
> could you help me to verify this patch. I have tested it on both qemuarm and
> qemux86.
> Thank you!

Hi Kai, sorry, usually I don't try the patch myself as actually I don't have the environment, and usually I look at the autobuild nightly logs to verify bugs. :-)

Your patch looks fine. I think you can send it directly to the mailing list.
Comment 7 Kai Kang 2011-04-07 00:14:36 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Comment on attachment 134 [details] [details]
> > Add DEPENDS for slang to fix compile errors.
> > Dexuan,
> > could you help me to verify this patch. I have tested it on both qemuarm and
> > qemux86.
> > Thank you!
> 
> Hi Kai, sorry, usually I don't try the patch myself as actually I don't have
> the environment, and usually I look at the autobuild nightly logs to verify
> bugs. :-)
> 
> Your patch looks fine. I think you can send it directly to the mailing list.

Thank you! :-)
Comment 8 Dexuan Cui 2011-04-07 00:34:57 UTC
(In reply to comment #4)
> Created attachment 134 [details]
> Add DEPENDS for slang to fix compile errors.

Hi Kai, btw, can the patch also fix the libnewt do_compile failure?
Comment 9 Kai Kang 2011-04-07 00:35:42 UTC
Comment on attachment 134 [details]
Add DEPENDS for slang to fix compile errors.

Dexuan,
could you help me to verify this patch. I have tested it on both qemuarm and qemux86.
Thank you!
Comment 10 Kai Kang 2011-04-07 00:37:56 UTC
(In reply to comment #8)
> (In reply to comment #4)
> > Created attachment 134 [details] [details]
> > Add DEPENDS for slang to fix compile errors.
> 
> Hi Kai, btw, can the patch also fix the libnewt do_compile failure?

Hi Dexuan, I did not see the libnewt build failed, so I am not sure.
Comment 11 Saul Wold 2011-04-08 15:16:24 UTC
Can someone please verify that this is indeed an issue, I have not seen slang or libnewt failure recently.
Comment 12 Kai Kang 2011-04-10 19:35:23 UTC
(In reply to comment #11)
> Can someone please verify that this is indeed an issue, I have not seen slang
> or libnewt failure recently.

Hi Saul,

`bitbake slang ` in a clean yocto repo will reproduce the slang build failure.
Comment 13 Dexuan Cui 2011-04-13 19:52:24 UTC
I saw libnewt still failed on today's latest poky master:

OE Build Configuration:
BB_VERSION        = "1.11.0"
METADATA_BRANCH   = "master"
METADATA_REVISION = "6bf6aec120744211fbabf2b4a167bfd1ab5866fd"
TARGET_ARCH       = "i586"
TARGET_OS         = "linux"
MACHINE           = "qemux86"
DISTRO            = "poky-lsb"
DISTRO_VERSION    = "1.0+snapshot-20110413"
TARGET_FPU        = ""

http://autobuilder.yoctoproject.org:8010/builders/nightly-internal-lsb/builds/17/steps/shell_3/logs/stdio

| i586-poky-linux-gcc -march=i586 --sysroot=/builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/sysroots/qemux86 -fPIC -c -O2 -pipe -g -feliminate-unused-debug-types -D_GNU_SOURCE -I/usr/include/slang   -o shared/form.o form.c
| Assembler messages:
| Fatal error: can't create shared/button.o: No such file or directory
| i586-poky-linux-gcc -march=i586 --sysroot=/builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/sysroots/qemux86 -fPIC -c -O2 -pipe -g -feliminate-unused-debug-types -D_GNU_SOURCE -I/usr/include/slang   -o shared/checkbox.o checkbox.c
| make: *** [shared/button.o] Error 2
| make: *** Waiting for unfinished jobs....
| FATAL: oe_runmake failed
NOTE: package libnewt-0.52.12-r0: task do_compile: Failed
Comment 14 Dexuan Cui 2011-04-15 01:51:18 UTC
(In reply to comment #13)
> I saw libnewt still failed on today's latest poky master:
> OE Build Configuration:
> BB_VERSION        = "1.11.0"
> METADATA_BRANCH   = "master"
> METADATA_REVISION = "6bf6aec120744211fbabf2b4a167bfd1ab5866fd"
> TARGET_ARCH       = "i586"
> TARGET_OS         = "linux"
> MACHINE           = "qemux86"
> DISTRO            = "poky-lsb"
> DISTRO_VERSION    = "1.0+snapshot-20110413"
> TARGET_FPU        = ""
> http://autobuilder.yoctoproject.org:8010/builders/nightly-internal-lsb/builds/17/steps/shell_3/logs/stdio
> | i586-poky-linux-gcc -march=i586
> --sysroot=/builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/sysroots/qemux86
> -fPIC -c -O2 -pipe -g -feliminate-unused-debug-types -D_GNU_SOURCE
> -I/usr/include/slang   -o shared/form.o form.c
> | Assembler messages:
> | Fatal error: can't create shared/button.o: No such file or directory
> | i586-poky-linux-gcc -march=i586
> --sysroot=/builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/sysroots/qemux86
> -fPIC -c -O2 -pipe -g -feliminate-unused-debug-types -D_GNU_SOURCE
> -I/usr/include/slang   -o shared/checkbox.o checkbox.c
> | make: *** [shared/button.o] Error 2
> | make: *** Waiting for unfinished jobs....
> | FATAL: oe_runmake failed
> NOTE: package libnewt-0.52.12-r0: task do_compile: Failed


Today's lsb builds are still blocked, so I had a look and made a patch:
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=dcui/master&id=95f8215966bbb379076078daf089f88a395ed8d5
and will push it out.
Comment 15 Saul Wold 2011-04-18 11:24:03 UTC
*** Bug 995 has been marked as a duplicate of this bug. ***