Looking for some BUILDERS to teach / guide me

that’s ok with that step

The really important thing is to do it in the right order.

No need to delete anything at the moment.

When you get to the stage of source build/envsetup.sh I like to look at the output. In fact I save it to help identify missing pieces … so `source build/envsetup.sh > envsetup_01.txt.

Another nice clue is when you find your first .repo/local_manifests/roomservice.xml.

Here is a 7 day only paste of my a3xelte.xml with a 1 line edit of a roomservice.xml

the file was created, but it is empty

I can’t fully explain that, but … you are not ready for source build/envsetup.sh until after repo sync completed successfully, with the full set of tools.

Unknown to me … maybe envsetup.sh can run with Exit code 0 no reported error ?

just one thought, a repo sync under 30min is really fast. If you have a real fast internet connection it might be possible. However I have a cable 1000 mbit/s connection and repo sync does need much more over an hour…

1 Like

how can find to do that ?

Edit : i just found a generated roomservice.xml

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project path="device/samsung/gts4lv" remote="github" name="LineageOS/android_device_samsung_gts4lv" />
  <project path="device/samsung/gts4lv-common" remote="github" name="LineageOS/android_device_samsung_gts4lv-common" />
  <project path="device/samsung/qcom-common" remote="github" name="LineageOS/android_device_samsung_qcom-common" />
  <project path="kernel/samsung/sdm670" remote="github" name="LineageOS/android_kernel_samsung_sdm670" />
  <project path="hardware/samsung" remote="github" name="LineageOS/android_hardware_samsung" />
</manifest>

so i have added the last line from your exemple, and saved it as gts4lv.xml roomservice_xml

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project path="device/samsung/gts4lv" remote="github" name="LineageOS/android_device_samsung_gts4lv" />
  <project path="device/samsung/gts4lv-common" remote="github" name="LineageOS/android_device_samsung_gts4lv-common" />
  <project path="device/samsung/qcom-common" remote="github" name="LineageOS/android_device_samsung_qcom-common" />
  <project path="kernel/samsung/sdm670" remote="github" name="LineageOS/android_kernel_samsung_sdm670" />
  <project path="hardware/samsung" remote="github" name="LineageOS/android_hardware_samsung" />
  <project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" depth="1" />
</manifest>
1 Like

A duplicate won’t be tolerated, so maybe rename roomservice.xml to roomservice_xml

so that, late edit, the “old” roomservice_xml goes “unreadable”
and the “new” <device>.xml is acted upon.

Worth an explanation … is a good plan when building an unsupported device – you will have wanted to do good preparation.

A Lineage supported device provides roomservice.xml, but that will require the addition of extracting blobs or an additional project that is the vendor source from perhaps Gitlab or Github, as you just did in the post above.

repo sync is running…

Fetching: 100% (866/866), done in 5m56.652s
Checking out: 100% (866/866), done in 1m47.808s
repo sync has finished successfully.

source build/envsetup.sh > envsetup_01.txt still empty

brunch gts4lv is running…

failed :

clang-11: warning: argument unused during compilation: '-fuse-ld=lld' [-Wunused-command-line-argument]
  HOSTCC  scripts/sign-file
  HOSTLD  scripts/dtc/dtc
/home/antec/android/lineage/kernel/samsung/sdm670/scripts/sign-file.c:25:10: fatal error: 'openssl/opensslv.h' file not
 found
#include <openssl/opensslv.h>
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [scripts/Makefile.host:101 : scripts/sign-file] Erreur 1
make[2]: *** Attente des tâches non terminées....
make[1]: *** [/home/antec/android/lineage/kernel/samsung/sdm670/Makefile:611 : scripts] Erreur 2
make[1]: *** Attente des tâches non terminées....
  UPD     include/config/kernel.release
make[1] : on quitte le répertoire « /home/antec/android/lineage/out/target/product/gts4lv/obj/KERNEL_OBJ »
make: *** [Makefile:152 : sub-make] Erreur 2
make : on quitte le répertoire « /home/antec/android/lineage/kernel/samsung/sdm670 »
19:28:51 ninja failed with: exit status 1

#### failed to build some targets (01:47:20 (hh:mm:ss)) ####

you need to search for opensslv.h header file. Possibly its not in the directory
where it should be as per sign-file.c
If you find it, copy it in the correct folder or change folder in sign-file.c

/home/antec/android/lineage/kernel/samsung/sdm670/scripts/sign-file.c:25:10: fatal error: ‘openssl/opensslv.h’ file not
found
#include <openssl/opensslv.h>

1 Like

Did you run breakfast ? Any clues in that output ?

first i copied the file in /home/antec/android/lineage/kernel/samsung/sdm670/scripts/
rerun brunch give similar error about ‘openssl/bio.h’ file not found
#include <openssl/bio.h>
so i copied the entire /openssl/ folder in /home/antec/android/lineage/kernel/samsung/sdm670/scripts/
but it is not a solution :

make : on entre dans le répertoire « /home/antec/android/lineage/kernel/samsung/sdm670 »
make[1] : on entre dans le répertoire « /home/antec/android/lineage/out/target/product/gts4lv/obj
/KERNEL_OBJ »
  GEN     ./Makefile
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config/kernel.release
  GEN     ./Makefile
  CHK     include/generated/uapi/linux/version.h
  CHK     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/sign-file
  HOSTCC  scripts/extract-cert
/home/antec/android/lineage/kernel/samsung/sdm670/scripts/extract-cert.c:21:10: error: 'openssl/b
io.h' file not found with <angled> include; use "quotes" instead
#include <openssl/bio.h>
         ^~~~~~~~~~~~~~~
         "openssl/bio.h"
In file included from /home/antec/android/lineage/kernel/samsung/sdm670/scripts/extract-cert.c:21
:
/home/antec/android/lineage/kernel/samsung/sdm670/scripts/openssl/bio.h:60:10: fatal error: 'open
ssl/base.h' file not found
#include <openssl/base.h>
         ^~~~~~~~~~~~~~~~
2 errors generated.
make[2]: *** [scripts/Makefile.host:101 : scripts/extract-cert] Erreur 1
make[2]: *** Attente des tâches non terminées....
/home/antec/android/lineage/kernel/samsung/sdm670/scripts/sign-file.c:25:10: error: 'openssl/open
sslv.h' file not found with <angled> include; use "quotes" instead
#include <openssl/opensslv.h>
         ^~~~~~~~~~~~~~~~~~~~
         "openssl/opensslv.h"
In file included from /home/antec/android/lineage/kernel/samsung/sdm670/scripts/sign-file.c:25:
In file included from /home/antec/android/lineage/kernel/samsung/sdm670/scripts/openssl/opensslv.
h:18:
/home/antec/android/lineage/kernel/samsung/sdm670/scripts/openssl/crypto.h:18:10: fatal error: 'o
penssl/base.h' file not found
#include <openssl/base.h>
         ^~~~~~~~~~~~~~~~
2 errors generated.
make[2]: *** [scripts/Makefile.host:101 : scripts/sign-file] Erreur 1
make[1]: *** [/home/antec/android/lineage/kernel/samsung/sdm670/Makefile:611 : scripts] Erreur 2
make[1]: *** Attente des tâches non terminées....
make[1] : on quitte le répertoire « /home/antec/android/lineage/out/target/product/gts4lv/obj/KER
NEL_OBJ »
make: *** [Makefile:152 : sub-make] Erreur 2
make : on quitte le répertoire « /home/antec/android/lineage/kernel/samsung/sdm670 »
00:10:39 ninja failed with: exit status 1

#### failed to build some targets (08:13 (mm:ss)) ####


antec@antec-p6-2038fr:~/android/lineage$ breakfast gts4lv
Looking for dependencies in device/samsung/gts4lv
Looking for dependencies in device/samsung/gts4lv-common
Looking for dependencies in device/samsung/qcom-common
Looking for dependencies in hardware/samsung
hardware/samsung has no additional dependencies.
Looking for dependencies in kernel/samsung/sdm670
kernel/samsung/sdm670 has no additional dependencies.

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
LINEAGE_VERSION=18.1-20230910-UNOFFICIAL-gts4lv
TARGET_PRODUCT=lineage_gts4lv
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.15.0-83-generic-x86_64-Ubuntu-20.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RQ3A.211001.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=vendor/samsung/gts4lv vendor/samsung/gts4lv-common device/samsung/gts4lv-common hardware/qcom-caf/sdm845 vendor/qcom/opensource/commonsys-intf/display vendor/qcom/opensource/data-ipa-cfg-mgr vendor/qcom/opensource/dataservices packages/apps/Bluetooth
============================================
antec@antec-p6-2038fr:~/android/lineage$ 

Is what I was checking for but nothing negative.

A search of ‘openssl/opensslv.h’ file not found seems to put the blame on libssl-dev you do have it installed ? If not perhaps run an install of the whole list again.

…oh !!!

because the list is discontinued on several lines, i hadn’t…!!!

now really buildding …

depmod: WARNING: could not open modules.order at /home/antec/android/lineage/out/target/product/gts4lv/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0: No 
such file or directory
depmod: WARNING: could not open modules.builtin at /home/antec/android/lineage/out/target/product/gts4lv/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0: N
o such file or directory
2023-09-11 06:33:09 - add_img_to_target_files.py - INFO    : done.
[ 99% 60789/60790] Package OTA: out/target/product/gts4lv/lineage_gts4lv-ota-eng.antec.zip
2023-09-11 06:34:05 - common.py - WARNING : Failed to read SYSTEM/etc/build.prop
2023-09-11 06:34:05 - common.py - WARNING : Failed to read VENDOR/etc/build.prop
2023-09-11 06:34:05 - common.py - WARNING : Failed to read PRODUCT/etc/build.prop
2023-09-11 06:34:05 - common.py - WARNING : Failed to read PRODUCT/build.prop
2023-09-11 06:34:05 - common.py - WARNING : Failed to read SYSTEM_EXT/etc/build.prop
2023-09-11 06:34:05 - common.py - WARNING : Failed to read SYSTEM_EXT/build.prop
2023-09-11 06:34:05 - common.py - WARNING : Failed to read ODM/etc/build.prop
2023-09-11 06:34:05 - common.py - WARNING : Failed to read ODM/build.prop
2023-09-11 06:34:05 - ota_from_target_files.py - INFO    : --- target info ---

[100% 60790/60790] build bacon
Package Complete: out/target/product/gts4lv/lineage-18.1-20230910-UNOFFICIAL-gts4lv.zip

build completed successfully (05:26:23 (hh:mm:ss))

.

where is the log ?

exploring /out folder :
build_error is empty
there is no recent error.log

Can you type this into your terminal please:

sudo apt-get install bc bison build-essential ccache curl flex gcc-multilib gcc-multilib git git-lfs gnupg gperf imagemagick lib32ncurses-dev lib32readline-dev lib32z1-dev libelf-dev liblz4-tool libncurses5 libncurses5-dev libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev

antec@antec-p6-2038fr:~/android/lineage$ sudo apt-get install bc bison build-essential ccache curl flex gcc-multilib gcc-multilib git git-lfs gnupg gperf imagemagick lib32ncurses-dev lib32readline-dev lib32z1-dev libelf-dev liblz4-tool libncurses5 libncurses5-dev libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev
[sudo] Mot de passe de antec : 
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
bc est déjà la version la plus récente (1.07.1-2build1).
bison est déjà la version la plus récente (2:3.5.1+dfsg-1).
ccache est déjà la version la plus récente (3.7.7-1).
flex est déjà la version la plus récente (2.6.4-6.2).
gcc-multilib est déjà la version la plus récente (4:9.3.0-1ubuntu2).
lib32readline-dev est déjà la version la plus récente (8.0-4).
zip est déjà la version la plus récente (3.0-11build1).
gperf est déjà la version la plus récente (3.1-1build1).
libsdl1.2-dev est déjà la version la plus récente (1.2.15+dfsg2-5).
lzop est déjà la version la plus récente (1.04-1).
pngcrush est déjà la version la plus récente (1.8.13-0.1).
schedtool est déjà la version la plus récente (1.3.0-3).
build-essential est déjà la version la plus récente (12.8ubuntu1.1).
curl est déjà la version la plus récente (7.68.0-1ubuntu2.19).
git est déjà la version la plus récente (1:2.25.1-1ubuntu3.11).
gnupg est déjà la version la plus récente (2.2.19-3ubuntu2.2).
lib32ncurses-dev est déjà la version la plus récente (6.2-0ubuntu2.1).
lib32z1-dev est déjà la version la plus récente (1:1.2.11.dfsg-2ubuntu1.5).
libelf-dev est déjà la version la plus récente (0.176-1.1ubuntu0.1).
libncurses5-dev est déjà la version la plus récente (6.2-0ubuntu2.1).
libssl-dev est déjà la version la plus récente (1.1.1f-1ubuntu2.19).
libxml2 est déjà la version la plus récente (2.9.10+dfsg-5ubuntu0.20.04.6).
libxml2-utils est déjà la version la plus récente (2.9.10+dfsg-5ubuntu0.20.04.6).
rsync est déjà la version la plus récente (3.1.3-8ubuntu0.5).
squashfs-tools est déjà la version la plus récente (1:4.4-1ubuntu0.3).
xsltproc est déjà la version la plus récente (1.1.34-4ubuntu0.20.04.1).
zlib1g-dev est déjà la version la plus récente (1:1.2.11.dfsg-2ubuntu1.5).
imagemagick est déjà la version la plus récente (8:6.9.10.23+dfsg-2.1ubuntu11.9).
liblz4-tool est déjà la version la plus récente (1.9.2-2ubuntu0.20.04.1).
libncurses5 est déjà la version la plus récente (6.2-0ubuntu2.1).
git-lfs est déjà la version la plus récente (3.4.0).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 1 non mis à jour.
antec@antec-p6-2038fr:~/android/lineage$ 

.


.
[100% 60790/60790] build bacon
Package Complete: out/target/product/gts4lv/lineage-18.1-20230910-UNOFFICIAL-gts4lv.zip

build completed successfully (05:26:23 (hh:mm:ss))

where is the log ?

exploring /out folder :
build_error is empty
there is no recent error.log
where is the recovery ? i see one, but not named lineage-recovery-gts4lv
.

have a go now with building /e/ for the same device…

do i need to clean something ?

Congratulations :slight_smile:

Regard /e/OS build you can create a new folder with the /e/OS source and follow the instructions I posted. It is very similar

i did nothing, only apt install, and run breakfast and brunch…

so i will delete the /lineageos folder because it take 237Gb and let me only 213Gb free on my ~500Gb dedicated Hard Drive,
thanks.

Starting at “you might clean your environment with …”

Argh… newbe i am !.. i deleted the previous /lineage folder

however, i already did
repo init -u https://gitlab.e.foundation/e/os/android.git -b v1-r
and
repo sync is running

You did

1 Like