You are not logged in.

#1 2021-02-24 13:42:16

Filip62
Member
From: Slovakia
Registered: 2020-10-24
Posts: 25

Building AOSP 5.1.1 in 2021

Hello!

I have been trying to setup my environment in Arch Linux to build AOSP 5.1.1.

It is an old AOSP branch, I can build it successfully with this Docker container - Google's Dockerfile.

So I checked the versions of software that Docker container is running and tried to install those versions.

I have enabled the multilib repo in /etc/pacman.conf, I installed the lineageos-devel AUR package(which depends on the aosp-devel package).

I also installed this AUR package - gcc48-alternative-multilib.

I ran

export WITHOUT_HOST_CLANG=true

and

export PATH="/usr/gcc48/bin:$PATH"

before running

lunch

and

m

Here is my pkglist if you are wondering.

Here is the log from the start of the error to the end - Log of m

And this is the kind of error I am getting:

...
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/STATIC_LIBRARIES/libc++_intermediates/libc++.a(thread.o): unsupported reloc 43 against global symbol std::__1::system_error::~system_error()
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/STATIC_LIBRARIES/libc++_intermediates/libc++.a(thread.o): unsupported reloc 43 against global symbol typeinfo for std::__1::system_error
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: internal error in value_from_output_section, at /tmp/ndk-andrewhsieh/host-gcc4.6/toolchain-src/binutils/binutils-2.23/gold/reloc.cc:1549
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [build/core/host_shared_library_internal.mk:44: out/host/linux-x86/obj32/lib/libc++.so] Error 1
make: Leaving directory '/mnt/2412EAD412EAAA4E/android/aosp-5.1.1_r38'

Any help is appreciated, Thank You.

Offline

Board footer

Powered by FluxBB