Problem building RTEMS 4.11 from a clean pull from git using rsb. _libatomic.h is missing.

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Aug 11 05:24:46 UTC 2016


I guess you try to build the Git master (RTEMS 4.12) with the 4.11 tool 
chain. This doesn't work. You have to checkout the RTEMS 4.11 branch if 
you want to use the 4.11 tool chain. However, I would use the 4.12 tool 
chain and the Git master.

On 10/08/16 22:45, Mr. Andrei Chichak wrote:
>
> 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
> 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
> 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
>
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users

-- 
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 users mailing list