#3079 closed defect (fixed)

Ada tests do not build

Reported by: Sebastian Huber Owned by: Sebastian Huber <sebastian.huber@…>
Priority: normal Milestone: 5.1
Component: build Version: 5
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

A "make" in the top level build directory does not build the Ada tests (used to work some weeks ago). A "make" in ./sparc-rtems4.12/c/erc32/ada-tests for example works.

The configuration step seems to work:

configure: configuring in ada-tests
configure: running /bin/sh '../../../../../rtems/c/src/ada-tests/configure'  '--prefix=/home/joel/rtems-4.11-work/bsp-install' '--host=sparc-rtems4.12' '--build=x86_64-pc-linux-gnu' '--target=sparc-rtems4.12' '--enable-smp' '--disable-profiling' '--disable-multiprocessing' '--enable-rtems-debug' '--enable-cxx' '--disable-rdbg' '--enable-maintainer-mode' '--enable-tests' '--enable-networking' '--enable-posix' '--disable-itron' '--disable-deprecated' '--enable-ada' '--enable-expada' 'SIMSPARC_FAST_IDLE=1' '--with-target-subdir=sparc-rtems4.12' '--exec-prefix=/home/joel/rtems-4.11-work/bsp-install/sparc-rtems4.12' '--includedir=/home/joel/rtems-4.11-work/bsp-install/sparc-rtems4.12/include' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=sparc-rtems4.12' 'target_alias=sparc-rtems4.12' '--with-project-root=../../' '--with-project-top=../../' 'RTEMS_BSP=erc32' 'RTEMS_CPU_MODEL=erc32' 'RTEMS_BSP_FAMILY=erc32' 'CFLAGS=-mcpu=cypress -O2 -g -ffunction-sections -fdata-sections -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs' '--enable-rtems-root=../'    '--enable-project-root=../../../erc32'    '--with-project-top=../../../'    '--enable-rtemsbsp=erc32'    --cache-file=/dev/null --srcdir=../../../../../rtems/c/src/ada-tests
configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
checking for gmake... gmake

However:

gmake[4]: Entering directory '/scratch/git-rtems-testing/rtems/build-sparc-erc32-rtems/sparc-rtems4.12/c/erc32/ada-tests'
gmake[4]: Nothing to be done for 'all-am'.

Change History (8)

comment:1 Changed on Oct 12, 2017 at 12:18:40 AM by Joel Sherrill

Milestone: 4.12.04.10.3
Owner: changed from chrisj@… to Sebastian Huber
Status: newassigned

Is this fixed now?

comment:2 Changed on Oct 12, 2017 at 5:29:11 AM by Sebastian Huber

Milestone: 4.10.34.12.0
Owner: changed from Sebastian Huber to Chris Johns

This is a 4.12 problem and related to recent changes in the build system.

comment:3 Changed on Oct 12, 2017 at 5:39:24 AM by Chris Johns

Owner: Chris Johns deleted
Status: assignednew

No point assigning this to me, I do not have an Ada compiler and when I last looked it did not build easily on my hosts. I have no ability to test any of this.

I suggest you change SUBDIRS to _SUBDIRS and see what happens. SUBDIRS is owned by automake and our build system circumvented automake long ago.

comment:4 Changed on Oct 12, 2017 at 8:52:56 AM by Sebastian Huber

Thanks, this _SUBDIR hint was what I needed.

comment:5 Changed on Oct 12, 2017 at 8:55:52 AM by Sebastian Huber <sebastian.huber@…>

In b3874e1/rtems:

ada-tests: Use _SUBDIRS instead of SUBDIRS

Update #3079.

comment:6 Changed on Oct 12, 2017 at 8:56:07 AM by Sebastian Huber <sebastian.huber@…>

Owner: set to Sebastian Huber <sebastian.huber@…>
Resolution: fixed
Status: newclosed

In ee537ea/rtems:

ada-tests: Move to testsuites/ada

This solves a build dependency issue, e.g. building tests before
librtemsbsp.a exists.

Close #3079.

comment:7 in reply to:  4 Changed on Oct 12, 2017 at 3:53:17 PM by Chris Johns

Replying to Sebastian Huber:

Thanks, this _SUBDIR hint was what I needed.

Awesome change. Thank you.

comment:8 Changed on Nov 9, 2017 at 6:27:14 AM by Sebastian Huber

Milestone: 4.12.05.1

Milestone renamed

Note: See TracTickets for help on using tickets.