[PATCH] sptests: Conditionally build atomic tests

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Feb 13 11:04:21 UTC 2013


On 02/13/2013 11:54 AM, Ralf Corsepius wrote:
> On 02/13/2013 09:15 AM, Sebastian Huber wrote:
>> This patch does not work.  On PowerPC Autoconf uses this:
>>
>> configure:4918: checking rtems/rtems/atomic.h usability
>> configure:4918: powerpc-rtems4.11-gcc -c -mcpu=603e -Dppc603e -O2 -g
>> -fno-keep-inline-functions -Wall -Wmissing-prototypes
>> -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs
>> conftest.c >&5
>> conftest.c:52:32: fatal error: rtems/rtems/atomic.h: No such file or directory
>
> Reproducer?

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by rtems-c-src-tests-sptests configure 4.10.99.0, which was
generated by GNU Autoconf 2.69.  Invocation command line was

   $ ../../../../../../rtems/c/src/../../testsuites/sptests/configure 
--disable-option-checking --prefix=/home/joel/rtems-4.10-work/bsp-install 
--host=powerpc-rtems4.11 --build=x86_64-unknown-linux-gnu 
--target=powerpc-rtems4.11 --disable-multiprocessing --enable-cxx 
--disable-rdbg --enable-maintainer-mode --enable-tests --enable-networking 
--enable-posix --disable-itron --disable-deprecated --disable-ada 
--enable-expada CLOCK_DRIVER_USE_FAST_IDLE=0 
--with-target-subdir=powerpc-rtems4.11 
--exec-prefix=/home/joel/rtems-4.10-work/bsp-install/powerpc-rtems4.11 
--includedir=/home/joel/rtems-4.10-work/bsp-install/powerpc-rtems4.11/include 
build_alias=x86_64-unknown-linux-gnu host_alias=powerpc-rtems4.11 
target_alias=powerpc-rtems4.11 --with-project-root=../../ 
--with-project-top=../../ RTEMS_BSP=psim RTEMS_CPU_MODEL=mpc6xx 
RTEMS_BSP_FAMILY=psim CFLAGS=-mcpu=603e -Dppc603e -O2 -g 
-fno-keep-inline-functions -Wall -Wmissing-prototypes 
-Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs 
--enable-rtems-root=../ --enable-project-root=../../../psim 
--with-project-top=../../../ --enable-rtemsbsp=psim 
--includedir=/home/joel/rtems-4.10-work/bsp-install/powerpc-rtems4.11/psim/lib/include 
--libdir=/home/joel/rtems-4.10-work/bsp-install/powerpc-rtems4.11/psim/lib 
--cache-file=/dev/null 
--srcdir=../../../../../../rtems/c/src/../../testsuites/sptests

I used the rtems-testing/rtems/bit_rtems script with psim BSP.

>
>> What is missing here is the -B option for the particular BSP compiler search
>> path.  How can I teach Autoconf to use the BSP provided flags for the compiler?
> They are supposed to be propagated automatically, through a pretty complex
> mechanism.
>
> That said, this sounds as if something might have been broken elsewhere. I can
> try to have a look into it later today (more likely: tomorrow).
>
> Besides this, using AM-CONDITIONAL-ized SUBDIRS inside of a Makefile.am is a
> bad idea. They usually break make-recursion. Move the CONDITIONALS into the
> subdir Makefile.ams, instead.

Ok.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

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



More information about the devel mailing list