Re: Bitbake error : nothing PROVIDES?

Home Forums Re: Bitbake error : nothing PROVIDES?

#3887
Conrad Ljungström
Participant

Hi!

So I was just testing a few things and I ran into some trouble. I don’t quite understand the error message I got and thought I’d ask since this is likely piece of cake for most people around here.

So what I did was I borrowed some code from the c++ reference page.

( http://www.cplusplus.com/reference/clibrary/cstdlib/system/ ) to try and see if i could get a nonzero output, but when I tried running bitbake it went boom. 🙁

.c file

#include <stdio.h>

#include <stdlib.h>

int main()

{

int i = 5;

printf(“UmmDeeDum! Processor blah..”);

if(system(NULL)) puts(“Ok”);

else exit(1);

printf(“Executing Command LS…n”);

i=system(“ls”);

printf(“Value returned: %d.n”, i);

}

.bb file

DESCRIPTION = “test”

SECTION = “examples”

LICENSE = “GPL”

SRC_URI = “file://test.c”

S = “${WORKDIR}”

do_compile() {

${CC} ${CFLAGS} ${LDFLAGS} test.c -o test

}

do_install() {

install -d ${D}${bindir}

install -m 0755 test ${D}${bindir}

}

result when running bitbake test:

ERROR: Nothing PROVIDES ‘test/’

ERROR: Command execution failed: Traceback (most recent call last):

File “/home/conradl/corecdp2.0.2/corecdp-2.0.2/bitbake/lib/bb/command.py”, line 102, in runAsyncCommand

commandmethod(self.cmds_async, self, options)

File “/home/conradl/corecdp2.0.2/corecdp-2.0.2/bitbake/lib/bb/command.py”, line 200, in buildTargets

command.cooker.buildTargets(pkgs_to_build, task)

File “/home/conradl/corecdp2.0.2/corecdp-2.0.2/bitbake/lib/bb/cooker.py”, line 753, in buildTargets

taskdata.add_provider(localdata, self.status, k)

File “/home/conradl/corecdp2.0.2/corecdp-2.0.2/bitbake/lib/bb/taskdata.py”, line 353, in add_provider

self.add_provider_internal(cfgData, dataCache, item)

File “/home/conradl/corecdp2.0.2/corecdp-2.0.2/bitbake/lib/bb/taskdata.py”, line 373, in add_provider_internal

raise bb.providers.NoProvider(item)

NoProvider: test/

Unexpected to say the least…

#EDIT

This should probably be in the MultiConnect OCG (Cellular Development Platform) forum instead of General (my bad) :/