嵌入式爱好者

查看: 826|回复: 0

[Linux] 通过./build.sh buildroot编译错误,log文件里面显示缺少库文件,是什么原因呢?

[复制链接]

1

主题

2

帖子

18

积分

i.MX6Q通行证RK3568通行证

扫一扫,手机访问本帖
发表于 2024-6-3 14:18:08 | 显示全部楼层 |阅读模式
2024-05-31T17:53:09 In file included from ../../deps/v8/src/base/macros.h:12,
2024-05-31T17:53:09 from ../../deps/v8/src/base/cpu.h:17,
2024-05-31T17:53:09 from ../../deps/v8/src/base/cpu.cc:5:
2024-05-31T17:53:09 ../../deps/v8/src/base/logging.h: In function 'auto v8::base::detail::GetUnderlyingEnumTypeForPrinting(T)':
2024-05-31T17:53:09 ../../deps/v8/src/base/logging.h:154:26: error: 'uint16_t' was not declared in this scope
2024-05-31T17:53:09 154 |                          uint16_t> >;
2024-05-31T17:53:09 |                          ^~~~~~~~
2024-05-31T17:53:09 ../../deps/v8/src/base/logging.h:17:1: note: 'uint16_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
2024-05-31T17:53:09 16 | #include "src/base/template-utils.h"
2024-05-31T17:53:09 +++ |+#include <cstdint>
2024-05-31T17:53:09 17 |
2024-05-31T17:53:09 ../../deps/v8/src/base/logging.h:154:34: error: template argument 3 is invalid
2024-05-31T17:53:09 154 |                          uint16_t> >;
2024-05-31T17:53:09 |                                  ^
2024-05-31T17:53:09 ../../deps/v8/src/base/logging.h:154:36: error: template argument 3 is invalid
2024-05-31T17:53:09 154 |                          uint16_t> >;
2024-05-31T17:53:09 |                                    ^
2024-05-31T17:53:09 ../../deps/v8/src/base/logging.h:154:37: error: expected identifier before ';' token
2024-05-31T17:53:09 154 |                          uint16_t> >;
2024-05-31T17:53:09 |                                     ^
2024-05-31T17:53:09 ../../deps/v8/src/base/logging.h:155:22: error: 'int_t' does not name a type; did you mean 'wint_t'?
2024-05-31T17:53:09 155 |   return static_cast<int_t>(static_cast<underlying_t>(val));
2024-05-31T17:53:09 |                      ^~~~~
2024-05-31T17:53:09 |                      wint_t
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h: At global scope:
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h:314:8: error: 'uint64_t' does not name a type
2024-05-31T17:53:09 314 | inline uint64_t make_uint64(uint32_t high, uint32_t low) {
2024-05-31T17:53:09 |        ^~~~~~~~
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h:14:1: note: 'uint64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
2024-05-31T17:53:09 13 | #include "src/base/platform/wrappers.h"
2024-05-31T17:53:09 +++ |+#include <cstdint>
2024-05-31T17:53:09 14 |
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h:320:25: error: 'intptr_t' has not been declared
2024-05-31T17:53:09 320 | inline T RoundDown(T x, intptr_t m) {
2024-05-31T17:53:09 |                         ^~~~~~~~
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h:326:11: error: 'intptr_t' has not been declared
2024-05-31T17:53:09 326 | template <intptr_t m, typename T>
2024-05-31T17:53:09 |           ^~~~~~~~
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h: In function 'constexpr T RoundDown(T)':
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h:330:17: error: 'm' was not declared in this scope
2024-05-31T17:53:09 330 |   STATIC_ASSERT(m != 0 && ((m & (m - 1)) == 0));
2024-05-31T17:53:09 |                 ^
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h:182:43: note: in definition of macro 'STATIC_ASSERT'
2024-05-31T17:53:09 182 | #define STATIC_ASSERT(test) static_assert(test, #test)
2024-05-31T17:53:09 |                                           ^~~~
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h: At global scope:
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h:336:23: error: 'intptr_t' has not been declared
2024-05-31T17:53:09 336 | inline T RoundUp(T x, intptr_t m) {
2024-05-31T17:53:09 |                       ^~~~~~~~
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h:340:11: error: 'intptr_t' has not been declared
2024-05-31T17:53:09 340 | template <intptr_t m, typename T>
2024-05-31T17:53:09 |           ^~~~~~~~
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h: In function 'constexpr T RoundUp(T)':
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h:343:20: error: 'm' was not declared in this scope
2024-05-31T17:53:09 343 |   return RoundDown<m, T>(static_cast<T>(x + (m - 1)));
2024-05-31T17:53:09 |                    ^
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h: In function 'void* AlignedAddress(void*, size_t)':
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h:354:51: error: 'uintptr_t' does not name a type
2024-05-31T17:53:09 354 |   return reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(address) &
2024-05-31T17:53:09 |                                                   ^~~~~~~~~
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h:354:51: note: 'uintptr_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h:355:47: error: 'uintptr_t' does not name a type
2024-05-31T17:53:09 355 |                                  ~static_cast<uintptr_t>(alignment - 1));
2024-05-31T17:53:09 |                                               ^~~~~~~~~
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h:355:47: note: 'uintptr_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
2024-05-31T17:53:09
[27/1664] CXX obj/deps/v8/src/base/debug/v8_libbase.stack_trace.o
2024-05-31T17:53:09 FAILED: obj/deps/v8/src/base/debug/v8_libbase.stack_trace.o
2024-05-31T17:53:09 /home/thinkdiffrence/Rockchip/OK3568_Linux_fs/buildroot/output/OK3568/host/bin/ccache /usr/bin/g++ -MMD -MF obj/deps/v8/src/base/debug/v8_libbase.stack_trace.o.d -D_GLIBCXX_USE_CXX11_ABI=1 -DV8_GYP_BUILD -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -D__STDC_FORMAT_MACROS -DV8_TARGET_ARCH_X64 -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX '-DV8_EMBEDDER_STRING="-node.20"' -DENABLE_DISASSEMBLER -DV8_PROMISE_INTERNAL_FIELD_COUNT=1 -DENABLE_MINOR_MC -DOBJECT_PRINT -DV8_INTL_SUPPORT -DV8_ATOMIC_OBJECT_FIELD_WRITES -DV8_ATOMIC_MARKING_STATE -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_USE_SIPHASH -DDISABLE_UNTRUSTED_CODE_MITIGATIONS -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_SNAPSHOT_COMPRESSION -DV8_ENABLE_WEBASSEMBLY -DV8_ALLOCATION_FOLDING -DV8_ALLOCATION_SITE_TRACKING -DV8_ADVANCED_BIGINT_ALGORITHMS -DBUILDING_V8_BASE_SHARED -I/home/thinkdiffrence/Rockchip/OK3568_Linux_fs/buildroot/output/OK3568/host/include -I../../deps/v8 -I../../deps/v8/include -pthread -Wno-unused-parameter -m64 -Wno-return-type -fno-strict-aliasing -m64 -O3 -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -I/home/thinkdiffrence/Rockchip/OK3568_Linux_fs/buildroot/output/OK3568/host/include -O2 -I/home/thinkdiffrence/Rockchip/OK3568_Linux_fs/buildroot/output/OK3568/host/include -fno-rtti -fno-exceptions -std=gnu++14  -c ../../deps/v8/src/base/debug/stack_trace.cc -o obj/deps/v8/src/base/debug/v8_libbase.stack_trace.o
2024-05-31T17:53:09 In file included from ../../deps/v8/src/base/macros.h:12,
2024-05-31T17:53:09 from ../../deps/v8/src/base/debug/stack_trace.cc:12:
2024-05-31T17:53:09 ../../deps/v8/src/base/logging.h: In function 'auto v8::base::detail::GetUnderlyingEnumTypeForPrinting(T)':
2024-05-31T17:53:09 ../../deps/v8/src/base/logging.h:154:26: error: 'uint16_t' was not declared in this scope
2024-05-31T17:53:09 154 |                          uint16_t> >;
2024-05-31T17:53:09 |                          ^~~~~~~~
2024-05-31T17:53:09 ../../deps/v8/src/base/logging.h:17:1: note: 'uint16_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
2024-05-31T17:53:09 16 | #include "src/base/template-utils.h"
2024-05-31T17:53:09 +++ |+#include <cstdint>
2024-05-31T17:53:09 17 |
2024-05-31T17:53:09 ../../deps/v8/src/base/logging.h:154:34: error: template argument 3 is invalid
2024-05-31T17:53:09 154 |                          uint16_t> >;
2024-05-31T17:53:09 |                                  ^
2024-05-31T17:53:09 ../../deps/v8/src/base/logging.h:154:36: error: template argument 3 is invalid
2024-05-31T17:53:09 154 |                          uint16_t> >;
2024-05-31T17:53:09 |                                    ^
2024-05-31T17:53:09 ../../deps/v8/src/base/logging.h:154:37: error: expected identifier before ';' token
2024-05-31T17:53:09 154 |                          uint16_t> >;
2024-05-31T17:53:09 |                                     ^
2024-05-31T17:53:09 ../../deps/v8/src/base/logging.h:155:22: error: 'int_t' does not name a type; did you mean 'wint_t'?
2024-05-31T17:53:09 155 |   return static_cast<int_t>(static_cast<underlying_t>(val));
2024-05-31T17:53:09 |                      ^~~~~
2024-05-31T17:53:09 |                      wint_t
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h: At global scope:
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h:314:8: error: 'uint64_t' does not name a type
2024-05-31T17:53:09 314 | inline uint64_t make_uint64(uint32_t high, uint32_t low) {
2024-05-31T17:53:09 |        ^~~~~~~~
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h:14:1: note: 'uint64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
2024-05-31T17:53:09 13 | #include "src/base/platform/wrappers.h"
2024-05-31T17:53:09 +++ |+#include <cstdint>
2024-05-31T17:53:09 14 |
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h: In function 'void* AlignedAddress(void*, size_t)':
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h:354:51: error: 'uintptr_t' does not name a type
2024-05-31T17:53:09 354 |   return reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(address) &
2024-05-31T17:53:09 |                                                   ^~~~~~~~~
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h:354:51: note: 'uintptr_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h:355:47: error: 'uintptr_t' does not name a type
2024-05-31T17:53:09 355 |                                  ~static_cast<uintptr_t>(alignment - 1));
2024-05-31T17:53:09 |                                               ^~~~~~~~~
2024-05-31T17:53:09 ../../deps/v8/src/base/macros.h:355:47: note: 'uintptr_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
2024-05-31T17:53:10
[28/1664] CXX obj/deps/v8/src/torque/torque_base.csa-generator.o
2024-05-31T17:53:10 ninja: build stopped: subcommand failed.
2024-05-31T17:53:10 make[1]: *** [Makefile:127: node] Error 1
2024-05-31T17:53:10 make[1]: Leaving directory '/home/thinkdiffrence/Rockchip/OK3568_Linux_fs/buildroot/output/OK3568/build/host-nodejs-16.15.0'
2024-05-31T17:53:10 make: *** [package/pkg-generic.mk:313: /home/thinkdiffrence/Rockchip/OK3568_Linux_fs/buildroot/output/OK3568/build/host-nodejs-16.15.0/.stamp_built] Error 2
2024-05-31T17:53:11 make: Leaving directory '/home/thinkdiffrence/Rockchip/OK3568_Linux_fs/buildroot'
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-12-20 17:27

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表