I have add the elf.h. Build failed to build the vdso.
CC arch/arm64/kernel/signal.o
In file included from arch/arm64/kernel/signal.c:36:0:
arch/arm64/kernel/signal.c: In function 'setup_return':
./arch/arm64/include/asm/vdso.h:34:11: error: 'vdso_offset_sigtramp' undeclared (first use in this function)
(void *)(vdso_offset_##name - VDSO_LBASE + (unsigned long)(base)); \
^
arch/arm64/kernel/signal.c:245:14: note: in expansion of macro 'VDSO_SYMBOL'
sigtramp = VDSO_SYMBOL(current->mm->context.vdso, sigtramp);
^
./arch/arm64/include/asm/vdso.h:34:11: note: each undeclared identifier is reported only once for each function it appears in
(void *)(vdso_offset_##name - VDSO_LBASE + (unsigned long)(base)); \
^
arch/arm64/kernel/signal.c:245:14: note: in expansion of macro 'VDSO_SYMBOL'
sigtramp = VDSO_SYMBOL(current->mm->context.vdso, sigtramp);
^
make[1]: *** [arch/arm64/kernel/signal.o] Error 1
make: *** [arch/arm64/kernel] Error 2
I have solved the problem.
The vdso_offset_sigtramp is defined in include/generated/vdso-offsets.h
#define vdso_offset_sigtramp 0x04e0
But in my code this line is "#define vdso_offset_sigtrampt0x04e0". What the ****! I don't modify any things. Why this file changed?
Have the same problem and solved
I've got the same error message but the cause is somewhat different. My include/generated/vdso-offsets.h is empty. The reason is that arch/arm64/kernel/vdso/gen_vdso_offsets.h does not have the eXecute permission. This script is very simple, so I guess you were hit by a Mac sh or make bug.
I'm building Z00E (ASUS Zenfone 2 ZE500KL) kernel on Arch Linux x86_64.
clangllvm said:
I have add the elf.h. Build failed to build the vdso.
CC arch/arm64/kernel/signal.o
In file included from arch/arm64/kernel/signal.c:36:0:
arch/arm64/kernel/signal.c: In function 'setup_return':
./arch/arm64/include/asm/vdso.h:34:11: error: 'vdso_offset_sigtramp' undeclared (first use in this function)
(void *)(vdso_offset_##name - VDSO_LBASE + (unsigned long)(base)); \
^
arch/arm64/kernel/signal.c:245:14: note: in expansion of macro 'VDSO_SYMBOL'
sigtramp = VDSO_SYMBOL(current->mm->context.vdso, sigtramp);
^
./arch/arm64/include/asm/vdso.h:34:11: note: each undeclared identifier is reported only once for each function it appears in
(void *)(vdso_offset_##name - VDSO_LBASE + (unsigned long)(base)); \
^
arch/arm64/kernel/signal.c:245:14: note: in expansion of macro 'VDSO_SYMBOL'
sigtramp = VDSO_SYMBOL(current->mm->context.vdso, sigtramp);
^
make[1]: *** [arch/arm64/kernel/signal.o] Error 1
make: *** [arch/arm64/kernel] Error 2
Click to expand...
Click to collapse
Hey i know it's too late but i found out solution we have to change last line of this file : arch/arm64/kernel/vdso/gen_vdso_offsets.sh
to :
<code>
's/^\([0-9a-fA-F]*\) . VDSO_\([a-zA-Z0-9_]*\)$/\#define vdso_offset_\2 0x\1/p'
</code>
actually i replaced "\t" to " "(black space)
tested on sierra :fingers-crossed:
erfanoabdi said:
Hey i know it's too late but i found out solution we have to change last line of this file : arch/arm64/kernel/vdso/gen_vdso_offsets.sh
to :
<code>
's/^\([0-9a-fA-F]*\) . VDSO_\([a-zA-Z0-9_]*\)$/\#define vdso_offset_\2 0x\1/p'
</code>
actually i replaced "\t" to " "(black space)
tested on sierra :fingers-crossed:
Click to expand...
Click to collapse
I know it's late but thx fixed my problem.
Related
Code:
CC arch/arm/mach-msm/board-msm7627a-camera.o
arch/arm/mach-msm/board-msm7627a-camera.c: In function 'evb_camera_gpio_cfg':
arch/arm/mach-msm/board-msm7627a-camera.c:545: error: 'msm_camera_sensor_ov5647_data' undeclared (first use in this function)
arch/arm/mach-msm/board-msm7627a-camera.c:545: error: (Each undeclared identifier is reported only once
arch/arm/mach-msm/board-msm7627a-camera.c:545: error: for each function it appears in.)
arch/arm/mach-msm/board-msm7627a-camera.c:586: error: 'msm_camera_sensor_ov7692_data' undeclared (first use in this function)
arch/arm/mach-msm/board-msm7627a-camera.c: At top level:
arch/arm/mach-msm/board-msm7627a-camera.c:1051: error: 'msm_camera_sensor_ov8825' undeclared here (not in a function)
arch/arm/mach-msm/board-msm7627a-camera.c: In function 'msm7627a_camera_init':
arch/arm/mach-msm/board-msm7627a-camera.c:1195: error: 'ov7692_cam_req_gpio' undeclared (first use in this function)
arch/arm/mach-msm/board-msm7627a-camera.c:1195: error: request for member 'gpio' in something not a structure or union
arch/arm/mach-msm/board-msm7627a-camera.c:1196: warning: statement with no effect
error, forbidden warning: board-msm7627a-camera.c:1196
make[1]: *** [arch/arm/mach-msm/board-msm7627a-camera.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....
Can anyone help ?
check the include files
forumber2 said:
check the include files
Click to expand...
Click to collapse
Can u plz explain it ? I am not able to get u .
Sent from my S100 using Tapatalk HD
Workaround found
I am getting exactly the same error. But I managed a workaround. Use camera.c from ICS kernel.
1. Goto CAF
2. Choose ICS branch
3. Select any kernel
4. Goto kernels arch/arm/mach-msm/camera.c
5. Download it as raw.(there will be raw link along with tree and other links right under project head line)
6. copy it to same location as in above and paste it there. Make sure you make backup of earlier one.
Done. Worked for me. But you know what? I am now stuck at display.c and io.c . Its really hard without documentation....
Hi!
I have been scratching my head over this for 3 days now, no amount of googling and searching here has given me any results.
Build environment is MAC OS X Yosemite with xcode 6 and 5.1.1 command tools installed, 100 gb sparse image file to work on.
Here is the error:
vendor/sony/system/mkqcdtbootimg/mkqcdtbootimg.c: In function ‘load_dtqc_block’:
vendor/sony/system/mkqcdtbootimg/mkqcdtbootimg.c:170: error: ‘fname’ undeclared (first use in this function)
vendor/sony/system/mkqcdtbootimg/mkqcdtbootimg.c:170: error: (Each undeclared identifier is reported only once
vendor/sony/system/mkqcdtbootimg/mkqcdtbootimg.c:170: error: for each function it appears in.)
vendor/sony/system/mkqcdtbootimg/mkqcdtbootimg.c: In function ‘write_padding’:
vendor/sony/system/mkqcdtbootimg/mkqcdtbootimg.c:382: warning: comparison between signed and unsigned
vendor/sony/system/mkqcdtbootimg/mkqcdtbootimg.c: In function ‘main’:
vendor/sony/system/mkqcdtbootimg/mkqcdtbootimg.c:491: warning: pointer targets in passing argument 1 of ‘__builtin___strcpy_chk’ differ in signedness
vendor/sony/system/mkqcdtbootimg/mkqcdtbootimg.c:491: warning: pointer targets in passing argument 1 of ‘__inline_strcpy_chk’ differ in signedness
vendor/sony/system/mkqcdtbootimg/mkqcdtbootimg.c:559: warning: comparison between signed and unsigned
vendor/sony/system/mkqcdtbootimg/mkqcdtbootimg.c:562: warning: comparison between signed and unsigned
vendor/sony/system/mkqcdtbootimg/mkqcdtbootimg.c:566: warning: comparison between signed and unsigned
vendor/sony/system/mkqcdtbootimg/mkqcdtbootimg.c:571: warning: comparison between signed and unsigned
make: *** [out/host/darwin-x86/obj32/EXECUTABLES/mkqcdtbootimg_intermediates/mkqcdtbootimg.o] Error 1
make: *** Waiting for unfinished jobs....
Any help is appretiated
I'm still completely lost on this matter and is driving me crazy
I hit a similar error, but with PATH_MAX as undefined. Basically what it is complaining is that fname is not defined anywhere, which is weird. Try installing Brew (for Mac) and install automake (brew install automake).
To solve my error, I had to edit the file mkqcdtbootimg.c and add these lines after all the C variable defines (right after #include "bootimg.h", in new lines):
#ifndef PATH_MAX
#define PATH_MAX 4096
I used this as a reference: http://serverfault.com/questions/9546/filename-length-limits-on-linux
dferreira said:
I hit a similar error, but with PATH_MAX as undefined. Basically what it is complaining is that fname is not defined anywhere, which is weird. Try installing Brew (for Mac) and install automake (brew install automake).
To solve my error, I had to edit the file mkqcdtbootimg.c and add these lines after all the C variable defines (right after #include "bootimg.h", in new lines):
#ifndef PATH_MAX
#define PATH_MAX 4096
I used this as a reference: http://serverfault.com/questions/9546/filename-length-limits-on-linux
Click to expand...
Click to collapse
Thanks, I´m going to test that brew thing
Cross-compile error when building kernel (nexus9 memory forensics)
I'm currently following the AndroidMemoryForensics guide (I cannot post a link) on how to extract memory from an android device using LiME. I'm using the flounder_defconfig build configuration and create the .config file using
Code:
make flounder_defconfig
. In order to be able to load the LiME module to the kernel I need to add the following lines to the .config file:
CONFIG_MODULES=y
CONFIG_MODULES_UNLOAD=y
CONFIG_MODULES_FORCE_UNLOAD=y
When I compile the kernel I set the architecture to arm64 (ARCH=arm64) and use the aarch64-linux-android-4.9 toolchain (CROSS_COMPILE=aarch64-linux-android-4.9/aarch64-linux-android-).
When running
Code:
make
I get compile errors saying that "battery_voltage_monitor_on" is undeclared (see below).
If I try to compile the kernel without making the changes to the .config file I get no compile errors.
Am I missing something here, e.g. some package, or have I done something wrong to cause this compile error?
I tried to search for a solution online but have had little success so far so I hope I have better success here
Thanks in advance!
Jonas
Output:
CC drivers/htc_debug/stability/reboot_params.o
LD drivers/htc_debug/stability/built-in.o
CC drivers/hwmon/hwmon.o
CC drivers/hwmon/battery_system_voltage_monitor.o
In file included from include/linux/linkage.h:6:0,
from include/linux/kernel.h:6,
from include/linux/sched.h:31,
from /home/jonas/android/Nexus9_Volantis_source/test2/flounder-kernel/tegra/arch/arm64/include/asm/compat.h:25,
from /home/jonas/android/Nexus9_Volantis_source/test2/flounder-kernel/tegra/arch/arm64/include/asm/stat.h:23,
from include/linux/stat.h:5,
from include/linux/module.h:10,
from drivers/hwmon/battery_system_voltage_monitor.c:15:
drivers/hwmon/battery_system_voltage_monitor.c:151:19: error: 'battery_voltage_monitor_on' undeclared here (not in a function)
EXPORT_SYMBOL_GPL(battery_voltage_monitor_on);
^
include/linux/export.h:57:16: note: in definition of macro '__EXPORT_SYMBOL'
extern typeof(sym) sym; \
^
drivers/hwmon/battery_system_voltage_monitor.c:151:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
EXPORT_SYMBOL_GPL(battery_voltage_monitor_on);
^
drivers/hwmon/battery_system_voltage_monitor.c:183:19: error: 'system_voltage_monitor_on' undeclared here (not in a function)
EXPORT_SYMBOL_GPL(system_voltage_monitor_on);
^
include/linux/export.h:57:16: note: in definition of macro '__EXPORT_SYMBOL'
extern typeof(sym) sym; \
^
drivers/hwmon/battery_system_voltage_monitor.c:183:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
EXPORT_SYMBOL_GPL(system_voltage_monitor_on);
^
make[2]: *** [drivers/hwmon/battery_system_voltage_monitor.o] Error 1
make[1]: *** [drivers/hwmon] Error 2
make: *** [drivers] Error 2
I'm having same issue on my build. Fine without modules but throws linker errors when enabled.
https://github.com/binkybear/flounder/commit/06781f20ea737f6b52a4589827d5d52688d20728
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/motorola/condor/cm.mk]]: "vendor/motorola/msm8610-common/msm8610-common-vendor.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_condor'
** Do you have the right repo manifest?
try this repo https://github.com/Moto8610/proprietary_vendor_motorola
Thnx i will try it.
Do i need to remove the entire cm repo folder or i can remove the devices synced repo and sync again.
GNVM said:
Do i need to remove the entire cm repo folder or i can remove the devices synced repo and sync again.
Click to expand...
Click to collapse
Are you building from your own device tree? Or ashwin007's device tree?
From ashwins tree
That issue is solved now i get these errors
Code:
external/zip/src/zip.c:1287:9: warning: unused parameter 'unzippath' [-Wunused-parameter]
char *unzippath;
^
external/zip/src/zip.c:1434:11: warning: explicitly assigning value of variable of type 'char *' to itself [-Wself-assign]
zippath = zippath;
~~~~~~~ ^ ~~~~~~~
external/zip/src/zip.c:1799:9: warning: explicitly assigning value of variable of type 'const char *' to itself [-Wself-assign]
zfn = zfn;
~~~ ^ ~~~
external/zip/src/zip.c:1850:9: warning: unused parameter 'out_path' [-Wunused-parameter]
char *out_path;
^
external/zip/src/zip.c:698:12: warning: unused function 'help_extended' [-Wunused-function]
local void help_extended()
^
5 warnings generated.
target arm C: zip <= external/zip/src/unix/unix.c
make: *** No rule to make target `vendor/motorola/msm8610-common/proprietary/vendor/lib/libmm-hdcpmgr.so', needed by `/home/gnvm-dev/bin/cm13.0/out/target/product/condor/system/vendor/lib/libmm-hdcpmgr.so'. Stop.
make: *** Waiting for unfinished jobs....
external/zip/src/unix/unix.c:571:12: warning: unused parameter 'z_utim' [-Wunused-parameter]
iztimes *z_utim;
^
1 warning generated.
make: Leaving directory `/home/gnvm-dev/bin/cm13.0'
#### make failed to build some targets (09:21 (mm:ss)) ####
I have found the solution but i got a new error.
Code:
target SharedLib: memtrack.msm8610 (/home/gnvm-dev/bin/cm13.0/out/target/product/condor/obj/SHARED_LIBRARIES/memtrack.msm8610_intermediates/LINKED/memtrack.msm8610.so)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin/ld: error: /home/gnvm-dev/bin/cm13.0/out/target/product/condor/obj/SHARED_LIBRARIES/memtrack.msm8610_intermediates/memtrack_msm.o: file is empty
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin/ld: error: /home/gnvm-dev/bin/cm13.0/out/target/product/condor/obj/SHARED_LIBRARIES/memtrack.msm8610_intermediates/kgsl.o: file is empty
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/home/gnvm-dev/bin/cm13.0/out/target/product/condor/obj/SHARED_LIBRARIES/memtrack.msm8610_intermediates/LINKED/memtrack.msm8610.so] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/gnvm-dev/bin/cm13.0'
#### make failed to build some targets (01:25:33 (hh:mm:ss)) ####
Hi,
so I've build ROM before (LineageOS and more recently Pixel Experience) but am running into an error which might be just a syntax problem in one of the source files. Before messing things up by editing these files myself, wanted to ask here which best course of action to take. (target phone: Redmi Note 10 Pro)
My build setup is a Proxmox 7 server hosting an Ubuntu 20.04 VM which has a Nvidia vGPU installed.
Bash:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Mon_Nov_30_19:08:53_PST_2020
Cuda compilation tools, release 11.2, V11.2.67
Build cuda_11.2.r11.2/compiler.29373293_0
The build starts, but after completing the kernel compilation the following error occurs.
Bash:
In file included from ../../../../../../kernel/xiaomi/sm6150/init/version.c:9:
./include/generated/compile.h:7:24: warning: missing terminating '"' character [-Winvalid-pp-token]
#define LINUX_COMPILER "Android (6877366 based on r383902b1) clang version 11.0.2 (https://android.googlesource.com/toolchai
n/llvm-project b397f81060ce6d701042b782172ed13bee898b79)
^
./include/generated/compile.h:8:1: error: unknown type name 'Found'
Found CUDA installation: /usr/local/cuda, version 7.0, GNU ld (binutils-2.27-bd24d23f) 2.27.0.20170315"
^
./include/generated/compile.h:8:11: error: expected ';' after top level declarator
Found CUDA installation: /usr/local/cuda, version 7.0, GNU ld (binutils-2.27-bd24d23f) 2.27.0.20170315"
^
;
./include/generated/compile.h:8:103: warning: missing terminating '"' character [-Winvalid-pp-token]
Found CUDA installation: /usr/local/cuda, version 7.0, GNU ld (binutils-2.27-bd24d23f) 2.27.0.20170315"
^
In file included from ../../../../../../kernel/xiaomi/sm6150/init/version.c:10:
In file included from ../../../../../../kernel/xiaomi/sm6150/include/linux/module.h:9:
In file included from ../../../../../../kernel/xiaomi/sm6150/include/linux/list.h:5:
../../../../../../kernel/xiaomi/sm6150/include/linux/types.h:102:10: error: unknown type name '__s8'; did you mean '__u8'?
typedef __s8 int8_t;
^~~~
__u8
../../../../../../kernel/xiaomi/sm6150/include/uapi/asm-generic/int-ll64.h:21:23: note: '__u8' declared here
typedef unsigned char __u8;
^
../../../../../../kernel/xiaomi/sm6150/init/version.c:46:26: error: expected ';' after top level declarator
LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
^
;
../../../../../../kernel/xiaomi/sm6150/init/version.c:51:6: error: expected ';' after top level declarator
" (" LINUX_COMPILER ") %s\n";
^
;
2 warnings and 5 errors generated.
make[2]: *** [/home/wvthoog/android/pixel-experience/kernel/xiaomi/sm6150/scripts/Makefile.build:361: init/version.o] Error
1
make[2]: *** Waiting for unfinished jobs....
Like i said before, it looks like there are some syntax errors somewhere in one of the sourcefiles but at this point have no clue which files to edit to remedy this error.
Also, if i compile the same ROM for my Redmi Note 10 Pro (sweet) on another VM (Ubuntu 20.04) without a Nvidia GPU the build succeeds .
This sounds like a bug somewhere in one of the source files of Pixel Experience. Tried filing an issue on their Github page but their bot is fairly aggressive in closing issues if they don't meet their posting requirements.
So my question drills down to.... do other experience the same problem when using CUDA during the build process of Pixel Experience and possibly have a solution ?
Secondly, is there an option to disable CUDA during the build process ?
Thanks
populus_ said:
Hi,
so I've build ROM before (LineageOS and more recently Pixel Experience) but am running into an error which might be just a syntax problem in one of the source files. Before messing things up by editing these files myself, wanted to ask here which best course of action to take. (target phone: Redmi Note 10 Pro)
My build setup is a Proxmox 7 server hosting an Ubuntu 20.04 VM which has a Nvidia vGPU installed.
Bash:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Mon_Nov_30_19:08:53_PST_2020
Cuda compilation tools, release 11.2, V11.2.67
Build cuda_11.2.r11.2/compiler.29373293_0
The build starts, but after completing the kernel compilation the following error occurs.
Bash:
In file included from ../../../../../../kernel/xiaomi/sm6150/init/version.c:9:
./include/generated/compile.h:7:24: warning: missing terminating '"' character [-Winvalid-pp-token]
#define LINUX_COMPILER "Android (6877366 based on r383902b1) clang version 11.0.2 (https://android.googlesource.com/toolchai
n/llvm-project b397f81060ce6d701042b782172ed13bee898b79)
^
./include/generated/compile.h:8:1: error: unknown type name 'Found'
Found CUDA installation: /usr/local/cuda, version 7.0, GNU ld (binutils-2.27-bd24d23f) 2.27.0.20170315"
^
./include/generated/compile.h:8:11: error: expected ';' after top level declarator
Found CUDA installation: /usr/local/cuda, version 7.0, GNU ld (binutils-2.27-bd24d23f) 2.27.0.20170315"
^
;
./include/generated/compile.h:8:103: warning: missing terminating '"' character [-Winvalid-pp-token]
Found CUDA installation: /usr/local/cuda, version 7.0, GNU ld (binutils-2.27-bd24d23f) 2.27.0.20170315"
^
In file included from ../../../../../../kernel/xiaomi/sm6150/init/version.c:10:
In file included from ../../../../../../kernel/xiaomi/sm6150/include/linux/module.h:9:
In file included from ../../../../../../kernel/xiaomi/sm6150/include/linux/list.h:5:
../../../../../../kernel/xiaomi/sm6150/include/linux/types.h:102:10: error: unknown type name '__s8'; did you mean '__u8'?
typedef __s8 int8_t;
^~~~
__u8
../../../../../../kernel/xiaomi/sm6150/include/uapi/asm-generic/int-ll64.h:21:23: note: '__u8' declared here
typedef unsigned char __u8;
^
../../../../../../kernel/xiaomi/sm6150/init/version.c:46:26: error: expected ';' after top level declarator
LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
^
;
../../../../../../kernel/xiaomi/sm6150/init/version.c:51:6: error: expected ';' after top level declarator
" (" LINUX_COMPILER ") %s\n";
^
;
2 warnings and 5 errors generated.
make[2]: *** [/home/wvthoog/android/pixel-experience/kernel/xiaomi/sm6150/scripts/Makefile.build:361: init/version.o] Error
1
make[2]: *** Waiting for unfinished jobs....
Like i said before, it looks like there are some syntax errors somewhere in one of the sourcefiles but at this point have no clue which files to edit to remedy this error.
Also, if i compile the same ROM for my Redmi Note 10 Pro (sweet) on another VM (Ubuntu 20.04) without a Nvidia GPU the build succeeds .
This sounds like a bug somewhere in one of the source files of Pixel Experience. Tried filing an issue on their Github page but their bot is fairly aggressive in closing issues if they don't meet their posting requirements.
So my question drills down to.... do other experience the same problem when using CUDA during the build process of Pixel Experience and possibly have a solution ?
Secondly, is there an option to disable CUDA during the build process ?
Thanks
Click to expand...
Click to collapse
Just bumped to your question, yes it happens with me too, Pcoco F3 Lineage, what I have done is to have a ubuntu (separate SSD) to boot from when I need to build, and use the other system for all other uses including cuda transcoding.
You're in the wrong forum. This is exclusively about the Xiaomi Redmi Note 10. No other version.
populus_ said:
Hi,
so I've build ROM before (LineageOS and more recently Pixel Experience) but am running into an error which might be just a syntax problem in one of the source files. Before messing things up by editing these files myself, wanted to ask here which best course of action to take. (target phone: Redmi Note 10 Pro)
My build setup is a Proxmox 7 server hosting an Ubuntu 20.04 VM which has a Nvidia vGPU installed.
Bash:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Mon_Nov_30_19:08:53_PST_2020
Cuda compilation tools, release 11.2, V11.2.67
Build cuda_11.2.r11.2/compiler.29373293_0
The build starts, but after completing the kernel compilation the following error occurs.
Bash:
In file included from ../../../../../../kernel/xiaomi/sm6150/init/version.c:9:
./include/generated/compile.h:7:24: warning: missing terminating '"' character [-Winvalid-pp-token]
#define LINUX_COMPILER "Android (6877366 based on r383902b1) clang version 11.0.2 (https://android.googlesource.com/toolchai
n/llvm-project b397f81060ce6d701042b782172ed13bee898b79)
^
./include/generated/compile.h:8:1: error: unknown type name 'Found'
Found CUDA installation: /usr/local/cuda, version 7.0, GNU ld (binutils-2.27-bd24d23f) 2.27.0.20170315"
^
./include/generated/compile.h:8:11: error: expected ';' after top level declarator
Found CUDA installation: /usr/local/cuda, version 7.0, GNU ld (binutils-2.27-bd24d23f) 2.27.0.20170315"
^
;
./include/generated/compile.h:8:103: warning: missing terminating '"' character [-Winvalid-pp-token]
Found CUDA installation: /usr/local/cuda, version 7.0, GNU ld (binutils-2.27-bd24d23f) 2.27.0.20170315"
^
In file included from ../../../../../../kernel/xiaomi/sm6150/init/version.c:10:
In file included from ../../../../../../kernel/xiaomi/sm6150/include/linux/module.h:9:
In file included from ../../../../../../kernel/xiaomi/sm6150/include/linux/list.h:5:
../../../../../../kernel/xiaomi/sm6150/include/linux/types.h:102:10: error: unknown type name '__s8'; did you mean '__u8'?
typedef __s8 int8_t;
^~~~
__u8
../../../../../../kernel/xiaomi/sm6150/include/uapi/asm-generic/int-ll64.h:21:23: note: '__u8' declared here
typedef unsigned char __u8;
^
../../../../../../kernel/xiaomi/sm6150/init/version.c:46:26: error: expected ';' after top level declarator
LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
^
;
../../../../../../kernel/xiaomi/sm6150/init/version.c:51:6: error: expected ';' after top level declarator
" (" LINUX_COMPILER ") %s\n";
^
;
2 warnings and 5 errors generated.
make[2]: *** [/home/wvthoog/android/pixel-experience/kernel/xiaomi/sm6150/scripts/Makefile.build:361: init/version.o] Error
1
make[2]: *** Waiting for unfinished jobs....
Like i said before, it looks like there are some syntax errors somewhere in one of the sourcefiles but at this point have no clue which files to edit to remedy this error.
Also, if i compile the same ROM for my Redmi Note 10 Pro (sweet) on another VM (Ubuntu 20.04) without a Nvidia GPU the build succeeds .
This sounds like a bug somewhere in one of the source files of Pixel Experience. Tried filing an issue on their Github page but their bot is fairly aggressive in closing issues if they don't meet their posting requirements.
So my question drills down to.... do other experience the same problem when using CUDA during the build process of Pixel Experience and possibly have a solution ?
Secondly, is there an option to disable CUDA during the build process ?
Thanks
Click to expand...
Click to collapse
Face the same problem, How did you solved the error?
Ended up removing the Cuda Toolkit altogether since i couldn't find a solution.
populus_ said:
Ended up removing the Cuda Toolkit altogether since i couldn't find a solution.
Click to expand...
Click to collapse
Hi populus_:
Have you tried to disable the cuda toolkit detection when compiling the rom? Just romving the cuda tookit may be not a pretty solution. besuase i have install multi cuda tookit.
That was my initial question. How do i disable CUDA from building a ROM. Haven't found an answer yet.