Help building Dirty Unicorns [solved] - Miscellaneous Android Development

I'm trying to build Dirty Unicorns custom rom for the gtaxlwifi. When I do a brunch gtaxlwifi I get the following error.
mkdir: cannot create directory '/out': Permission denied
Click to expand...
Click to collapse
Am I mistaken in thinking it should be creating the directory "out" and not "/out". The permissions for the build directory are set to 755 so there shouldn't be an issue. Not sure how to fix this.
Here is a full dump:
Code:
brunch gtaxlwifi
including vendor/du/vendorsetup.sh
File "<string>", line 1
import os,sys; print os.path.realpath(sys.argv[1])
^
SyntaxError: invalid syntax
mkdir: cannot create directory '/out': Permission denied
File "build/tools/roomservice.py", line 39
print "Device %s not found. Attempting to retrieve device repository from DU Github (http://github.com/DirtyUnicorns)." % device
^
SyntaxError: invalid syntax
File "<string>", line 1
import os,sys; print os.path.realpath(sys.argv[1])
^
SyntaxError: invalid syntax
mkdir: cannot create directory '/out': Permission denied
mkdir: cannot create directory '/out': Permission denied
============================================
DU_VERSION=du_gtaxlwifi-v11.7.2-20180625-0153-UNOFFICIAL
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a53
BUILD_ID=NZH54D
OUT_DIR=/out
============================================
File "<string>", line 1
import os,sys; print os.path.realpath(sys.argv[1])
^
SyntaxError: invalid syntax
mkdir: cannot create directory '/out': Permission denied
============================================
DU_VERSION=du_gtaxlwifi-v11.7.2-20180625-0153-UNOFFICIAL
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a53
BUILD_ID=NZH54D
OUT_DIR=/out
============================================
mkdir: cannot create directory '/out': Permission denied
Using '/usr/bin/ninja' binary on 'linux-x86'
mkdir: cannot create directory '/out': Permission denied
mkdir: cannot create directory '/out': Permission denied
mkdir: cannot create directory '/out'make: *** [build/kati/Makefile.ckati:89: /out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/affinity.o] Error 1
: Permission denied
make: *** Waiting for unfinished jobs....
make: *** [build/kati/Makefile.ckati:89: /out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/command.o] Error 1
make: *** [build/kati/Makefile.ckati:89: /out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/dep.o] Error 1
mkdir: cannot create directory '/out': Permission denied
make: *** [build/kati/Makefile.ckati:89: /out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/eval.o] Error 1
mkdir: cannot create directory '/out': Permission denied
make: *** [build/kati/Makefile.ckati:89: /out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/exec.o] Error 1
mkdir: cannot create directory '/out': Permission denied
make: *** [build/kati/Makefile.ckati:89: /out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/expr.o] Error 1
#### make failed to build some targets ####
Thanks for any help given.

srgrusso said:
I'm trying to build Dirty Unicorns custom rom for the gtaxlwifi. When I do a brunch gtaxlwifi I get the following error.
Am I mistaken in thinking it should be creating the directory "out" and not "/out". The permissions for the build directory are set to 755 so there shouldn't be an issue. Not sure how to fix this.
Here is a full dump:
Code:
brunch gtaxlwifi
including vendor/du/vendorsetup.sh
File "<string>", line 1
import os,sys; print os.path.realpath(sys.argv[1])
^
SyntaxError: invalid syntax
mkdir: cannot create directory '/out': Permission denied
File "build/tools/roomservice.py", line 39
print "Device %s not found. Attempting to retrieve device repository from DU Github (http://github.com/DirtyUnicorns)." % device
^
SyntaxError: invalid syntax
File "<string>", line 1
import os,sys; print os.path.realpath(sys.argv[1])
^
SyntaxError: invalid syntax
mkdir: cannot create directory '/out': Permission denied
mkdir: cannot create directory '/out': Permission denied
============================================
DU_VERSION=du_gtaxlwifi-v11.7.2-20180625-0153-UNOFFICIAL
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a53
BUILD_ID=NZH54D
OUT_DIR=/out
============================================
File "<string>", line 1
import os,sys; print os.path.realpath(sys.argv[1])
^
SyntaxError: invalid syntax
mkdir: cannot create directory '/out': Permission denied
============================================
DU_VERSION=du_gtaxlwifi-v11.7.2-20180625-0153-UNOFFICIAL
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a53
BUILD_ID=NZH54D
OUT_DIR=/out
============================================
mkdir: cannot create directory '/out': Permission denied
Using '/usr/bin/ninja' binary on 'linux-x86'
mkdir: cannot create directory '/out': Permission denied
mkdir: cannot create directory '/out': Permission denied
mkdir: cannot create directory '/out'make: *** [build/kati/Makefile.ckati:89: /out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/affinity.o] Error 1
: Permission denied
make: *** Waiting for unfinished jobs....
make: *** [build/kati/Makefile.ckati:89: /out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/command.o] Error 1
make: *** [build/kati/Makefile.ckati:89: /out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/dep.o] Error 1
mkdir: cannot create directory '/out': Permission denied
make: *** [build/kati/Makefile.ckati:89: /out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/eval.o] Error 1
mkdir: cannot create directory '/out': Permission denied
make: *** [build/kati/Makefile.ckati:89: /out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/exec.o] Error 1
mkdir: cannot create directory '/out': Permission denied
make: *** [build/kati/Makefile.ckati:89: /out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/expr.o] Error 1
#### make failed to build some targets ####
Thanks for any help given.
Click to expand...
Click to collapse
It's not the correct forum for this question but anyway you can use sudo before commands or run build commands into a root terminal

messi2050 said:
It's not the correct forum for this question but anyway you can use sudo before commands or run build commands into a root terminal
Click to expand...
Click to collapse
Thanks for your response, but can you please point me to the correct forum. Also looking at it a little more it doesn't seem to be a permission problem. It looks like it's not sourcing the out directory correctly.
It should be
Code:
OUT_DIR=/mnt/UserData/Projects/Android-Source/DU-n7x/out
Not
Code:
OUT_DIR=/out
Thanks

srgrusso said:
Thanks for your response, but can you please point me to the correct forum. Also looking at it a little more it doesn't seem to be a permission problem. It looks like it's not sourcing the out directory correctly.
It should be
Code:
OUT_DIR=/mnt/UserData/Projects/Android-Source/DU-n7x/out
Not
Code:
OUT_DIR=/out
Thanks
Click to expand...
Click to collapse
Here is the correct forum
https://forum.xda-developers.com/android/help?nocache=1&z=1119390680732286
No it's a permission problem, yw

I feel stupid. I was using python 3 not python 2 which caused build/tools/roomservice.py to error out and not find the source directory.

Related

Compiling ROM/Kernel, Mission Failed, help please

I am trying to build from source BlissStalk to Galaxy Tab S T700.
after about 30 minutes, whenever the kernel is building it spits out errors as follows:
ls: cannot access drivers/gud//MobiCoreDriver/platforms: No such file or directory
CC drivers/gud/MobiCoreDriver/logging.o
In file included from <command-line>:0:0:
/home/mtp/Development/Porting/kernel/samsung/exynos5420/include/linux/kconfig.h:46:1: fatal error: drivers/gud//build_tag.h: No such file or directory
compilation terminated.
make[4]: *** [drivers/gud/MobiCoreDriver/logging.o] Error 1
make[3]: *** [drivers/gud] Error 2
make[3]: *** Waiting for unfinished jobs....
....
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/mtp/Development/Porting/kernel/samsung/exynos5420'
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Anybody have any idea where I am going wrong?
jewnersey said:
I am trying to build from source BlissStalk to Galaxy Tab S T700.
after about 30 minutes, whenever the kernel is building it spits out errors as follows:
Anybody have any idea where I am going wrong?
Click to expand...
Click to collapse
Are you solve the problem?
I myself got the same error, if I want to build kernel 3.4.0 for Sony Xperia M2 Aqua (18.6.A.0.175).
ls: cannot access /drivers/gud/MobiCoreDriver/platforms: No such file or directory
LD drivers/gud/built-in.o
CC [M] drivers/gud/MobiCoreDriver/logging.o
drivers/gud/MobiCoreDriver/logging.c:21:18: fatal error: main.h: No such file or directory
#include <main.h>
Click to expand...
Click to collapse
but folder /drivers/gud/MobiCoreDriver/platforms exist and inside is folder MSM8960_SURF_STD and in this folder is file platform.h.
even if I write sudo make clean, it's appear the same error?
sudo make cleanls: cannot access /drivers/gud/MobiCoreDriver/platforms: No such file or directory
/bin/sh: /scripts/gcc-version.sh: No such file or directory
/bin/sh: /scripts/gcc-version.sh: No such file or directory
CLEAN .tmp_versions
Click to expand...
Click to collapse
Does anyone know how to solve this issue?
lp SaX15
Has this been fixed?
I am trying to compile a 3.41 kernel
sudo make clean
ls: cannot access '/drivers/gud/mobicore_driver/platforms': No such file or directory
/bin/bash: /scripts/gcc-version.sh: No such file or directory
/bin/bash: /scripts/gcc-version.sh: No such file or directory
/bin/bash: /scripts/gcc-version.sh: No such file or directory
/bin/bash: /scripts/gcc-version.sh: No such file or directory
/bin/bash: /scripts/gcc-version.sh: No such file or directory
/bin/bash: /scripts/gcc-version.sh: No such file or directory
sudo make flo_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2500:
scripts/kconfig/confdata.c: In function ‘conf_write’:
scripts/kconfig/confdata.c:705:19: warning: ‘%s’ directive writing likely 7 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
705 | sprintf(newname, "%s%s", dirname, basename);
| ^~~~~~
scripts/kconfig/confdata.c:705:19: note: assuming directive output of 7 bytes
scripts/kconfig/confdata.c:705:2: note: ‘sprintf’ output 1 or more bytes (assuming 4104) into a destination of size 4097 705 | sprintf(newname, "%s%s", dirname, basename);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/kconfig/confdata.c:708:20: warning: ‘.tmpconfig.’ directive writing 11 bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
708 | sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
| ^~~~~~~~~~~~~~~~~
scripts/kconfig/confdata.c:708:3: note: ‘sprintf’ output between 13 and 4119 bytes into a destination of size 4097
708 | sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HOSTLD scripts/kconfig/conf
***
*** Can't find default configuration "arch/x86/configs/flo_defconfig"!
***
make[1]: *** [/home/jseitz/android/unlegacy/android_kernel_qcom_msm8960/scripts/kconfig/Makefile:96: flo_defconfig] Error 1
make: *** [Makefile:497: flo_defconfig] Error 2
Click to expand...
Click to collapse

[Q] Galaxy s5 Kali Linux fail -- Help --

Hey sorry for my bad englisch ......
I rooted my galaxy s5 and installed busy box ... now i downloaded Linux Deploy and try to install kali linux ... failed ......
Here code:
[15:25:37] Updating configuration file ... done
[15:25:38] >>> begin: install
[15:25:38] Checking mount points ... /data/data/ru.meefik.linuxdeploy/linux/bin/linuxdeploy: line 1575: grep: Permission denied
[15:25:38] /data/data/ru.meefik.linuxdeploy/linux/bin/linuxdeploy: line 1575: cat: Permission denied
[15:25:38] done
[15:25:38] Checking installation path ... done
[15:25:38] /data/data/ru.meefik.linuxdeploy/linux/bin/linuxdeploy: line 1575: dirname: Permission denied
[15:25:38] /data/data/ru.meefik.linuxdeploy/linux/bin/linuxdeploy: line 1575: stat: Permission denied
[15:25:38] /data/data/ru.meefik.linuxdeploy/linux/bin/linuxdeploy: line 1575: stat: Permission denied
[15:25:38] Making new disk image (512 MB) ... /data/data/ru.meefik.linuxdeploy/linux/bin/linuxdeploy: let: line 1575: arithmetic syntax error
[15:25:38] /data/data/ru.meefik.linuxdeploy/linux/bin/linuxdeploy: let: line 1575: arithmetic syntax error
[15:25:38] /data/data/ru.meefik.linuxdeploy/linux/bin/linuxdeploy: line 1575: dd: Permission denied
[15:25:38] fail
[15:25:38] <<< end: install
[15:25:38] /data/data/ru.meefik.linuxdeploy/linux/bin/linuxdeploy: line 1575: dd: Permission denied
Can someone help me?
You can't with selinux on enforce, flash a permissive selinux kernel and try again

error compiling cm12

hello
this is my first time compiling cm
i did everything but i have this error
Code:
\============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.0.1
CM_VERSION=12-20141212-UNOFFICIAL-kyleopen
TARGET_PRODUCT=cm_kyleopen
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-40-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LRX22C
OUT_DIR=/home/basel/Desktop/CM12/out
============================================
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
"ebtables is disabled on this build"
find: `phone/java': No such file or directory
find: `phone/java': No such file or directory
find: `dummy': No such file or directory
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
No private recovery resources for TARGET_DEVICE kyleopen
build/core/tasks/kernel.mk:63: ***************************************************************
build/core/tasks/kernel.mk:64: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:65: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:66: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:67: * source repository to kernel/samsung/kyleopen
build/core/tasks/kernel.mk:68: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
build/core/tasks/kernel.mk:69: * for more information *
build/core/tasks/kernel.mk:70: ***************************************************************
build/core/tasks/kernel.mk:192: warning: overriding commands for target `/home/basel/Desktop/CM12/out/target/product/kyleopen/kernel'
build/core/Makefile:46: warning: ignoring old commands for target `/home/basel/Desktop/CM12/out/target/product/kyleopen/kernel'
Target boot image: /home/basel/Desktop/CM12/out/target/product/kyleopen/boot.img
usage: mkbootimg
--kernel <filename>
--ramdisk <filename>
[ --second <2ndbootloader-filename> ]
[ --cmdline <kernel-commandline> ]
[ --board <boardname> ]
[ --base <address> ]
[ --pagesize <pagesize> ]
[ --dt <filename> ]
-o|--output <filename>
make: *** [/home/basel/Desktop/CM12/out/target/product/kyleopen/boot.img] Error 1
#### make failed to build some targets (02:47 (mm:ss)) ####
using my kernel

Several .o files not found during build process while compiling a kernel for my SAMSUNG GALAXY J7 (SM-J700F)

I am trying to build a kernel for SM-J700F from the source at https://opensource.samsung.com/.
I got a toolchain from android-ndk that is with the help of following command:
Bash:
$NDK/build/tools/make_standalone_toolchain.py \
--arch arm64 --api 21 --install-dir /tmp/my-android-toolchain
and has put the toolchains where the Makefile searches for it.
Now at kernel source root directory I did the following:
Bash:
make ARCH=arm64 j7elte_00_defconfig
OUTPUT:
Bash:
[[email protected] kernel]$ make ARCH=arm64 j7elte_00_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2503:
scripts/kconfig/menu.c: In function ‘get_symbol_str’:
scripts/kconfig/menu.c:567:18: warning: ‘jump’ may be used uninitialized in this function [-Wmaybe-uninitialized]
567 | jump->offset = r->len - 1;
| ~~~~~~~~~~~~~^~~~~~~~~~~~
scripts/kconfig/menu.c:528:19: note: ‘jump’ was declared here
528 | struct jump_key *jump;
| ^~~~
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
After that I did the following:
Bash:
make ARCH=arm64 -j64 -no-integreted-as
OUTPUT
Bash:
...
set -e; echo ' LINK vmlinux'; /bin/sh scripts/link-vmlinux.sh ../PLATFORM/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-ld -EL -p --no-undefined -X --build-id; echo 'cmd_vmlinux := /bin/sh scripts/link-vmlinux.sh ../PLATFORM/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-ld -EL -p --no-undefined -X --build-id' > ./.vmlinux.cmd
LINK vmlinux
LD vmlinux.o
aarch64-linux-android-ld: error: cannot open arch/arm64/kernel/head.o: No such file or directory
aarch64-linux-android-ld: error: cannot open init/built-in.o: No such file or directory
aarch64-linux-android-ld: error: cannot open usr/built-in.o: No such file or directory
aarch64-linux-android-ld: error: cannot open arch/arm64/kernel/built-in.o: No such file or directory
aarch64-linux-android-ld: error: cannot open arch/arm64/mm/built-in.o: No such file or directory
aarch64-linux-android-ld: error: cannot open arch/arm64/crypto/built-in.o: No such file or directory
aarch64-linux-android-ld: error: cannot open arch/arm64/mach-exynos/built-in.o: No such file or directory
aarch64-linux-android-ld: error: cannot open arch/arm64/plat-samsung/built-in.o: No such file or directory
aarch64-linux-android-ld: error: cannot open kernel/built-in.o: No such file or directory
aarch64-linux-android-ld: error: cannot open mm/built-in.o: No such file or directory
aarch64-linux-android-ld: error: cannot open fs/built-in.o: No such file or directory
aarch64-linux-android-ld: error: cannot open ipc/built-in.o: No such file or directory
aarch64-linux-android-ld: error: cannot open security/built-in.o: No such file or directory
aarch64-linux-android-ld: error: cannot open crypto/built-in.o: No such file or directory
aarch64-linux-android-ld: error: cannot open block/built-in.o: No such file or directory
aarch64-linux-android-ld: error: cannot open arch/arm64/lib/lib.a: No such file or directory
aarch64-linux-android-ld: error: cannot open lib/lib.a: No such file or directory
aarch64-linux-android-ld: error: cannot open arch/arm64/lib/built-in.o: No such file or directory
aarch64-linux-android-ld: error: cannot open lib/built-in.o: No such file or directory
aarch64-linux-android-ld: error: cannot open drivers/built-in.o: No such file or directory
aarch64-linux-android-ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
make: *** [Makefile:805: vmlinux] Error 1
I can see some of the source file like head.S but head.o is not there. I assume missing .o file should be build before it is required. I tried to figure out whats wrong but had no luck.
Please shed some light.
@Eliminator79
@Albe96
@LahKeda
@The flash
@MZO
@krasCGQ
@flar2
@jazba

Droidcam not working on arm64 debian linux

Every thing was right but when i tried to install video of droidcam in my debian linux then i got this error
[email protected]:/tmp/droidcam# ./install-video
Webcam parameters: '640' and '480'
libkmod: ERROR ../libkmod/libkmod-module.c:1668 kmod_module_new_from_loaded: could not open /proc/modules: Permission denied
Error: could not get list of modules: Permission denied
Building v4l2loopback-dc.ko
make: Entering directory '/tmp/droidcam/v4l2loopback'
make -C /lib/modules/3.18.71-perf-g7215046/build M=/tmp/droidcam/v4l2loopback modules
make[1]: Entering directory '/tmp/droidcam/v4l2loopback'
make[1]: *** /lib/modules/3.18.71-perf-g7215046/build: No such file or directory. Stop.
make[1]: Leaving directory '/tmp/droidcam/v4l2loopback'
make: *** [Makefile:8: all] Error 2
make: Leaving directory '/tmp/droidcam/v4l2loopback'
[email protected]:/tmp/droidcam#
can anyone help me to fix this out????

Categories

Resources