Problem with make: *** No targets specified and no makefile found.
I am trying adapt fbi recipe. (https://github.com/Kuzma30/meta-myconf/blob/main/recipes-core/fbi/fbi_1.31.bb)
When I run bitbake fbi I get
NOTE: Executing Tasks
ERROR: fbi-1.31-r0 do_compile: oe_runmake failed
ERROR: fbi-1.31-r0 do_compile: ExecutionError('/home/qtembed/b2qt/build-raspberrypi4-64/tmp/work/cortexa72-poky-linux/fbi/1.31-r0/temp/run.do_compile.4355', 1, None, None)
ERROR: Logfile of failure stored in: /home/qtembed/b2qt/build-raspberrypi4-64/tmp/work/cortexa72-poky-linux/fbi/1.31-r0/temp/log.do_compile.4355 Log data follows:
| DEBUG: Executing python function autotools_aclocals | DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common'] | DEBUG: Python function autotools_aclocals finished | DEBUG: Executing shell function do_compile | NOTE: make | make: *** No targets specified and no makefile found. Stop. | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command.
ERROR: Task (/home/qtembed/b2qt/sources/meta-myconfig/recipes-core/fbi/fbi_1.31.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 769 tasks of which 768 didn't need to be rerun and 1 failed.
I see empty home/qtembed/b2qt/build-raspberrypi4-64/tmp/work/cortexa72-poky-linux/fbi/1.31-r0/build directory. In home/qtembed/b2qt/build-raspberrypi4-64/tmp/work/cortexa72-poky-linux/fbi/1.31-r0/fbi-1.31 I see extracted source code. As I understand this error make is running in empty build dir, not in source.
How to fix this?
Hi Kuzemko Aleksandr,
Quoted 16 lines · Kuzemko Aleksandr
I am trying adapt fbi recipe. (https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Kuzma30_meta-2Dmyconf_blob_main_recipes-2Dcore_fbi_fbi-5F1.31.bb&d=DwIFaQ&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=gnSpmPTreYq9mxX4ptMTWTg0gTJw7RWcUWX8gKmcw8S8xDyWysHjWlYvrelWOfuf&s=js1u3ARo14dxKOe3T2TO2ZX6O_y6RGMtZ8eDqYtxUm4&e= ) When I run bitbake fbi I get
NOTE: Executing Tasks
ERROR: fbi-1.31-r0do_compile:oe_runmakefailed
ERROR: fbi-1.31-r0do_compile: ExecutionError('/home/qtembed/b2qt/build-raspberrypi4-64/tmp/work/cortexa72-poky-linux/fbi/1.31-r0/temp/run.do_compile.4355', 1, None, None)
ERROR: Logfile of failure stored in:/home/qtembed/b2qt/build-raspberrypi4-64/tmp/work/cortexa72-poky-linux/fbi/1.31-r0/temp/log.do_compile.4355Log data follows:| DEBUG: Executing python function autotools_aclocals | DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common'] | DEBUG: Python function autotools_aclocals finished | DEBUG: Executing shell function do_compile | NOTE: make | make: *** No targets specified and no makefile found. Stop. | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command.
Quoted 7 lines
ERROR: Task (/home/qtembed/b2qt/sources/meta-myconfig/recipes-core/fbi/fbi_1.31.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 769 tasks of which 768 didn't need to be rerun and 1 failed.I see empty home/qtembed/b2qt/build-raspberrypi4-64/tmp/work/cortexa72-poky-linux/fbi/1.31-r0/build directory. In home/qtembed/b2qt/build-raspberrypi4-64/tmp/work/cortexa72-poky-linux/fbi/1.31-r0/fbi-1.31 I see extracted source code. As I understand this error make is running in empty build dir, not in source.
How to fix this?
Maybe this has a broken autotools script, can you try to inherit autotools-brokensep instead of autotools?
c.f. https://docs.yoctoproject.org/ref-manual/classes.html#autotools-bbclass
Cheers,
Quentin