This repository has been archived by the owner on Jun 18, 2018. It is now read-only.
setools-3.3.8: build failure due to race condition #5
Comments
buildroot-auto-update
pushed a commit
to buildroot/buildroot
that referenced
this issue
Sep 10, 2015
As reported upstream: TresysTechnology/setools3#5 setools tries to compile a .c file before being generated and then it produces an error like this one: error: policy_scan.c: No such file or directory Until upstream fixes the problem we can workaround this by using MAKE1 as the SETOOLS_MAKE. Fixes: http://autobuild.buildroot.net/results/119/1196ac448c77320b59b63b6133d2d1af1245bf69/ Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
It seems more complex because we still see this problem despite of using "make -j1": http://autobuild.buildroot.net/results/dad/dad9d79c10722b203536540141a6defc79937e4e/build-end.log |
It looks like you are missing flex. The configure script isn't failing over it, but missing flex appears to be your core issue. |
tpetazzoni
pushed a commit
to buildroot/buildroot
that referenced
this issue
Sep 30, 2015
This reverts commit 1ac68fe. Further investigations revealed that the problem wasn't a race condition but the lack of flex package in the host machine: TresysTechnology/setools3#5 (comment) Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
tpetazzoni
pushed a commit
to buildroot/buildroot
that referenced
this issue
Sep 30, 2015
setools needs host-flex in order to generate some source files during build time, otherwise it will fail with an error like this one: error: policy_scan.c: No such file or directory Issue reported here as a race condition problem, but it turned out that it the actual problem was the lack of host-flex: TresysTechnology/setools3#5 (comment) Fixes: http://autobuild.buildroot.net/results/dad/dad9d79c10722b203536540141a6defc79937e4e/ Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
@pebenito Indeed the problem was a missing flex. The issue can be closed now. Vicente, can you close it? |
Closed. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
[snip]
/br/output/host/usr/bin/mips64el-ctng_n32-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing -I./../include -I/br/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/lib/../include -I/br/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/include -I/br/output/host/usr/mips64el-buildroot-linux-gnu/sysroot/usr/include -fpic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -c -o policy_parse.o policy_parse.c
/bin/bash ../../ylwrap policy_scan.l .c policy_scan.c -- :
[snip]
Trying to compile policy_parse.c before its generated from policy_scan.l using ylwrap.
Full log can be found here:
http://autobuild.buildroot.net/results/119/1196ac448c77320b59b63b6133d2d1af1245bf69/build-end.log
The text was updated successfully, but these errors were encountered: