您尚未登录。

楼主 # 2024-07-24 17:08:56

memory
会员
注册时间: 2021-08-11
已发帖子: 423
积分: 399

编译qt5webengine,编译器挂了:aarch64-linux-gnu-g++: internal compiler error

$ make -j1
>>> qt5webengine 5.12.8 Building
PATH="/opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/bin:/opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" PATH=/opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/build/qt5webengine-5.12.8/host-bin:"/opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/bin:/opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" NINJAFLAGS="-j17" GN_PKG_CONFIG_HOST=/opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/build/qt5webengine-5.12.8/host-bin/host-pkg-config /usr/bin/make -j17 -C /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/build/qt5webengine-5.12.8
cd src/ && ( test -e Makefile || /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/bin/qmake -o Makefile /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/build/qt5webengine-5.12.8/src/src.pro WEBENGINE_CONFIG+=use_system_ffmpeg WEBENGINE_CONFIG+=use_proprietary_codecs ) && /usr/bin/make -f Makefile 
cd buildtools/ && ( test -e Makefile || /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/bin/qmake -o Makefile /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/build/qt5webengine-5.12.8/src/buildtools/buildtools.pro WEBENGINE_CONFIG+=use_system_ffmpeg WEBENGINE_CONFIG+=use_proprietary_codecs ) && /usr/bin/make -f Makefile 
cd webengine/ui/ && ( test -e Makefile || /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/bin/qmake -o Makefile /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/build/qt5webengine-5.12.8/src/webengine/ui/ui.pro WEBENGINE_CONFIG+=use_system_ffmpeg WEBENGINE_CONFIG+=use_proprietary_codecs ) && /usr/bin/make -f Makefile 
cd webengine/ui2/ && ( test -e Makefile || /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/bin/qmake -o Makefile /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/build/qt5webengine-5.12.8/src/webengine/ui2/ui2.pro WEBENGINE_CONFIG+=use_system_ffmpeg WEBENGINE_CONFIG+=use_proprietary_codecs ) && /usr/bin/make -f Makefile 
make[4]: Nothing to be done for 'first'.
make[4]: Nothing to be done for 'first'.
( test -e Makefile.configure_host || /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/bin/qmake -o Makefile.configure_host /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/build/qt5webengine-5.12.8/src/buildtools/configure_host.pro WEBENGINE_CONFIG+=use_system_ffmpeg WEBENGINE_CONFIG+=use_proprietary_codecs ) && /usr/bin/make -f Makefile.configure_host 
( test -e Makefile.ninja || /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/bin/qmake -o Makefile.ninja /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/build/qt5webengine-5.12.8/src/buildtools/ninja.pro WEBENGINE_CONFIG+=use_system_ffmpeg WEBENGINE_CONFIG+=use_proprietary_codecs ) && /usr/bin/make -f Makefile.ninja 
make[5]: Nothing to be done for 'first'.
( test -e Makefile.configure_target || /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/bin/qmake -o Makefile.configure_target /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/build/qt5webengine-5.12.8/src/buildtools/configure_target.pro WEBENGINE_CONFIG+=use_system_ffmpeg WEBENGINE_CONFIG+=use_proprietary_codecs ) && /usr/bin/make -f Makefile.configure_target 
make[5]: Nothing to be done for 'first'.
( test -e Makefile.gn || /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/bin/qmake -o Makefile.gn /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/build/qt5webengine-5.12.8/src/buildtools/gn.pro WEBENGINE_CONFIG+=use_system_ffmpeg WEBENGINE_CONFIG+=use_proprietary_codecs ) && /usr/bin/make -f Makefile.gn 
make[5]: Nothing to be done for 'first'.
make[5]: Nothing to be done for 'first'.
cd core/ && ( test -e Makefile || /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/bin/qmake -o Makefile /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/build/qt5webengine-5.12.8/src/core/core.pro WEBENGINE_CONFIG+=use_system_ffmpeg WEBENGINE_CONFIG+=use_proprietary_codecs ) && /usr/bin/make -f Makefile 
( test -e Makefile.core_headers || /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/bin/qmake -o Makefile.core_headers /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/build/qt5webengine-5.12.8/src/core/core_headers.pro WEBENGINE_CONFIG+=use_system_ffmpeg WEBENGINE_CONFIG+=use_proprietary_codecs ) && /usr/bin/make -f Makefile.core_headers 
make[5]: Nothing to be done for 'first'.
( test -e Makefile.core_generator || /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/bin/qmake -o Makefile.core_generator /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/build/qt5webengine-5.12.8/src/core/core_generator.pro WEBENGINE_CONFIG+=use_system_ffmpeg WEBENGINE_CONFIG+=use_proprietary_codecs ) && /usr/bin/make -f Makefile.core_generator 
make[5]: Nothing to be done for 'first'.
( test -e Makefile.gn_run || /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/bin/qmake -o Makefile.gn_run /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/build/qt5webengine-5.12.8/src/core/gn_run.pro WEBENGINE_CONFIG+=use_system_ffmpeg WEBENGINE_CONFIG+=use_proprietary_codecs ) && /usr/bin/make -f Makefile.gn_run 
/opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/build/qt5webengine-5.12.8/src/3rdparty/ninja/ninja -j17 -C /opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/build/qt5webengine-5.12.8/src/core/release QtWebEngineCore
ninja: Entering directory `/opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/build/qt5webengine-5.12.8/src/core/release'
[38/3008] CXX obj/content/browser/browser/download_item_utils.o
../../3rdparty/chromium/content/browser/download/download_item_utils.cc:62:6: warning: ‘static void content::{anonymous}::DownloadItemData::Detach(download::DownloadItem*)’ defined but not used [-Wunused-function]
 void DownloadItemData::Detach(download::DownloadItem* download_item) {
      ^~~~~~~~~~~~~~~~
cc1plus: warning: unrecognized command line option ‘-Wno-class-memaccess’
cc1plus: warning: unrecognized command line option ‘-Wno-packed-not-aligned’
cc1plus: warning: unrecognized command line option ‘-Wno-dangling-else’
[58/3008] CXX obj/content/browser/browser/browser_context.o
FAILED: obj/content/browser/browser/browser_context.o 
/opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/bin/aarch64-linux-gnu-g++ -MMD -MF obj/content/browser/browser/browser_context.o.d -DENABLE_SCREEN_CAPTURE=1 -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DOFFICIAL_BUILD -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DCR_SYSROOT_HASH=37dfa5f22e2c0e847cee34f9848eb31230c33d35 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DCONTENT_IMPLEMENTATION -DWEBP_EXTERN=extern -DUSE_EGL -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DSK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_HAS_JPEG_LIBRARY -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DLEVELDB_PLATFORM_CHROMIUM=1 -DMESA_EGL_NO_X11_HEADERS -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DGTEST_RELATIVE_PATH -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -DNO_MAIN_THREAD_WRAPPING -Igen -I../../3rdparty/chromium -Igen -I../../3rdparty/chromium/third_party/libwebp/src -I../../3rdparty/chromium/third_party/khronos -I../../3rdparty/chromium/gpu -I../../3rdparty/chromium/third_party/libyuv/include -Igen -Igen -I../../3rdparty/chromium/third_party/ced/src -I../../3rdparty/chromium/third_party/icu/source/common -I../../3rdparty/chromium/third_party/icu/source/i18n -I../../3rdparty/chromium/third_party/protobuf/src -I../../3rdparty/chromium/skia/config -I../../3rdparty/chromium/skia/ext -I../../3rdparty/chromium/third_party/skia/include/c -I../../3rdparty/chromium/third_party/skia/include/config -I../../3rdparty/chromium/third_party/skia/include/core -I../../3rdparty/chromium/third_party/skia/include/effects -I../../3rdparty/chromium/third_party/skia/include/encode -I../../3rdparty/chromium/third_party/skia/include/gpu -I../../3rdparty/chromium/third_party/skia/include/images -I../../3rdparty/chromium/third_party/skia/include/lazy -I../../3rdparty/chromium/third_party/skia/include/pathops -I../../3rdparty/chromium/third_party/skia/include/pdf -I../../3rdparty/chromium/third_party/skia/include/pipe -I../../3rdparty/chromium/third_party/skia/include/ports -I../../3rdparty/chromium/third_party/skia/include/utils -I../../3rdparty/chromium/third_party/skia/src/gpu -I../../3rdparty/chromium/third_party/skia/src/sksl -I../../3rdparty/chromium/third_party/libwebm/source -I../../3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../3rdparty/chromium/third_party/leveldatabase -I../../3rdparty/chromium/third_party/leveldatabase/src -I../../3rdparty/chromium/third_party/leveldatabase/src/include -Igen/third_party/metrics_proto -I../../3rdparty/chromium/third_party/boringssl/src/include -I../../3rdparty/chromium/third_party/mesa/src/include -I../../3rdparty/chromium/v8/include -Igen/v8/include -I../../3rdparty/chromium/third_party/webrtc_overrides -I../../3rdparty/chromium/third_party/webrtc -I../../3rdparty/chromium/third_party/angle/src/common/third_party/base -Igen/angle -I../../3rdparty/chromium/third_party/brotli/include -I../../3rdparty/chromium/third_party/re2/src -I../../3rdparty/chromium/third_party/zlib -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-comments -Wno-dangling-else -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=hidden -I/opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/nss -I/opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/nspr -isystem ../../3rdparty/chromium/third_party/abseil-cpp -I/opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/dbus-1.0 -I/opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/dbus-1.0/include -std=gnu++14 -Wno-narrowing -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -fno-exceptions -fno-rtti --sysroot=../../../../../host/aarch64-buildroot-linux-gnu/sysroot -fvisibility-inlines-hidden -c ../../3rdparty/chromium/content/browser/browser_context.cc -o obj/content/browser/browser/browser_context.o
aarch64-linux-gnu-g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
[74/3008] CXX obj/content/browser/browser/save_package.o
ninja: build stopped: subcommand failed.
Makefile.gn_run:394: recipe for target 'run_ninja' failed
make[5]: *** [run_ninja] Error 1
Makefile:82: recipe for target 'sub-gn_run-pro-make_first' failed
make[4]: *** [sub-gn_run-pro-make_first] Error 2
Makefile:79: recipe for target 'sub-core-make_first' failed
make[3]: *** [sub-core-make_first] Error 2
Makefile:48: recipe for target 'sub-src-make_first' failed
make[2]: *** [sub-src-make_first] Error 2
package/pkg-generic.mk:266: recipe for target '/opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/build/qt5webengine-5.12.8/.stamp_built' failed
make[1]: *** [/opt/A133/buildroot/buildroot-20200212-Qt-sunxi/output/build/qt5webengine-5.12.8/.stamp_built] Error 2
Makefile:84: recipe for target '_all' failed
make: *** [_all] Error 2

离线

楼主 #1 2024-07-24 17:48:18

memory
会员
注册时间: 2021-08-11
已发帖子: 423
积分: 399

Re: 编译qt5webengine,编译器挂了:aarch64-linux-gnu-g++: internal compiler error

搞定了!

根据以前编译android的经验,应该是虚拟机内存不足引起,关机后把虚拟机内存配置由16G升级到32G搞定。

离线

楼主 #2 2024-07-24 18:27:17

memory
会员
注册时间: 2021-08-11
已发帖子: 423
积分: 399

Re: 编译qt5webengine,编译器挂了:aarch64-linux-gnu-g++: internal compiler error

编译完了,但是运行 minibrowser出错了:

# QT_MESSAGE_LOG_CONTEXT=1 QTWEBENGINE_DISABLE_SANDBOX=1 XDG_RUNTIME_DIR=/tmp/ Q
T_QPA_FONTDIR=/usr/lib/fonts/ QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/eve
nt4 QT_QPA_EGLFS_INTEGRATION=none QT_QPA_PLATFORM=eglfs /usr/bin/minibrowser
Attribute Qt::AA_ShareOpenGLContexts must be set before QCoreApplication is created.
Sandboxing disabled by user.
[1375:1391:0101/002304.396521:ERROR:gl_ozone_egl_qt.cpp(102)] eglGetProcAddress not found.
[1375:1391:0101/002305.670949:ERROR:gl_surface_egl_qt.cpp(204)] Trying to create surface with invalid display.
[1400:1400:0100/000000.697105:ERROR:command_buffer_proxy_impl.cc(130)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
Segmentation fault
#

离线

楼主 #3 2024-07-24 20:46:07

memory
会员
注册时间: 2021-08-11
已发帖子: 423
积分: 399

Re: 编译qt5webengine,编译器挂了:aarch64-linux-gnu-g++: internal compiler error

# QT_LOGGING_RULES=qt.qpa.*=true QT_MESSAGE_LOG_CONTEXT=1 QTWEBENGINE_DISABLE_SANDBOX=1 XDG_RUNTIME_DIR=/tmp/QT_QPA_FONTDIR=/usr/lib/fonts/ QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event4 QT_QPA_EGLFS_INTEGRATION=none QT_QPA_PLATFORM=eglfs /usr/bin/minibrowser
qt.qpa.egldeviceintegration: EGL device integration plugin keys: ("eglfs_emu", "eglfs_mali")
qt.qpa.egldeviceintegration: Using base device integration
qt.qpa.input: evdevkeyboard: Using device discovery
qt.qpa.input: static device discovery for type QFlags<QDeviceDiscovery::QDeviceType>(Device_Keyboard)
qt.qpa.input: doing static device discovery for  "/dev/input/event0"
qt.qpa.input: doing static device discovery for  "/dev/input/event1"
qt.qpa.input: doing static device discovery for  "/dev/input/event2"
qt.qpa.input: doing static device discovery for  "/dev/input/event3"
qt.qpa.input: doing static device discovery for  "/dev/input/event4"
qt.qpa.input: Found matching devices ()
qt.qpa.input: evdevmouse: Using device discovery
qt.qpa.input: static device discovery for type QFlags<QDeviceDiscovery::QDeviceType>(Device_Mouse|Device_Touchpad)
qt.qpa.input: doing static device discovery for  "/dev/input/event0"
qt.qpa.input: doing static device discovery for  "/dev/input/event1"
qt.qpa.input: doing static device discovery for  "/dev/input/event2"
qt.qpa.input: doing static device discovery for  "/dev/input/event3"
qt.qpa.input: doing static device discovery for  "/dev/input/event4"
qt.qpa.input: Found new-style touchscreen at "/dev/input/event4"
qt.qpa.input: Found matching devices ("/dev/input/event4")
qt.qpa.input: Adding mouse at "/dev/input/event4"
qt.qpa.input: create mouse handler for "/dev/input/event4" ""
qt.qpa.input: evdevtouch: Adding device at "/dev/input/event4"
qt.qpa.input: evdevtouch: Using device /dev/input/event4
qt.qpa.input: evdevtouch: /dev/input/event4: Protocol type A  (multi), filtered=no
qt.qpa.input: evdevtouch: /dev/input/event4: min X: 0 max X: 720
qt.qpa.input: evdevtouch: /dev/input/event4: min Y: 0 max Y: 1440
qt.qpa.input: evdevtouch: /dev/input/event4: min pressure: 0 max pressure: 0
qt.qpa.input: evdevtouch: /dev/input/event4: device name: gt9xxnew_ts
Attribute Qt::AA_ShareOpenGLContexts must be set before QCoreApplication is created.
Sandboxing disabled by user.
[1411:1427:0101/024102.417402:ERROR:gl_ozone_egl_qt.cpp(102)] eglGetProcAddress not found.
qt.qpa.input: evdevtouch: Updating QInputDeviceManager device count: 1  touch devices, 0 pending handler(s)
[1411:1427:0101/024103.683841:ERROR:gl_surface_egl_qt.cpp(204)] Trying to create surface with invalid display.
[1438:1438:0100/000000.710275:ERROR:command_buffer_proxy_impl.cc(130)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
Segmentation fault
#
#

离线

#4 2024-07-25 23:15:38

shaoxi2010
会员
注册时间: 2019-06-13
已发帖子: 388
积分: 337

Re: 编译qt5webengine,编译器挂了:aarch64-linux-gnu-g++: internal compiler error

web engine 需要gles库支持,但是它自己没有装载,你帮他装上就行

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn