ungoogled-software / ungoogled-chromium

Google Chromium, sans integration with Google
BSD 3-Clause "New" or "Revised" License
20.33k stars 822 forks source link

70.0.3538.77-1 + llvm-8 + brotli linking failed #572

Closed zaza42 closed 5 years ago

zaza42 commented 5 years ago

Description

version 70.0.3538.77-1 with llvm-8 failed I could build the previus version (69.0.3497.100) without any errors, but not the current one.

Console output and logs

[6102/19011] LINK ./brotli
FAILED: brotli
python "../../build/toolchain/gcc_link_wrapper.py" --output="./brotli" -- clang++-8 -flto=thin -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--no-as-needed -fuse-ld=lld -Wl,--icf=all -Wl,--color-diagnostics -flto=thin -Wl,--thinlto-jobs=8 -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy,cache_size=10\%:cache_size_bytes=10g:cache_size_files=100000 -Wl,--lto-O0 -fwhole-program-vtables -m64 -Wl,-O2 -Wl,--gc-sections -rdynamic -Wl,-rpath-link=. -Wl,--disable-new-dtags -Wl,--stats -flto=thin -Wl,--stats -flto=thin -o "./brotli" -Wl,--start-group @"./brotli.rsp"  -Wl,--end-group   -latomic -ldl -lpthread -lrt
Stack dump:
0.      Program arguments: /usr/lib/llvm-8/bin/ld.lld -export-dynamic --eh-frame-hdr -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o ./brotli /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/crt1.o /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/crti.o /usr/bin/../lib/gcc/x86_64-linux-gnu/8/crtbegin.o -L/usr/bin/../lib/gcc/x86_64-linux-gnu/8 -L/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../.. -L/usr/lib/llvm-8/bin/../lib -L/lib -L/usr/lib -plugin /usr/lib/llvm-8/bin/../lib/LLVMgold.so -plugin-opt=mcpu=x86-64 -plugin-opt=thinlto --build-id=sha1 -z noexecstack -z now -z relro -z defs --no-as-needed --icf=all --color-diagnostics --thinlto-jobs=8 --thinlto-cache-dir=thinlto-cache --thinlto-cache-policy cache_size=10%:cache_size_bytes=10g:cache_size_files=100000 --lto-O0 -O2 --gc-sections -rpath-link=. --disable-new-dtags --stats --stats --start-group obj/third_party/brotli/brotli/backward_references.o obj/third_party/brotli/brotli/backward_references_hq.o obj/third_party/brotli/brotli/bit_cost.o obj/third_party/brotli/brotli/block_splitter.o obj/third_party/brotli/brotli/brotli_bit_stream.o obj/third_party/brotli/brotli/cluster.o obj/third_party/brotli/brotli/compress_fragment.o obj/third_party/brotli/brotli/compress_fragment_two_pass.o obj/third_party/brotli/brotli/dictionary_hash.o obj/third_party/brotli/brotli/encode.o obj/third_party/brotli/brotli/entropy_encode.o obj/third_party/brotli/brotli/histogram.o obj/third_party/brotli/brotli/literal_cost.o obj/third_party/brotli/brotli/memory.o obj/third_party/brotli/brotli/metablock.o obj/third_party/brotli/brotli/static_dict.o obj/third_party/brotli/brotli/utf8_util.o obj/third_party/brotli/brotli/brotli.o obj/third_party/brotli/libcommon.a obj/third_party/brotli/libdec.a --end-group -latomic -ldl -lpthread -lrt -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/bin/../lib/gcc/x86_64-linux-gnu/8/crtend.o /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/crtn.o
1.      Running pass 'Function Pass Manager' on module 'ld-temp.o'.
2.      Running pass 'Greedy Register Allocator' on function '@BrotliCompressFragmentFastImpl9'
#0 0x00007f0db010163a llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/usr/lib/llvm-8/bin/../lib/libLLVM-8.so.1+0xa4763a)
#1 0x00007f0db00ffcd4 llvm::sys::RunSignalHandlers() (/usr/lib/llvm-8/bin/../lib/libLLVM-8.so.1+0xa45cd4)
#2 0x00007f0db00ffe35 (/usr/lib/llvm-8/bin/../lib/libLLVM-8.so.1+0xa45e35)
#3 0x00007f0db374c8e0 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x128e0)
#4 0x00007f0db048a9f8 (/usr/lib/llvm-8/bin/../lib/libLLVM-8.so.1+0xdd09f8)
#5 0x00007f0db04905b5 (/usr/lib/llvm-8/bin/../lib/libLLVM-8.so.1+0xdd65b5)
#6 0x00007f0db049505e (/usr/lib/llvm-8/bin/../lib/libLLVM-8.so.1+0xddb05e)
#7 0x00007f0db0495236 (/usr/lib/llvm-8/bin/../lib/libLLVM-8.so.1+0xddb236)
#8 0x00007f0db047ec89 llvm::RegAllocBase::allocatePhysRegs() (/usr/lib/llvm-8/bin/../lib/libLLVM-8.so.1+0xdc4c89)
#9 0x00007f0db048eda4 (/usr/lib/llvm-8/bin/../lib/libLLVM-8.so.1+0xdd4da4)
#10 0x00007f0db03b347b (/usr/lib/llvm-8/bin/../lib/libLLVM-8.so.1+0xcf947b)
#11 0x00007f0db01e5238 llvm::FPPassManager::runOnFunction(llvm::Function&) (/usr/lib/llvm-8/bin/../lib/libLLVM-8.so.1+0xb2b238)
#12 0x00007f0db01e52f3 llvm::FPPassManager::runOnModule(llvm::Module&) (/usr/lib/llvm-8/bin/../lib/libLLVM-8.so.1+0xb2b2f3)
#13 0x00007f0db01e47ea llvm::legacy::PassManagerImpl::run(llvm::Module&) (/usr/lib/llvm-8/bin/../lib/libLLVM-8.so.1+0xb2a7ea)
#14 0x00007f0db10d3c01 (/usr/lib/llvm-8/bin/../lib/libLLVM-8.so.1+0x1a19c01)
#15 0x00007f0db10d470d llvm::lto::backend(llvm::lto::Config&, std::function<std::unique_ptr<llvm::lto::NativeObjectStream, std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>, unsigned int, std::unique_ptr<llvm::Module, std::default_delete<llvm::Module> >, llvm::ModuleSummaryIndex&) (/usr/lib/llvm-8/bin/../lib/libLLVM-8.so.1+0x1a1a70d)
#16 0x00007f0db10c3a2c llvm::lto::LTO::runRegularLTO(std::function<std::unique_ptr<llvm::lto::NativeObjectStream, std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>) (/usr/lib/llvm-8/bin/../lib/libLLVM-8.so.1+0x1a09a2c)
#17 0x00007f0db10cc18e llvm::lto::LTO::run(std::function<std::unique_ptr<llvm::lto::NativeObjectStream, std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>, std::function<std::function<std::unique_ptr<llvm::lto::NativeObjectStream, std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)> (unsigned int, llvm::StringRef)>) (/usr/lib/llvm-8/bin/../lib/libLLVM-8.so.1+0x1a1218e)
#18 0x0000559bd959bd90 (/usr/lib/llvm-8/bin/ld.lld+0x120d90)
#19 0x0000559bd95d1731 (/usr/lib/llvm-8/bin/ld.lld+0x156731)
#20 0x0000559bd9555cd7 (/usr/lib/llvm-8/bin/ld.lld+0xdacd7)
#21 0x0000559bd94d1738 _init (/usr/lib/llvm-8/bin/ld.lld+0x56738)
#22 0x0000559bd95581c7 (/usr/lib/llvm-8/bin/ld.lld+0xdd1c7)
#23 0x0000559bd94d0802 _init (/usr/lib/llvm-8/bin/ld.lld+0x55802)
#24 0x00007f0daf1ecb17 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x22b17)
#25 0x0000559bd94d7aca _init (/usr/lib/llvm-8/bin/ld.lld+0x5caca)
clang: error: unable to execute command: Segmentation fault
clang: error: linker command failed due to signal (use -v to see invocation)
[6110/19011] CXX obj/chrome/services/m...public/cpp/cpp/media_parser_provider.o
ninja: build stopped: subcommand failed.
make[1]: *** [debian/rules:89: override_dh_auto_build-arch] Error 1
make[1]: Leaving directory '/usr/src/sources/2018/browser/ung70/ungoogled-chromium-70.0.3538.77-1-my/build/src'
make: *** [debian/rules:68: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

Environment details

Building and packaging steps

added flags:

use_thin_lto=true
is_cfi=false
Eloston commented 5 years ago

This is the first time I've seen LLVM segfault. Maybe it's unstable? Does LLVM 7 work for you?

BTW, if you're disabling CFI because of cfi_blacklist.txt, you can use a temporary solution here: https://github.com/Eloston/ungoogled-chromium/issues/569#issuecomment-433331103

zaza42 commented 5 years ago

With llvm-7:

[2064/19011] LINK ./character_data_generator
FAILED: character_data_generator
python "../../build/toolchain/gcc_link_wrapper.py" --output="./character_data_generator" -- clang++-7 -flto=thin -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--no-as-needed -fuse-ld=lld -Wl,--icf=all -Wl,--color-diagnostics -flto=thin -Wl,--thinlto-jobs=8 -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy,cache_size=10\%:cache_size_bytes=10g:cache_size_files=100000 -Wl,--lto-O0 -fwhole-program-vtables -m64 -Wl,-O2 -Wl,--gc-sections -rdynamic -Wl,-rpath-link=. -Wl,--disable-new-dtags -Wl,--stats -flto=thin -Wl,--stats -flto=thin -o "./character_data_generator" -Wl,--start-group @"./character_data_generator.rsp"  -Wl,--end-group   -latomic -ldl -lpthread -lrt -licui18n -licuuc -licudata
clang: error: invalid linker name in argument '-fuse-ld=lld'
[2072/19011] CXX obj/third_party/hunspell/hunspell/suggestmgr.o
ninja: build stopped: subcommand failed.
make[1]: *** [debian/rules:89: override_dh_auto_build-arch] Error 1
make[1]: Leaving directory '/usr/src/sources/2018/browser/ung70/ungoogled-chromium-70.0.3538.77-1-my/build/src'
make: *** [debian/rules:68: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

I'll try with default llvm-6.

ghost commented 5 years ago

clang: error: invalid linker name in argument '-fuse-ld=lld'

Your system does not seems to have lld installed.

I'll try with default llvm-6.

Version 6 is known to cause more issues. Stick to 7 for now.

zaza42 commented 5 years ago

with llvm-7:

[18067/19011] CXX obj/content/test/test_support/test_support_jumbo_2.o                                     
FAILED: obj/content/test/test_support/test_support_jumbo_2.o                                               
clang++-7 -MMD -MF obj/content/test/test_support/test_support_jumbo_2.o.d -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DOFFICIAL_BUILD -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE
FILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DCR_CLANG_REVISION=\"340925-1\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_USE_EXTERNAL_STARTUP_DATA -DUSE_V8_CONTEXT_SNAPSHOT -DGLIB_V
ERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DVK_NO_PROTOTYPES -DGTEST_API_= -DGTEST_HAS_POSIX_RE=0 -DGTEST_LANG_CXX11=1 -DGTEST_HAS_TR1_TUPLE=0 -DTOOLKIT_VIEWS=1 -DGOOGLE_PROTOBUF_NO_R
TTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUCHAR_TYPE=uint16_t -DU_IMPORT=U_EXPORT -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABS
L_ALLOCATOR_NOTHROW=1 -DNO_MAIN_THREAD_WRAPPING -DSK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_HAS_JPEG_LIBRARY -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_
HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DVK_NO_PROTOTYPES -DLEVELDB_PLATFORM_CHROMIUM=1 -DV8_DEPRECATION_WARNINGS -DWTF_USE_WEBAUDIO_FFMPEG=1 -DSUPPORT_WEBGL2_COMPUTE_CONTEXT=1 -DWTF_USE_DEFAULT_RENDER_THEME=1 -DUSE_SYSTEM_LIBJPEG -DV8_DEPRECATION
_WARNINGS -DUNIT_TEST -I. -I../.. -Igen -Igen/shim_headers/libevent_shim -Igen/shim_headers/zlib_shim -Igen/shim_headers/re2_shim -Igen/shim_headers/snappy_shim -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -I../../third_party/libyuv/include -Igen/sh
im_headers/ffmpeg_shim -Igen/shim_headers/openh264_shim -Igen/shim_headers/libvpx_shim -Igen/shim_headers/opus_shim -Igen/shim_headers/libpng_shim -Igen/shim_headers/libwebp_shim -Igen/shim_headers/libdrm_shim -I../../third_party/khronos -I../../gpu -I../../third_pa
rty/vulkan/include -I../../third_party/googletest/custom -I../../third_party/googletest/src/googletest/include -Igen/shim_headers/minizip_shim -Igen/shim_headers/flac_shim -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/protobuf/src -I../../thi
rd_party/boringssl/src/include -I../../third_party/googletest/custom -I../../third_party/googletest/src/googlemock/include -I../../third_party/ced/src -I../../third_party/webrtc_overrides -I../../third_party/webrtc -I../../third_party/abseil-cpp -I../../skia/config 
-I../../skia/ext -I../../third_party/skia/include/c -I../../third_party/skia/include/config -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/encode -I../../third_party/skia/include/gpu -I../../third_part
y/skia/include/images -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pdf -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../thir
d_party/vulkan/include -I../../third_party/skia/third_party/vulkanmemoryallocator -I../../third_party/skia/src/gpu -I../../third_party/skia/src/sksl -I../../third_party/skia/modules/skottie/include -I../../third_party/vulkan/include -I../../third_party/leveldatabase -I../../third_party/leveldatabase/src -I../../third_party/leveldatabase/src/include -I../../third_party/libwebm/source -I../../v8/include -Igen/v8/include -I../../third_party/iccjpeg -I../../third_party/ots/include -I../../v8/include -Igen/v8/include -I../../third_party/webrtc_overrides -I../../testing/gtest/include -I../../third_party/webrtc -I../../third_party/mesa_headers -fprofile-sample-use=../../chrome/android/profiles/afdo.prof -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -m64 -march=x86-64 -Wall -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -Wno-ignored-pragma-optimize -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wno-header-guard -I/usr/include/nss -I/usr/include/nspr -Wno-inconsistent-missing-override -I/usr/include/libpng16 -std=c++14 -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-pedantic -Wno-unused-function -Wno-unused-variable -Wno-deprecated-declarations  -Wno-return-type  -Wno-pedantic -Wno-unused-function -Wno-unused-variable -Wno-deprecated-declarations  -Wno-return-type  -c gen/content/test/test_support_jumbo_2.cc -o obj/content/test/test_support/test_support_jumbo_2.o
In file included from gen/content/test/test_support_jumbo_2.cc:5:
In file included from ./../../content/public/test/test_frame_navigation_observer.cc:5:
In file included from ../../content/public/test/test_frame_navigation_observer.h:11:
../../content/public/test/browser_test_utils.h:608:24: error: unknown type name 'nullptr_t'; did you mean 'std::nullptr_t'?
inline bool operator==(nullptr_t a, const EvalJsResult& b) {
                       ^~~~~~~~~
                       std::nullptr_t
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/x86_64-linux-gnu/c++/8/bits/c++config.h:242:29: note: 'std::nullptr_t' declared here
  typedef decltype(nullptr)     nullptr_t;
                                ^
1 error generated.           
[18074/19011] CXX obj/content/test/test_support/test_support_jumbo_1.o
FAILED: obj/content/test/test_support/test_support_jumbo_1.o
clang++-7 -MMD -MF obj/content/test/test_support/test_support_jumbo_1.o.d -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DOFFICIAL_BUILD -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DCR_CLANG_REVISION=\"340925-1\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_USE_EXTERNAL_STARTUP_DATA -DUSE_V8_CONTEXT_SNAPSHOT -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DVK_NO_PROTOTYPES -DGTEST_API_= -DGTEST_HAS_POSIX_RE=0 -DGTEST_LANG_CXX11=1 -DGTEST_HAS_TR1_TUPLE=0 -DTOOLKIT_VIEWS=1 -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUCHAR_TYPE=uint16_t -DU_IMPORT=U_EXPORT -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -DNO_MAIN_THREAD_WRAPPING -DSK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_HAS_JPEG_LIBRARY -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DVK_NO_PROTOTYPES -DLEVELDB_PLATFORM_CHROMIUM=1 -DV8_DEPRECATION_WARNINGS -DWTF_USE_WEBAUDIO_FFMPEG=1 -DSUPPORT_WEBGL2_COMPUTE_CONTEXT=1 -DWTF_USE_DEFAULT_RENDER_THEME=1 -DUSE_SYSTEM_LIBJPEG -DV8_DEPRECATION_WARNINGS -DUNIT_TEST -I. -I../.. -Igen -Igen/shim_headers/libevent_shim -Igen/shim_headers/zlib_shim -Igen/shim_headers/re2_shim -Igen/shim_headers/snappy_shim -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -I../../third_party/libyuv/include -Igen/shim_headers/ffmpeg_shim -Igen/shim_headers/openh264_shim -Igen/shim_headers/libvpx_shim -Igen/shim_headers/opus_shim -Igen/shim_headers/libpng_shim -Igen/shim_headers/libwebp_shim -Igen/shim_headers/libdrm_shim -I../../third_party/khronos -I../../gpu -I../../third_party/vulkan/include -I../../third_party/googletest/custom -I../../third_party/googletest/src/googletest/include -Igen/shim_headers/minizip_shim -Igen/shim_headers/flac_shim -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/protobuf/src -I../../third_party/boringssl/src/include -I../../third_party/googletest/custom -I../../third_party/googletest/src/googlemock/include -I../../third_party/ced/src -I../../third_party/webrtc_overrides -I../../third_party/webrtc -I../../third_party/abseil-cpp -I../../skia/config -I../../skia/ext -I../../third_party/skia/include/c -I../../third_party/skia/include/config -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/encode -I../../third_party/skia/include/gpu -I../../third_party/skia/include/images -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pdf -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../third_party/vulkan/include -I../../third_party/skia/third_party/vulkanmemoryallocator -I../../third_party/skia/src/gpu -I../../third_party/skia/src/sksl -I../../third_party/skia/modules/skottie/include -I../../third_party/vulkan/include -I../../third_party/leveldatabase -I../../third_party/leveldatabase/src -I../../third_party/leveldatabase/src/include -I../../third_party/libwebm/source -I../../v8/include -Igen/v8/include -I../../third_party/iccjpeg -I../../third_party/ots/include -I../../v8/include -Igen/v8/include -I../../third_party/webrtc_overrides -I../../testing/gtest/include -I../../third_party/webrtc -I../../third_party/mesa_headers -fprofile-sample-use=../../chrome/android/profiles/afdo.prof -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -m64 -march=x86-64 -Wall -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -Wno-ignored-pragma-optimize -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wno-header-guard -I/usr/include/nss -I/usr/include/nspr -Wno-inconsistent-missing-override -I/usr/include/libpng16 -std=c++14 -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-pedantic -Wno-unused-function -Wno-unused-variable -Wno-deprecated-declarations  -Wno-return-type  -Wno-pedantic -Wno-unused-function -Wno-unused-variable -Wno-deprecated-declarations  -Wno-return-type  -c gen/content/test/test_support_jumbo_1.cc -o obj/content/test/test_support/test_support_jumbo_1.o
In file included from gen/content/test/test_support_jumbo_1.cc:19:
In file included from ./../../content/public/test/browser_test_base.cc:37:
../../content/public/test/browser_test_utils.h:608:24: error: unknown type name 'nullptr_t'; did you mean 'std::nullptr_t'?
inline bool operator==(nullptr_t a, const EvalJsResult& b) {
                       ^~~~~~~~~
                       std::nullptr_t
/usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/x86_64-linux-gnu/c++/8/bits/c++config.h:242:29: note: 'std::nullptr_t' declared here
  typedef decltype(nullptr)     nullptr_t;
                                ^
1 error generated.           
[18075/19011] CXX obj/extensions/renderer/renderer/renderer_jumbo_3.o
ninja: build stopped: subcommand failed.
make[1]: *** [debian/rules:89: override_dh_auto_build-arch] Error 1
make[1]: Leaving directory '/usr/src/sources/2018/browser/ung70/ungoogled-chromium-70.0.3538.77-1-my/build/src'
make: *** [debian/rules:68: binary] Error 2
ghost commented 5 years ago

with llvm-7:

Same as https://github.com/Eloston/ungoogled-chromium/issues/569#issuecomment-433523779

More elucidation: https://codereview.chromium.org/1558333002

Eloston commented 5 years ago

Since the original problem has been resolved (crashing with LLVM 8) and the new issue is the same as #569, I'm going to close this.