【问题标题】:bitbake: how to resume compilationbitbake:如何恢复编译
【发布时间】:2020-01-28 11:59:27
【问题描述】:

bitbake <image> 执行期间,生成 3 个错误并停止构建过程。 这里是输出的最后几行:

| ERROR: Function failed: do_compile (log file is located at /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/temp/log.do_compile.26600)
ERROR: Task (/local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/layers/meta-qt5/recipes-qt/qt5/qtwebkit_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 7532 tasks of which 6688 didn't need to be rerun and 2 failed.
NOTE: Writing buildhistory

Summary: 2 tasks failed:
  /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/layers/meta-qt5/recipes-qt/qt5/qt3d_git.bb:do_compile
  /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/layers/meta-qt5/recipes-qt/qt5/qtwebkit_git.bb:do_compile
Summary: There were 2 WARNING messages shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.

-k 参数定义如下:

-k, --continue        Continue as much as possible after an error. While the
                        target that failed and anything depending on it cannot
                        be built, as much as possible will be built before
                        stopping.

因此它不会重试失败的任务。而且,实际上,什么都不做。 这里最后一个错误的日志文件的最后50行:

$ tail -n 50 /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/temp/log.do_compile.26600
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WTF/wtf/text/WTFString.h:769,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/platform/ValueToString.h:35,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/platform/LayoutUnit.h:34,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/rendering/AutoTableLayout.h:24,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/rendering/AutoTableLayout.cpp:23,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/rendering/RenderingAllInOne.cpp:28:
/local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WTF/wtf/HashTraits.h:226:8: note: 'struct WTF::KeyValuePair<std::pair<JSC::JSObject*, std::pair<unsigned int, const JSC::ClassInfo*> >, JSC::Weak<JSC::Structure> >' declared here
 struct KeyValuePair {
        ^~~~~~~~~~~~
In file included from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WTF/wtf/HashMap.h:25,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/platform/ThreadGlobalData.h:30,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/dom/EventNames.h:25,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/dom/EventTarget.h:35,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/dom/Node.h:28,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/dom/ContainerNode.h:29,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/page/FrameView.h:30,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/rendering/RenderBox.h:26,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/rendering/RenderBlock.h:28,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/rendering/RenderTable.h:30,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/rendering/AutoTableLayout.cpp:25,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/rendering/RenderingAllInOne.cpp:28:
/local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WTF/wtf/HashTable.h: In instantiation of 'static void WTF::HashTableBucketInitializer<true>::initialize(Value&) [with Traits = WTF::HashMap<void*, JSC::Weak<JSC::JSObject>, WTF::PtrHash<void*>, WTF::HashTraits<void*>, WTF::HashTraits<JSC::Weak<JSC::JSObject> > >::KeyValuePairTraits; Value = WTF::KeyValuePair<void*, JSC::Weak<JSC::JSObject> >]':
/local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WTF/wtf/HashTable.h:855:90:   required from 'static void WTF::HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits>::initializeBucket(WTF::HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits>::ValueType&) [with Key = void*; Value = WTF::KeyValuePair<void*, JSC::Weak<JSC::JSObject> >; Extractor = WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<void*, JSC::Weak<JSC::JSObject> > >; HashFunctions = WTF::PtrHash<void*>; Traits = WTF::HashMap<void*, JSC::Weak<JSC::JSObject>, WTF::PtrHash<void*>, WTF::HashTraits<void*>, WTF::HashTraits<JSC::Weak<JSC::JSObject> > >::KeyValuePairTraits; KeyTraits = WTF::HashTraits<void*>; WTF::HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits>::ValueType = WTF::KeyValuePair<void*, JSC::Weak<JSC::JSObject> >]'
/local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WTF/wtf/HashTable.h:1146:29:   required from 'static WTF::HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits>::ValueType* WTF::HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits>::allocateTable(unsigned int) [with Key = void*; Value = WTF::KeyValuePair<void*, JSC::Weak<JSC::JSObject> >; Extractor = WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<void*, JSC::Weak<JSC::JSObject> > >; HashFunctions = WTF::PtrHash<void*>; Traits = WTF::HashMap<void*, JSC::Weak<JSC::JSObject>, WTF::PtrHash<void*>, WTF::HashTraits<void*>, WTF::HashTraits<JSC::Weak<JSC::JSObject> > >::KeyValuePairTraits; KeyTraits = WTF::HashTraits<void*>; WTF::HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits>::ValueType = WTF::KeyValuePair<void*, JSC::Weak<JSC::JSObject> >]'
/local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WTF/wtf/HashTable.h:1194:32:   required from 'WTF::HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits>::ValueType* WTF::HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits>::rehash(unsigned int, WTF::HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits>::ValueType*) [with Key = void*; Value = WTF::KeyValuePair<void*, JSC::Weak<JSC::JSObject> >; Extractor = WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<void*, JSC::Weak<JSC::JSObject> > >; HashFunctions = WTF::PtrHash<void*>; Traits = WTF::HashMap<void*, JSC::Weak<JSC::JSObject>, WTF::PtrHash<void*>, WTF::HashTraits<void*>, WTF::HashTraits<JSC::Weak<JSC::JSObject> > >::KeyValuePairTraits; KeyTraits = WTF::HashTraits<void*>; WTF::HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits>::ValueType = WTF::KeyValuePair<void*, JSC::Weak<JSC::JSObject> >]'
/local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WTF/wtf/HashTable.h:453:25:   required from 'void WTF::HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits>::shrink() [with Key = void*; Value = WTF::KeyValuePair<void*, JSC::Weak<JSC::JSObject> >; Extractor = WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<void*, JSC::Weak<JSC::JSObject> > >; HashFunctions = WTF::PtrHash<void*>; Traits = WTF::HashMap<void*, JSC::Weak<JSC::JSObject>, WTF::PtrHash<void*>, WTF::HashTraits<void*>, WTF::HashTraits<JSC::Weak<JSC::JSObject> > >::KeyValuePairTraits; KeyTraits = WTF::HashTraits<void*>]'
/local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WTF/wtf/HashTable.h:1132:13:   required from 'void WTF::HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits>::removeIf(const Functor&) [with Functor = JSC::WeakGCMap<KeyArg, ValueArg, HashArg, KeyTraitsArg>::pruneStaleEntries() [with KeyArg = void*; ValueArg = JSC::JSObject; HashArg = WTF::PtrHash<void*>; KeyTraitsArg = WTF::HashTraits<void*>]::<lambda(WTF::HashMap<void*, JSC::Weak<JSC::JSObject>, WTF::PtrHash<void*>, WTF::HashTraits<void*>, WTF::HashTraits<JSC::Weak<JSC::JSObject> > >::KeyValuePairType&)>; Key = void*; Value = WTF::KeyValuePair<void*, JSC::Weak<JSC::JSObject> >; Extractor = WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<void*, JSC::Weak<JSC::JSObject> > >; HashFunctions = WTF::PtrHash<void*>; Traits = WTF::HashMap<void*, JSC::Weak<JSC::JSObject>, WTF::PtrHash<void*>, WTF::HashTraits<void*>, WTF::HashTraits<JSC::Weak<JSC::JSObject> > >::KeyValuePairTraits; KeyTraits = WTF::HashTraits<void*>]'
/local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WTF/wtf/HashMap.h:421:5:   required from 'void WTF::HashMap<KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg>::removeIf(const Functor&) [with Functor = JSC::WeakGCMap<KeyArg, ValueArg, HashArg, KeyTraitsArg>::pruneStaleEntries() [with KeyArg = void*; ValueArg = JSC::JSObject; HashArg = WTF::PtrHash<void*>; KeyTraitsArg = WTF::HashTraits<void*>]::<lambda(WTF::HashMap<void*, JSC::Weak<JSC::JSObject>, WTF::PtrHash<void*>, WTF::HashTraits<void*>, WTF::HashTraits<JSC::Weak<JSC::JSObject> > >::KeyValuePairType&)>; KeyArg = void*; MappedArg = JSC::Weak<JSC::JSObject>; HashArg = WTF::PtrHash<void*>; KeyTraitsArg = WTF::HashTraits<void*>; MappedTraitsArg = WTF::HashTraits<JSC::Weak<JSC::JSObject> >]'
/local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/JavaScriptCore/runtime/WeakGCMapInlines.h:52:5:   required from 'void JSC::WeakGCMap<KeyArg, ValueArg, HashArg, KeyTraitsArg>::pruneStaleEntries() [with KeyArg = void*; ValueArg = JSC::JSObject; HashArg = WTF::PtrHash<void*>; KeyTraitsArg = WTF::HashTraits<void*>]'
/local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/JavaScriptCore/runtime/WeakGCMapInlines.h:39:9:   required from 'JSC::WeakGCMap<KeyArg, ValueArg, HashArg, KeyTraitsArg>::WeakGCMap(JSC::VM&) [with KeyArg = void*; ValueArg = JSC::JSObject; HashArg = WTF::PtrHash<void*>; KeyTraitsArg = WTF::HashTraits<void*>]'
/local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/JavaScriptCore/API/JSWeakObjectMapRefInternal.h:60:30:   required from here
/local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WTF/wtf/HashTable.h:848:19: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'struct WTF::KeyValuePair<void*, JSC::Weak<JSC::JSObject> >' with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
             memset(&bucket, 0, sizeof(bucket));
             ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WTF/wtf/text/CString.h:30,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WTF/wtf/text/StringView.h:33,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WTF/wtf/text/StringConcatenate.h:36,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WTF/wtf/text/AtomicString.h:378,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WTF/wtf/text/WTFString.h:769,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/platform/ValueToString.h:35,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/platform/LayoutUnit.h:34,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/rendering/AutoTableLayout.h:24,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/rendering/AutoTableLayout.cpp:23,
                 from /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WebCore/rendering/RenderingAllInOne.cpp:28:
/local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WTF/wtf/HashTraits.h:226:8: note: 'struct WTF::KeyValuePair<void*, JSC::Weak<JSC::JSObject> >' declared here
 struct KeyValuePair {
        ^~~~~~~~~~~~
ninja: build stopped: subcommand failed.
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_compile (log file is located at /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/temp/log.do_compile.26600)

据我了解,错误是:

'struct WTF::KeyValuePair >' 在这里声明

但是因为这不是我的代码,所以我不明白应该如何处理这种情况。 我不认为错误实际上是在代码中,也许有一些不同步的操作或者内存不足?恢复编译的正确方法是什么?还是bitbake &lt;image&gt;

更新

在日志文件中,error 只有一个匹配项:

$ cat /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/temp/log.do_compile.26600 | grep error

arm-openstlinux_eglfs-linux-gnueabi-g++: fatal error: Killed signal terminated program cc1plus

这里是前几行:

$ sed -n 132700,132717p /local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/temp/log.do_compile.26600 

/local/STM32MP15-Ecosystem-v1.0.0/Distribution-Package/openstlinux-4.19-thud-mp1-19-02-20/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-openstlinux_eglfs-linux-gnueabi/qtwebkit/5.11.2+gitAUTOINC+beaeeb9988-r0/git/Source/WTF/wtf/HashTraits.h:226:8: note: 'struct WTF::KeyValuePair<std::pair<JSC::JSObject*, std::pair<unsigned int, const JSC::ClassInfo*> >, JSC::Weak<JSC::Structure> >' declared here
 struct KeyValuePair {
        ^~~~~~~~~~~~
{standard input}: Assembler messages:
{standard input}:636266: Warning: end of file not at end of a line; newline inserted
{standard input}:636484: Error: found '
', expected: ')'
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
{standard input}:636484: Error: can't resolve `.LC553' {*UND* section} - `.LPIC744' {*UND* section}
arm-openstlinux_eglfs-linux-gnueabi-g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.

【问题讨论】:

  • 包编译失败的原因可能有很多:编译器版本、错误的依赖项等。这是您尝试构建的 qtwebkit 的本机版本吗?
  • 顺便说一句,检查你在底部看到的日志失败并寻找error: - 很可能,实际错误是不同的。
  • 我什么都没改变。这是 STM32MP1 DISTRO=openstlinux-eglfsIMAGE=st-image-example-qt 的默认构建。我已经用日志文件中的错误行更新了问题。
  • 我看到您使用的是 qt 5.11。将其撞到 5.13 是您的选择吗?另外,我会在 pastebin 上发布完整的日志 - 这可能会有所帮助。
  • 尝试将DISTRO_FEATURES_remove = "webengine" 添加到您的conf/local.conf

标签: qt5 yocto bitbake


【解决方案1】:

如果您想重建一个配方,因为您认为它可能由于缺少内存、磁盘等原因而失败,这对bitbake -c clean RECIPE 可能会有所帮助,因为 bitbake 将重试构建,使用的特定构建系统RECIPE 可能无法正常恢复。

【讨论】:

  • 那么,如果bitbake -c clean RECIPE 成功退出(即错误是由于临时条件造成的),那么我应该再次bitbake IMAGE 完成构建吗?
  • 假设问题是内存不足或类似问题,而不是构建配置等本身存在问题,是的。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-07-08
  • 1970-01-01
  • 1970-01-01
  • 2011-07-03
相关资源
最近更新 更多