#13594 closed bug (invalid)
Haiku building in macOS enviroments result in clang's segfault
Reported by: | rafaga2k | Owned by: | bonefish |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Build System | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | x86-64 |
Description
Building HAiku using instructions on https://www.haiku-os.org/articles/2015-02-05_building_haiku_mac_os_x_1010_yosemite/ results in segfault 11 in the clang compiler LLVM
Xcode 8.3.3 Build version 8E3004b (macOS 10.12.5)
This is a bug from Apple's (Clang compiler LLVM), not from Haiku, i report this to put a warning into the Haiku page to MacOSusers that want to copile Haiku.
i attach the resulting output from compiling:
/Volumes/Haiku/haiku/src/add-ons/kernel/file_systems/bfs/BPlusTree.h:602:28: /Volumes/Haiku/haiku/src/add-ons/kernel/file_systems/bfs/BPlusTree.h:602:warning28: : warning : cast from cast'const bplustree_node *' from to'const bplustree_node *' 'fssh_off_t *'to 'fssh_off_t *'(aka 'long long *') (aka 'long long *') increases increasesrequired requiredalignment alignmentfrom from1 1to to8 8[-Wcast-align] [-Wcast-align] return (duplicate_array*)((off_t*)this + index * (NUM_FRAGMENT_V... ^~~~~~~~~~~~ return (duplicate_array*)((off_t*)this + index * (NUM_FRAGMENT_V... ^~~~~~~~~~~~ clang: error: unable to execute command: Segmentation fault: 11 clang: error: clang frontend command failed due to signal (use -v to see invocation) Apple LLVM version 8.1.0 (clang-802.0.42) Target: x86_64-apple-darwin16.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script. clang: error: unable to execute command: Segmentation fault: 11clang: error: unable to execute command: Segmentation fault: 11 clang: error: clang frontend command failed due to signal (use -v to see invocation)clang : error: clang frontend command failed due to signal (use -v to see invocation) Apple LLVM version 8.1.0 (clang-802.0.42) Target: x86_64-apple-darwin16.6.0 Apple LLVM version 8.1.0 (clang-802.0.42) Target: Thread model: x86_64-apple-darwin16.6.0 posix InstalledDir: Thread model: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/binposix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin clangclang: : note: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script. In file included from /Volumes/Haiku/haiku/src/add-ons/kernel/file_systems/bfs/Index.cpp:17: /Volumes/Haiku/haiku/src/add-ons/kernel/file_systems/bfs/BPlusTree.h:364:11: warning: class 'TreeCheck' was previously declared as a struct [-Wmismatched-tags] friend class TreeCheck; ^ /Volumes/Haiku/haiku/src/add-ons/kernel/file_systems/bfs/BPlusTree.h:150:8: note: previous use is here struct TreeCheck; ^ /Volumes/Haiku/haiku/src/add-ons/kernel/file_systems/bfs/BPlusTree.h:565:9: warning: cast from 'char *' to 'uint16_t *' (aka 'unsigned short *') increases required alignment from 1 to 2 [-Wcast-align] return (uint16*)(((char*)this) + key_align(sizeof(bplustree_node) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Volumes/Haiku/haiku/src/add-ons/kernel/file_systems/bfs/BPlusTree.h:573:9: warning: cast from 'char *' to 'fssh_off_t *' (aka 'long long *') increases required alignment from 1 to 8 [-Wcast-align] return (off_t*)((char*)KeyLengths() + NumKeys() * sizeof(uint16)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Volumes/Haiku/haiku/src/add-ons/kernel/file_systems/bfs/BPlusTree.h:602:28: warning: cast from 'const bplustree_node *' to 'fssh_off_t *' (aka 'long long *') increases required alignment from 1 to 8 [-Wcast-align] return (duplicate_array*)((off_t*)this + index * (NUM_FRAGMENT_V... ^~~~~~~~~~~~ clang: error: unable to execute command: Segmentation fault: 11 clang: error: clang frontend command failed due to signal (use -v to see invocation) Apple LLVM version 8.1.0 (clang-802.0.42) Target: x86_64-apple-darwin16.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script. clang: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang: note: diagnostic msg: /var/folders/50/nmpzy8xj7w70vn5jv98j8mw40000gn/T/Index-b0cb08.cpp clang: note: diagnostic msg: /var/folders/50/nmpzy8xj7w70vn5jv98j8mw40000gn/T/Index-b0cb08.sh clang: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang: note: diagnostic msg: /var/folders/50/nmpzy8xj7w70vn5jv98j8mw40000gn/T/BPlusTree-405a9e.cpp clang: note: diagnostic msg: /var/folders/50/nmpzy8xj7w70vn5jv98j8mw40000gn/T/BPlusTree-405a9e.sh clang: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang: note: diagnostic msg: /var/folders/50/nmpzy8xj7w70vn5jv98j8mw40000gn/T/BlockAllocator-d619a9.cpp clang: note: diagnostic msg: /var/folders/50/nmpzy8xj7w70vn5jv98j8mw40000gn/T/BlockAllocator-d619a9.sh clangclang: : notenote: : diagnostic msg: Crash backtrace is located indiagnostic msg: Crash backtrace is located in clangclangclang: : : notenote: note: : diagnostic msg: Crash backtrace is located in diagnostic msg: /Users/Rafael/Library/Logs/DiagnosticReports/clang_<YYYY-MM-DD-HHMMSS>_<hostname>.crashdiagnostic msg: /Users/Rafael/Library/Logs/DiagnosticReports/clang_<YYYY-MM-DD-HHMMSS>_<hostname>.crashclang: note : clang: clangdiagnostic msg: /Users/Rafael/Library/Logs/DiagnosticReports/clang_<YYYY-MM-DD-HHMMSS>_<hostname>.crash: note : note: clangdiagnostic msg: (choose the .crash file that corresponds to your crash): diagnostic msg: (choose the .crash file that corresponds to your crash) note: diagnostic msg: (choose the .crash file that corresponds to your crash)clang: clang note: : notediagnostic msg: ********************: clang: note: diagnostic msg: ******************** diagnostic msg: ******************** c++ -c "/Volumes/Haiku/haiku/src/add-ons/kernel/file_systems/bfs/Index.cpp" -O1 -Wall -Wno-trigraphs -Wno-ctor-dtor-privacy -Woverloaded-virtual -Wpointer-arith -Wcast-align -Wsign-compare -Wno-multichar -DFS_SHELL -Wno-multichar -fno-rtti -DHAIKU_BUILD_COMPATIBILITY_H -DARCH_x86_64 -D_NO_INLINE_ASM -D__x86_64__ -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAIKU_HOST_USE_XATTR -DHAIKU_HOST_PLATFORM_DARWIN -DHAIKU_HOST_PLATFORM_64_BIT -DHAIKU_PACKAGING_ARCH=\"x86_64\" -iquote /Volumes/Haiku/haiku/build/user_config_headers -iquote /Volumes/Haiku/haiku/build/config_headers -iquote /Volumes/Haiku/haiku/src/tools/bfs_shell -iquote /Volumes/Haiku/haiku/generated/objects/common/tools/bfs_shell -iquote /Volumes/Haiku/haiku/generated/objects/darwin/x86_64/common/tools/bfs_shell -iquote /Volumes/Haiku/haiku/generated/objects/haiku/x86_64/common/tools/bfs_shell -iquote /Volumes/Haiku/haiku/src/add-ons/kernel/file_systems/bfs -iquote /Volumes/Haiku/haiku/src/tools/fs_shell -I /Volumes/Haiku/haiku/headers/build -I /Volumes/Haiku/haiku/headers/build/os -I /Volumes/Haiku/haiku/headers/build/os/support -I /Volumes/Haiku/haiku/headers/private/shared -I /Volumes/Haiku/haiku/headers/private/storage -I /Volumes/Haiku/haiku/headers/private/fs_shell -I /Volumes/Haiku/haiku/headers/private -I /Volumes/Haiku/haiku/headers/build/host/darwin -I /Volumes/Haiku/haiku/src/build/libgnuregex -I /opt/local/include -I /usr/local/include -o "/Volumes/Haiku/haiku/generated/objects/darwin/x86_64/release/tools/bfs_shell/Index.o" ; ...failed C++ /Volumes/Haiku/haiku/generated/objects/darwin/x86_64/release/tools/bfs_shell/Index.o ... c++ -c "/Volumes/Haiku/haiku/src/add-ons/kernel/file_systems/bfs/BPlusTree.cpp" -O1 -Wall -Wno-trigraphs -Wno-ctor-dtor-privacy -Woverloaded-virtual -Wpointer-arith -Wcast-align -Wsign-compare -Wno-multichar -DFS_SHELL -Wno-multichar -fno-rtti -DHAIKU_BUILD_COMPATIBILITY_H -DARCH_x86_64 -D_NO_INLINE_ASM -D__x86_64__ -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAIKU_HOST_USE_XATTR -DHAIKU_HOST_PLATFORM_DARWIN -DHAIKU_HOST_PLATFORM_64_BIT -DHAIKU_PACKAGING_ARCH=\"x86_64\" -iquote /Volumes/Haiku/haiku/build/user_config_headers -iquote /Volumes/Haiku/haiku/build/config_headers -iquote /Volumes/Haiku/haiku/src/tools/bfs_shell -iquote /Volumes/Haiku/haiku/generated/objects/common/tools/bfs_shell -iquote /Volumes/Haiku/haiku/generated/objects/darwin/x86_64/common/tools/bfs_shell -iquote /Volumes/Haiku/haiku/generated/objects/haiku/x86_64/common/tools/bfs_shell -iquote /Volumes/Haiku/haiku/src/add-ons/kernel/file_systems/bfs -iquote /Volumes/Haiku/haiku/src/tools/fs_shell -I /Volumes/Haiku/haiku/headers/build -I /Volumes/Haiku/haiku/headers/build/os -I /Volumes/Haiku/haiku/headers/build/os/support -I /Volumes/Haiku/haiku/headers/private/shared -I /Volumes/Haiku/haiku/headers/private/storage -I /Volumes/Haiku/haiku/headers/private/fs_shell -I /Volumes/Haiku/haiku/headers/private -I /Volumes/Haiku/haiku/headers/build/host/darwin -I /Volumes/Haiku/haiku/src/build/libgnuregex -I /opt/local/include -I /usr/local/include -o "/Volumes/Haiku/haiku/generated/objects/darwin/x86_64/release/tools/bfs_shell/BPlusTree.o" ; ...failed C++ /Volumes/Haiku/haiku/generated/objects/darwin/x86_64/release/tools/bfs_shell/BPlusTree.o ... c++ -c "/Volumes/Haiku/haiku/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp" -O1 -Wall -Wno-trigraphs -Wno-ctor-dtor-privacy -Woverloaded-virtual -Wpointer-arith -Wcast-align -Wsign-compare -Wno-multichar -DFS_SHELL -Wno-multichar -fno-rtti -DHAIKU_BUILD_COMPATIBILITY_H -DARCH_x86_64 -D_NO_INLINE_ASM -D__x86_64__ -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAIKU_HOST_USE_XATTR -DHAIKU_HOST_PLATFORM_DARWIN -DHAIKU_HOST_PLATFORM_64_BIT -DHAIKU_PACKAGING_ARCH=\"x86_64\" -iquote /Volumes/Haiku/haiku/build/user_config_headers -iquote /Volumes/Haiku/haiku/build/config_headers -iquote /Volumes/Haiku/haiku/src/tools/bfs_shell -iquote /Volumes/Haiku/haiku/generated/objects/common/tools/bfs_shell -iquote /Volumes/Haiku/haiku/generated/objects/darwin/x86_64/common/tools/bfs_shell -iquote /Volumes/Haiku/haiku/generated/objects/haiku/x86_64/common/tools/bfs_shell -iquote /Volumes/Haiku/haiku/src/add-ons/kernel/file_systems/bfs -iquote /Volumes/Haiku/haiku/src/tools/fs_shell -I /Volumes/Haiku/haiku/headers/build -I /Volumes/Haiku/haiku/headers/build/os -I /Volumes/Haiku/haiku/headers/build/os/support -I /Volumes/Haiku/haiku/headers/private/shared -I /Volumes/Haiku/haiku/headers/private/storage -I /Volumes/Haiku/haiku/headers/private/fs_shell -I /Volumes/Haiku/haiku/headers/private -I /Volumes/Haiku/haiku/headers/build/host/darwin -I /Volumes/Haiku/haiku/src/build/libgnuregex -I /opt/local/include -I /usr/local/include -o "/Volumes/Haiku/haiku/generated/objects/darwin/x86_64/release/tools/bfs_shell/BlockAllocator.o" ; ...failed C++ /Volumes/Haiku/haiku/generated/objects/darwin/x86_64/release/tools/bfs_shell/BlockAllocator.o ... clang: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang: note: diagnostic msg: /var/folders/50/nmpzy8xj7w70vn5jv98j8mw40000gn/T/Debug-36987e.cpp clang: note: diagnostic msg: /var/folders/50/nmpzy8xj7w70vn5jv98j8mw40000gn/T/Debug-36987e.sh clang: note: diagnostic msg: Crash backtrace is located in clang: note: diagnostic msg: /Users/Rafael/Library/Logs/DiagnosticReports/clang_<YYYY-MM-DD-HHMMSS>_<hostname>.crash clang: note: diagnostic msg: (choose the .crash file that corresponds to your crash) clang: note: diagnostic msg: ******************** c++ -c "/Volumes/Haiku/haiku/src/add-ons/kernel/file_systems/bfs/Debug.cpp" -O1 -Wall -Wno-trigraphs -Wno-ctor-dtor-privacy -Woverloaded-virtual -Wpointer-arith -Wcast-align -Wsign-compare -Wno-multichar -DFS_SHELL -Wno-multichar -fno-rtti -DHAIKU_BUILD_COMPATIBILITY_H -DARCH_x86_64 -D_NO_INLINE_ASM -D__x86_64__ -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAIKU_HOST_USE_XATTR -DHAIKU_HOST_PLATFORM_DARWIN -DHAIKU_HOST_PLATFORM_64_BIT -DHAIKU_PACKAGING_ARCH=\"x86_64\" -iquote /Volumes/Haiku/haiku/build/user_config_headers -iquote /Volumes/Haiku/haiku/build/config_headers -iquote /Volumes/Haiku/haiku/src/tools/bfs_shell -iquote /Volumes/Haiku/haiku/generated/objects/common/tools/bfs_shell -iquote /Volumes/Haiku/haiku/generated/objects/darwin/x86_64/common/tools/bfs_shell -iquote /Volumes/Haiku/haiku/generated/objects/haiku/x86_64/common/tools/bfs_shell -iquote /Volumes/Haiku/haiku/src/add-ons/kernel/file_systems/bfs -iquote /Volumes/Haiku/haiku/src/tools/fs_shell -I /Volumes/Haiku/haiku/headers/build -I /Volumes/Haiku/haiku/headers/build/os -I /Volumes/Haiku/haiku/headers/build/os/support -I /Volumes/Haiku/haiku/headers/private/shared -I /Volumes/Haiku/haiku/headers/private/storage -I /Volumes/Haiku/haiku/headers/private/fs_shell -I /Volumes/Haiku/haiku/headers/private -I /Volumes/Haiku/haiku/headers/build/host/darwin -I /Volumes/Haiku/haiku/src/build/libgnuregex -I /opt/local/include -I /usr/local/include -o "/Volumes/Haiku/haiku/generated/objects/darwin/x86_64/release/tools/bfs_shell/Debug.o" ; ...failed C++ /Volumes/Haiku/haiku/generated/objects/darwin/x86_64/release/tools/bfs_shell/Debug.o ... BUILD FAILURE: ...failed updating 4 target(s)... ...skipped 5 target(s)... ...updated 2 target(s)...
Change History (2)
comment:1 by , 7 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 7 years ago
My bad, it was me who suggest him to file a bug report. While it's not on Haiku to fix the bug itself, Apple won't update itself the "Building Haiku on macOS" guide either.
Version 0, edited 7 years ago by (next)
Note:
See TracTickets
for help on using tickets.
As you say, compiler crashes in other's compiler are not Haiku's fault. Such warning messages do not have a place on the bugtracker, maybe use the forum instead. Closing as invalid then, but thanks for the heads-up!