首页
论坛
课程
招聘
【已解决】小米note2编译lineageos17.1 HOSTCC scripts/basic/fixdep error
2021-2-7 18:29 2176

【已解决】小米note2编译lineageos17.1 HOSTCC scripts/basic/fixdep error

2021-2-7 18:29
2176

编译成功
图片描述
编译机型:小米note2 scorpio
编译源码请参考如下:
1、ubuntu18.04.4 升级 ubuntu18.04.5
2、源码编译参考 https://wiki.lineageos.org/devices/scorpio/build
3、对应手机驱动提取
https://wiki.lineageos.org/extracting_blobs_from_zips.html

 

问题如下:
lineageos 17.1 编译遇到问题 “HOSTCC scripts/basic/fixdep x86_64-linux-gcc: internal compiler error: Segmentation fault ”

 

有么有大佬遇到同样的问题 求指教

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FAILED: out/target/product/sailfish/obj/KERNEL_OBJ/.config
/bin/bash -c "(PATH=/home/neil/android/lineage/out/host/linux-x86/bin:\$PATH PATH=/home/neil/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/home/neil/android/lineage/prebuilts/tools-lineage/linux-x86/bin:\$PATH LD_LIBRARY_PATH=/home/neil/android/lineage/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/neil/android/lineage/prebuilts/tools-lineage/common/perl-base BISON_PKGDATADIR=/home/neil/android/lineage/prebuilts/build-tools/common/bison /home/neil/android/lineage/prebuilts/build-tools/linux-x86/bin/make  -j4 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTCFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64\" HOSTCC=/home/neil/android/lineage/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-gcc HOSTCXX=/home/neil/android/lineage/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-g++ LEX=/home/neil/android/lineage/prebuilts/build-tools/linux-x86/bin/flex YACC=/home/neil/android/lineage/prebuilts/build-tools/linux-x86/bin/bison -C kernel/google/marlin O=/home/neil/android/lineage/out/target/product/sailfish/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/bin/ccache /home/neil/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/home/neil/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\"    VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= lineageos_marlin_defconfig ) && (if [ ! -z \"\" ]; then             echo \"Overriding kernel config with ''\";             echo  >> out/target/product/sailfish/obj/KERNEL_OBJ/.config;             PATH=/home/neil/android/lineage/out/host/linux-x86/bin:\$PATH PATH=/home/neil/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/home/neil/android/lineage/prebuilts/tools-lineage/linux-x86/bin:\$PATH LD_LIBRARY_PATH=/home/neil/android/lineage/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/neil/android/lineage/prebuilts/tools-lineage/common/perl-base BISON_PKGDATADIR=/home/neil/android/lineage/prebuilts/build-tools/common/bison /home/neil/android/lineage/prebuilts/build-tools/linux-x86/bin/make  -j4 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTCFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64\" HOSTCC=/home/neil/android/lineage/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-gcc HOSTCXX=/home/neil/android/lineage/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-g++ LEX=/home/neil/android/lineage/prebuilts/build-tools/linux-x86/bin/flex YACC=/home/neil/android/lineage/prebuilts/build-tools/linux-x86/bin/bison -C kernel/google/marlin O=/home/neil/android/lineage/out/target/product/sailfish/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/bin/ccache /home/neil/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/home/neil/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\"    oldconfig;         fi ) && (PATH=/home/neil/android/lineage/out/host/linux-x86/bin:\$PATH PATH=/home/neil/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/home/neil/android/lineage/prebuilts/tools-lineage/linux-x86/bin:\$PATH LD_LIBRARY_PATH=/home/neil/android/lineage/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/neil/android/lineage/prebuilts/tools-lineage/common/perl-base BISON_PKGDATADIR=/home/neil/android/lineage/prebuilts/build-tools/common/bison /home/neil/android/lineage/prebuilts/build-tools/linux-x86/bin/make  -j4 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTCFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64\" HOSTCC=/home/neil/android/lineage/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-gcc HOSTCXX=/home/neil/android/lineage/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-g++ LEX=/home/neil/android/lineage/prebuilts/build-tools/linux-x86/bin/flex YACC=/home/neil/android/lineage/prebuilts/build-tools/linux-x86/bin/bison -C kernel/google/marlin O=/home/neil/android/lineage/out/target/product/sailfish/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/bin/ccache /home/neil/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/home/neil/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\"    savedefconfig ) && (if [ ! -z \"\" ]; then             echo \"Using additional config ''\";             kernel/google/marlin/scripts/kconfig/merge_config.sh -m -O out/target/product/sailfish/obj/KERNEL_OBJ out/target/product/sailfish/obj/KERNEL_OBJ/.config kernel/google/marlin/arch/arm64/configs/;             PATH=/home/neil/android/lineage/out/host/linux-x86/bin:\$PATH PATH=/home/neil/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/home/neil/android/lineage/prebuilts/tools-lineage/linux-x86/bin:\$PATH LD_LIBRARY_PATH=/home/neil/android/lineage/prebuilts/tools-lineage/linux-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/home/neil/android/lineage/prebuilts/tools-lineage/common/perl-base BISON_PKGDATADIR=/home/neil/android/lineage/prebuilts/build-tools/common/bison /home/neil/android/lineage/prebuilts/build-tools/linux-x86/bin/make  -j4 CFLAGS_MODULE=\"-fno-pic\" CPATH=\"/usr/include:/usr/include/x86_64-linux-gnu\" HOSTCFLAGS=\"-L/usr/lib/x86_64-linux-gnu -L/usr/lib64\" HOSTCC=/home/neil/android/lineage/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-gcc HOSTCXX=/home/neil/android/lineage/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-g++ LEX=/home/neil/android/lineage/prebuilts/build-tools/linux-x86/bin/flex YACC=/home/neil/android/lineage/prebuilts/build-tools/linux-x86/bin/bison -C kernel/google/marlin O=/home/neil/android/lineage/out/target/product/sailfish/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/bin/ccache /home/neil/android/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/home/neil/android/lineage/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\"    KCONFIG_ALLCONFIG=out/target/product/sailfish/obj/KERNEL_OBJ/.config alldefconfig;         fi )"
make: Entering directory '/home/neil/android/lineage/kernel/google/marlin'
make[1]: Entering directory '/home/neil/android/lineage/out/target/product/sailfish/obj/KERNEL_OBJ'
  HOSTCC  scripts/basic/fixdep
  GEN     ./Makefile
x86_64-linux-gcc: internal compiler error: Segmentation fault (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [scripts/Makefile.host:91: scripts/basic/fixdep] Error 4
make[1]: *** [/home/neil/android/lineage/kernel/google/marlin/Makefile:450: scripts_basic] Error 2
make[1]: Leaving directory '/home/neil/android/lineage/out/target/product/sailfish/obj/KERNEL_OBJ'
make: *** [Makefile:145: sub-make] Error 2
make: Leaving directory '/home/neil/android/lineage/kernel/google/marlin'
10:26:08 ninja failed with: exit status 1
 
#### failed to build some targets (4 seconds) ####

第五届安全开发者峰会(SDC 2021)10月23日上海召开!限时2.5折门票(含自助午餐1份)

最后于 2021-2-9 10:00 被neilwu编辑 ,原因: 问题已解决
收藏
点赞0
打赏
分享
最新回复 (7)
雪    币: 2
活跃值: 活跃值 (135)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
alikai 活跃值 2021-2-8 09:51
2
0

换个编译器试试,使用lineage提供的编译器.

最后于 2021-2-8 09:53 被alikai编辑 ,原因:
雪    币: 8476
活跃值: 活跃值 (3468)
能力值: ( LV9,RANK:163 )
在线值:
发帖
回帖
粉丝
neilwu 活跃值 1 2021-2-8 10:04
3
0
alikai 换个编译器试试,使用lineage提供的编译器.
怎么换 能具体点嘛
雪    币: 8476
活跃值: 活跃值 (3468)
能力值: ( LV9,RANK:163 )
在线值:
发帖
回帖
粉丝
neilwu 活跃值 1 2021-2-8 10:27
4
0
alikai 换个编译器试试,使用lineage提供的编译器.
gcc版本我从7.5->4.4 还是不行 你说的使用lineage提供的编译器是怎么搞 请教啦
雪    币: 303
活跃值: 活跃值 (115)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
胖子不胖 活跃值 2021-2-11 05:14
5
0
楼主,能不能把解决方法告知。谢谢
雪    币: 8476
活跃值: 活跃值 (3468)
能力值: ( LV9,RANK:163 )
在线值:
发帖
回帖
粉丝
neilwu 活跃值 1 2021-2-11 11:52
6
0
胖子不胖 楼主,能不能把解决方法告知。谢谢
ubuntu18.04.4 升级 ubuntu18.04.5
雪    币: 187
活跃值: 活跃值 (2008)
能力值: ( LV6,RANK:90 )
在线值:
发帖
回帖
粉丝
蟑螂一号 活跃值 1 2021-2-12 09:00
7
0
neilwu ubuntu18.04.4 升级 ubuntu18.04.5
直接用ubuntu 20的版本 估计不会遇到这些问题,我20的一次到位
雪    币: 8476
活跃值: 活跃值 (3468)
能力值: ( LV9,RANK:163 )
在线值:
发帖
回帖
粉丝
neilwu 活跃值 1 2021-2-12 20:28
8
0
蟑螂一号 直接用ubuntu 20的版本 估计不会遇到这些问题,我20的一次到位
确实 被版本耽误了
游客
登录 | 注册 方可回帖
返回