[Toybox] NDK versions?

Rob Landley rob at landley.net
Tue Mar 5 16:23:01 PST 2019


On 3/5/19 1:07 PM, enh wrote:
> (even betas should have source.properties because it's actually used by Studio.)
> 
> are you sure this is even an NDK? is this maybe a standalone toolchain
> you generated from an NDK?

I was a standalone toolchain.

> anyway, pasting "4751641 based on r328903" into Google gets me
> https://github.com/android-ndk/ndk/issues/866 which says 18.1.5063045
> which you can also paste into Google and get
> https://github.com/android-ndk/ndk/issues/852 which says r18b.

Yay!

> but if you really don't have those files, you probably have a
> standalone toolchain rather than an NDK. luckily r19 makes standalone
> toolchains mostly unnecessary --- the clang driver can now configure
> most things correctly from the target triple. (last few fixes in r20,
> coming soon.)

"Most things." Let's see... Still no llvm-cc symlink (point it at clang...)

distclean, defconfig, and:

landley at halfbrick:~/toybox/clean$
CROSS_COMPILE=/home/landley/android/android-ndk-r19b/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-
LDFLAGS=--static make
scripts/make.sh
Generate headers from toys/*/*.c...
generated/newtoys.h Library probe............
Make generated/config.h from .config.
generated/flags.h generated/globals.h generated/tags.h generated/help.h
Compile
toybox.....................................................................................................................................................................................generated/obj/id.o:
In function `do_id':
id.c:(.text.do_id+0x1c2): warning: Using 'getgrouplist' in statically linked
applications requires at runtime the shared libraries from the glibc version
used for linking
[a dozen similar warnings about glibc cut]
./home/landley/android/android-ndk-r19b/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip:
error: Link field value 0 in section .rela.plt is invalid.
strip failed, using unstripped
.
landley at halfbrick:~/toybox/clean$

Imma call that a "no".

Rob



More information about the Toybox mailing list