Compilation error with new .bb file
Home › Forums › MultiConnect OCG › Compilation error with new .bb file
- This topic has 4 replies, 3 voices, and was last updated 12 years, 11 months ago by Jesse Gilles.
-
AuthorPosts
-
December 8, 2011 at 6:28 am #2695Rishi KumarParticipant
Dear All,
I facing following compilation error.
//
DESCRIPTION = “Minimal statically compiled Hello Brother!”
LICENSE = “GPL”
PR = “r1”
SRC_URI=”file://hellobrother.c”
S = “${WORKDIR}/${P}”
do_fetch () {
mkdir -p ${WORKDIR}/${P}
cp hellobrother.c ${WORKDIR}/${P}
}
do_compile () {
${CC} ${CFLAGS}${LDFLAGS} hellobrother.c -o hellobrother
}
do_install () {
install -d ${D}${bindir}
install -m 0755 hellobrother ${D}${bindir}
}
// bitbake output error
NOTE: Handling BitBake files: – (7973/7973) [100 %]
Parsing of 7973 .bb files complete (7665 cached, 308 parsed). 7714 targets, 327 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing runqueue
NOTE: Running task 271 of 435 (ID: 1, /home/rk/corecdp-1.1.1/user-collection/recipes/hellobrother/hellobrother_1.0.0.bb, do_setscene)
NOTE: package hellobrother-1.0.0-r1: task do_setscene: Started
NOTE: package hellobrother-1.0.0-r1: task do_setscene: Succeeded
NOTE: Running task 420 of 435 (ID: 2, /home/rk/corecdp-1.1.1/user-collection/recipes/hellobrother/hellobrother_1.0.0.bb, do_fetch)
NOTE: package hellobrother-1.0.0-r1: task do_fetch: Started
NOTE: package hellobrother-1.0.0-r1: task do_fetch: Succeeded
NOTE: Running task 421 of 435 (ID: 3, /home/rk/corecdp-1.1.1/user-collection/recipes/hellobrother/hellobrother_1.0.0.bb, do_unpack)
NOTE: package hellobrother-1.0.0-r1: task do_unpack: Started
NOTE: Unpacking hellobrother.c to ../../../build/tmp/work/armv5te-corecdp-linux-gnueabi/hellobrother-1.0.0-r1/
NOTE: Running task 422 of 435 (ID: 13, /home/rk/corecdp-1.1.1/user-collection/recipes/hellobrother/hellobrother_1.0.0.bb, do_distribute_sources)
NOTE: package hellobrother-1.0.0-r1: task do_unpack: Succeeded
NOTE: package hellobrother-1.0.0-r1: task do_distribute_sources: Started
NOTE: Running task 423 of 435 (ID: 4, /home/rk/corecdp-1.1.1/user-collection/recipes/hellobrother/hellobrother_1.0.0.bb, do_patch)
NOTE: package hellobrother-1.0.0-r1: task do_distribute_sources: Succeeded
NOTE: package hellobrother-1.0.0-r1: task do_patch: Started
NOTE: package hellobrother-1.0.0-r1: task do_patch: Succeeded
NOTE: Running task 424 of 435 (ID: 5, /home/rk/corecdp-1.1.1/user-collection/recipes/hellobrother/hellobrother_1.0.0.bb, do_configure)
NOTE: package hellobrother-1.0.0-r1: task do_configure: Started
NOTE: package hellobrother-1.0.0-r1: task do_configure: Succeeded
NOTE: Running task 425 of 435 (ID: 6, /home/rk/corecdp-1.1.1/user-collection/recipes/hellobrother/hellobrother_1.0.0.bb, do_qa_configure)
NOTE: package hellobrother-1.0.0-r1: task do_qa_configure: Started
NOTE: package hellobrother-1.0.0-r1: task do_qa_configure: Succeeded
NOTE: Running task 426 of 435 (ID: 7, /home/rk/corecdp-1.1.1/user-collection/recipes/hellobrother/hellobrother_1.0.0.bb, do_compile)
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/rk/corecdp-1.1.1/user-collection/recipes/hellobrother/hellobrother_1.0.0.bb do_compile failed
NOTE: package hellobrother-1.0.0-r1: task do_compile: Started
ERROR: Task 7 (/home/rk/corecdp-1.1.1/user-collection/recipes/hellobrother/hellobrother_1.0.0.bb, do_compile) failed with 256
ERROR: ‘/home/rk/corecdp-1.1.1/user-collection/recipes/hellobrother/hellobrother_1.0.0.bb’ failed
ERROR: Function do_compile failed
NOTE: Task failed: (‘function do_compile failed’, ‘/home/rk/corecdp-1.1.1/build/tmp/work/armv5te-corecdp-linux-gnueabi/hellobrother-1.0.0-r1/temp/log.do_compile.1671’)
ERROR: Logfile of failure stored in: /home/rk/corecdp-1.1.1/build/tmp/work/armv5te-corecdp-linux-gnueabi/hellobrother-1.0.0-r1/temp/log.do_compile.1671
Log data follows:
| cc1: error: unrecognised debug output level “3-L/home/rk/corecdp-1.1.1/build/tmp/staging/armv5te-corecdp-linux-gnueabi/usr/lib”
| ERROR: Function do_compile failed
NOTE: package hellobrother-1.0.0-r1: task do_compile: Failed
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/rk/corecdp-1.1.1/user-collection/recipes/hellobrother/hellobrother_1.0.0.bb do_compile failed
ERROR: Task 7 (/home/rk/corecdp-1.1.1/user-collection/recipes/hellobrother/hellobrother_1.0.0.bb, do_compile) failed with 256
ERROR: ‘/home/rk/corecdp-1.1.1/user-collection/recipes/hellobrother/hellobrother_1.0.0.bb’ failed
ERROR: ‘/home/rk/corecdp-1.1.1/user-collection/recipes/hellobrother/hellobrother_1.0.0.bb’ failed
regards
rishi
December 8, 2011 at 4:18 pm #3612JM KParticipantHi Rishi,
have a look at the bitbake file in the link:
http://www.multitech.net/developer/products/multiconnect-ocg/development/development-examples/
The error says you have a problem with your C program. Try posting the C program that you are trying to compile.
Best Regards,
JM
December 9, 2011 at 5:42 am #3613Rishi KumarParticipantHi JM,
Thanks for reply. problem is not with C program it is quite simple printf(“hellobrother”). May you help me write .bb file which can compile .c file from existing directory.
i suspect on following area in .bb file. it is still not behaving as i understood from opendembedded manual.
PR = “r1”
SRC_URI=”file://hellobrother.c”
S = “${WORKDIR}/${P}”
do_fetch () {
mkdir -p ${WORKDIR}/${P}
cp hellobrother.c ${WORKDIR}/${P}
}
Regards
Rishi
December 13, 2011 at 4:05 pm #3614JM KParticipantHey Rishi,
take out this part:
do_fetch () {
mkdir -p ${WORKDIR}/${P}
cp hellobrother.c ${WORKDIR}/${P}
}
Also chnage S = “${WORKDIR}/${P}” to S = “${WORKDIR}
Update PR = “r2” so that the program compiles afresh. Give that a try.
Regards,
JM
December 13, 2011 at 5:09 pm #3615Jesse GillesBlockeddo_compile () {
${CC} ${CFLAGS}${LDFLAGS} hellobrother.c -o hellobrother
}
You’re missing a space between CFLAGS and LDFLAGS on your compile line. It’s mashing the options together that get passed to gcc.
-
AuthorPosts
- You must be logged in to reply to this topic.