Error when Building RTEMS with Rtems source builder
Sebastian Huber
sebastian.huber at embedded-brains.de
Mon Sep 29 08:41:11 UTC 2014
Hello,
On 29/09/14 10:20, Schleifer, Philipp, PGR3-F4 wrote:
> 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
the Canadian Cross building is usually used to build the tool chain for Cygwin
or Mingw on a Linux host. This is much faster than building natively. I guess
using a Cygwin build system for a Canadian Cross build is somewhat special.
>
> 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:
[...]
> 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.
[...]
> 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?
The x86_64-w64-mingw32-g++ must find <zlib.h>. I guess zlib is missing in your
x86_64-w64-mingw32 installation.
--
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