i've downloaded the toolchain linaro and extracted in
home/username/android/toolchain/linaro
the suorce on:
home/username/android/maguro
did this command
Code:
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=/home/antonio/android/toolchains/linaro/bin/arm-eabi-
make tuna_defconfig
but have this error:
Code:
HOSTCC scripts/basic/fixdep
/bin/sh: 1: ccache: not found
make[1]: *** [scripts/basic/fixdep] Errore 127
make: *** [scripts_basic] Errore 2
how can i resolve???
apt-get install ccache
looks like you didn't have that command. install it
gbcbooks said:
apt-get install ccache
looks like you didn't have that command. install it
Click to expand...
Click to collapse
thanks it worked
this can be closed
Closed on OP's request.
Hi,
I have a problem building the Android FS on OSX 10.8.5,
I made a case-sensitive FS, and brewed the required packages from the different tutorials,
The problem is more OS related:
Code:
Code:
target arm C++: libwebrtc_apm <= out/target/product/generic/obj/STATIC_LIBRARIES/libwebrtc_apm_intermediates/proto/external/webrtc/src/modules/audio_processing/test/unittest.pb.cc
Symlink: out/target/product/generic/system/vendor/lib/libbltsville_cpu.so -> ./libbltsville_ticpu.so
Symlink: out/target/product/generic/system/vendor/lib/libbltsville_ticpu.so -> ./libbltsville_ticpu.2.1.0.0.so
Install: out/host/darwin-x86/bin/minigzip
cp: the -R and -r options may not be specified together.
make: *** [out/target/product/generic/system/vendor/lib/libbltsville_ticpu.so] Error 1
make: *** Deleting file `out/target/product/generic/system/vendor/lib/libbltsville_ticpu.so'
make: *** Waiting for unfinished jobs....
Any ideas for the reason? and how to solve it?
Thanks,
K
Hey guys! I have a Motorola xt1064 and I would love to try Ubuntu touch, is there a port for it or could someone port for me? xD thanks in advance!
Sent from my XT1064 using XDA Free mobile app
EDIT: WRONG DEVICE!
Me too! Right now I'm actually trying to port it now using the official porting guide, However I am having some trouble When I run
Code:
make -j4
I get the error:
Code:
make: *** No rule to make target '/home/peter/phablet2/out/target/product/surnia/obj/STATIC_LIBRARIES/libmake_f2fs_intermediates/export_includes', needed by '/home/peter/phablet2/out/target/product/surnia/obj/EXECUTABLES/recovery_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
hello_there_everyone said:
EDIT: WRONG DEVICE! WHERE'S THE DELETE BUTTON!
Me too! Right now I'm actually trying to port it now using the official porting guide, However I am having some trouble When I run
Code:
make -j4
I get the error:
Code:
make: *** No rule to make target '/home/peter/phablet2/out/target/product/surnia/obj/STATIC_LIBRARIES/libmake_f2fs_intermediates/export_includes', needed by '/home/peter/phablet2/out/target/product/surnia/obj/EXECUTABLES/recovery_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
I have got this problem while trying to build Cm13, and I know how to solve it.
I will help you to solve this problem, but can you build for xt1521?
nguyenquangduc2000 said:
I have got this problem while trying to build Cm13, and I know how to solve it.
I will help you to solve this problem, but can you build for xt1521?
Click to expand...
Click to collapse
Yes I can help with building the xt1521, the builds are basically the same as the normal Moto e 2nd gen! Anyway, if you can help me with this problem I will be most pleased and then I can share my build on Github.
First you need download cyanogenmod tree, device specific code and extract proprietary blobs from your device . (You can follow this instruction https://wiki.cyanogenmod.org/w/Build_for_surnia ). After that, copy device, hardware and vendor folder from ~/android/system to ~/phablet
Then the most important thing is downloading vendor of motorola:
Code:
cd
sudo apt-get install svn
svn export [url]https://github.com/TheMuppets/proprietary_vendor_motorola/trunk/msm8916-common[/url]
svn export [url]https://github.com/TheMuppets/proprietary_vendor_motorola/trunk/surnia[/url]
You will see 2 folder named msm8916 and surnia in Home folder. Copy both 2 folder to phablet/vendor. It is enough for building. Goodluck
nguyenquangduc2000 said:
First you need download cyanogenmod tree, device specific code and extract proprietary blobs from your device . (You can follow this instruction
Code:
https://wiki.cyanogenmod.org/w/Build_for_surnia
). After that, copy device, hardware and vendor folder from ~/android/system to ~/phablet
Then the most important thing is downloading vendor of motorola:
Code:
cd
sudo apt-get install svn
svn export [https://github.com/TheMuppets/proprietary_vendor_motorola/trunk/msm8916-common
svn export https://github.com/TheMuppets/proprietary_vendor_motorola/trunk/surnia
You will see 2 folder named msm8916 and surnia in Home folder. Copy both 2 folder to phablet/vendor. It is enough for building. Goodluck
Click to expand...
Click to collapse
Hmm... After following your steps I now get a error when running
Code:
make recoveryimage
(As I forgot to do that before):
Code:
/home/peter/phablet2/kernel/motorola/msm8916/kernel/sched/core.c: In function 'cpu_cgroup_allow_attach':
/home/peter/phablet2/kernel/motorola/msm8916/kernel/sched/core.c:9713:18: error: invalid operands to binary != (have 'kuid_t' and 'kuid_t')
/home/peter/phablet2/kernel/motorola/msm8916/kernel/sched/core.c:9713:46: error: invalid operands to binary != (have 'kuid_t' and 'kuid_t')
/home/peter/phablet2/kernel/motorola/msm8916/scripts/Makefile.build:308: recipe for target 'kernel/sched/core.o' failed
Here is some info that may help:
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=full_surnia
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-21-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/peter/phablet2/out
============================================
Thanks in advance for your help!
Make sure you have do
Code:
./extract-files.sh
And recheck your kernel folder. Go to ~/Android/system rerun
Code:
repo sync
source build/envsetup.sh
breakfast surnia
And copy kernel folder again
Have you done building system.img ?
nguyenquangduc2000 said:
Have you done building system.img ?
Click to expand...
Click to collapse
nguyenquangduc2000 said:
Make sure you have do
Code:
./extract-files.sh
And recheck your kernel folder. Go to ~/Android/system rerun
Code:
repo sync
source build/envsetup.sh
breakfast surnia
And copy kernel folder again
Click to expand...
Click to collapse
Unfortunately, after following your steps I still get the same error, however it could be because it was saying when extracting files
Code:
Remote object /system/[file name here] Doesn't exist
I will try again...
hello_there_everyone said:
Unfortunately, after following your steps I still get the same error, however it could be because it was saying when extracting files
Code:
Remote object /system/[file name here] Doesn't exist
I will try again...
Click to expand...
Click to collapse
I think @squid2 can help you !
Hmm... After downloading the kernel again it took 2 hours then produced this error
Code:
ake[1]: Leaving directory '/home/peter/phablet2/kernel/motorola/msm8916'
make -C kernel/motorola/msm8916 O=/home/peter/phablet2/out/target/product/surnia/obj/KERNEL_OBJ INSTALL_MOD_PATH=../../system ARCH=arm CROSS_COMPILE="/home/peter/phablet2/prebuilts/misc/linux-x86/ccache/ccache /home/peter/phablet2/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" modules_install
make[1]: Entering directory '/home/peter/phablet2/kernel/motorola/msm8916'
INSTALL drivers/staging/prima/wlan.ko
DEPMOD 3.10.49
make[1]: Leaving directory '/home/peter/phablet2/kernel/motorola/msm8916'
mdpath=`find /home/peter/phablet2/out/target/product/surnia/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; ko=`find $mpath/kernel -type f -name *.ko`; for i in $ko; do /home/peter/phablet2/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-strip --strip-unneeded $i; mv $i /home/peter/phablet2/out/target/product/surnia/system/lib/modules/; done; fi
mdpath=`find /home/peter/phablet2/out/target/product/surnia/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi
mdpath=`find /home/peter/phablet2/out/target/product/surnia/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; ko=`find $mpath/kernel -type f -name *.ko`; for i in $ko; do /home/peter/phablet2/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-strip --strip-unneeded $i; mv $i /home/peter/phablet2/out/target/product/surnia/system/lib/modules/; done; fi
mdpath=`find /home/peter/phablet2/out/target/product/surnia/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi
target Prebuilt: (/home/peter/phablet2/out/target/product/surnia/kernel)
Target dt image: /home/peter/phablet2/out/target/product/surnia/dt.img
DTB combiner:
/home/peter/phablet2/out/host/linux-x86/bin/dtbTool: invalid option -- '2'
dtbTool [options] -o <output file> <input DTB path>
options:
--output-file/-o output file
--dtc-path/-p path to dtc
--page-size/-s page size in bytes
--verbose/-v verbose
--help/-h this help screen
device/motorola/surnia/mkbootimg.mk:9: recipe for target '/home/peter/phablet2/out/target/product/surnia/dt.img' failed
make: *** [/home/peter/phablet2/out/target/product/surnia/dt.img] Error 255
I feel like I'm close!
I think you can create dt.img independent with building Ubuntu. You can use
Code:
make dt.img
to build dt.img and then copy it to /home/peter/phablet2/out/target/product/surnia/
nguyenquangduc2000 said:
I think you can create dt.img independent with building Ubuntu. You can use
Code:
make dt.img
to build dt.img and then copy it to /home/peter/phablet2/out/target/product/surnia/
Click to expand...
Click to collapse
After running that code I now get this error:
Code:
build/core/base_rules.mk:529: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/system/xbin/wget'
external/busybox/Android.mk:184: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/system/xbin/wget'
build/core/Makefile:32: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/system/etc/wifi/wpa_supplicant.conf'
build/core/Makefile:32: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/system/etc/apns-conf.xml'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/system/etc/apns-conf.xml'
PRODUCT_COPY_FILES device/motorola/surnia/audio/audio_effects.conf:system/etc/audio_effects.conf ignored.
build/core/Makefile:32: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/system/bin/rild'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/system/bin/rild'
build/core/Makefile:32: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/system/lib/libril.so'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/system/lib/libril.so'
No private recovery resources for TARGET_DEVICE surnia
device/motorola/surnia/mkbootimg.mk:16: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/boot.img'
build/core/Makefile:489: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/boot.img'
make: *** No rule to make target 'dt.img'. Stop.
I can feel we're nearly there...
hello_there_everyone said:
After running that code I now get this error:
Code:
build/core/base_rules.mk:529: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/system/xbin/wget'
external/busybox/Android.mk:184: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/system/xbin/wget'
build/core/Makefile:32: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/system/etc/wifi/wpa_supplicant.conf'
build/core/Makefile:32: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/system/etc/apns-conf.xml'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/system/etc/apns-conf.xml'
PRODUCT_COPY_FILES device/motorola/surnia/audio/audio_effects.conf:system/etc/audio_effects.conf ignored.
build/core/Makefile:32: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/system/bin/rild'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/system/bin/rild'
build/core/Makefile:32: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/system/lib/libril.so'
build/core/base_rules.mk:529: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/system/lib/libril.so'
No private recovery resources for TARGET_DEVICE surnia
device/motorola/surnia/mkbootimg.mk:16: warning: overriding recipe for target '/home/peter/phablet2/out/target/product/surnia/boot.img'
build/core/Makefile:489: warning: ignoring old recipe for target '/home/peter/phablet2/out/target/product/surnia/boot.img'
make: *** No rule to make target 'dt.img'. Stop.
I can feel we're nearly there...
Click to expand...
Click to collapse
Yes, we are near! https://drive.google.com/open?id=0B4uHuS2eIEMBZWRQRHljcXN5SGM
I do not know if dt.img of cm13 can work or not. But you can try it.
nguyenquangduc2000 said:
Yes, we are near! https://drive.google.com/open?id=0B4uHuS2eIEMBZWRQRHljcXN5SGM
I do not know if dt.img of cm13 can work or not. But you can try it.
Click to expand...
Click to collapse
Unfortunately it didn't work and I still get the same error...
hello_there_everyone said:
Unfortunately it didn't work and I still get the same error...
Click to expand...
Click to collapse
Uhm... Maybe you miss some thing in device and kernel folder. Rerun
Code:
repo sync
and try again.
Can you upload your source to Github? I will try to fix that problem
@hello_there_everyone
Have you finished building?
So, I am trying to port LineageOS 15.1 to the Galaxy S8, but I keep getting stuck here, receiving some weird errors. I am quite new to this whole world so I have no understanding of the errors. Can someone help me or point me into the direction of fixing this?
Code:
[ 0% 34/88264] Building Kernel Config
FAILED: /home/george_gica14/lineage/out/target/product/dreamlte/obj/KERNEL_OBJ/.config
/bin/bash -c "(make -j8 CFLAGS_MODULE=\"-fno-pic\" -C kernel/samsung/universal8895 O=/home/george_gica14/lineage/out/target/product/dreamlte/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\" aarch64-linux-a
ndroid-\" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= exynos8895-dreamlte_defconfig ) && (if [ ! -z \"\" ]; then echo \"Overriding kernel config with ''\"; echo >>
/home/george_gica14/lineage/out/target/product/dreamlte/obj/KERNEL_OBJ/.config; make -j8 -C kernel/samsung/universal8895 O=/home/george_gica14/lineage/out/target/product/dreaml
te/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\" aarch64-linux-android-\" oldconfig; fi ) && (make -j8 -C kernel/samsung/universal8895 O=/home/george_gica14/lineage/out/target/product/dreamlte/obj/KERN
EL_OBJ ARCH=arm64 CROSS_COMPILE=\" aarch64-linux-android-\" savedefconfig ) && (if [ ! -z \"\" ]; then echo \"Using additional config ''\"; kernel/samsung/u
niversal8895/scripts/kconfig/merge_config.sh -m -O /home/george_gica14/lineage/out/target/product/dreamlte/obj/KERNEL_OBJ /home/george_gica14/lineage/out/target/product/dreamlte/obj/KERNEL_OBJ/.config
kernel/samsung/universal8895/arch/arm64/configs/; make -j8 -C kernel/samsung/universal8895 O=/home/george_gica14/lineage/out/target/product/dreamlte/obj/KERNEL_OBJ ARCH=arm64 CRO
SS_COMPILE=\" aarch64-linux-android-\" KCONFIG_ALLCONFIG=/home/george_gica14/lineage/out/target/product/dreamlte/obj/KERNEL_OBJ/.config alldefconfig; fi )"
make: Entering directory '/home/george_gica14/lineage/kernel/samsung/universal8895'
make[1]: Entering directory '/home/george_gica14/lineage/out/target/product/dreamlte/obj/KERNEL_OBJ'
./scripts/fetch-latest-wireguard.sh: line 5: .wireguard-fetch-lock: Permission denied
./scripts/fetch-latest-wireguard.sh: line 5: .wireguard-fetch-lock: Permission denied
GEN ./Makefile
./scripts/fetch-latest-wireguard.sh: line 5: .wireguard-fetch-lock: Permission denied
Kconfig:15:warning: environment variable ANDROID_MAJOR_VERSION undefined
net/Kconfig:83: can't open file "net/wireguard/Kconfig"
/home/george_gica14/lineage/kernel/samsung/universal8895/scripts/kconfig/Makefile:110: recipe for target 'exynos8895-dreamlte_defconfig' failed
make[2]: *** [exynos8895-dreamlte_defconfig] Error 1
/home/george_gica14/lineage/kernel/samsung/universal8895/Makefile:592: recipe for target 'exynos8895-dreamlte_defconfig' failed
make[1]: *** [exynos8895-dreamlte_defconfig] Error 2
make[1]: Leaving directory '/home/george_gica14/lineage/out/target/product/dreamlte/obj/KERNEL_OBJ'
Makefile:152: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/george_gica14/lineage/kernel/samsung/universal8895'
[ 0% 43/88264] target thumb C++: libv8src_32 <= external/v8/src/asmjs/asm-typer.cc
ninja: build stopped: subcommand failed.
23:09:51 ninja failed with: exit status 1
#### failed to build some targets (01:20 (mm:ss)) ####
[email protected]:~/lineage$
hi guys i want to ask if how am i fix this error
4 warnings generated.
[ 93% 6651/7077] build /home/osboxes/TWRP/out/target/product/CPH1717/obj/ETC/file_contexts.bin_intermediates/file_contexts.local.tmp
FAILED: /home/osboxes/TWRP/out/target/product/CPH1717/obj/ETC/file_contexts.bin_intermediates/file_contexts.local.tmp
/bin/bash -c "m4 -s system/sepolicy/file_contexts /home/osboxes/TWRP/out/target/product/CPH1717/obj/ETC/sectxfile_nl_intermediates/sectxfile_nl > /home/osboxes/TWRP/out/target/product/CPH1717/obj/ETC/file_contexts.bin_intermediates/file_contexts.local.tmp"
/bin/bash: line 1: m4: command not found
[ 93% 6651/7077] target thumb C: libncurses_32 <= external/libncurses/ncurses/tty/tty_update.c
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:158: ninja_wrapper] Error 1
[email protected]:~/TWRP$