problem building libbsd with waf

Jeff Mayes Jeff.Mayes at OARcorp.com
Tue Aug 29 15:39:37 UTC 2017


Hi

I'm trying to build rtems and rtems-libbsd.  It all goes fine until the waf build fails with this:
  Checking for RTEMS CPU options header   : no

This occurs for both i386 and arm.  Part of the config.log is below.

Any ideas?
Thanks
Jeff



Compiler version (arm-rtems4.12-gcc)
7.2.0 20170814 (RTEMS 4.12, RSB 4f364ef763f6c08bf9ba7ac3ede2a4288fdd517c, Newlib 2.5.0.20170818)
Opening and load pkgconfig: /home/mayes/dev/rtems/4.12/lib/pkgconfig/arm-rtems4.12-xilinx_zynq_zedboard.pc
-----------------------------------------
CFLAGS ->
   -qrtems -B/home/mayes/dev/rtems/4.12/arm-rtems4.12/lib/ -B/home/mayes/dev/rtems/4.12/arm-rtems4.12/xilinx_zynq_zedboard/lib/ --specs bsp_specs -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a9 -O2 -g -ffunction-sections -fdata-sections -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs
LDFLAGS ->
pkconfig warning: Label not found: LDFLAGS

LIB ->
pkconfig warning: Label not found: LIB

--------------------------------------------
Checking for RTEMS CPU options header
==>
#include <rtems/score/cpuopts.h>

int main(int argc, char **argv) {
     (void)argc; (void)argv;
     return 0;
}

<==
[1/2] Compiling _[32mbuild/.conf_check_122a9fe5b1fee9ea5238dc4154037b18/test.cpp_[0m

['/home/mayes/dev/rtems/4.12/bin/arm-rtems4.12-g++', '-qrtems', '-B/home/mayes/dev/rtems/4.12/arm-rtems4.12/lib/', '-B/home/mayes/dev/rtems/4.12/arm-rtems4.12/xilinx_zynq_zedboard/lib/', '--specs', 'bsp_specs', '-march=armv7-a', '-march=armv7-a', '-mthumb', '-mthumb', '-mfpu=neon', '-mfpu=neon', '-mfloat-abi=hard', '-mfloat-abi=hard', '-mtune=cortex-a9', '-mtune=cortex-a9', '-ffunction-sections', '-ffunction-sections', '-fdata-sections', '-fdata-sections', '../test.cpp', '-c', '-o', '/home/mayes/dev/rtems-libbsd/build/.conf_check_122a9fe5b1fee9ea5238dc4154037b18/testbuild/test.cpp.1.o']
err: Assembler messages:
Fatal error: invalid -march= option: `armv7-a'

from /home/mayes/dev/rtems-libbsd: Test does not build: Traceback (most recent call last):
  File "/home/mayes/bin/.waf-1.8.20-c859ca7dc3693011756f4edf45c36626/waflib/Configure.py", line 335, in run_build
    bld.compile()
  File "/home/mayes/bin/.waf-1.8.20-c859ca7dc3693011756f4edf45c36626/waflib/Build.py", line 185, in compile
    raise Errors.BuildError(self.producer.error)
BuildError: Build failed
-> task in 'testprog' failed (exit status 1):
     {task 28291600: cxx test.cpp -> test.cpp.1.o}
['/home/mayes/dev/rtems/4.12/bin/arm-rtems4.12-g++', '-qrtems', '-B/home/mayes/dev/rtems/4.12/arm-rtems4.12/lib/', '-B/home/mayes/dev/rtems/4.12/arm-rtems4.12/xilinx_zynq_zedboard/lib/', '--specs', 'bsp_specs', '-march=armv7-a', '-march=armv7-a', '-mthumb', '-mthumb', '-mfpu=neon', '-mfpu=neon', '-mfloat-abi=hard', '-mfloat-abi=hard', '-mtune=cortex-a9', '-mtune=cortex-a9', '-ffunction-sections', '-ffunction-sections', '-fdata-sections', '-fdata-sections', '../test.cpp', '-c', '-o', '/home/mayes/dev/rtems-libbsd/build/.conf_check_122a9fe5b1fee9ea5238dc4154037b18/testbuild/test.cpp.1.o']

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20170829/a60e5375/attachment.html>


More information about the devel mailing list