Problem building RTEMS 4.11 from a clean pull from git using rsb. _libatomic.h is missing.
Mr. Andrei Chichak
groups at chichak.ca
Wed Aug 10 20:45:41 UTC 2016
Good day,
I’m having a problem building 4.11 for stm32f4, the file _libautomic.h is missing.
Build environment is a Mac OSX 10.11.6. This was working previously, so there is probably something busted on my side, or something broken in my git clone.
I don’t use git very often, so I expect that I’m not pulling the source properly.
Assuming that everything is built in a directory called ~/development, I am using:
cd
mkdir -p development/rtems/rsb
cd development/rtems/rsb
git clone git://git.rtems.org/rtems-source-builder.git <git://git.rtems.org/rtems-source-builder.git>
cd rtems-source-builder
git checkout 4.11
cd rtems
../source-builder/sb-set-builder --log=l-arm.txt --prefix=$HOME/development/rtems/4.11 4.11/rtems-arm
cd ~/development/rtems
git clone git://git.rtems.org/rtems.git <git://git.rtems.org/rtems.git>
cd ~/development
cd rtems/rtems
./bootstrap -c
./bootstrap
cd ../..
mkdir -p rtems/rtems-4.11
cd rtems/rtems-4.11
../rtems/configure --target=arm-rtems4.11 --disable-posix --disable-networking --disable-cxx --enable-bsp=stm32f4 --prefix=/Users/andreichichak/development/rtems/4.11
make RTEMS_BSP=stm32f4 install
The tools build properly, but the build eventually fails with:
…
arm-rtems4.11-gcc --pipe -DHAVE_CONFIG_H -I.. -I../../cpukit/../../../stm32f4/lib/include -march=armv7-m -mthumb -O2 -g -ffunction-sections -fdata-sections -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT src/libscore_a-smpbarrierwait.o -MD -MP -MF src/.deps/libscore_a-smpbarrierwait.Tpo -c -o src/libscore_a-smpbarrierwait.o `test -f 'src/smpbarrierwait.c' || echo '../../../../../../rtems/c/src/../../cpukit/score/'`src/smpbarrierwait.c
mv -f src/.deps/libscore_a-smpbarrierwait.Tpo src/.deps/libscore_a-smpbarrierwait.Po
arm-rtems4.11-gcc --pipe -DHAVE_CONFIG_H -I.. -I../../cpukit/../../../stm32f4/lib/include -march=armv7-m -mthumb -O2 -g -ffunction-sections -fdata-sections -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT src/libscore_a-kern_tc.o -MD -MP -MF src/.deps/libscore_a-kern_tc.Tpo -c -o src/libscore_a-kern_tc.o `test -f 'src/kern_tc.c' || echo '../../../../../../rtems/c/src/../../cpukit/score/'`src/kern_tc.c
mv -f src/.deps/libscore_a-kern_tc.Tpo src/.deps/libscore_a-kern_tc.Po
arm-rtems4.11-gcc --pipe -DHAVE_CONFIG_H -I.. -I../../cpukit/../../../stm32f4/lib/include -march=armv7-m -mthumb -O2 -g -ffunction-sections -fdata-sections -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT src/libscore_a-libatomic.o -MD -MP -MF src/.deps/libscore_a-libatomic.Tpo -c -o src/libscore_a-libatomic.o `test -f 'src/libatomic.c' || echo '../../../../../../rtems/c/src/../../cpukit/score/'`src/libatomic.c
../../../../../../rtems/c/src/../../cpukit/score/src/libatomic.c:19:32: fatal error: machine/_libatomic.h: No such file or directory
#include <machine/_libatomic.h>
^
compilation terminated.
make[5]: *** [src/libscore_a-libatomic.o] Error 1
make[4]: *** [install-recursive] Error 1
make[3]: *** [install-recursive] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
I have a log file available if it helps.
Ideas?
Thanks,
Andrei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20160810/60406a2b/attachment.html>
More information about the users
mailing list