Issue #2329
openOutdated build documentation
0%
Description
I have been struggling to build Replicant 6 as described in the current documentation because I could not find any other way to make changes to sepolicy.
I followed the instructions given here:
https://redmine.replicant.us/projects/replicant/wiki/GenericReplicant60Build
In dependencies installation:
https://redmine.replicant.us/projects/replicant/wiki/Replicant60BuildDependenciesInstallation
I see Debian 9 (stretch) - an old, discontinued OS. I used Debian 11 in a VM. The `repo sync` took many many hours - a whole 34 GiB were downloaded. Unfortunately, some of the dependency packages don't seem to exist on Debian 11: eclipse-jdt, libandroidsdk-ddmlib-java, libandroidsdk-sdklib-java and one more. Also, there is no 'llvm-defaults', there is llvm. I think there were some other differences too. The given commands also don't work literally - I had to install the packages one by one. Pasting the whole lines from the doc didn't work. Anyway, I tried my best to set up this environment.
Then, in step 'Building the toolchain':
https://redmine.replicant.us/projects/replicant/wiki/GenericReplicant60Build#Building-the-toolchain
I ran:
./vendor/replicant/build-toolchain
The process starts but fails with a linker error somewhere at 4% (something related to LLVM, IIRC). I looked all over the web for this error but couldn't find a way to fix it. The "self-contained version or repo" didn't work either. Even `make clobber`, `make clean` and `make tcclean` don't work (errors).
I hope someone can update the docs, so one can build Replicant using an up-to-date OS.
No data to display