[A13]Lineage OS 20 build makefile error.Please help me!

Search This thread

yonekome

Member
Sep 19, 2022
13
5
Japan
I am building Lineage OS 20 on an i9100.
The development environment is Ubuntu 22.04 LTS and the device source code is from @ rINanDO.

So, I am facing this problem. I have everything ready and when I type "brunch i9100" I get the error in the image.
I have tried everything and keep getting the error so I am posting this.

Please help and advice me.
Screenshot from 2022-10-01 10-49-57.png
 
Last edited:
  • Like
Reactions: Concept48

Concept48

Senior Member
Dec 26, 2021
544
236
Sony Xperia M
I am building Lineage OS 20 on an i9100.
The development environment is Ubuntu 22.04 LTS and the device source code is from rINanDO.

So, I am facing this problem. I have everything ready and when I type "brunch i9100" I get the error in the image.
I have tried everything and keep getting the error so I am posting this.

Please help and advice me.View attachment 5724229
Ask @rINanDO bro
 

Nem1x

Senior Member
Aug 24, 2021
66
38
Sony Xperia M2
I am building Lineage OS 20 on an i9100.
The development environment is Ubuntu 22.04 LTS and the device source code is from @ rINanDO.

So, I am facing this problem. I have everything ready and when I type "brunch i9100" I get the error in the image.
I have tried everything and keep getting the error so I am posting this.

Please help and advice me.View attachment 5724229
I have the same issue when compiling Awaken A13. It's something related to clang, you should switch to clang proton. Let me know if you fixed it and how.
 
  • Like
Reactions: Concept48

Nem1x

Senior Member
Aug 24, 2021
66
38
Sony Xperia M2
I thought perhaps this was not an error due to his device source code, so I wrote here
I fixed it by cloning Proton Clang and adding these lines to BoardConfig in device:

TARGET_KERNEL_CLANG_VERSION := proton
TARGET_KERNEL_CLANG_PATH := $(shell pwd)/prebuilts/clang/host/linux-x86/clang-proton

To clone proton clang run:

git clone --depth=1 https://github.com/kdrag0n/proton-clang.git prebuilts/clang/host/linux-x86/clang-proton
 
  • Like
Reactions: Concept48

Concept48

Senior Member
Dec 26, 2021
544
236
Sony Xperia M

yonekome

Member
Sep 19, 2022
13
5
Japan
I fixed it by cloning Proton Clang and adding these lines to BoardConfig in device:

TARGET_KERNEL_CLANG_VERSION := proton
TARGET_KERNEL_CLANG_PATH := $(shell pwd)/prebuilts/clang/host/linux-x86/clang-proton

To clone proton clang run:

git clone --depth=1 https://github.com/kdrag0n/proton-clang.git prebuilts/clang/host/linux-x86/clang-proton
Thanks for the advice.

I have a question about a script to add to BoardConfig.
The place to add it is in my case
android/lineage/device/samsung/i9100/BoardConfig.mk
and
android/lineage/device/samsug/galaxys2-common/BoardCommonConfig.mk
at the bottom?

I ran clone proton clang command first and added the script to the above location, but the error did not go away.
 

Nem1x

Senior Member
Aug 24, 2021
66
38
Sony Xperia M2
Try to add these lines as well in BoardConfig:

KERNEL_LD := LD=ld.lld
TARGET_KERNEL_ADDITIONAL_FLAGS := DTC_EXT=$(shell pwd)/prebuilts/misc/linux-x86/dtc/dtc LLVM=1
 

Nem1x

Senior Member
Aug 24, 2021
66
38
Sony Xperia M2


I hope you can find paths.
 

yonekome

Member
Sep 19, 2022
13
5
Japan


I hope you can find pataths.
It worked fine!

I added these.

~/android/lineage/kernel/samsung/smdk4412/scripts/Makefile.host
# Create executable from a single .c file
# host-csingle -> Executable
quiet_cmd_host-csingle = HOSTCC [email protected]
cmd_host-csingle = $(HOSTCC) $(hostc_flags) -o [email protected] $< \
cmd_host-csingle = $(HOSTCC) $(hostc_flags) $(HOSTLDFLAGS) -o [email protected] $< \
$(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F))
$(host-csingle): $(obj)/%: $(src)/%.c FORCE
$(call if_changed_dep,host-csingle)

and

~/android/lineage/device/samsung/i9100/BoardConfig.mk
# Kernel
TARGET_KERNEL_SOURCE := kernel/samsung/smdk4412
TARGET_KERNEL_LLVM_BINUTILS := false
BOARD_KERNEL_SEPARATED_DTBO := true

Thanks for the great support.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    I am building Lineage OS 20 on an i9100.
    The development environment is Ubuntu 22.04 LTS and the device source code is from @ rINanDO.

    So, I am facing this problem. I have everything ready and when I type "brunch i9100" I get the error in the image.
    I have tried everything and keep getting the error so I am posting this.

    Please help and advice me.
    Screenshot from 2022-10-01 10-49-57.png
    1
    I am building Lineage OS 20 on an i9100.
    The development environment is Ubuntu 22.04 LTS and the device source code is from @ rINanDO.

    So, I am facing this problem. I have everything ready and when I type "brunch i9100" I get the error in the image.
    I have tried everything and keep getting the error so I am posting this.

    Please help and advice me.View attachment 5724229
    I have the same issue when compiling Awaken A13. It's something related to clang, you should switch to clang proton. Let me know if you fixed it and how.
    1
    I have the same issue when compiling Awaken A13. It's something related to clang, you should switch to clang proton. Let me know if you fixed it and how.
    Good job Nemix !!
    1
    I thought perhaps this was not an error due to his device source code, so I wrote here
    I fixed it by cloning Proton Clang and adding these lines to BoardConfig in device:

    TARGET_KERNEL_CLANG_VERSION := proton
    TARGET_KERNEL_CLANG_PATH := $(shell pwd)/prebuilts/clang/host/linux-x86/clang-proton

    To clone proton clang run:

    git clone --depth=1 https://github.com/kdrag0n/proton-clang.git prebuilts/clang/host/linux-x86/clang-proton
    1
    TARGET_KERNEL_CLANG_VERSION := proton
    TARGET_KERNEL_CLANG_PATH := $(shell pwd)/prebuilts/clang/host/linux-x86/clang-proton
    Yeah it goes at. android/lineage/device/samsung/i9100/BoardConfig.mk

    I think that it doesn't matter where you put it. Bottom of the file should work.