Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
[-next] cyclic dependency in makefile of 4a-alsa-core (ninja instead of make)
Description
Symptom:
ERROR: 4a-alsa-core-0.1+gitAUTOINC+ef3575fd39-r0 do_compile: Function failed: do_compile (log file is located at /home/scratch/user/git/AGL/build-next/build-q64/tmp/work/corei7-64-agl-linux/4a-alsa-core/0.1+gitAUTOINC+ef3575fd39-r0/temp/log.do_compile.8088)
ERROR: Logfile of failure stored in: /home/scratch/user/git/AGL/build-next/build-q64/tmp/work/corei7-64-agl-linux/4a-alsa-core/0.1+gitAUTOINC+ef3575fd39-r0/temp/log.do_compile.8088
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: VERBOSE=1 cmake --build /home/scratch/user/git/AGL/build-next/build-q64/tmp/work/corei7-64-agl-linux/4a-alsa-core/0.1+gitAUTOINC+ef3575fd39-r0/build --target all -- -j 40
| ninja: warning: phony target 'htdocs/htdocs' names itself as an input; ignoring [-w phonycycle=warn]
| ninja: warning: multiple rules generate htdocs/htdocs. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]
| ninja: error: dependency cycle: htdocs/htdocs -> htdocs/CMakeFiles/htdocs -> htdocs/htdocs
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/scratch/user/git/AGL/build-next/build-q64/tmp/work/corei7-64-agl-linux/4a-alsa-core/0.1+gitAUTOINC+ef3575fd39-r0/temp/log.do_compile.8088)
ERROR: Task (/home/scratch/user/git/AGL/build-next/meta-agl-devel/meta-audio-4a-framework/recipes-multimedia/4a-alsa-core/4a-alsa-core_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1849 tasks of which 1848 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/scratch/user/git/AGL/build-next/meta-agl-devel/meta-audio-4a-framework/recipes-multimedia/4a-alsa-core/4a-alsa-core_git.bb:do_compile
Reproduce:
mkdir build-next ; cd build-next
repo init -b next -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
source meta-agl/scripts/aglsetup.sh -m qemux86-64 -b build-systemd agl-demo agl-devel
# to include the artifact
bitbake 4a-alsa-core
Environment
-next
Activity
Sebastien Douheret
July 30, 2019 at 4:09 PM
Mark as won't fix as AGL now switched to Pipewire
Stephane Desneux
February 1, 2019 at 3:58 PM
A workaround is to use make to build (instead of ninja).
For that, just add the following lines in the recipe:
### AGL_FIXME - use make with cmake and not ninja
OECMAKE_GENERATOR = "Unix Makefiles"
Symptom:
ERROR: 4a-alsa-core-0.1+gitAUTOINC+ef3575fd39-r0 do_compile: Function failed: do_compile (log file is located at /home/scratch/user/git/AGL/build-next/build-q64/tmp/work/corei7-64-agl-linux/4a-alsa-core/0.1+gitAUTOINC+ef3575fd39-r0/temp/log.do_compile.8088) ERROR: Logfile of failure stored in: /home/scratch/user/git/AGL/build-next/build-q64/tmp/work/corei7-64-agl-linux/4a-alsa-core/0.1+gitAUTOINC+ef3575fd39-r0/temp/log.do_compile.8088 Log data follows: | DEBUG: Executing shell function do_compile | NOTE: VERBOSE=1 cmake --build /home/scratch/user/git/AGL/build-next/build-q64/tmp/work/corei7-64-agl-linux/4a-alsa-core/0.1+gitAUTOINC+ef3575fd39-r0/build --target all -- -j 40 | ninja: warning: phony target 'htdocs/htdocs' names itself as an input; ignoring [-w phonycycle=warn] | ninja: warning: multiple rules generate htdocs/htdocs. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn] | ninja: error: dependency cycle: htdocs/htdocs -> htdocs/CMakeFiles/htdocs -> htdocs/htdocs | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_compile (log file is located at /home/scratch/user/git/AGL/build-next/build-q64/tmp/work/corei7-64-agl-linux/4a-alsa-core/0.1+gitAUTOINC+ef3575fd39-r0/temp/log.do_compile.8088) ERROR: Task (/home/scratch/user/git/AGL/build-next/meta-agl-devel/meta-audio-4a-framework/recipes-multimedia/4a-alsa-core/4a-alsa-core_git.bb:do_compile) failed with exit code '1' NOTE: Tasks Summary: Attempted 1849 tasks of which 1848 didn't need to be rerun and 1 failed. Summary: 1 task failed: /home/scratch/user/git/AGL/build-next/meta-agl-devel/meta-audio-4a-framework/recipes-multimedia/4a-alsa-core/4a-alsa-core_git.bb:do_compile
Reproduce:
mkdir build-next ; cd build-next repo init -b next -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo source meta-agl/scripts/aglsetup.sh -m qemux86-64 -b build-systemd agl-demo agl-devel # to include the artifact bitbake 4a-alsa-core