我试图为moka手机构建ubuntu触摸,但我有以下错误:
host C: libext2_e2p_host <= external/e2fsprogs/lib/e2p/feature.c
host SharedLib: libext2_e2p_host (phablet/out/host/linux-x86/obj/lib/libext2_e2p_host.so)
phablet/out/host/linux-x86/obj/SHARED_LIBRARIES/libext2_e2p_host_intermediates/feature.o: in function "ext2fs_mark_block_bitmap":
phablet/external/e2fsprogs/lib/ext2fs/bitops.h:303: undefined reference to "ext2fs_mark_generic_bitmap"
collect2: error: ld returned 1 exit status
build/core/host_shared_library.mk:44: set di istruzioni per l'obiettivo "phablet/out/host/linux-x86/obj/lib/libext2_e2p_host.so" non riuscito
make: *** [phablet/out/host/linux-x86/obj/lib/libext2_e2p_host.so] Errore 1在与"phablet-dev-bootstrap phablet“同步之后,我使用了以下命令:
. build/envsetup.sh
lunch我为莫卡选择了nr.10
make发布于 2015-12-31 05:35:27
这个问题是由较新的gcc版本引起的。gcc-4.8的小版本差异将导致这一问题.
后期版本需要定义和实现内联函数。
您可以在命令行中定义NO_INLINE_FUNCS或应用以下修补程序:
diff --git a/lib/ext2fs/bitops.h b/lib/ext2fs/bitops.h
index 32111ba..375d140 100644
--- a/lib/ext2fs/bitops.h
+++ b/lib/ext2fs/bitops.h
@@ -118,6 +118,8 @@ extern int ext2fs_test_block_bitmap_range(ext2fs_block_bitmap bitmap,
extern __u32 ext2fs_get_generic_bitmap_start(ext2fs_generic_bitmap bitmap);
extern __u32 ext2fs_get_generic_bitmap_end(ext2fs_generic_bitmap bitmap);
+#define NO_INLINE_FUNCS
+
/*
* The inline routines themselves...
*
@@ -145,6 +147,7 @@ extern __u32 ext2fs_get_generic_bitmap_end(ext2fs_generic_bitmap bitmap);
#endif
#endif
+
/*
* Fast bit set/clear functions that doesn't need to return the
* previous bit value.https://askubuntu.com/questions/711714
复制相似问题