Build Haiku on Mac failed


#1

I used the following page to build HaiKu: https://www.haiku-os.org/guides/building/compiling-x86_64. But it was failed. Here are build info:

$ jam -q -j8 @nightly-anyboot
Starting build of type regular ...
Building Haiku Nightly
Skipping setjmp_test2.S test on non-x86
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...found 158607 target(s)...
...updating 12988 target(s)...
InitScript1 haiku-floppyboot-init-vars
InitScript1 haiku-floppyboot-make-dirs
InitScript1 haiku-floppyboot-copy-files
C++ objects/haiku/x86_64/release/add-ons/kernel/partitioning_systems/intel/PartitionMapWriter.o
InitScript1 haiku.image-init-vars
DownloadLocatedFile1 download/openssl-1.0.2p-1-x86_64.hpkg
DownloadLocatedFile1 download/p7zip-9.20.1-7-x86_64.hpkg
DownloadLocatedFile1 download/pe-2.4.5-8-x86_64.hpkg
AppendToContainerCopyFilesScript <FloppyBootArchive>haiku-floppyboot-copy-files-dummy-system/add-ons/kernel/bus_managers
CreateContainerMakeDirectoriesScript1 haiku-floppyboot-make-dirs
AddTargetVariableToScript1 <unique!target>_target_033
DownloadLocatedFile1 download/vision-0.10.3-2-x86_64.hpkg
AddVariableToScript1 haiku-floppyboot-init-vars
AddDirectoryToContainerCopyFilesScript <FloppyBootImage>data/mime_db/-/<mimedb-app->usb_mimedb
AddTargetVariableToScript1 <unique!target>_target_513
AddDirectoryToContainerCopyFilesScript <FloppyBootImage>data/mime_db/-/<mimedb-app-<usb>uhci_mimedb
DownloadLocatedFile1 download/wpa_supplicant-2.7~devel.haiku.1-1-x86_64.hpkg
AddDirectoryToContainerCopyFilesScript <FloppyBootImage>data/mime_db/-/<mimedb-app-<usb>ohci_mimedb
AddTargetVariableToScript1 <unique!target>_target_613
AddDirectoryToContainerCopyFilesScript <FloppyBootImage>data/mime_db/-/<mimedb-app-<usb>ehci_mimedb
--2018-11-21 19:58:01--  https://eu.hpkg.haiku-os.org/haikuports/master/build-packages/a82cee6278b5062afa5c1dff568ae9dd7898614cf356f8babeffee2dbb38da8a/packages/pe-2.4.5-8-x86_64.hpkg
--2018-11-21 19:58:01--  https://eu.hpkg.haiku-os.org/haikuports/master/build-packages/a82cee6278b5062afa5c1dff568ae9dd7898614cf356f8babeffee2dbb38da8a/packages/openssl-1.0.2p-1-x86_64.hpkg
--2018-11-21 19:58:01--  https://eu.hpkg.haiku-os.org/haikuports/master/build-packages/a82cee6278b5062afa5c1dff568ae9dd7898614cf356f8babeffee2dbb38da8a/packages/p7zip-9.20.1-7-x86_64.hpkg
AddTargetVariableToScript1 <unique!target>_target_713
AppendToContainerCopyFilesScript <FloppyBootArchive>haiku-floppyboot-copy-files-dummy-system/add-ons/kernel/busses/ata
AddTargetVariableToScript1 <unique!target>_target_813
--2018-11-21 19:58:01--  https://eu.hpkg.haiku-os.org/haikuports/master/build-packages/a82cee6278b5062afa5c1dff568ae9dd7898614cf356f8babeffee2dbb38da8a/packages/vision-0.10.3-2-x86_64.hpkg
AppendToContainerCopyFilesScript <FloppyBootArchive>haiku-floppyboot-copy-files-dummy-system/add-ons/kernel/busses/scsi
AddTargetVariableToScript1 <unique!target>_target_913
AppendToContainerCopyFilesScript <FloppyBootArchive>haiku-floppyboot-copy-files-dummy-system/add-ons/kernel/console
--2018-11-21 19:58:01--  https://eu.hpkg.haiku-os.org/haikuports/master/build-packages/a82cee6278b5062afa5c1dff568ae9dd7898614cf356f8babeffee2dbb38da8a/packages/wpa_supplicant-2.7~devel.haiku.1-1-x86_64.hpkg
AddTargetVariableToScript1 <unique!target>_target_023
AppendToContainerCopyFilesScript <FloppyBootArchive>haiku-floppyboot-copy-files-dummy-system/add-ons/kernel/file_systems
AddTargetVariableToScript1 <unique!target>_target_123
正在解析主机 eu.hpkg.haiku-os.org (eu.hpkg.haiku-os.org)... 正在解析主机 eu.hpkg.haiku-os.org (eu.hpkg.haiku-os.org)... 正在解析主机 eu.hpkg.haiku-os.org (eu.hpkg.haiku-os.org)... AppendToContainerCopyFilesScript <FloppyBootArchive>haiku-floppyboot-copy-files-dummy-system/add-ons/kernel/generic
AddTargetVariableToScript1 <unique!target>_target_223
DownloadLocatedFile1 download/xz_utils-5.2.4-2-x86_64.hpkg
AddTargetVariableToScript1 <unique!target>_target_323
正在解析主机 eu.hpkg.haiku-os.org (eu.hpkg.haiku-os.org)... AddTargetVariableToScript1 <unique!target>_target_423
正在解析主机 eu.hpkg.haiku-os.org (eu.hpkg.haiku-os.org)... AddTargetVariableToScript1 <unique!target>_target_523
AddTargetVariableToScript1 <unique!target>_target_623
--2018-11-21 19:58:01--  https://eu.hpkg.haiku-os.org/haikuports/master/build-packages/a82cee6278b5062afa5c1dff568ae9dd7898614cf356f8babeffee2dbb38da8a/packages/xz_utils-5.2.4-2-x86_64.hpkg
DownloadLocatedFile1 download/bash-4.4.023-1-x86_64.hpkg
正在解析主机 eu.hpkg.haiku-os.org (eu.hpkg.haiku-os.org)... --2018-11-21 19:58:01--  https://eu.hpkg.haiku-os.org/haikuports/master/build-packages/a82cee6278b5062afa5c1dff568ae9dd7898614cf356f8babeffee2dbb38da8a/packages/bash-4.4.023-1-x86_64.hpkg
正在解析主机 eu.hpkg.haiku-os.org (eu.hpkg.haiku-os.org)... Link objects/haiku/x86_64/release/add-ons/kernel/partitioning_systems/intel/intel
SetType1 objects/haiku/x86_64/release/add-ons/kernel/partitioning_systems/intel/intel
MimeSet1 objects/haiku/x86_64/release/add-ons/kernel/partitioning_systems/intel/intel
SetVersion1 objects/haiku/x86_64/release/add-ons/kernel/partitioning_systems/intel/intel
Chmod1 objects/haiku/x86_64/release/add-ons/kernel/partitioning_systems/intel/intel
AppendToContainerCopyFilesScript <FloppyBootArchive>haiku-floppyboot-copy-files-dummy-system/add-ons/kernel/partitioning_systems
AppendToContainerCopyFilesScript <FloppyBootArchive>haiku-floppyboot-copy-files-dummy-system/add-ons/kernel/busses/usb
AppendToContainerCopyFilesScript <FloppyBootArchive>haiku-floppyboot-copy-files-dummy-system/add-ons/kernel/cpu
AppendToContainerCopyFilesScript <FloppyBootArchive>haiku-floppyboot-copy-files-dummy-system/add-ons/kernel/drivers/disk/scsi
AppendToContainerCopyFilesScript <FloppyBootArchive>haiku-floppyboot-copy-files-dummy-system/add-ons/kernel/drivers/bin
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/drivers/dev/disk/usb/usb_disk
AppendToContainerCopyFilesScript <FloppyBootArchive>haiku-floppyboot-copy-files-dummy-system
AppendToContainerCopyFilesScript <FloppyBootArchive>haiku-floppyboot-copy-files-dummy-home/config/settings/kernel/drivers
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/acpi
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/ata
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/config_manager
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/dpc
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/pci
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/isa
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/scsi
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/usb
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/ata_adapter
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/locked_pool
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/scsi_periph
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/ahci
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/generic_ide_pci
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/silicon_image_3112
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/legacy_sata
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/it8211
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/uhci
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/ohci
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/ehci
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/scsi_cd
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/scsi_disk
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/usb_disk
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/intel
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/session
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/attribute_overlay
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/bfs
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/iso9660
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/packagefs
AddSymlinkToContainerCopyFilesScript <FloppyBootImage>system/add-ons/kernel/boot/write_overlay
warning: using independent target <FloppyBootArchive>/Volumes/HaiKu/haiku/generated.x86_64/./haiku-floppyboot-init-vars
warning: using independent target <FloppyBootArchive>/Volumes/HaiKu/haiku/generated.x86_64/./haiku-floppyboot-make-dirs
warning: using independent target <FloppyBootArchive>/Volumes/HaiKu/haiku/generated.x86_64/./haiku-floppyboot-copy-files
BuildFloppyBootArchive1 haiku-floppyboot.tgz
Preparing contents of archive haiku-floppyboot.tgz ...
Building archive /Volumes/HaiKu/haiku/generated.x86_64/haiku-floppyboot.tgz ...
BuildFloppyBootImage1 haiku-boot-floppy.image
stat: illegal option -- c
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
stat: illegal option -- c
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
2880+0 records in
2880+0 records out
2949120 bytes transferred in 0.010461 secs (281913208 bytes/sec)
579+1 records in
579+1 records out
296920 bytes transferred in 0.001495 secs (198624042 bytes/sec)
6+1 records in
6+1 records out
2267708 bytes transferred in 0.000741 secs (3060314265 bytes/sec)
BuildCDBootImageEFI haiku-boot-cd.iso
Bad Option '-e' (error -1 BADFLAG).
Usage: mkisofs [options] [-find] file... [find expression]

Use mkisofs -help
to get a list all of valid options.

Use mkisofs -find -help
to get a list of all valid -find options.

Most important Options:
	-posix-H		Follow sylinks encountered on command line
	-posix-L		Follow all symlinks
	-posix-P		Do not follow symlinks (default)
	-o FILE, -output FILE	Set output file name
	-R, -rock		Generate Rock Ridge directory information
	-r, -rational-rock	Generate rationalized Rock Ridge directory info
	-J, -joliet		Generate Joliet directory information
	-print-size		Print estimated filesystem size and exit
	-UDF			Generate UDF file system
	-dvd-video		Generate DVD-Video compliant UDF file system
	-iso-level LEVEL	Set ISO9660 level (1..3) or 4 for ISO9660 v 2
	-V ID, -volid ID	Set Volume ID
	-graft-points		Allow to use graft points for filenames
	-M FILE, -prev-session FILE	Set path to previous session to merge

rm -f haiku-boot-cd.iso
mkisofs -b haiku-boot-floppy.image -eltorito-alt-boot -no-emul-boot -e esp.image -r -J -V bootimg -o haiku-boot-cd.iso haiku-boot-floppy.image esp.image ../data/boot_cd/README.html

...failed BuildCDBootImageEFI haiku-boot-cd.iso ...
62.210.188.85
正在连接 eu.hpkg.haiku-os.org (eu.hpkg.haiku-os.org)|62.210.188.85|:443... 62.210.188.8562.210.188.85
62.210.188.85
62.210.188.8562.210.188.85

正在连接 eu.hpkg.haiku-os.org (eu.hpkg.haiku-os.org)|62.210.188.85|:443... 正在连接 eu.hpkg.haiku-os.org (eu.hpkg.haiku-os.org)|62.210.188.85|:443...
正在连接 eu.hpkg.haiku-os.org (eu.hpkg.haiku-os.org)|62.210.188.85|:443... 正在连接 eu.hpkg.haiku-os.org (eu.hpkg.haiku-os.org)|62.210.188.85|:443... 正在连接 eu.hpkg.haiku-os.org (eu.hpkg.haiku-os.org)|62.210.188.85|:443... 62.210.188.85
正在连接 eu.hpkg.haiku-os.org (eu.hpkg.haiku-os.org)|62.210.188.85|:443... 已连接。
已连接。
已连接。
已连接。
已连接。
已连接。
已连接。
已发出 HTTP 请求,正在等待回应... 已发出 HTTP 请求,正在等待回应... 已发出 HTTP 请求,正在等待回应... 已发出 HTTP 请求,正在等待回应... 已发出 HTTP 请求,正在等待回应... 已发出 HTTP 请求,正在等待回应... 已发出 HTTP 请求,正在等待回应... 200 OK
200 OK
200 OK
长度:长度:655574长度:1234190 (640K)214472 [application/octet-stream]
 (1.2M) (209K) [application/octet-stream]
 [application/octet-stream]
正在保存至: “download/p7zip-9.20.1-7-x86_64.hpkg”
正在保存至: “download/pe-2.4.5-8-x86_64.hpkg”
正在保存至: “download/xz_utils-5.2.4-2-x86_64.hpkg”



               download/xz_ut   0%[                                                ]       0  --.-KB/s               200 OK
200 OK
200 OK
长度:203719长度:长度:19410051996199 (199K) [application/octet-stream]
 (1.9M) (1.9M) [application/octet-stream]
正在保存至: “download/wpa_supplicant-2.7~devel.haiku.1-1-x86_64.hpkg”
 [application/octet-stream]
正在保存至: “download/vision-0.10.3-2-x86_64.hpkg”
正在保存至: “download/bash-4.4.023-1-x86_64.hpkg”

200 OK


 [application/octet-stream]
               download/visio   0%[                                                ]       0  --.-KB/s                               download/bash-   0%[                                                ]       0  --.-KB/s               正在保存至: “download/openssl-1.0.2p-1-x86_64.hpkg”

            download/p7zip-9.  13%[=====>                                          ]  87.75K  71.5KB/s                download/pe-2.4.5-8-x86_64.hp   5%[=>                                              ]  68.42K  23.9KB/s                download/p7zip-9.20.1-7-x86_6 100%[===============================================>] 640.21K   223KB/s  用时 2.9s

2018-11-21 19:58:09 (223 KB/s) - 已保存 “download/p7zip-9.20.1-7-x86_64.hpkg” [655574/655574])

           download/openssl-1   2%[>                                               ]  43.75K  13.4KB/s  剩余 1m 59s   download/xz_utils-5.2.4-2-x86 100%[===============================================>] 209.45K  63.9KB/s  用时 3.3s

2018-11-21 19:58:09 (63.9 KB/s) - 已保存 “download/xz_utils-5.2.4-2-x86_64.hpkg” [214472/214472])

          download/vision-0.1   7%[==>                                             ] 139.75K  37.9KB/s  剩余 68s               download/vision-0.10   9%[===>                                            ] 187.75K  45.8KB/s  剩余 68s      download/wpa_supplicant-2.7~d  17%[=======>                                        ]  35.75K  87.3KB/s  用时 0.4s

2018-11-21 19:58:36 (87.3 KB/s) - 在 36613/203719 字节处发生读取错误 (Success)。重试中。

--2018-11-21 19:58:37--  (尝试次数: 2)  https://eu.hpkg.haiku-os.org/haikuports/master/build-packages/a82cee6278b5062afa5c1dff568ae9dd7898614cf356f8babeffee2dbb38da8a/packages/wpa_supplicant-2.7~devel.haiku.1-1-x86_64.hpkg
正在连接 eu.hpkg.haiku-os.org (eu.hpkg.haiku-os.org)|62.210.188.85|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 206 Partial Content
长度:203719 (199K),剩余 167106 (163K) [application/octet-stream]
正在保存至: “download/wpa_supplicant-2.7~devel.haiku.1-1-x86_64.hpkg”

download/wpa_supplicant-2.7~d 100%[++++++++=======================================>] 198.94K   123KB/s  用时 1.3s

2018-11-21 19:58:40 (123 KB/s) - 已保存 “download/wpa_supplicant-2.7~devel.haiku.1-1-x86_64.hpkg” [203719/203719])

download/openssl-1.0.2p-1-x86  20%[=========>                                      ] 339.75K  52.0KB/s  用时 6.5s    download/vision-0.10.3-2-x86_  32%[==============>                                 ] 627.75K  96.2KB/s  用时 6.5s



2018-11-21 19:58:43 (52.0 KB/s) - 在 347905/1667968 字节处发生读取错误 (Success)。2018-11-21 19:58:43 (96.2 KB/s) - 在 642819/1996199 字节处发生读取错误 (Success)。重试中。

重试中。

download/pe-2.4.5-8-x86_64.hp  49%[======================>                         ] 591.75K  90.6KB/s  用时 6.5s

2018-11-21 19:58:43 (90.6 KB/s) - 在 605953/1234190 字节处发生读取错误 (Success)。重试中。

--2018-11-21 19:58:44--  (尝试次数: 2)  https://eu.hpkg.haiku-os.org/haikuports/master/build-packages/a82cee6278b5062afa5c1dff568ae9dd7898614cf356f8babeffee2dbb38da8a/packages/openssl-1.0.2p-1-x86_64.hpkg
--2018-11-21 19:58:44--  (尝试次数: 2)  https://eu.hpkg.haiku-os.org/haikuports/master/build-packages/a82cee6278b5062afa5c1dff568ae9dd7898614cf356f8babeffee2dbb38da8a/packages/vision-0.10.3-2-x86_64.hpkg
正在连接 eu.hpkg.haiku-os.org (eu.hpkg.haiku-os.org)|62.210.188.85|:443... 正在连接 eu.hpkg.haiku-os.org (eu.hpkg.haiku-os.org)|62.210.188.85|:443... --2018-11-21 19:58:44--  (尝试次数: 2)  https://eu.hpkg.haiku-os.org/haikuports/master/build-packages/a82cee6278b5062afa5c1dff568ae9dd7898614cf356f8babeffee2dbb38da8a/packages/pe-2.4.5-8-x86_64.hpkg
download/bash-4.4.023-1-x86_6  14%[=====>                                          ] 275.75K  35.6KB/s  用时 7.7s

2018-11-21 19:58:44 (35.6 KB/s) - 在 282371/1941005 字节处发生读取错误 (Success)。重试中。

已连接。
已连接。
已连接。
--2018-11-21 19:58:45--  (尝试次数: 2)  https://eu.hpkg.haiku-os.org/haikuports/master/build-packages/a82cee6278b5062afa5c1dff568ae9dd7898614cf356f8babeffee2dbb38da8a/packages/bash-4.4.023-1-x86_64.hpkg
正在连接 eu.hpkg.haiku-os.org (eu.hpkg.haiku-os.org)|62.210.188.85|:443... 已发出 HTTP 请求,正在等待回应... 已发出 HTTP 请求,正在等待回应... 已发出 HTTP 请求,正在等待回应... 已连接。
206 Partial Content
长度:1234190206 Partial Content
 (1.2M)206 Partial Content
长度:,剩余 628237 (614K)1996199 [application/octet-stream]
 (1.9M)长度:,剩余 1353380 (1.3M)1667968正在保存至: “download/pe-2.4.5-8-x86_64.hpkg”
 [application/octet-stream]
 (1.6M)正在保存至: “download/vision-0.10.3-2-x86_64.hpkg”
,剩余 1320063 (1.3M) [application/octet-stream]

正在保存至: “download/openssl-1.0.2p-1-x86_64.hpkg”


             download/vision-  34%[+++++++++++++++>                                ] 668.68K  44.9KB/s                           download/vision-0  36%[+++++++++++++++=>                               ] 719.47K  69.6KB/s               206 Partial Content
长度:1941005 (1.9M),剩余 1658634 (1.6M) [application/octet-stream]
正在保存至: “download/bash-4.4.023-1-x86_64.hpkg”

download/pe-2.4.5-8-x86_64.hp 100%[+++++++++++++++++++++++========================>]   1.18M   124KB/s  用时 4.9s

2018-11-21 19:58:50 (124 KB/s) - 已保存 “download/pe-2.4.5-8-x86_64.hpkg” [1234190/1234190])

download/openssl-1.0.2p-1-x86 100%[++++++++++=====================================>]   1.59M   122KB/s  用时 12s

2018-11-21 19:58:57 (106 KB/s) - 已保存 “download/openssl-1.0.2p-1-x86_64.hpkg” [1667968/1667968])

download/vision-0.10.3-2-x86_ 100%[+++++++++++++++================================>]   1.90M  86.6KB/s  用时 16s

2018-11-21 19:59:01 (82.9 KB/s) - 已保存 “download/vision-0.10.3-2-x86_64.hpkg” [1996199/1996199])

download/bash-4.4.023-1-x86_6  92%[++++++=====================================>    ]   1.71M  68.4KB/s  用时 26s

2018-11-21 19:59:42 (57.3 KB/s) - 在 1797600/1941005 字节处发生读取错误 (Success)。重试中。

--2018-11-21 19:59:44--  (尝试次数: 3)  https://eu.hpkg.haiku-os.org/haikuports/master/build-packages/a82cee6278b5062afa5c1dff568ae9dd7898614cf356f8babeffee2dbb38da8a/packages/bash-4.4.023-1-x86_64.hpkg
正在连接 eu.hpkg.haiku-os.org (eu.hpkg.haiku-os.org)|62.210.188.85|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 206 Partial Content
长度:1941005 (1.9M),剩余 143405 (140K) [application/octet-stream]
正在保存至: “download/bash-4.4.023-1-x86_64.hpkg”

download/bash-4.4.023-1-x86_6 100%[++++++++++++++++++++++++++++++++++++++++++++===>]   1.85M   114KB/s  用时 1.2s

2018-11-21 19:59:47 (114 KB/s) - 已保存 “download/bash-4.4.023-1-x86_64.hpkg” [1941005/1941005])

AddTargetVariableToScript1 <unique!target>_target_723
AddVariableToScript1 haiku.image-init-vars
warning: using independent target <HaikuImage>/Volumes/HaiKu/haiku/generated.x86_64/./haiku.image-init-vars
warning: using independent target <HaikuImage>/Volumes/HaiKu/haiku/generated.x86_64/./haiku.image-make-dirs
warning: using independent target <HaikuImage>/Volumes/HaiKu/haiku/generated.x86_64/./haiku.image-copy-files
warning: using independent target <HaikuImage>/Volumes/HaiKu/haiku/generated.x86_64/./haiku.image-extract-files
BuildHaikuImage1 haiku.image

Creating image ...
Writing boot code to "haiku.image" (partition offset: 0 bytes, start offset = 0) ...
Populating image ...
../build/scripts/build_haiku_image: line 296: /Volumes/HaiKu/haiku/generated.x86_64/./haiku.image-make-dirs: No such file or directory

export imagePath="haiku.image"
export isImage="1"
export isVMwareImage=""
../build/scripts/build_haiku_image /Volumes/HaiKu/haiku/generated.x86_64/./haiku.image-init-vars /Volumes/HaiKu/haiku/generated.x86_64/./haiku.image-make-dirs /Volumes/HaiKu/haiku/generated.x86_64/./haiku.image-copy-files /Volumes/HaiKu/haiku/generated.x86_64/./haiku.image-extract-files

...failed BuildHaikuImage1 haiku.image ...
...removing haiku.image

BUILD FAILURE:
...failed updating 2 target(s)...
...skipped 1 target(s)...
...updated 79 target(s)...

System:
MacOSX 10.14.1


#2

Haiku is self hosting now. Best scenario is to install from a pre-built image and compile within Haiku itself on your hardware. Did you follow the tutorial on building on other platforms? It should be in the development docs on haiku-os.org. The tutorial may be deprecated or obsolete by now.


#3

Darwin stat uses an -f argument, rather than -c , as it is a GNU extension.
You just change that (just one line) in configure script and it should continue.


#4

Definitely try building Haiku on native hardware. If that’s not an option, a quad-core or better Haiku hypervisor on a Gnu/Linux machine under kvm is halfway decent at building an image. And… if that’s not an option, you could try building under VirtualBox on your Mac, but be aware, (and I say this from experience) it’ll be much slower than the previous two methods I’ve mentioned.

As for the errors, as @Diver also pointed out, macOS handles certain commands differently; in this case, stat. Notice where your output mentions “illegal option – c” and "Bad option ‘-e’ " before continuing. Also, be sure case-sensitivity is on for HFS+. Otherwise, FileName and filename will look the same to Haiku’s build process. Might also add as one final tip, if the final image creation tries to happen early on in the build process (i.e. 79 targets), you can automatically assume something went wrong.


#5

Self hosting does not mean we don’t support building on other platforms. If there are bugs, we should fix them. If the tutorials are wrong, we should update them.


#6

I tried @Diver’s method, but got the same result.
It seems that I can only build it within HaiKu itself…


#7

So how to confirm this is a bug? I noticed that there are some header files not found, like this

C++ objects/haiku/x86_64/release/system/boot/loader/file_systems/packagefs/bios_ia32/ZlibCompressionAlgorithm.o
../src/kits/support/ZlibCompressionAlgorithm.cpp:15:10: fatal error: zlib.h: No such file or directory
 #include <zlib.h>
          ^~~~~~~~
compilation terminated.

AppendToContainerCopyFilesScript <FloppyBootArchive>haiku-floppyboot-copy-files-dummy-system/add-ons/kernel/console
../src/system/boot/platform/generic/video_splash.cpp:20:10: fatal error: zlib.h: No such file or directory
 #include <zlib.h>
          ^~~~~~~~
compilation terminated.

Does that mean something?


#8

That usually means it partially extracted a package; this sometimes happens when a concurrent build fails. Try deleting the generated/build_packages directory, that should un-stick it.


#9

@apgreimann, @bullfrog, this really isn’t helpful. Building Haiku on macOS is a bit less-used but completely supported, so telling a user to “just build on Haiku” is not a valid solution.


#10

@PtrNull, @PulkoMandy, @waddlesplash, my apologies. I thought I remembered reading awhile back that cross-compiling was being deprecated. Perhaps I misunderstood native building being prefered to mean cross-compile support was going away.


#11

No, native building isn’t preferred. I don’t know where you read this? It’s easier to set up, but it’s not particularly “preferred.” Both cross-builds and native builds are supported.


#12

Now I have a new problem

I changed /Volumes/HaiKu/haiku/build/jam/ImageRules line 1574

mkisofs -b $(BOOTIMG) -eltorito-alt-boot -no-emul-boot -e $(BOOTEFI) -r -J -V bootimg -o $(<) $(>[1]) $(>[2]) $(>[3-])

to

mkisofs -b $(BOOTIMG) -eltorito-alt-boot -no-emul-boot -eltorito-boot $(BOOTEFI) -r -J -V bootimg -o $(<) $(>[1]) $(>[2]) $(>[3-])

and /Volumes/HaiKu/haiku/build/jam/ImageRules 1512

haiku_loader_size=`stat -c %s "$(>[1])"`
drivers_tgz_size=`stat -c %s "$(>[2])"`

to

haiku_loader_size=`stat -f %z "$(>[1])"`
drivers_tgz_size=`stat -f %z "$(>[2])"`

and /Volumes/HaiKu/haiku/configure line 559

if [ `stat -c '%a' $sourceDir/data/system/boot/SetupEnvironment` -lt 644 ]; then

to

if [ `stat -f '%a' $sourceDir/data/system/boot/SetupEnvironment` -lt 644 ]; then

So there is no Bad Optionanymore, but got some new error.

Here’s the log


#13

headers/os/support/String.h:522:9: error: 'strcmp' was not declared in this scope
See discussion about it here https://echelog.com/logs/browse/haiku/1529272800


#14

As I think I said then, if someone gave me SSH access to a Mac, I could look into this…

Otherwise, getting the preprocessor output of that file to see exactly why strcmp isn’t defined would be helpful.


#15

I really want to do this, but the network I used is campus network and its very unstable.Anyway, thanks very much.


#16

I agree. Unstable/spotty networking is a headache with Haiku’s build system. I remember having migraines because I’d have to start over every time I tried because the network I was on failed midway through.


#17

I think we have wget set to retry 10 times or something like that during the build? And I’m not sure why you’d need to start over, just restarting the build should be enough. At least it is for me in these situations…


#18

To be honest, this was about a year ago, and my network connection was very spotty in addition to any (at the time) instability of the driver I was using at the time. I was near max range on a WiFi connection. When it failed after timeout, all I could do is run jam again and hope for the best. I think I tried a clean environment a few times for reasons only memorable at the time.


#19

@Diver Thanks for your reminder.
I found some reasons in IRC. Because my mac system is not case sensitive.
I installed mac with case-sensitive file system by Parallels Desktop.
The header file problem no longer exists, but I got new problems

 ✗ jam -q -j4 @image
Starting build of type regular ...
Skipping setjmp_test2.S test on non-x86
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...found 155014 target(s)...
...updating 13050 target(s)...
InitScript1 haiku.image-init-vars
InitScript1 objects/haiku/x86_64/packaging/packages_build/regular/hpkg_-haiku_loader.hpkg/scripts/haiku.package-init-vars
InitScript1 objects/haiku/x86_64/packaging/packages_build/regular/hpkg_-haiku_loader.hpkg/scripts/haiku.package-make-dirs
InitScript1 objects/haiku/x86_64/packaging/packages_build/regular/hpkg_-haiku_loader.hpkg/scripts/haiku.package-copy-files
AddTargetVariableToScript1 <unique!target>_target_513
CreateContainerMakeDirectoriesScript1 objects/haiku/x86_64/packaging/packages_build/regular/hpkg_-haiku_loader.hpkg/scripts/haiku.package-make-dirs
AddTargetVariableToScript1 <unique!target>_target_15
AppendToContainerCopyFilesScript <hpkg_-haiku_loader.hpkg>haiku.package-copy-files-dummy-.
AddTargetVariableToScript1 <unique!target>_target_613
InitScript1 objects/haiku/x86_64/packaging/packages_build/regular/hpkg_-haiku_loader.hpkg/scripts/haiku.package-extract-files
AddTargetVariableToScript1 <unique!target>_target_25
InitScript1 objects/haiku/x86_64/packaging/packages_build/regular/hpkg_-haiku.hpkg/scripts/haiku.package-init-vars
AddTargetVariableToScript1 <unique!target>_target_713
AddTargetVariableToScript1 <unique!target>_target_35
AddTargetVariableToScript1 <unique!target>_target_813
AddTargetVariableToScript1 <unique!target>_target_45
InitScript1 objects/haiku/x86_64/packaging/packages_build/regular/hpkg_-haiku.hpkg/scripts/haiku.package-make-dirs
AddTargetVariableToScript1 <unique!target>_target_913
AddTargetVariableToScript1 <unique!target>_target_55
AddTargetVariableToScript1 <unique!target>_target_532
AddTargetVariableToScript1 <unique!target>_target_023
AddTargetVariableToScript1 <unique!target>_target_65
AddTargetVariableToScript1 <unique!target>_target_632
AddTargetVariableToScript1 <unique!target>_target_123
AddTargetVariableToScript1 <unique!target>_target_75
AddTargetVariableToScript1 <unique!target>_target_732
CreateContainerMakeDirectoriesScript1 objects/haiku/x86_64/packaging/packages_build/regular/hpkg_-haiku.hpkg/scripts/haiku.package-make-dirs
AddTargetVariableToScript1 <unique!target>_target_223
AddTargetVariableToScript1 <unique!target>_target_85
AddTargetVariableToScript1 <unique!target>_target_832
AddTargetVariableToScript1 <unique!target>_target_323
AddVariableToScript1 objects/haiku/x86_64/packaging/packages_build/regular/hpkg_-haiku_loader.hpkg/scripts/haiku.package-init-vars
AddTargetVariableToScript1 <unique!target>_target_932
AppendToContainerMakeDirectoriesScriptAttributes <hpkg_-haiku.hpkg>haiku.package-make-dirs-attributes-dummy-apps
AddTargetVariableToScript1 <unique!target>_target_423
BuildHaikuPackage1 objects/haiku/x86_64/packaging/packages/haiku_loader.hpkg
AppendToContainerMakeDirectoriesScriptAttributes <hpkg_-haiku.hpkg>haiku.package-make-dirs-attributes-dummy-preferences
AddTargetVariableToScript1 <unique!target>_target_042
AddTargetVariableToScript1 <unique!target>_target_523
InitScript1 objects/haiku/x86_64/packaging/packages_build/regular/hpkg_-haiku.hpkg/scripts/haiku.package-copy-files
AddTargetVariableToScript1 <unique!target>_target_623
AddTargetVariableToScript1 <unique!target>_target_142
haiku_loader.hpkg: Removing and re-creating package contents dir ...
C++ objects/haiku/x86_64/release/kits/app/LinkReceiver.o
AddTargetVariableToScript1 <unique!target>_target_242
AppendToContainerCopyFilesScript <hpkg_-haiku.hpkg>haiku.package-copy-files-dummy-data/firmware/iprowifi2100
AppendToContainerCopyFilesScript <hpkg_-haiku.hpkg>haiku.package-copy-files-dummy-data/firmware/iprowifi2200
haiku_loader.hpkg: Collecting package contents ...
AddVariableToScript1 objects/haiku/x86_64/packaging/packages_build/regular/hpkg_-haiku.hpkg/scripts/haiku.package-init-vars
AppendToContainerCopyFilesScript <hpkg_-haiku.hpkg>haiku.package-copy-files-dummy-add-ons/kernel/bus_managers
C++ objects/haiku/x86_64/release/kits/app/MessageQueue.o
AddDirectoryToContainerCopyFilesScript <hpkg_-haiku.hpkg>data/mime_db/-/<mimedb-app->usb_mimedb
AddDirectoryToContainerCopyFilesScript <hpkg_-haiku.hpkg>data/mime_db/-/<mimedb-app-<usb>uhci_mimedb
AddDirectoryToContainerCopyFilesScript <hpkg_-haiku.hpkg>data/mime_db/-/<mimedb-app-<usb>ohci_mimedb
AddDirectoryToContainerCopyFilesScript <hpkg_-haiku.hpkg>data/mime_db/-/<mimedb-app-<usb>ehci_mimedb
haiku_loader.hpkg: mimeset'ing package contents ...
AddDirectoryToContainerCopyFilesScript <hpkg_-haiku.hpkg>data/mime_db/-/<mimedb-app-<usb>xhci_mimedb
C++ objects/haiku/x86_64/release/kits/app/MessageRunner.o
haiku_loader.hpkg: Creating the package ...
C++ objects/haiku/x86_64/release/kits/app/Messenger.o
../src/kits/app/LinkReceiver.cpp: In member function 'status_t BPrivate::LinkReceiver::ReadString(BString&, size_t*)':
../src/kits/app/LinkReceiver.cpp:378:18: error: invalid use of incomplete type 'class BString'
   char* buffer = string.LockBuffer(length + 1);
                  ^~~~~~
In file included from ../src/kits/app/LinkReceiver.cpp:16:0:
../headers/private/app/LinkReceiver.h:18:7: note: forward declaration of 'class BString'
 class BString;
       ^~~~~~~
../src/kits/app/LinkReceiver.cpp:378:18: error: invalid use of incomplete type 'class BString'
   char* buffer = string.LockBuffer(length + 1);
                  ^~~~~~
In file included from ../src/kits/app/LinkReceiver.cpp:16:0:
../headers/private/app/LinkReceiver.h:18:7: note: forward declaration of 'class BString'
 class BString;
       ^~~~~~~
../src/kits/app/LinkReceiver.cpp:386:4: error: invalid use of incomplete type 'class BString'
    string.UnlockBuffer();
    ^~~~~~
In file included from ../src/kits/app/LinkReceiver.cpp:16:0:
../headers/private/app/LinkReceiver.h:18:7: note: forward declaration of 'class BString'
 class BString;
       ^~~~~~~
../src/kits/app/LinkReceiver.cpp:386:4: error: invalid use of incomplete type 'class BString'
    string.UnlockBuffer();
    ^~~~~~
In file included from ../src/kits/app/LinkReceiver.cpp:16:0:
../headers/private/app/LinkReceiver.h:18:7: note: forward declaration of 'class BString'
 class BString;
       ^~~~~~~
../src/kits/app/LinkReceiver.cpp:392:3: error: invalid use of incomplete type 'class BString'
   string.UnlockBuffer(length);
   ^~~~~~
In file included from ../src/kits/app/LinkReceiver.cpp:16:0:
../headers/private/app/LinkReceiver.h:18:7: note: forward declaration of 'class BString'
 class BString;
       ^~~~~~~
../src/kits/app/LinkReceiver.cpp:392:3: error: invalid use of incomplete type 'class BString'
   string.UnlockBuffer(length);
   ^~~~~~
In file included from ../src/kits/app/LinkReceiver.cpp:16:0:
../headers/private/app/LinkReceiver.h:18:7: note: forward declaration of 'class BString'
 class BString;
       ^~~~~~~
../src/kits/app/LinkReceiver.cpp:394:3: error: invalid use of incomplete type 'class BString'
   string = "";
   ^~~~~~
In file included from ../src/kits/app/LinkReceiver.cpp:16:0:
../headers/private/app/LinkReceiver.h:18:7: note: forward declaration of 'class BString'
 class BString;
       ^~~~~~~

/Volumes/HaiKu/haiku/generated/cross-tools-x86_64/bin/x86_64-unknown-haiku-gcc -c "../src/kits/app/LinkReceiver.cpp" -O2 -Wall -Wno-trigraphs -Wno-ctor-dtor-privacy -Woverloaded-virtual -Wpointer-arith -Wcast-align -Wsign-compare -Wno-multichar -Werror -Wno-error=uninitialized -Wno-error=maybe-uninitialized -Wno-unused-but-set-variable -fno-strict-aliasing -fno-delete-null-pointer-checks -fno-builtin-fork -fno-builtin-vfork -nostdinc -Wno-deprecated -DARCH_x86_64 -DBOOT_ARCHIVE_IMAGE_OFFSET=320 -D__HAIKU_PRIMARY_PACKAGING_ARCH=\"x86_64\" -DHAIKU_DISTRO_COMPATIBILITY_DEFAULT -DHAIKU_TARGET_PLATFORM_HAIKU -DHAIKU_REGULAR_BUILD -iquote ../build/user_config_headers -iquote ../build/config_headers -iquote ../src/kits/app -iquote objects/common/kits/app -iquote objects/darwin/x86_64/common/kits/app -iquote objects/haiku/x86_64/common/kits/app -I ../headers/libs/icon -I ../headers/private/shared -I ../headers/private/app -I ../headers/private/interface -I ../headers/private/kernel -I ../headers/private/libroot -I ../headers/private/locale -I ../headers/private/notification -I ../headers/private/. -I ../headers/private/system -I ../headers/private/system/arch/x86_64 -I build_packages/gcc_syslibs_devel-7.3.0_2018_05_01-3-x86_64/develop/headers/c++ -I build_packages/gcc_syslibs_devel-7.3.0_2018_05_01-3-x86_64/develop/headers/c++/x86_64-unknown-haiku -I build_packages/gcc_syslibs_devel-7.3.0_2018_05_01-3-x86_64/develop/headers/c++/backward -I build_packages/gcc_syslibs_devel-7.3.0_2018_05_01-3-x86_64/develop/headers/c++/ext -I build_packages/gcc_syslibs_devel-7.3.0_2018_05_01-3-x86_64/develop/headers/gcc/include -I build_packages/gcc_syslibs_devel-7.3.0_2018_05_01-3-x86_64/develop/headers/gcc/include-fixed -I ../headers -I ../headers/posix -I ../headers/glibc -I ../headers/os -I ../headers/os/add-ons -I ../headers/os/add-ons/file_system -I ../headers/os/add-ons/graphics -I ../headers/os/add-ons/input_server -I ../headers/os/add-ons/registrar -I ../headers/os/add-ons/screen_saver -I ../headers/os/add-ons/tracker -I ../headers/os/app -I ../headers/os/device -I ../headers/os/drivers -I ../headers/os/game -I ../headers/os/codec -I ../headers/os/interface -I ../headers/os/kernel -I ../headers/os/locale -I ../headers/os/media -I ../headers/os/mail -I ../headers/os/midi -I ../headers/os/midi2 -I ../headers/os/net -I ../headers/os/storage -I ../headers/os/support -I ../headers/os/translation -I ../headers/private/. -o "objects/haiku/x86_64/release/kits/app/LinkReceiver.o" ;

...failed C++ objects/haiku/x86_64/release/kits/app/LinkReceiver.o ...

BUILD FAILURE:
...failed updating 1 target(s)...
...skipped 8 target(s)...
...updated 55 target(s)...


#20

You didn’t need to install macOS in VM, you could’ve created an image file using DiskUtil and format it to case sensitive FS.