ARM BSP build failure.

Chris Johns chrisj at rtems.org
Wed Oct 30 09:29:04 UTC 2019



On 30/10/19 7:17 pm, Sebastian Huber wrote:
> On 30/10/2019 07:18, Chris Johns wrote:
>> Hi,
>>
>> Building all ARM BSPs on master today I get ...
>>
>> checking for arm-rtems5-gcc... (cached) arm-rtems5-gcc
>> checking whether the C compiler works... no
>> configure: error: in
>> `/opt/work/chris/rtems/kernel/bsps/arm/arm-rtems5/c/lpc40xx_ea_ram':
>> configure: error: C compiler cannot create executables
>> See `config.log' for more details
>> gmake[2]: *** [Makefile:1064: lpc40xx_ea_ram] Error 1
>> gmake[2]: Leaving directory '/opt/work/chris/rtems/kernel/bsps/arm/arm-rtems5/c'
>> gmake[1]: *** [Makefile:289: all-recursive] Error 1
>> gmake[1]: Leaving directory '/opt/work/chris/rtems/kernel/bsps/arm/arm-rtems5/c'
>>
>> Is the lpc40xx_ea_ram BSP OK?
> 
> I built all BSPs this week, however, with an older tool chain. What do you see
> in the config.log?

configure:3441: arm-rtems5-gcc -v >&5
Using built-in specs.
COLLECT_GCC=arm-rtems5-gcc
COLLECT_LTO_WRAPPER=/opt/work/rtems/5/libexec/gcc/arm-rtems5/7.4.0/lto-wrapper
Target: arm-rtems5
Configured with: ../gcc-7.4.0/configure --prefix=/opt/work/rtems/5
--bindir=/opt/work/rtems/5/bin --exec_prefix=/opt/work/rtems/5
--includedir=/opt/work/rtems/5/include --libdir=/opt/work/rtems/5/lib
--libexecdir=/opt/work/rtems/5/libexe
c --mandir=/opt/work/rtems/5/share/man --infodir=/opt/work/rtems/5/share/info
--datadir=/opt/work/rtems/5/share --build=x86_64-freebsd12.0
--host=x86_64-freebsd12.0 --target=arm-rtems5 --disable-libstdcxx-pch
--with-gnu-as --with-gnu-ld
--verbose --with-newlib --disable-nls --without-included-gettext
--disable-win32-registry --enable-version-specific-runtime-libs --disable-lto
--enable-newlib-io-c99-formats --enable-newlib-iconv
--enable-newlib-iconv-encodings=big5,cp77
5,cp850,cp852,cp855,cp866,euc_jp,euc_kr,euc_tw,iso_8859_1,iso_8859_10,iso_8859_11,iso_8859_13,iso_8859_14,iso_8859_15,iso_8859_2,iso_8859_3,iso_8859_4,iso_8859_5,iso_8859_6,iso_8859_7,iso_8859_8,iso_8859_9,iso_ir_111,koi8_r,koi8_ru,koi8_
u,koi8_uni,ucs_2,ucs_2_internal,ucs_2be,ucs_2le,ucs_4,ucs_4_internal,ucs_4be,ucs_4le,us_ascii,utf_16,utf_16be,utf_16le,utf_8,win_1250,win_1251,win_1252,win_1253,win_1254,win_1255,win_1256,win_1257,win_1258
--enable-threads --disable-plug
in --enable-libgomp --enable-languages=c,c++
Thread model: rtems
gcc version 7.4.0 20181206 (RTEMS 5, RSB
0956a2c089faf2600047577bb153afcaaba22288, Newlib 1d35a003f) (GCC)
configure:3452: $? = 0
configure:3441: arm-rtems5-gcc -V >&5
arm-rtems5-gcc: error: unrecognized command line option '-V'
arm-rtems5-gcc: fatal error: no input files
compilation terminated.
configure:3452: $? = 1
configure:3441: arm-rtems5-gcc -qversion >&5
arm-rtems5-gcc: error: unrecognized command line option '-qversion'; did you
mean '--version'?
arm-rtems5-gcc: fatal error: no input files
compilation terminated.
configure:3452: $? = 1
configure:3472: checking whether the C compiler works
configure:3494: arm-rtems5-gcc -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16
-mfloat-abi=hard -O2 -g -ffunction-sections -fdata-sections   conftest.c  >&5

/opt/work/rtems/5/lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld: error:
/tmp//cch8jDwi.o uses VFP register arguments, a.out does not

/opt/work/rtems/5/lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld: failed
to merge target specific data of file /tmp//cch8jDwi.o

/opt/work/rtems/5/lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/ld:
warning: cannot find entry symbol _start; defaulting to 0000000000008000

collect2: error: ld returned 1 exit status


> This looks like a tool chain bug.

OK.

Chris


More information about the devel mailing list