Error when Building RTEMS with Rtems source builder
Schleifer, Philipp, PGR3-F4
philipp.schleifer at mbda-systems.de
Mon Sep 29 08:20:49 UTC 2014
Hello,
I tried to compile the RTEMS Environment using the Source Builder.
I installed Cygwin 1.7.32 using current setup-x86.exe from Cygwin website.
I didn't choose 64-Bit installation to be able to use the RTEMS Environment binaries on 32 Bit Windows XP as well.
I installed all required tools listed on this website:
http://www.rtems.org/ftp/pub/rtems/people/chrisj/source-builder/source-builder.html#_canadian_cross_building
I added also zlib-devel and mingw-zlib-devel.
I ran the builder:
../source-builder/sb-set-builder --log=l-arm.txt --prefix=/home/Philipp/rtems/ 4.11/rtems-arm
It took some hours, but at the end, the Compiler is missing a zlib.h file:
../../gcc-4.8.3/gcc/lto-streamer.c:251:53: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'long long unsigned int' [-Wformat=]
x86_64-w64-mingw32-g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.8.3/gcc -I../../gcc-4.8.3/gcc/. -I../../gcc-4.8.3/gcc/../include -I../../gcc-4.8.3/gcc/../libcpp/include -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/build-cxc/./gmp -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/gmp -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/build-cxc/./mpfr -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/mpfr -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/mpc/src -I../../gcc-4.8.3/gcc/../libdecnumber -I../../gcc-4.8.3/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-4.8.3/gcc/../libbacktrace ../../gcc-4.8.3/gcc/lto-streamer-in.c -o lto-streamer-in.o
x86_64-w64-mingw32-g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.8.3/gcc -I../../gcc-4.8.3/gcc/. -I../../gcc-4.8.3/gcc/../include -I../../gcc-4.8.3/gcc/../libcpp/include -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/build-cxc/./gmp -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/gmp -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/build-cxc/./mpfr -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/mpfr -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/mpc/src -I../../gcc-4.8.3/gcc/../libdecnumber -I../../gcc-4.8.3/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-4.8.3/gcc/../libbacktrace ../../gcc-4.8.3/gcc/lto-streamer-out.c -o lto-streamer-out.o
x86_64-w64-mingw32-g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.8.3/gcc -I../../gcc-4.8.3/gcc/. -I../../gcc-4.8.3/gcc/../include -I../../gcc-4.8.3/gcc/../libcpp/include -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/build-cxc/./gmp -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/gmp -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/build-cxc/./mpfr -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/mpfr -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/mpc/src -I../../gcc-4.8.3/gcc/../libdecnumber -I../../gcc-4.8.3/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-4.8.3/gcc/../libbacktrace ../../gcc-4.8.3/gcc/lto-section-in.c -o lto-section-in.o
x86_64-w64-mingw32-g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.8.3/gcc -I../../gcc-4.8.3/gcc/. -I../../gcc-4.8.3/gcc/../include -I../../gcc-4.8.3/gcc/../libcpp/include -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/build-cxc/./gmp -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/gmp -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/build-cxc/./mpfr -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/mpfr -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/mpc/src -I../../gcc-4.8.3/gcc/../libdecnumber -I../../gcc-4.8.3/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-4.8.3/gcc/../libbacktrace ../../gcc-4.8.3/gcc/lto-section-out.c -o lto-section-out.o
x86_64-w64-mingw32-g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.8.3/gcc -I../../gcc-4.8.3/gcc/. -I../../gcc-4.8.3/gcc/../include -I../../gcc-4.8.3/gcc/../libcpp/include -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/build-cxc/./gmp -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/gmp -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/build-cxc/./mpfr -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/mpfr -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/mpc/src -I../../gcc-4.8.3/gcc/../libdecnumber -I../../gcc-4.8.3/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-4.8.3/gcc/../libbacktrace ../../gcc-4.8.3/gcc/lto-symtab.c -o lto-symtab.o
x86_64-w64-mingw32-g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.8.3/gcc -I../../gcc-4.8.3/gcc/. -I../../gcc-4.8.3/gcc/../include -I../../gcc-4.8.3/gcc/../libcpp/include -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/build-cxc/./gmp -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/gmp -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/build-cxc/./mpfr -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/mpfr -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/mpc/src -I../../gcc-4.8.3/gcc/../libdecnumber -I../../gcc-4.8.3/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-4.8.3/gcc/../libbacktrace ../../gcc-4.8.3/gcc/lto-opts.c -o lto-opts.o
x86_64-w64-mingw32-g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.8.3/gcc -I../../gcc-4.8.3/gcc/. -I../../gcc-4.8.3/gcc/../include -I../../gcc-4.8.3/gcc/../libcpp/include -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/build-cxc/./gmp -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/gmp -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/build-cxc/./mpfr -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/mpfr -I/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/mpc/src -I../../gcc-4.8.3/gcc/../libdecnumber -I../../gcc-4.8.3/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-4.8.3/gcc/../libbacktrace ../../gcc-4.8.3/gcc/lto-compress.c -o lto-compress.o
../../gcc-4.8.3/gcc/lto-compress.c:28:18: fatal error: zlib.h: No such file or directory
#include <zlib.h>
^
compilation terminated.
make[2]: *** [lto-compress.o] Error 1
Makefile:1059: recipe for target 'lto-compress.o' failed
make[2]: *** Waiting for unfinished jobs....
rm gcc.pod
make[2]: Leaving directory '/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/build-cxc/gcc'
Makefile:3919: recipe for target 'all-gcc' failed
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory '/home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/build-cxc'
make: *** [all] Error 2
Makefile:866: recipe for target 'all' failed
shell cmd failed: sh -ex /home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/doit
error: building arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1
When I search for zlib.h:
$ locate -eb0P zlib.h | xargs -r0 ls -aldh
-rwx------+ 1 Administratoren None 43K 18. Jun 03:47 /cygdrive/c/altera/14.0/nios2eds/bin/gnu/src/newlib-1.16/newlib/libc/sys/linux/include/net/zlib.h
-rwx------+ 1 Philipp None 2,5K 29. Sep 09:17 /cygdrive/c/Users/Philipp/AppData/Roaming/Microsoft/Windows/Recent/zlib.h.lnk
-rwx------+ 1 Philipp None 85K 27. Jun 2013 /cygdrive/c/Users/Philipp/Downloads/altera 14.0/socrates-training/rootfs-socatres/usr/include/zlib.h
-rw-r--r-- 1 Philipp None 85K 16. Nov 2012 /home/Philipp/gcc-4.8.3/zlib/zlib.h
-rw-r--r-- 1 Philipp None 43K 29. Mai 2003 /home/Philipp/newlib/src/newlib/libc/sys/linux/include/net/zlib.h
-rw-r--r-- 1 Philipp None 17K 24. Sep 18:14 /home/Philipp/rtems/c/src/lib/libbsp/powerpc/shared/bootloader/zlib.h
-rw-r--r-- 1 Philipp None 400 24. Sep 18:14 /home/Philipp/rtems/cpukit/libfs/src/jffs2/include/linux/zlib.h
-rw-r--r-- 1 Philipp None 78K 24. Sep 18:15 /home/Philipp/rtems/cpukit/zlib/zlib.h
-rw-r--r-- 1 Philipp None 85K 16. Nov 2012 /home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1/gcc-4.8.3/zlib/zlib.h
-rw-r--r-- 1 Philipp None 85K 16. Nov 2012 /home/Philipp/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.8.3-newlib-19-Aug-2014-1-cxc/gcc-4.8.3/zlib/zlib.h
-rw-r--r-- 1 Philipp None 43K 29. Mai 2003 /home/Philipp/rtems-source-builder/rtems/sources/cvs/anoncvs_sourceware_org_cvs_src_newlib_19_Aug_2014/src/newlib/libc/sys/linux/include/net/zlib.h
-rw-r--r-- 1 Philipp None 86K 29. Apr 2013 /usr/i686-pc-mingw32/sys-root/mingw/include/zlib.h
-rw-r--r-- 1 Philipp None 86K 29. Apr 2013 /usr/include/zlib.h
Interesting thing is, that they do not have same size. Which zlib.h is the correct one for compilation? Is there a include folder missing?
Best regards,
Philipp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20140929/2db7d3bb/attachment-0001.html>
More information about the users
mailing list