Hello I wanted to build Haiku from source on Haiku, but I got errors: >>>>>>>>>>>>>>>>>>>>>>>>> /Adat/haiku/headers/private/shared/ZlibDecompressor.h:9: zlib.h: No such file or directory gcc -c "/Adat/haiku/src/kits/package/hpkg/PackageDataReader.cpp" -O2 - Wall -Wno-trigraphs -Wno-multichar -Werror -nostdinc -fno-rtti -include /Adat/haiku/headers/private/kernel/util/kernel_cpp.h -nostdinc -finline -fno-builtin -fno-exceptions -fno-pic -D_BOOT_MODE -D_KERNEL_MODE - DARCH_x86 -DB_USE_BUILTIN_ATOMIC_FUNCTIONS -D_BEOS_R5_COMPATIBLE_ - DBOOT_ARCHIVE_IMAGE_OFFSET=300 - D__HAIKU_PRIMARY_PACKAGING_ARCH=\"x86_gcc2\" - DHAIKU_DISTRO_COMPATIBILITY_DEFAULT -DHAIKU_INCLUDE_PATENTED_CODE=0 - DHAIKU_TARGET_PLATFORM_HAIKU -I/Adat/haiku/build/user_config_headers - I/Adat/haiku/build/config_headers - I/Adat/haiku/src/system/boot/loader/file_systems/packagefs - I/Adat/haiku/generated. x86gcc2/objects/common/system/boot/loader/file_systems/packagefs - I/Adat/haiku/generated. x86gcc2/objects/haiku_host/x86_gcc2/common/system/boot/loader/file_syst ems/packagefs -I/Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/common/system/boot/loader/file_systems/p ackagefs -I/Adat/haiku/src/kits/package - I/Adat/haiku/src/kits/package/hpkg -I/Adat/haiku/src/kits/shared - I/Adat/haiku/src/kits/support -I- - I/Adat/haiku/headers/private/kernel/boot/platform/bios_ia32 - I/Adat/haiku/headers/private/kernel - I/Adat/haiku/headers/private/shared -I/Adat/haiku/generated. x86gcc2/build_packages/zlib-1.2.8-4-x86_gcc2/develop/headers - I/Adat/haiku/headers/cpp -I/Adat/haiku/headers/build/gcc-2.95.3 - I/Adat/haiku/headers -I/Adat/haiku/headers/posix - I/Adat/haiku/headers/glibc -I/Adat/haiku/headers/os - I/Adat/haiku/headers/os/add-ons -I/Adat/haiku/headers/os/add- ons/file_system -I/Adat/haiku/headers/os/add-ons/graphics - I/Adat/haiku/headers/os/add-ons/input_server - I/Adat/haiku/headers/os/add-ons/registrar -I/Adat/haiku/headers/os/add- ons/screen_saver -I/Adat/haiku/headers/os/add-ons/tracker - I/Adat/haiku/headers/os/app -I/Adat/haiku/headers/os/device - I/Adat/haiku/headers/os/drivers -I/Adat/haiku/headers/os/game - I/Adat/haiku/headers/os/interface -I/Adat/haiku/headers/os/kernel - I/Adat/haiku/headers/os/locale -I/Adat/haiku/headers/os/media - I/Adat/haiku/headers/os/mail -I/Adat/haiku/headers/os/midi - I/Adat/haiku/headers/os/midi2 -I/Adat/haiku/headers/os/net - I/Adat/haiku/headers/os/storage -I/Adat/haiku/headers/os/support - I/Adat/haiku/headers/os/translation -I/Adat/haiku/headers/private/. -o "/Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/release/system/boot/loader/file_systems/ packagefs/PackageDataReader.o" ; ...failed C++ /Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/release/system/boot/loader/file_systems/ packagefs/PackageDataReader.o ... C++ /Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/release/system/boot/loader/file_systems/ packagefs/PackageFileHeapAccessorBase.o C++ /Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/release/system/boot/loader/file_systems/ packagefs/PackageFileHeapReader.o In file included from /Adat/haiku/src/kits/package/hpkg/PackageFileHeapAccessorBase.cpp:21: /Adat/haiku/headers/private/shared/ZlibDecompressor.h:9: zlib.h: No such file or directory gcc -c "/Adat/haiku/src/kits/package/hpkg/PackageFileHeapAccessorBase. cpp" -O2 -Wall -Wno-trigraphs -Wno-multichar -Werror -nostdinc -fno- rtti -include /Adat/haiku/headers/private/kernel/util/kernel_cpp.h - nostdinc -finline -fno-builtin -fno-exceptions -fno-pic -D_BOOT_MODE - D_KERNEL_MODE -DARCH_x86 -DB_USE_BUILTIN_ATOMIC_FUNCTIONS - D_BEOS_R5_COMPATIBLE_ -DBOOT_ARCHIVE_IMAGE_OFFSET=300 - D__HAIKU_PRIMARY_PACKAGING_ARCH=\"x86_gcc2\" - DHAIKU_DISTRO_COMPATIBILITY_DEFAULT -DHAIKU_INCLUDE_PATENTED_CODE=0 - DHAIKU_TARGET_PLATFORM_HAIKU -I/Adat/haiku/build/user_config_headers - I/Adat/haiku/build/config_headers - I/Adat/haiku/src/system/boot/loader/file_systems/packagefs - I/Adat/haiku/generated. x86gcc2/objects/common/system/boot/loader/file_systems/packagefs - I/Adat/haiku/generated. x86gcc2/objects/haiku_host/x86_gcc2/common/system/boot/loader/file_syst ems/packagefs -I/Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/common/system/boot/loader/file_systems/p ackagefs -I/Adat/haiku/src/kits/package - I/Adat/haiku/src/kits/package/hpkg -I/Adat/haiku/src/kits/shared - I/Adat/haiku/src/kits/support -I- - I/Adat/haiku/headers/private/kernel/boot/platform/bios_ia32 - I/Adat/haiku/headers/private/kernel - I/Adat/haiku/headers/private/shared -I/Adat/haiku/generated. x86gcc2/build_packages/zlib-1.2.8-4-x86_gcc2/develop/headers - I/Adat/haiku/headers/cpp -I/Adat/haiku/headers/build/gcc-2.95.3 - I/Adat/haiku/headers -I/Adat/haiku/headers/posix - I/Adat/haiku/headers/glibc -I/Adat/haiku/headers/os - I/Adat/haiku/headers/os/add-ons -I/Adat/haiku/headers/os/add- ons/file_system -I/Adat/haiku/headers/os/add-ons/graphics - I/Adat/haiku/headers/os/add-ons/input_server - I/Adat/haiku/headers/os/add-ons/registrar -I/Adat/haiku/headers/os/add- ons/screen_saver -I/Adat/haiku/headers/os/add-ons/tracker - I/Adat/haiku/headers/os/app -I/Adat/haiku/headers/os/device - I/Adat/haiku/headers/os/drivers -I/Adat/haiku/headers/os/game - I/Adat/haiku/headers/os/interface -I/Adat/haiku/headers/os/kernel - I/Adat/haiku/headers/os/locale -I/Adat/haiku/headers/os/media - I/Adat/haiku/headers/os/mail -I/Adat/haiku/headers/os/midi - I/Adat/haiku/headers/os/midi2 -I/Adat/haiku/headers/os/net - I/Adat/haiku/headers/os/storage -I/Adat/haiku/headers/os/support - I/Adat/haiku/headers/os/translation -I/Adat/haiku/headers/private/. -o "/Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/release/system/boot/loader/file_systems/ packagefs/PackageFileHeapAccessorBase.o" ; ...failed C++ /Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/release/system/boot/loader/file_systems/ packagefs/PackageFileHeapAccessorBase.o ... C++ /Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/release/system/boot/loader/file_systems/ packagefs/PackageReaderImpl.o C++ /Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/release/system/boot/loader/file_systems/ packagefs/ReaderImplBase.o C++ /Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/release/system/boot/loader/file_systems/ packagefs/DataIO.o C++ /Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/release/system/boot/loader/file_systems/ packagefs/ZlibDecompressor.o In file included from /Adat/haiku/src/kits/package/hpkg/PackageReaderImpl.cpp:29: /Adat/haiku/headers/private/shared/ZlibDecompressor.h:9: zlib.h: No such file or directory gcc -c "/Adat/haiku/src/kits/package/hpkg/PackageReaderImpl.cpp" -O2 - Wall -Wno-trigraphs -Wno-multichar -Werror -nostdinc -fno-rtti -include /Adat/haiku/headers/private/kernel/util/kernel_cpp.h -nostdinc -finline -fno-builtin -fno-exceptions -fno-pic -D_BOOT_MODE -D_KERNEL_MODE - DARCH_x86 -DB_USE_BUILTIN_ATOMIC_FUNCTIONS -D_BEOS_R5_COMPATIBLE_ - DBOOT_ARCHIVE_IMAGE_OFFSET=300 - D__HAIKU_PRIMARY_PACKAGING_ARCH=\"x86_gcc2\" - DHAIKU_DISTRO_COMPATIBILITY_DEFAULT -DHAIKU_INCLUDE_PATENTED_CODE=0 - DHAIKU_TARGET_PLATFORM_HAIKU -I/Adat/haiku/build/user_config_headers - I/Adat/haiku/build/config_headers - I/Adat/haiku/src/system/boot/loader/file_systems/packagefs - I/Adat/haiku/generated. x86gcc2/objects/common/system/boot/loader/file_systems/packagefs - I/Adat/haiku/generated. x86gcc2/objects/haiku_host/x86_gcc2/common/system/boot/loader/file_syst ems/packagefs -I/Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/common/system/boot/loader/file_systems/p ackagefs -I/Adat/haiku/src/kits/package - I/Adat/haiku/src/kits/package/hpkg -I/Adat/haiku/src/kits/shared - I/Adat/haiku/src/kits/support -I- - I/Adat/haiku/headers/private/kernel/boot/platform/bios_ia32 - I/Adat/haiku/headers/private/kernel - I/Adat/haiku/headers/private/shared -I/Adat/haiku/generated. x86gcc2/build_packages/zlib-1.2.8-4-x86_gcc2/develop/headers - I/Adat/haiku/headers/cpp -I/Adat/haiku/headers/build/gcc-2.95.3 - I/Adat/haiku/headers -I/Adat/haiku/headers/posix - I/Adat/haiku/headers/glibc -I/Adat/haiku/headers/os - I/Adat/haiku/headers/os/add-ons -I/Adat/haiku/headers/os/add- ons/file_system -I/Adat/haiku/headers/os/add-ons/graphics - I/Adat/haiku/headers/os/add-ons/input_server - I/Adat/haiku/headers/os/add-ons/registrar -I/Adat/haiku/headers/os/add- ons/screen_saver -I/Adat/haiku/headers/os/add-ons/tracker - I/Adat/haiku/headers/os/app -I/Adat/haiku/headers/os/device - I/Adat/haiku/headers/os/drivers -I/Adat/haiku/headers/os/game - I/Adat/haiku/headers/os/interface -I/Adat/haiku/headers/os/kernel - I/Adat/haiku/headers/os/locale -I/Adat/haiku/headers/os/media - I/Adat/haiku/headers/os/mail -I/Adat/haiku/headers/os/midi - I/Adat/haiku/headers/os/midi2 -I/Adat/haiku/headers/os/net - I/Adat/haiku/headers/os/storage -I/Adat/haiku/headers/os/support - I/Adat/haiku/headers/os/translation -I/Adat/haiku/headers/private/. -o "/Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/release/system/boot/loader/file_systems/ packagefs/PackageReaderImpl.o" ; ...failed C++ /Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/release/system/boot/loader/file_systems/ packagefs/PackageReaderImpl.o ... In file included from /Adat/haiku/src/kits/shared/ZlibDecompressor.cpp: 7: /Adat/haiku/headers/private/shared/ZlibDecompressor.h:9: zlib.h: No such file or directory As /Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/release/system/boot/atomic.o gcc -c "/Adat/haiku/src/kits/shared/ZlibDecompressor.cpp" -O2 -Wall - Wno-trigraphs -Wno-multichar -Werror -nostdinc -fno-rtti -include /Adat/haiku/headers/private/kernel/util/kernel_cpp.h -nostdinc -finline -fno-builtin -fno-exceptions -fno-pic -D_BOOT_MODE -D_KERNEL_MODE - DARCH_x86 -DB_USE_BUILTIN_ATOMIC_FUNCTIONS -D_BEOS_R5_COMPATIBLE_ - DBOOT_ARCHIVE_IMAGE_OFFSET=300 - D__HAIKU_PRIMARY_PACKAGING_ARCH=\"x86_gcc2\" - DHAIKU_DISTRO_COMPATIBILITY_DEFAULT -DHAIKU_INCLUDE_PATENTED_CODE=0 - DHAIKU_TARGET_PLATFORM_HAIKU -I/Adat/haiku/build/user_config_headers - I/Adat/haiku/build/config_headers - I/Adat/haiku/src/system/boot/loader/file_systems/packagefs - I/Adat/haiku/generated. x86gcc2/objects/common/system/boot/loader/file_systems/packagefs - I/Adat/haiku/generated. x86gcc2/objects/haiku_host/x86_gcc2/common/system/boot/loader/file_syst ems/packagefs -I/Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/common/system/boot/loader/file_systems/p ackagefs -I/Adat/haiku/src/kits/package - I/Adat/haiku/src/kits/package/hpkg -I/Adat/haiku/src/kits/shared - I/Adat/haiku/src/kits/support -I- - I/Adat/haiku/headers/private/kernel/boot/platform/bios_ia32 - I/Adat/haiku/headers/private/kernel - I/Adat/haiku/headers/private/shared -I/Adat/haiku/generated. x86gcc2/build_packages/zlib-1.2.8-4-x86_gcc2/develop/headers - I/Adat/haiku/headers/cpp -I/Adat/haiku/headers/build/gcc-2.95.3 - I/Adat/haiku/headers -I/Adat/haiku/headers/posix - I/Adat/haiku/headers/glibc -I/Adat/haiku/headers/os - I/Adat/haiku/headers/os/add-ons -I/Adat/haiku/headers/os/add- ons/file_system -I/Adat/haiku/headers/os/add-ons/graphics - I/Adat/haiku/headers/os/add-ons/input_server - I/Adat/haiku/headers/os/add-ons/registrar -I/Adat/haiku/headers/os/add- ons/screen_saver -I/Adat/haiku/headers/os/add-ons/tracker - I/Adat/haiku/headers/os/app -I/Adat/haiku/headers/os/device - I/Adat/haiku/headers/os/drivers -I/Adat/haiku/headers/os/game - I/Adat/haiku/headers/os/interface -I/Adat/haiku/headers/os/kernel - I/Adat/haiku/headers/os/locale -I/Adat/haiku/headers/os/media - I/Adat/haiku/headers/os/mail -I/Adat/haiku/headers/os/midi - I/Adat/haiku/headers/os/midi2 -I/Adat/haiku/headers/os/net - I/Adat/haiku/headers/os/storage -I/Adat/haiku/headers/os/support - I/Adat/haiku/headers/os/translation -I/Adat/haiku/headers/private/. -o "/Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/release/system/boot/loader/file_systems/ packagefs/ZlibDecompressor.o" ; ...failed C++ /Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/release/system/boot/loader/file_systems/ packagefs/ZlibDecompressor.o ... C++ /Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/release/system/boot/ctype.o In file included from /Adat/haiku/src/kits/package/hpkg/ReaderImplBase. cpp:24: /Adat/haiku/headers/private/shared/ZlibDecompressor.h:9: zlib.h: No such file or directory gcc -c "/Adat/haiku/src/kits/package/hpkg/ReaderImplBase.cpp" -O2 -Wall -Wno-trigraphs -Wno-multichar -Werror -nostdinc -fno-rtti -include /Adat/haiku/headers/private/kernel/util/kernel_cpp.h -nostdinc -finline -fno-builtin -fno-exceptions -fno-pic -D_BOOT_MODE -D_KERNEL_MODE - DARCH_x86 -DB_USE_BUILTIN_ATOMIC_FUNCTIONS -D_BEOS_R5_COMPATIBLE_ - DBOOT_ARCHIVE_IMAGE_OFFSET=300 - D__HAIKU_PRIMARY_PACKAGING_ARCH=\"x86_gcc2\" - DHAIKU_DISTRO_COMPATIBILITY_DEFAULT -DHAIKU_INCLUDE_PATENTED_CODE=0 - DHAIKU_TARGET_PLATFORM_HAIKU -I/Adat/haiku/build/user_config_headers - I/Adat/haiku/build/config_headers - I/Adat/haiku/src/system/boot/loader/file_systems/packagefs - I/Adat/haiku/generated. x86gcc2/objects/common/system/boot/loader/file_systems/packagefs - I/Adat/haiku/generated. x86gcc2/objects/haiku_host/x86_gcc2/common/system/boot/loader/file_syst ems/packagefs -I/Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/common/system/boot/loader/file_systems/p ackagefs -I/Adat/haiku/src/kits/package - I/Adat/haiku/src/kits/package/hpkg -I/Adat/haiku/src/kits/shared - I/Adat/haiku/src/kits/support -I- - I/Adat/haiku/headers/private/kernel/boot/platform/bios_ia32 - I/Adat/haiku/headers/private/kernel - I/Adat/haiku/headers/private/shared -I/Adat/haiku/generated. x86gcc2/build_packages/zlib-1.2.8-4-x86_gcc2/develop/headers - I/Adat/haiku/headers/cpp -I/Adat/haiku/headers/build/gcc-2.95.3 - I/Adat/haiku/headers -I/Adat/haiku/headers/posix - I/Adat/haiku/headers/glibc -I/Adat/haiku/headers/os - I/Adat/haiku/headers/os/add-ons -I/Adat/haiku/headers/os/add- ons/file_system -I/Adat/haiku/headers/os/add-ons/graphics - I/Adat/haiku/headers/os/add-ons/input_server - I/Adat/haiku/headers/os/add-ons/registrar -I/Adat/haiku/headers/os/add- ons/screen_saver -I/Adat/haiku/headers/os/add-ons/tracker - I/Adat/haiku/headers/os/app -I/Adat/haiku/headers/os/device - I/Adat/haiku/headers/os/drivers -I/Adat/haiku/headers/os/game - I/Adat/haiku/headers/os/interface -I/Adat/haiku/headers/os/kernel - I/Adat/haiku/headers/os/locale -I/Adat/haiku/headers/os/media - I/Adat/haiku/headers/os/mail -I/Adat/haiku/headers/os/midi - I/Adat/haiku/headers/os/midi2 -I/Adat/haiku/headers/os/net - I/Adat/haiku/headers/os/storage -I/Adat/haiku/headers/os/support - I/Adat/haiku/headers/os/translation -I/Adat/haiku/headers/private/. -o "/Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/release/system/boot/loader/file_systems/ packagefs/ReaderImplBase.o" ; ...failed C++ /Adat/haiku/generated. x86gcc2/objects/haiku/x86_gcc2/release/system/boot/loader/file_systems/ packagefs/ReaderImplBase.o ... ... Preparing contents of archive /Adat/haiku/generated.x86gcc2/haiku- floppyboot.tgz ... /Adat/haiku/build/scripts/build_archive: line 58: /Adat/haiku/generated.x86gcc2/haiku-floppyboot-copy-files: No such file or directory /Adat/haiku/build/scripts/build_archive /Adat/haiku/generated. x86gcc2/haiku-floppyboot.tgz /Adat/haiku/generated.x86gcc2/haiku- floppyboot-init-vars /Adat/haiku/generated.x86gcc2/haiku-floppyboot- make-dirs /Adat/haiku/generated.x86gcc2/haiku-floppyboot-copy-files ...failed BuildFloppyBootArchive1 /Adat/haiku/generated.x86gcc2/haiku- floppyboot.tgz ... <<<<<<<<<<<<<<<<<<<<<<<<< Can somebody help me what is wrong? I do everything as the same as it is on http://www.haiku-os.org/guides/building/gcc-hybrid as before every time. I have a fresh cloned Haiku source. Here is the whole process what I did: /Adat> git clone git://git.haiku-os.org/haiku Cloning into 'haiku'... remote: Counting objects: 573461, done. remote: Compressing objects: 100% (133103/133103), done. remote: Total 573461 (delta 446721), reused 560400 (delta 435693) Receiving objects: 100% (573461/573461), 287.31 MiB | 1.17 MiB/s, done. Resolving deltas: 100% (446721/446721), done. Checking connectivity... done Checking out files: 100% (41267/41267), done. /Adat> cd haiku /Adat/haiku> mkdir generated.x86gcc2 /Adat/haiku> cd generated.x86gcc2 /Adat/haiku/generated.x86gcc2> ../configure --target-arch x86_gcc2 -- target-arch x86 /Adat/haiku/generated.x86gcc2> jam -q -j4 @nightly-anyboot Using hrev47020 nighly-anyboot. dsjonny