WAF hiding that build failed (Thomas in newbie mode...)

Thomas Doerfler thomas.doerfler at embedded-brains.de
Fri Jan 25 07:47:54 UTC 2019


Hi all,

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.

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?

Kind regards,

Thomas.


-- 
--------------------------------------------
embedded brains GmbH
Thomas Doerfler
Dornierstr. 4
D-82178 Puchheim
Germany
email: Thomas.Doerfler at embedded-brains.de
Phone: +49-89-18 94 741-12
Fax:   +49-89-18 94 741-09
PGP: Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.


More information about the users mailing list