首页
社区
课程
招聘
【已解决】小米note2编译lineageos17.1 HOSTCC scripts/basic/fixdep error
发表于: 2021-2-7 18:29 8487

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

2021-2-7 18:29
8487

编译成功
图片描述
编译机型:小米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) ####

[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)

最后于 2021-2-9 10:00 被neilwu编辑 ,原因: 问题已解决
收藏
免费 0
支持
分享
最新回复 (8)
雪    币: 2
活跃值: (430)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2

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

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