WAF hiding that build failed (Thomas in newbie mode...)
Chris Johns
chrisj at rtems.org
Mon Jan 28 22:20:49 UTC 2019
On 25/1/19 6:47 pm, Thomas Doerfler wrote:
>
> after a long time busy with other things, I am currently developing an
> RTEMS application again, based on the current build system. Yesterday I
> hit a strange error and, since this may happen to others, I want to
> report it.
Welcome back :)
> I rebuilt the latest libbsd using waf. Due to a version inconsistency
> (my fault), the build failed and my screen showed the following:
>
> --------snip
> /net/ethernet/freescale/fman',
> '-I/home/EB/thomas_d/sandbox/rtems-HEAD/rtems-libbsd/build/arm-rtems5-imx7-default/rtemsbsd/sys',
> '-I/home/EB/thomas_d/sandbox/rtems-HEAD/rtems-libbsd/rtemsbsd/sys',
> '-I/home/EB/thomas_d/sandbox/rtems-HEAD/rtems-libbsd/build/arm-rtems5-imx7-default/mDNSResponder/mDNSCore',
> '-I/home/EB/thomas_d/sandbox/rtems-HEAD/rtems-libbsd/mDNSResponder/mDNSCore',
> '-I/home/EB/thomas_d/sandbox/rtems-HEAD/rtems-libbsd/build/arm-rtems5-imx7-default/mDNSResponder/mDNSShared',
> '-I/home/EB/thomas_d/sandbox/rtems-HEAD/rtems-libbsd/mDNSResponder/mDNSShared',
> '-I/home/EB/thomas_d/sandbox/rtems-HEAD/rtems-libbsd/build/arm-rtems5-imx7-default/mDNSResponder/mDNSPosix',
> '-I/home/EB/thomas_d/sandbox/rtems-HEAD/rtems-libbsd/mDNSResponder/mDNSPosix',
> '-I/home/EB/thomas_d/sandbox/rtems-HEAD/rtems-libbsd/build/arm-rtems5-imx7-default/testsuite/include',
> '-I/home/EB/thomas_d/sandbox/rtems-HEAD/rtems-libbsd/testsuite/include',
> '-I/home/EB/thomas_d/sandbox/rtems-HEAD/rtems-libbsd/build/arm-rtems5-imx7-default/build-include',
> '-I/home/EB/thomas_d/sandbox/rtems-HEAD/rtems-libbsd/build-include',
> '-DHAVE_DLFCN_H=1', '-DHAVE_RTEMS_PCI_H=1',
> '-DHAVE_RTEMS_RTEMS_DEBUGGER_H=1', '../../freebsd/sys/net/rtsock.c',
> '-c', '-o',
> '/home/EB/thomas_d/sandbox/rtems-HEAD/rtems-libbsd/build/arm-rtems5-imx7-default/freebsd/sys/net/rtsock.c.18.o']
> thomas_d at doerfler-linux:~/sandbox/rtems-HEAD/rtems-libbsd>
> --------snip
>
> Well, I thought, just another build output, no obvious error message, so
> I proceeded with my application.
>
> I fact, I missed the one important term "Build failed", which was about
> 100 lines above...
>
> --------snip
> Waf: Leaving directory
> `/home/EB/thomas_d/sandbox/rtems-HEAD/rtems-libbsd/build/arm-rtems5-imx7-default'
> Build failed
> -> task in 'bsd' failed (exit status 1):
> {task 139837028377488: c rtsock.c -> rtsock.c.18.o}
> ['/opt/rtems-5/bin/arm-rtems5-gcc', '-qrtems',
> '-B/opt/rtems-5/arm-rtems5/lib/', '-B/opt/rtems-5/arm-rtems5/imx7/lib/',
> '--specs', 'bsp_specs', '-march=armv7-a', '-march=armv7-a', '-mthumb',
> '-mthumb', '-mfpu=neon', '-mfpu=neon', '-mfloat-abi=hard',
> '-mfloat-abi=hard', '-mtune=cortex-a7', '-mtune=cortex-a7',
> '-ffunction-sections', '-ffunction-sections', '-fdata-sections',
> '-fdata-sections', '-O2', '-g', '-fno-strict-aliasing',
> '-ffreestanding', '-fno-common', '-w',
> '-I/home/EB/thomas_d/sandbox/rtems-HEAD/rtems-libbsd/build/arm-rtems5-imx7-default/rtemsbsd/arm/include',
> '-I/home/EB/thomas_d/sandbox/rtems-HEAD/rtems-libbsd/rtemsbsd/arm/include',
> '-I/home/EB/thomas_d/sandbox/rtems-HEAD/rtems-libbsd/build/arm-rtems5-imx7-default/freebsd/sys/arm/include',
> '-I/home/EB/thomas_d/sandbox/rtems-HEAD/rtems-libbsd/freebsd/sys/arm/include',
> '-I/home/EB/thomas_d/sandbox/rtems-HEAD/rtems-
>
> .....
> --------snip
>
>
> So, my question: is it possible to modify the build system so that the
> summary "Build failed" is at the end of the output?
Could you please upload or send me the whole output including stderr?
For me waf always places the error message at the end of the output no matter
how many cores you have running at once.
Thanks
Chris
More information about the users
mailing list