* Bitbake Recipe Failing
@ 2018-11-27 6:39 nick
2018-11-27 10:00 ` Burton, Ross
0 siblings, 1 reply; 2+ messages in thread
From: nick @ 2018-11-27 6:39 UTC (permalink / raw)
To: yocto
Greetings All,
I am wondering how to forget about package QA in the best way possible just to get this basic hello world test package to build in a
new layer I created:
SUMMARY = "Simple Hello World Application"
DESCRIPTION = "A test application to demonstrate how to create a recipe \
by directly compiling C files with BitBake."
SECTION = "examples"
PRIORITY = "optional"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "\
file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "file://hello-1.0.tgz"
S = "${WORKDIR}"
do_compile() {
${CC} -c helloprint.c
${CC} -c hello.c
${CC} -o hello hello.o helloprint.o
}
do_install() {
install -d ${D}${bindir}
install -m 0755 hello ${D}${bindir}
}
This the errors when I run it with bitbake -b recipe name in the layer's folder:
ERROR: hello-1.0-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/home/nick/poky/build/tmp/work/i586-poky-linux/hello/1.0-r0/packages-split/hello/usr/bin/hello' [ldflags]
WARNING: hello-1.0-r0 do_package_qa: QA Issue: hello rdepends on glibc, but it isn't a build dependency, missing glibc in DEPENDS or PACKAGECONFIG? [build-deps]
ERROR: hello-1.0-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: hello-1.0-r0 do_package_qa: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /home/nick/poky/build/tmp/work/i586-poky-linux/hello/1.0-r0/temp/log.do_package_qa.29042
ERROR: Task (/home/nick/poky/build/layer/hello_1.0.bb:do_package_qa) failed with exit code '1'
NOTE: Tasks Summary: Attempted 13 tasks of which 7 didn't need to be rerun and 1 failed.
Huge Thanks,
Nick
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bitbake Recipe Failing
2018-11-27 6:39 Bitbake Recipe Failing nick
@ 2018-11-27 10:00 ` Burton, Ross
0 siblings, 0 replies; 2+ messages in thread
From: Burton, Ross @ 2018-11-27 10:00 UTC (permalink / raw)
To: nick; +Cc: Yocto-mailing-list
On Tue, 27 Nov 2018 at 06:40, nick <xerofoify@gmail.com> wrote:
> do_compile() {
> ${CC} -c helloprint.c
> ${CC} -c hello.c
> ${CC} -o hello hello.o helloprint.o
> }
You need to pass ${CFLAGS} ${LDFLAGS} too.
Ross
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-11-27 10:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-27 6:39 Bitbake Recipe Failing nick
2018-11-27 10:00 ` Burton, Ross
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.