examples-v2 build issue with qemuprep

Joel Sherrill joel at rtems.org
Thu Aug 23 21:24:17 UTC 2018


On Thu, Aug 23, 2018 at 3:46 PM, Matthew Gann <mgann at prc-hsv.com> wrote:

> I'm focused on the 4.11 branch, as the 5 didn't seem to support the QorIQ
> 1020rdb board yet, which I plan on moving to when hardware is in hand.
> Until then, Qemuprep seemed the best emulation route...
>
> #
> # pkg-config support file for RTEMS BSP qemuprep
> #
> # Warning: This stuff is experimental and may be changed at any time.
> #
> prefix=/opt/development/projects/booster/rtems-qemuprep/bsp
> exec_prefix=/opt/development/projects/booster/rtems-
> qemuprep/bsp/powerpc-rtems4.11
> libdir=${exec_prefix}/qemuprep/lib
> includedir=${exec_prefix}/qemuprep/lib/include
>
> CFLAGS=-mcpu=powerpc -mmultiple -mstring -mstrict-align -D__ppc_generic
> -O2 -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration
> -Wstrict-prototypes -Wnested-externs
> RTEMS_BSP=qemuprep
>
> Name: powerpc-rtems4.11-qemuprep
> Version: 4.11.1.99
> Description: RTEMS BSP qemuprep
> Libs:
> Cflags: -qrtems -B${exec_prefix}/lib/ -B${libdir}/ --specs bsp_specs
> ${CFLAGS}
>

The Cflags is in the wrong order. Fix that by hand and file a ticket
against 4.11.

Cflags: -B${exec_prefix}/lib/ -B${libdir}/ --specs bsp_specs -qrtems
${CFLAGS}

This .pc file is generated and it looks to be exactly the same on the master
but it built for me on the master. So I am confused.

Definitely as bug though.

--joel


>
>
> On Thu, Aug 23, 2018 at 3:31 PM Joel Sherrill <joel at rtems.org> wrote:
>
>>
>> On Thu, Aug 23, 2018 at 10:34 AM, Matthew Gann <mgann at prc-hsv.com> wrote:
>>
>>> I've built the qemuprep tools and bsp, and successfully simulated the
>>> samples (hello.ralf, etc).  I was attempting to move on to the examples-v2
>>> project so I could get a better feel for how to build a standalone RTEMS
>>> project.  I have not been able to make it build correctly, and from the
>>> messages it seems like there may be an issue with the build.  If I follow
>>> the directions in the README files I get the following:
>>>
>>> mgann at obsidian:~/dev/projects/booster/rtems-qemuprep$ git clone -b 4.11
>>> git://git.rtems.org/examples-v2.git
>>> Cloning into 'examples-v2'...
>>> remote: Counting objects: 1661, done.
>>> remote: Compressing objects: 100% (877/877), done.
>>> remote: Total 1661 (delta 1019), reused 1257 (delta 758)
>>> Receiving objects: 100% (1661/1661), 543.00 KiB | 211.00 KiB/s, done.
>>> Resolving deltas: 100% (1019/1019), done.
>>> mgann at obsidian:~/dev/projects/booster/rtems-qemuprep$ cd examples-v2/
>>> mgann at obsidian:~/dev/projects/booster/rtems-qemuprep/examples-v2$ git
>>> submodule init
>>> Submodule 'rtems_waf' (git://git.rtems.org/chrisj/rtems_waf.git)
>>> registered for path 'rtems_waf'
>>> mgann at obsidian:~/dev/projects/booster/rtems-qemuprep/examples-v2$ git
>>> submodule update
>>> Cloning into '/opt/development/projects/booster/rtems-qemuprep/
>>> examples-v2/rtems_waf'...
>>> Submodule path 'rtems_waf': checked out '7bcf72b72ec42f2feedac5f5cc5f2f
>>> 57d50b5d2b'
>>> mgann at obsidian:~/dev/projects/booster/rtems-qemuprep/examples-v2$ waf
>>> configure --rtems=${RTEMS_PATH}/bsp --rtems-tools=${RTEMS_PATH}/tools
>>> --rtems-bsps=powerpc/qemuprep
>>> Setting top to                           : /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2
>>> Setting out to                           : /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build
>>> Architectures                            : powerpc-rtems4.11
>>> Board Support Package                    : powerpc-rtems4.11-qemuprep
>>> Checking for program 'powerpc-rtems4.11-gcc' : /opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-gcc
>>> Checking for program 'powerpc-rtems4.11-g++' : /opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-g++
>>> Checking for program 'powerpc-rtems4.11-gcc' : /opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-gcc
>>> Checking for program 'powerpc-rtems4.11-ld'  : /opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-ld
>>> Checking for program 'powerpc-rtems4.11-ar'  : /opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-ar
>>> Checking for program 'powerpc-rtems4.11-ar'  : /opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-ar
>>> Checking for program 'powerpc-rtems4.11-ld'  : /opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-ld
>>> Checking for program 'powerpc-rtems4.11-nm'  : /opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-nm
>>> Checking for program 'powerpc-rtems4.11-objdump' :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/
>>> bin/powerpc-rtems4.11-objdump
>>> Checking for program 'powerpc-rtems4.11-objcopy' :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/
>>> bin/powerpc-rtems4.11-objcopy
>>> Checking for program 'powerpc-rtems4.11-readelf' :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/
>>> bin/powerpc-rtems4.11-readelf
>>> Checking for program 'powerpc-rtems4.11-strip'   :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/
>>> bin/powerpc-rtems4.11-strip
>>> Checking for program 'rtems-ld'                  :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/bin/rtems-ld
>>> Checking for program 'rtems-tld'                 :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/bin/rtems-tld
>>> Checking for program 'rtems-bin2c'               :
>>> /opt/development/projects/booster/rtems-qemuprep/bsp/bin/rtems-bin2c
>>> Checking for program 'tar'                       : /bin/tar
>>> Checking for program 'gcc, cc'                   :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/
>>> bin/powerpc-rtems4.11-gcc
>>> Checking for program 'ar'                        :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/
>>> bin/powerpc-rtems4.11-ar
>>> Checking if the -o link must be split from arguments : no
>>> Checking for program 'g++, c++'                      :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/
>>> bin/powerpc-rtems4.11-g++
>>> Checking for program 'ar'                            :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/
>>> bin/powerpc-rtems4.11-ar
>>> Checking if the -o link must be split from arguments : no
>>> Checking for program 'gas, gcc'                      :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/
>>> bin/powerpc-rtems4.11-gcc
>>> Checking for program 'ar'                            :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/
>>> bin/powerpc-rtems4.11-ar
>>> Checking for RTEMS headers                           : started
>>> -> processing test results                           : all ok
>>> Checking for RTEMS_DEBUG                             : no
>>> Checking for RTEMS_MULTIPROCESSING                   : no
>>> Checking for RTEMS_NEWLIB                            : yes
>>> Checking for RTEMS_POSIX_API                         : yes
>>> Checking for RTEMS_SMP                               : no
>>> Checking for RTEMS_NETWORKING                        : yes
>>> Checking for RTEMS_ATOMIC                            : no
>>> 'configure' finished successfully (3.420s)
>>> mgann at obsidian:~/dev/projects/booster/rtems-qemuprep/examples-v2$ waf -v
>>> Waf: Entering directory `/opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build/powerpc-rtems4.11-qemuprep'
>>> [  1/116] Creating build/powerpc-rtems4.11-qemuprep/filesystem/fat_
>>> ramdisk/FilesystemImage
>>> 10:24:16 runner ' tar -C /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/filesystem/fat_ramdisk/rootfs -cf
>>> filesystem/fat_ramdisk/FilesystemImage . '
>>> [  2/116] Creating build/powerpc-rtems4.11-qemuprep/file_io/crc/
>>> FilesystemImage
>>> 10:24:16 runner ' tar -C /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/file_io/crc/rootfs -cf
>>> file_io/crc/FilesystemImage . '
>>> [  3/116] Processing build/powerpc-rtems4.11-qemuprep/filesystem/fat_
>>> ramdisk/FilesystemImage
>>> 10:24:16 runner ' /opt/development/projects/booster/rtems-qemuprep/bsp/bin/rtems-bin2c
>>> filesystem/fat_ramdisk/FilesystemImage /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build/powerpc-
>>> rtems4.11-qemuprep/filesystem/fat_ramdisk/FilesystemImage.c && touch
>>> /opt/development/projects/booster/rtems-qemuprep/
>>> examples-v2/build/powerpc-rtems4.11-qemuprep/filesystem/fat_ramdisk/FilesystemImage.h
>>> '
>>> [  4/116] Processing build/powerpc-rtems4.11-qemuprep/filesystem/fat_
>>> ramdisk/FilesystemImage
>>> 10:24:16 runner ' /opt/development/projects/booster/rtems-qemuprep/bsp/bin/rtems-bin2c
>>> filesystem/fat_ramdisk/FilesystemImage /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build/powerpc-
>>> rtems4.11-qemuprep/filesystem/fat_ramdisk/FilesystemImage.c && touch
>>> /opt/development/projects/booster/rtems-qemuprep/
>>> examples-v2/build/powerpc-rtems4.11-qemuprep/filesystem/fat_ramdisk/FilesystemImage.h
>>> '
>>> [  5/116] Processing build/powerpc-rtems4.11-qemuprep/file_io/crc/
>>> FilesystemImage
>>> 10:24:16 runner ' /opt/development/projects/booster/rtems-qemuprep/bsp/bin/rtems-bin2c
>>> file_io/crc/FilesystemImage /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build/powerpc-
>>> rtems4.11-qemuprep/file_io/crc/FilesystemImage.c && touch
>>> /opt/development/projects/booster/rtems-qemuprep/
>>> examples-v2/build/powerpc-rtems4.11-qemuprep/file_io/crc/FilesystemImage.h
>>> '
>>> [  6/116] Compiling build/powerpc-rtems4.11-qemuprep/file_io/crc/
>>> FilesystemImage.c
>>> 10:24:16 runner ['/opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-gcc', '-qrtems',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/powerpc-rtems4.11/lib/',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/', '--specs', 'bsp_specs',
>>> '-mcpu=powerpc', '-mcpu=powerpc', '-mmultiple', '-mmultiple', '-mstring',
>>> '-mstring', '-mstrict-align', '-mstrict-align', '-O2', '-g', '-qrtems',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/powerpc-rtems4.11/lib/',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/', '--specs', 'bsp_specs',
>>> '-mcpu=powerpc', '-mcpu=powerpc', '-mmultiple', '-mmultiple', '-mstring',
>>> '-mstring', '-mstrict-align', '-mstrict-align', '-O2', '-g',
>>> '-Ifile_io/crc', '-I../../file_io/crc', '-DHAVE_RTEMS_SCORE_CPUOPTS_H=1',
>>> '-DHAVE_RTEMS_H=1', '-DPACKAGE_VERSION="1.0.0"',
>>> 'file_io/crc/FilesystemImage.c', '-c', '-o/opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build/powerpc-
>>> rtems4.11-qemuprep/file_io/crc/FilesystemImage.c.2.o']
>>> [  7/116] Compiling hello/hello_world_c/test.c
>>> 10:24:16 runner ['/opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-gcc', '-qrtems',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/powerpc-rtems4.11/lib/',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/', '--specs', 'bsp_specs',
>>> '-mcpu=powerpc', '-mcpu=powerpc', '-mmultiple', '-mmultiple', '-mstring',
>>> '-mstring', '-mstrict-align', '-mstrict-align', '-O2', '-g',
>>> '-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '-DHAVE_RTEMS_H=1',
>>> '../../hello/hello_world_c/test.c', '-c', '-o/opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build/powerpc-
>>> rtems4.11-qemuprep/hello/hello_world_c/test.c.1.o']
>>> [  8/116] Compiling hello/posix_hello_world/test.c
>>> 10:24:16 runner ['/opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-gcc', '-qrtems',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/powerpc-rtems4.11/lib/',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/', '--specs', 'bsp_specs',
>>> '-mcpu=powerpc', '-mcpu=powerpc', '-mmultiple', '-mmultiple', '-mstring',
>>> '-mstring', '-mstrict-align', '-mstrict-align', '-O2', '-g',
>>> '-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '-DHAVE_RTEMS_H=1',
>>> '../../hello/posix_hello_world/test.c', '-c',
>>> '-o/opt/development/projects/booster/rtems-qemuprep/
>>> examples-v2/build/powerpc-rtems4.11-qemuprep/hello/
>>> posix_hello_world/test.c.1.o']
>>> [  9/116] Compiling hello/both_hello/test.c
>>> powerpc-rtems4.11-gcc: fatal error: /opt/development/projects/
>>> booster/rtems-qemuprep/bsp/powerpc-rtems4.11/qemuprep/lib/bsp_specs:
>>> attempt to rename spec 'endfile' to already defined spec 'old_endfile'
>>> compilation terminated.
>>>
>>>
>>
>> I tried this on the master and qemuprep built the examples OK.
>>
>> I am unsure how well the waf for examples-v2 worked on 4.11 but for some
>> reason the -qrtems flag is in the wrong place and -B is twice. It should be:
>>
>> -B PREFIX/TARGET/BSP/lib/ -specs bsp_specs -qrtems
>>
>> and those arguments should be in that exact order and no part of them
>> should appear twice.
>>
>> In this case, the -qrtems is too early and having no impact which I think
>> explains the issues.
>>
>> What's the installed file powerpc-rtems5-qemuprep.pc contain?
>>
>>
>>
>>>
>>> In file included from /opt/development/projects/
>>> booster/rtems-qemuprep/bsp/powerpc-rtems4.11/qemuprep/
>>> lib/include/libcpu/powerpc-utility.h:40:0,
>>>                  from /opt/development/projects/
>>> booster/rtems-qemuprep/bsp/powerpc-rtems4.11/qemuprep/
>>> lib/include/bsp/vectors.h:40,
>>>                  from /opt/development/projects/
>>> booster/rtems-qemuprep/bsp/powerpc-rtems4.11/qemuprep/
>>> lib/include/bsp.h:17,
>>>                  from ../../hello/posix_hello_world/test.c:20:
>>> /opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/include/rtems/powerpc/powerpc.h:283:2:
>>> error: #error "Unsupported CPU Model"
>>>  #error "Unsupported CPU Model"
>>>   ^
>>>
>>> In file included from /opt/development/projects/
>>> booster/rtems-qemuprep/bsp/powerpc-rtems4.11/qemuprep/
>>> lib/include/libcpu/powerpc-utility.h:40:0,
>>>                  from /opt/development/projects/
>>> booster/rtems-qemuprep/bsp/powerpc-rtems4.11/qemuprep/
>>> lib/include/bsp/vectors.h:40,
>>>                  from /opt/development/projects/
>>> booster/rtems-qemuprep/bsp/powerpc-rtems4.11/qemuprep/
>>> lib/include/bsp.h:17,
>>>                  from ../../hello/hello_world_c/test.c:21:
>>> /opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/include/rtems/powerpc/powerpc.h:283:2:
>>> error: #error "Unsupported CPU Model"
>>>  #error "Unsupported CPU Model"
>>>   ^
>>>
>>> * Node /opt/development/projects/booster/rtems-qemuprep/
>>> examples-v2/build/powerpc-rtems4.11-qemuprep/filesystem/fat_ramdisk/FilesystemImage.h
>>> is created more than once (full message on 'waf -v -v'). The task
>>> generators are:
>>>   1. 'fat_ramdisk.exe' in /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/filesystem/fat_ramdisk
>>>   2. 'fat_ramdisk.texe' in /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/filesystem/fat_ramdisk
>>> If you think that this is an error, set no_errcheck_out on the task
>>> instance
>>> * Node /opt/development/projects/booster/rtems-qemuprep/
>>> examples-v2/build/powerpc-rtems4.11-qemuprep/filesystem/fat_ramdisk/FilesystemImage.c
>>> is created more than once (full message on 'waf -v -v'). The task
>>> generators are:
>>>   1. 'fat_ramdisk.exe' in /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/filesystem/fat_ramdisk
>>>   2. 'fat_ramdisk.texe' in /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/filesystem/fat_ramdisk
>>> If you think that this is an error, set no_errcheck_out on the task
>>> instance
>>> Waf: Leaving directory `/opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build/powerpc-rtems4.11-qemuprep'
>>> Build failed
>>>  -> task in 'crc.exe' failed with exit status 1:
>>> {task 140287200672176: c FilesystemImage.c -> FilesystemImage.c.2.o}
>>> ['/opt/development/projects/booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-gcc',
>>> '-qrtems', '-B/opt/development/projects/booster/rtems-qemuprep/bsp/powerpc-rtems4.11/lib/',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/', '--specs', 'bsp_specs',
>>> '-mcpu=powerpc', '-mcpu=powerpc', '-mmultiple', '-mmultiple', '-mstring',
>>> '-mstring', '-mstrict-align', '-mstrict-align', '-O2', '-g', '-qrtems',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/powerpc-rtems4.11/lib/',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/', '--specs', 'bsp_specs',
>>> '-mcpu=powerpc', '-mcpu=powerpc', '-mmultiple', '-mmultiple', '-mstring',
>>> '-mstring', '-mstrict-align', '-mstrict-align', '-O2', '-g',
>>> '-Ifile_io/crc', '-I../../file_io/crc', '-DHAVE_RTEMS_SCORE_CPUOPTS_H=1',
>>> '-DHAVE_RTEMS_H=1', '-DPACKAGE_VERSION="1.0.0"',
>>> 'file_io/crc/FilesystemImage.c', '-c', '-o/opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build/powerpc-
>>> rtems4.11-qemuprep/file_io/crc/FilesystemImage.c.2.o']
>>>  -> task in 'posix_hello.exe' failed with exit status 1:
>>> {task 140287209486528: c test.c -> test.c.1.o}
>>> ['/opt/development/projects/booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-gcc',
>>> '-qrtems', '-B/opt/development/projects/booster/rtems-qemuprep/bsp/powerpc-rtems4.11/lib/',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/', '--specs', 'bsp_specs',
>>> '-mcpu=powerpc', '-mcpu=powerpc', '-mmultiple', '-mmultiple', '-mstring',
>>> '-mstring', '-mstrict-align', '-mstrict-align', '-O2', '-g',
>>> '-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '-DHAVE_RTEMS_H=1',
>>> '../../hello/posix_hello_world/test.c', '-c',
>>> '-o/opt/development/projects/booster/rtems-qemuprep/
>>> examples-v2/build/powerpc-rtems4.11-qemuprep/hello/
>>> posix_hello_world/test.c.1.o']
>>>  -> task in 'hello.exe' failed with exit status 1:
>>> {task 140287209485568: c test.c -> test.c.1.o}
>>> ['/opt/development/projects/booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-gcc',
>>> '-qrtems', '-B/opt/development/projects/booster/rtems-qemuprep/bsp/powerpc-rtems4.11/lib/',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/', '--specs', 'bsp_specs',
>>> '-mcpu=powerpc', '-mcpu=powerpc', '-mmultiple', '-mmultiple', '-mstring',
>>> '-mstring', '-mstrict-align', '-mstrict-align', '-O2', '-g',
>>> '-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '-DHAVE_RTEMS_H=1',
>>> '../../hello/hello_world_c/test.c', '-c', '-o/opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build/powerpc-
>>> rtems4.11-qemuprep/hello/hello_world_c/test.c.1.o']
>>>
>>> If I change the following line in the wscript to add -Dmpc604 "bld.env.CFLAGS
>>> += ['-O2','-g','-Dmpc604']" I get this error:
>>>
>>> mgann at obsidian:~/dev/projects/booster/rtems-qemuprep/examples-v2$ waf
>>> clean
>>> 'clean-powerpc-rtems4.11-qemuprep' finished successfully (0.017s)
>>> mgann at obsidian:~/dev/projects/booster/rtems-qemuprep/examples-v2$ waf
>>> configure --rtems=${RTEMS_PATH}/bsp --rtems-tools=${RTEMS_PATH}/tools
>>> --rtems-bsps=powerpc/qemuprep
>>> Setting top to                           : /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2
>>> Setting out to                           : /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build
>>> Architectures                            : powerpc-rtems4.11
>>> Board Support Package                    : powerpc-rtems4.11-qemuprep
>>> Checking for program 'powerpc-rtems4.11-gcc' : /opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-gcc
>>> Checking for program 'powerpc-rtems4.11-g++' : /opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-g++
>>> Checking for program 'powerpc-rtems4.11-gcc' : /opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-gcc
>>> Checking for program 'powerpc-rtems4.11-ld'  : /opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-ld
>>> Checking for program 'powerpc-rtems4.11-ar'  : /opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-ar
>>> Checking for program 'powerpc-rtems4.11-ar'  : /opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-ar
>>> Checking for program 'powerpc-rtems4.11-ld'  : /opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-ld
>>> Checking for program 'powerpc-rtems4.11-nm'  : /opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-nm
>>> Checking for program 'powerpc-rtems4.11-objdump' :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/
>>> bin/powerpc-rtems4.11-objdump
>>> Checking for program 'powerpc-rtems4.11-objcopy' :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/
>>> bin/powerpc-rtems4.11-objcopy
>>> Checking for program 'powerpc-rtems4.11-readelf' :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/
>>> bin/powerpc-rtems4.11-readelf
>>> Checking for program 'powerpc-rtems4.11-strip'   :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/
>>> bin/powerpc-rtems4.11-strip
>>> Checking for program 'rtems-ld'                  :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/bin/rtems-ld
>>> Checking for program 'rtems-tld'                 :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/bin/rtems-tld
>>> Checking for program 'rtems-bin2c'               :
>>> /opt/development/projects/booster/rtems-qemuprep/bsp/bin/rtems-bin2c
>>> Checking for program 'tar'                       : /bin/tar
>>> Checking for program 'gcc, cc'                   :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/
>>> bin/powerpc-rtems4.11-gcc
>>> Checking for program 'ar'                        :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/
>>> bin/powerpc-rtems4.11-ar
>>> Checking if the -o link must be split from arguments : no
>>> Checking for program 'g++, c++'                      :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/
>>> bin/powerpc-rtems4.11-g++
>>> Checking for program 'ar'                            :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/
>>> bin/powerpc-rtems4.11-ar
>>> Checking if the -o link must be split from arguments : no
>>> Checking for program 'gas, gcc'                      :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/
>>> bin/powerpc-rtems4.11-gcc
>>> Checking for program 'ar'                            :
>>> /opt/development/projects/booster/rtems-qemuprep/tools/
>>> bin/powerpc-rtems4.11-ar
>>> Checking for RTEMS headers                           : started
>>> -> processing test results                           : all ok
>>> Checking for RTEMS_DEBUG                             : no
>>> Checking for RTEMS_MULTIPROCESSING                   : no
>>> Checking for RTEMS_NEWLIB                            : yes
>>> Checking for RTEMS_POSIX_API                         : yes
>>> Checking for RTEMS_SMP                               : no
>>> Checking for RTEMS_NETWORKING                        : yes
>>> Checking for RTEMS_ATOMIC                            : no
>>> 'configure' finished successfully (0.614s)
>>> mgann at obsidian:~/dev/projects/booster/rtems-qemuprep/examples-v2$ waf -v
>>> Waf: Entering directory `/opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build/powerpc-rtems4.11-qemuprep'
>>> [  1/116] Creating build/powerpc-rtems4.11-qemuprep/filesystem/fat_
>>> ramdisk/FilesystemImage
>>> 10:30:49 runner ' tar -C /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/filesystem/fat_ramdisk/rootfs -cf
>>> filesystem/fat_ramdisk/FilesystemImage . '
>>> [  2/116] Creating build/powerpc-rtems4.11-qemuprep/file_io/crc/
>>> FilesystemImage
>>> 10:30:49 runner ' tar -C /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/file_io/crc/rootfs -cf
>>> file_io/crc/FilesystemImage . '
>>> [  3/116] Processing build/powerpc-rtems4.11-qemuprep/filesystem/fat_
>>> ramdisk/FilesystemImage
>>> 10:30:49 runner ' /opt/development/projects/booster/rtems-qemuprep/bsp/bin/rtems-bin2c
>>> filesystem/fat_ramdisk/FilesystemImage /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build/powerpc-
>>> rtems4.11-qemuprep/filesystem/fat_ramdisk/FilesystemImage.c && touch
>>> /opt/development/projects/booster/rtems-qemuprep/
>>> examples-v2/build/powerpc-rtems4.11-qemuprep/filesystem/fat_ramdisk/FilesystemImage.h
>>> '
>>> [  4/116] Processing build/powerpc-rtems4.11-qemuprep/filesystem/fat_
>>> ramdisk/FilesystemImage
>>> 10:30:49 runner ' /opt/development/projects/booster/rtems-qemuprep/bsp/bin/rtems-bin2c
>>> filesystem/fat_ramdisk/FilesystemImage /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build/powerpc-
>>> rtems4.11-qemuprep/filesystem/fat_ramdisk/FilesystemImage.c && touch
>>> /opt/development/projects/booster/rtems-qemuprep/
>>> examples-v2/build/powerpc-rtems4.11-qemuprep/filesystem/fat_ramdisk/FilesystemImage.h
>>> '
>>> [  5/116] Processing build/powerpc-rtems4.11-qemuprep/file_io/crc/
>>> FilesystemImage
>>> 10:30:49 runner ' /opt/development/projects/booster/rtems-qemuprep/bsp/bin/rtems-bin2c
>>> file_io/crc/FilesystemImage /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build/powerpc-
>>> rtems4.11-qemuprep/file_io/crc/FilesystemImage.c && touch
>>> /opt/development/projects/booster/rtems-qemuprep/
>>> examples-v2/build/powerpc-rtems4.11-qemuprep/file_io/crc/FilesystemImage.h
>>> '
>>> [  6/116] Compiling hello/hello_world_c/test.c
>>> 10:30:49 runner ['/opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-gcc', '-qrtems',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/powerpc-rtems4.11/lib/',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/', '--specs', 'bsp_specs',
>>> '-mcpu=powerpc', '-mcpu=powerpc', '-mmultiple', '-mmultiple', '-mstring',
>>> '-mstring', '-mstrict-align', '-mstrict-align', '-O2', '-g', '-Dmpc604',
>>> '-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '-DHAVE_RTEMS_H=1',
>>> '../../hello/hello_world_c/test.c', '-c', '-o/opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build/powerpc-
>>> rtems4.11-qemuprep/hello/hello_world_c/test.c.1.o']
>>> [  7/116] Compiling hello/posix_hello_world/test.c
>>> 10:30:49 runner ['/opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-gcc', '-qrtems',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/powerpc-rtems4.11/lib/',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/', '--specs', 'bsp_specs',
>>> '-mcpu=powerpc', '-mcpu=powerpc', '-mmultiple', '-mmultiple', '-mstring',
>>> '-mstring', '-mstrict-align', '-mstrict-align', '-O2', '-g', '-Dmpc604',
>>> '-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '-DHAVE_RTEMS_H=1',
>>> '../../hello/posix_hello_world/test.c', '-c',
>>> '-o/opt/development/projects/booster/rtems-qemuprep/
>>> examples-v2/build/powerpc-rtems4.11-qemuprep/hello/
>>> posix_hello_world/test.c.1.o']
>>> [  8/116] Compiling hello/both_hello/test.c
>>> 10:30:49 runner ['/opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-gcc', '-qrtems',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/powerpc-rtems4.11/lib/',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/', '--specs', 'bsp_specs',
>>> '-mcpu=powerpc', '-mcpu=powerpc', '-mmultiple', '-mmultiple', '-mstring',
>>> '-mstring', '-mstrict-align', '-mstrict-align', '-O2', '-g', '-Dmpc604',
>>> '-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '-DHAVE_RTEMS_H=1',
>>> '../../hello/both_hello/test.c', '-c', '-o/opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build/powerpc-
>>> rtems4.11-qemuprep/hello/both_hello/test.c.1.o']
>>> [  9/116] Compiling hello/both_hello/test.c
>>> 10:30:49 runner ['/opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-gcc', '-qrtems',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/powerpc-rtems4.11/lib/',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/', '--specs', 'bsp_specs',
>>> '-mcpu=powerpc', '-mcpu=powerpc', '-mmultiple', '-mmultiple', '-mstring',
>>> '-mstring', '-mstrict-align', '-mstrict-align', '-O2', '-g', '-Dmpc604',
>>> '-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '-DHAVE_RTEMS_H=1',
>>> '../../hello/both_hello/test.c', '-c', '-o/opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build/powerpc-
>>> rtems4.11-qemuprep/hello/both_hello/test.c.2.o']
>>> [ 10/116] Compiling hello/both_hello/test.c
>>> 10:30:49 runner ['/opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-gcc', '-qrtems',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/powerpc-rtems4.11/lib/',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/', '--specs', 'bsp_specs',
>>> '-mcpu=powerpc', '-mcpu=powerpc', '-mmultiple', '-mmultiple', '-mstring',
>>> '-mstring', '-mstrict-align', '-mstrict-align', '-O2', '-g', '-Dmpc604',
>>> '-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '-DHAVE_RTEMS_H=1',
>>> '../../hello/both_hello/test.c', '-c', '-o/opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build/powerpc-
>>> rtems4.11-qemuprep/hello/both_hello/test.c.3.o']
>>> [ 11/116] Compiling gdb/overwrite/overwrite.c
>>> 10:30:49 runner ['/opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-gcc', '-qrtems',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/powerpc-rtems4.11/lib/',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/', '--specs', 'bsp_specs',
>>> '-mcpu=powerpc', '-mcpu=powerpc', '-mmultiple', '-mmultiple', '-mstring',
>>> '-mstring', '-mstrict-align', '-mstrict-align', '-O2', '-g', '-Dmpc604',
>>> '-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '-DHAVE_RTEMS_H=1',
>>> '../../gdb/overwrite/overwrite.c', '-c', '-o/opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build/powerpc-rtems4.11-qemuprep/gdb/
>>> overwrite/overwrite.c.1.o']
>>> [ 12/116] Compiling gdb/overwrite/rtems_init.c
>>> 10:30:49 runner ['/opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-gcc', '-qrtems',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/powerpc-rtems4.11/lib/',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/', '--specs', 'bsp_specs',
>>> '-mcpu=powerpc', '-mcpu=powerpc', '-mmultiple', '-mmultiple', '-mstring',
>>> '-mstring', '-mstrict-align', '-mstrict-align', '-O2', '-g', '-Dmpc604',
>>> '-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '-DHAVE_RTEMS_H=1',
>>> '../../gdb/overwrite/rtems_init.c', '-c', '-o/opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build/powerpc-rtems4.11-qemuprep/gdb/
>>> overwrite/rtems_init.c.1.o']
>>> [ 13/116] Compiling filesystem/fat_ramdisk/init.c
>>> 10:30:49 runner ['/opt/development/projects/
>>> booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-gcc', '-qrtems',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/powerpc-rtems4.11/lib/',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/', '--specs', 'bsp_specs',
>>> '-mcpu=powerpc', '-mcpu=powerpc', '-mmultiple', '-mmultiple', '-mstring',
>>> '-mstring', '-mstrict-align', '-mstrict-align', '-O2', '-g', '-Dmpc604',
>>> '-qrtems', '-B/opt/development/projects/booster/rtems-qemuprep/bsp/powerpc-rtems4.11/lib/',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/', '--specs', 'bsp_specs',
>>> '-mcpu=powerpc', '-mcpu=powerpc', '-mmultiple', '-mmultiple', '-mstring',
>>> '-mstring', '-mstrict-align', '-mstrict-align', '-O2', '-g', '-Dmpc604',
>>> '-Ifilesystem/fat_ramdisk', '-I../../filesystem/fat_ramdisk',
>>> '-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '-DHAVE_RTEMS_H=1',
>>> '-DPACKAGE_VERSION="1.0.0"', '../../filesystem/fat_ramdisk/init.c',
>>> '-c', '-o/opt/development/projects/booster/rtems-qemuprep/
>>> examples-v2/build/powerpc-rtems4.11-qemuprep/filesystem/
>>> fat_ramdisk/init.c.2.o']
>>> powerpc-rtems4.11-gcc: fatal error: /opt/development/projects/
>>> booster/rtems-qemuprep/bsp/powerpc-rtems4.11/qemuprep/lib/bsp_specs:
>>> attempt to rename spec 'endfile' to already defined spec 'old_endfile'
>>> compilation terminated.
>>>
>>> * Node /opt/development/projects/booster/rtems-qemuprep/
>>> examples-v2/build/powerpc-rtems4.11-qemuprep/filesystem/fat_ramdisk/FilesystemImage.c
>>> is created more than once (full message on 'waf -v -v'). The task
>>> generators are:
>>>   1. 'fat_ramdisk.exe' in /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/filesystem/fat_ramdisk
>>>   2. 'fat_ramdisk.texe' in /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/filesystem/fat_ramdisk
>>> If you think that this is an error, set no_errcheck_out on the task
>>> instance
>>> * Node /opt/development/projects/booster/rtems-qemuprep/
>>> examples-v2/build/powerpc-rtems4.11-qemuprep/filesystem/fat_ramdisk/FilesystemImage.h
>>> is created more than once (full message on 'waf -v -v'). The task
>>> generators are:
>>>   1. 'fat_ramdisk.exe' in /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/filesystem/fat_ramdisk
>>>   2. 'fat_ramdisk.texe' in /opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/filesystem/fat_ramdisk
>>> If you think that this is an error, set no_errcheck_out on the task
>>> instance
>>> Waf: Leaving directory `/opt/development/projects/
>>> booster/rtems-qemuprep/examples-v2/build/powerpc-rtems4.11-qemuprep'
>>> Build failed
>>>  -> task in 'fat_ramdisk.exe' failed with exit status 1:
>>> {task 140363104493032: c init.c -> init.c.2.o}
>>> ['/opt/development/projects/booster/rtems-qemuprep/tools/bin/powerpc-rtems4.11-gcc',
>>> '-qrtems', '-B/opt/development/projects/booster/rtems-qemuprep/bsp/powerpc-rtems4.11/lib/',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/', '--specs', 'bsp_specs',
>>> '-mcpu=powerpc', '-mcpu=powerpc', '-mmultiple', '-mmultiple', '-mstring',
>>> '-mstring', '-mstrict-align', '-mstrict-align', '-O2', '-g', '-Dmpc604',
>>> '-qrtems', '-B/opt/development/projects/booster/rtems-qemuprep/bsp/powerpc-rtems4.11/lib/',
>>> '-B/opt/development/projects/booster/rtems-qemuprep/bsp/
>>> powerpc-rtems4.11/qemuprep/lib/', '--specs', 'bsp_specs',
>>> '-mcpu=powerpc', '-mcpu=powerpc', '-mmultiple', '-mmultiple', '-mstring',
>>> '-mstring', '-mstrict-align', '-mstrict-align', '-O2', '-g', '-Dmpc604',
>>> '-Ifilesystem/fat_ramdisk', '-I../../filesystem/fat_ramdisk',
>>> '-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '-DHAVE_RTEMS_H=1',
>>> '-DPACKAGE_VERSION="1.0.0"', '../../filesystem/fat_ramdisk/init.c',
>>> '-c', '-o/opt/development/projects/booster/rtems-qemuprep/
>>> examples-v2/build/powerpc-rtems4.11-qemuprep/filesystem/
>>> fat_ramdisk/init.c.2.o']
>>>
>>>
>>> Is there something I'm doing wrong, or is there a simple fix for this?
>>>
>>> Thanks in advance
>>>
>>>
>>> --
>>> Matthew Gann
>>> mgann at prc-hsv.com
>>> Senior Engineer - Paragon Research Corporation
>>>
>>>
>>> This message is intended for the addressee only and may contain Paragon
>>> Research Corporation (PRC) confidential or privileged information.  Use or
>>> distribution of such confidential information is strictly prohibited
>>> without the prior written permission of PRC.  If you have received this
>>> message in error, please contact the sender immediately and delete the
>>> message and attachments from your computer.
>>> _______________________________________________
>>> users mailing list
>>> users at rtems.org
>>> http://lists.rtems.org/mailman/listinfo/users
>>>
>>
>>
>
> --
> Matthew Gann
> mgann at prc-hsv.com
> Senior Engineer - Paragon Research Corporation
>
>
> This message is intended for the addressee only and may contain Paragon
> Research Corporation (PRC) confidential or privileged information.  Use or
> distribution of such confidential information is strictly prohibited
> without the prior written permission of PRC.  If you have received this
> message in error, please contact the sender immediately and delete the
> message and attachments from your computer.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20180823/9901bb44/attachment-0002.html>


More information about the users mailing list