[RTEMS Project] #2540: RSB has problems building into existing directory
RTEMS trac
trac at rtems.org
Fri Jan 22 17:57:26 UTC 2016
#2540: RSB has problems building into existing directory
----------------------------+--------------------
Reporter: williamssimonp | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 4.11.1
Component: RSB | Version: 4.12
Severity: normal | Keywords:
----------------------------+--------------------
Attempting to build the ARM/4.12 BSet using RSB on Fedora 23 X86_64. The
RSB repository clone was up to date (22/01/2016). I had previously built
the same BSet from the repository up to date as of 09/01/2016. When
building newlib, I got the following:
{{{
Running configure in multilib subdir thumb/cortex-m7/fpv5-d16/hard
pwd: /home/simon.williams/rtems/rtems-source-builder/rtems/build/arm-
rtems4.12-gcc-6-20160117-newlib-2.3.0.20160104-x86_64-linux-gnu-1/build
/arm-rtems4.12
mkdir thumb/cortex-m7
mkdir thumb/cortex-m7/fpv5-d16
mkdir thumb/cortex-m7/fpv5-d16/hard
configure: creating cache ./config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... arm-unknown-rtems4.12
checking for --enable-version-specific-runtime-libs... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking for arm-rtems4.12-ar... /home/simon.williams/rtems/4.12/arm-
rtems4.12/bin/ar
checking for arm-rtems4.12-lipo... arm-rtems4.12-lipo
checking for arm-rtems4.12-nm... /home/simon.williams/rtems/rtems-source-
builder/rtems/build/arm-
rtems4.12-gcc-6-20160117-newlib-2.3.0.20160104-x86_64-linux-
gnu-1/build/./gcc/nm
checking for arm-rtems4.12-ranlib... /home/simon.williams/rtems/4.12/arm-
rtems4.12/bin/ranlib
checking for arm-rtems4.12-strip... /home/simon.williams/rtems/4.12/arm-
rtems4.12/bin/strip
checking whether ln -s works... yes
checking for arm-rtems4.12-gcc... /home/simon.williams/rtems/rtems-source-
builder/rtems/build/arm-
rtems4.12-gcc-6-20160117-newlib-2.3.0.20160104-x86_64-linux-
gnu-1/build/./gcc/xgcc -B/home/simon.williams/rtems/rtems-source-
builder/rtems/build/arm-
rtems4.12-gcc-6-20160117-newlib-2.3.0.20160104-x86_64-linux-
gnu-1/build/./gcc/ -nostdinc -B/home/simon.williams/rtems/rtems-source-
builder/rtems/build/arm-
rtems4.12-gcc-6-20160117-newlib-2.3.0.20160104-x86_64-linux-gnu-1/build
/arm-rtems4.12/thumb/cortex-m7/fpv5-d16/hard/newlib/ -isystem
/home/simon.williams/rtems/rtems-source-builder/rtems/build/arm-
rtems4.12-gcc-6-20160117-newlib-2.3.0.20160104-x86_64-linux-gnu-1/build
/arm-rtems4.12/thumb/cortex-m7/fpv5-d16/hard/newlib/targ-include -isystem
/home/simon.williams/rtems/rtems-source-builder/rtems/build/arm-
rtems4.12-gcc-6-20160117-newlib-2.3.0.20160104-x86_64-linux-
gnu-1/gcc-6-20160117/newlib/libc/include -B/home/simon.williams/rtems/4.12
/arm-rtems4.12/bin/ -B/home/simon.williams/rtems/4.12/arm-rtems4.12/lib/
-isystem /home/simon.williams/rtems/4.12/arm-rtems4.12/include -isystem
/home/simon.williams/rtems/4.12/arm-rtems4.12/sys-include -mthumb
-mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard
configure: error: in `/home/simon.williams/rtems/rtems-source-
builder/rtems/build/arm-
rtems4.12-gcc-6-20160117-newlib-2.3.0.20160104-x86_64-linux-gnu-1/build
/arm-rtems4.12/thumb/cortex-m7/fpv5-d16/hard/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
}}}
Sebastian commented that the binutils being used was out of date and I
noticed that it was picking up the binutils from my previous build. I
removed the previous build from my PATH, but got the same issue. I
examined the logs and discovered that RSB was adding the installation bin
directory to the PATH while executing. I renamed the original $PREFIX so
that it was no longer building into an existing directory and the build
ran successfully.
It appears that RSB will not build newlib successfully if it is installing
into the same location as a previous build that does not contain
compatible tools.
--
Ticket URL: <http://devel.rtems.org/ticket/2540>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list