You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: porting/common-kernel-build-errors.rst
+38-23
Original file line number
Diff line number
Diff line change
@@ -6,53 +6,63 @@ These are the ``hybris-boot`` build errors most commonly seen in the Halium comm
6
6
Implicit declaration of 'kvfree'
7
7
--------------------------------
8
8
9
-
If you receive something similar to the following error::
9
+
If you receive something similar to the following error:
10
10
11
-
../../../../../../kernel/[...]/[...]/security/apparmor/apparmorfs.c: In function 'aa_simple_write_to_buffer':
12
-
../../../../../../kernel/[...]/[...]/security/apparmor/apparmorfs.c:110:3: error: implicit declaration of function 'kvfree' [-Werror=implicit-function-declaration]
11
+
.. code-block:: text
12
+
13
+
kernel/[...]/[...]/security/apparmor/apparmorfs.c: In function 'aa_simple_write_to_buffer':
14
+
kernel/[...]/[...]/security/apparmor/apparmorfs.c:110:3: error: implicit declaration of function 'kvfree' [-Werror=implicit-function-declaration]
13
15
kvfree(data);
14
16
15
17
Apply the patch `nick kvfree() from apparmor`_.
16
18
17
19
'kuid_t' (sdcardfs, cgroup) error
18
20
---------------------------------
19
21
20
-
Example of the error::
22
+
Example of the error:
23
+
24
+
.. code-block:: text
21
25
22
-
../../../../../../kernel/lenovo/msm8916/kernel/cgroup.c:2138:37: error: invalid operands to binary != (have 'kuid_t' and 'kuid_t')
26
+
kernel/lenovo/msm8916/kernel/cgroup.c:2138:37: error: invalid operands to binary != (have 'kuid_t' and 'kuid_t')
23
27
if (current != task && cred->euid != tcred->uid &&
24
28
25
-
../../../../../../kernel/lenovo/msm8916/kernel/cgroup.c:2139:18: error: invalid operands to binary != (have 'kuid_t' and 'kuid_t')
29
+
kernel/lenovo/msm8916/kernel/cgroup.c:2139:18: error: invalid operands to binary != (have 'kuid_t' and 'kuid_t')
26
30
cred->euid != tcred->suid)
27
31
28
32
Set ``CONFIG_USER_NS`` to ``n`` in your defconfig.
29
33
30
34
Firmware class error
31
35
--------------------
32
36
33
-
Example of the error::
37
+
Example of the error:
34
38
35
-
../../../../../../kernel/lenovo/msm8916/drivers/base/firmware_class.c: In function '_request_firmware':
36
-
../../../../../../kernel/lenovo/msm8916/drivers/base/firmware_class.c:1226:38: warning: passing argument 2 of 'fw_load_from_user_helper' from incompatible pointer type
39
+
.. code-block:: text
40
+
41
+
kernel/lenovo/msm8916/drivers/base/firmware_class.c: In function '_request_firmware':
42
+
kernel/lenovo/msm8916/drivers/base/firmware_class.c:1226:38: warning: passing argument 2 of 'fw_load_from_user_helper' from incompatible pointer type
37
43
error, forbidden warning: firmware_class.c:1226
38
44
39
45
Set ``CONFIG_FW_LOADER_USER_HELPER`` to ``y`` in your defconfig.
40
46
41
47
ECRYPTFS error
42
48
--------------
43
49
44
-
Example of the error::
50
+
Example of the error:
51
+
52
+
.. code-block:: text
45
53
46
-
../../../../../../kernel/lenovo/msm8916/fs/ecryptfs/file.c: In function 'ecryptfs_readdir':
47
-
../../../../../../kernel/lenovo/msm8916/fs/ecryptfs/file.c:130:16: error: assignment of read-only member 'actor'
48
-
buf.ctx.actor = ecryptfs_filldir;
54
+
kernel/lenovo/msm8916/fs/ecryptfs/file.c: In function 'ecryptfs_readdir':
55
+
kernel/lenovo/msm8916/fs/ecryptfs/file.c:130:16: error: assignment of read-only member 'actor'
56
+
buf.ctx.actor = ecryptfs_filldir;
49
57
50
58
Apply `'patch ecryptfs to fix a build error' from bullhead`_.
51
59
52
60
'Undefined reference to pidns_operations' on Linux 3.4
Somehow, the implementation of the ``/proc`` filesystem is incomplete in some 3.4 kernels::
87
+
Somehow, the implementation of the ``/proc`` filesystem is incomplete in some 3.4 kernels:
76
88
77
-
/../../../../kernel/fairphone/msm8974/kernel/pid.c:81:15: error: 'PROC_PID_INIT_INO' undeclared here (not in a function)
89
+
.. code-block:: text
90
+
91
+
kernel/fairphone/msm8974/kernel/pid.c:81:15: error: 'PROC_PID_INIT_INO' undeclared here (not in a function)
78
92
.proc_inum = PROC_PID_INIT_INO,
79
93
80
94
Add the following line after all of the other ``#include`` lines in the file kernel/user_namespace.c similar to https://github.com/Halium/android_kernel_lge_hammerhead/commit/5754614eb43dea44a99e54898e3b83d4d96d8b83 ::
@@ -84,11 +98,12 @@ Add the following line after all of the other ``#include`` lines in the file ker
84
98
POSIX_ACL not supported in 3.18 backport
85
99
----------------------------------------
86
100
87
-
Example of the error::
101
+
Example of the error:
102
+
103
+
.. code-block:: text
88
104
89
-
/home/florian/halium-7.1/kernel/huawei/angler/fs/ext4/inode.c: In function 'ext4_setattr':
90
-
/home/florian/halium-7.1/kernel/huawei/angler/fs/ext4/inode.c:4717:2: error: #error POSIX_ACL not supported in 3.18 backport
91
-
#error POSIX_ACL not supported in 3.18 backport
105
+
kernel/huawei/angler/fs/ext4/inode.c: In function 'ext4_setattr':
106
+
kernel/huawei/angler/fs/ext4/inode.c:4717:2: error: #error POSIX_ACL not supported in 3.18 backport
92
107
93
108
Set ``CONFIG_EXT4_FS_POSIX_ACL`` to ``n`` in your defconfig.
Copy file name to clipboardExpand all lines: porting/common-system-build-errors.rst
+12-10
Original file line number
Diff line number
Diff line change
@@ -17,20 +17,20 @@ Also check the vendor folders of your dependencies.
17
17
Undefined or missing bluetooth headers
18
18
--------------------------------------
19
19
20
-
.. code-block:: guess
20
+
.. todo::
21
21
22
-
*TODO: example*
22
+
add example of error message
23
23
24
-
Some devices requires bluetooth when compiling, which aren't synced for default by Halium. This can be fixed adding LineageOS's repo to the device manifest:
24
+
Some devices require bluetooth headers which aren't synced by default. This can be fixed by adding the following repository to the device manifest:
find: ‘device/*/generic’: No such file or directory
36
36
find: ‘device/unknown’: No such file or directory
@@ -39,30 +39,32 @@ HYBRIS_BOOT_PART and HYBRIS_DATA_PART
39
39
halium/hybris-boot/Android.mk:68: ********************* /data appears to live on ERROR: *fstab* not found
40
40
halium/hybris-boot/Android.mk:71: *** There should be a one and only one device entry for HYBRIS_BOOT_PART and HYBRIS_DATA_PART.
41
41
42
-
Make sure you run the commands :ref:`here <breakfast-and-lunch>` before trying to build. The Makefile depends on the environment set up immediately before by envsetup.sh; so if running in a build environment such as Emacs, be sure to set your compile command to something like "source build/envsetup.sh && breakfast [codename] && make [target]"
42
+
Make sure you rerun the :ref:`initialization commands <breakfast-and-lunch>` before trying to build. The Makefile depends on the environment set up immediately before by ``envsetup.sh``. So if running in a build environment such as Emacs, be sure to set your compile command to something like ``source build/envsetup.sh && breakfast [codename] && make [target]``.
43
43
44
44
45
45
.. _remove apks on lyudmila17/android_device_motorola_athene: https://github.com/Lyudmila17/android_device_motorola_athene/commit/a752422012165d937c058c1b671497bad44a4962
0 commit comments