Project

General

Profile

Bug #900

standalone arm-linux-androideabi-4.9 fails to compile: cannot find -lcrystax

Added by Xiao Bao Clark over 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
High
Category:
-
Target version:
Start date:
02/13/2015
Due date:
% Done:

100%

Estimated time:
CPU Architecture:
arm
Host OS:
Linux
Toolchain:
gcc-4.9
Android version:
4.2 (android-17)
CrystaX Version:

Description

I made a standalone toolchain with the @make-standalone-toolchain.sh@ script:

$CRYSTAX_NDK/build/tools/make-standalone-toolchain.sh --verbose --toolchain=arm-linux-androideabi-4.9 --arch=arm --abis=armeabi-v7a --install-dir=$STANDALONE --platform=android-17

Attempting to do a test compilation fails:

echo "int main(){}" | ${STANDALONE}/bin/arm-linux-androideabi-gcc -x c -o tst -
$STANDALONE/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lcrystax
collect2: error: ld returned 1 exit status

OS: Linux Mint Rebecca (17.1)
Crystax version: 10.1.0

History

#1 Updated by Dmitry Moskalchuk over 4 years ago

  • Assignee set to Dmitry Moskalchuk
  • Priority changed from Normal to High

#2 Updated by Xiao Bao Clark over 4 years ago

Thanks for looking into it. The workaround I'm using:

export LDFLAGS=-L${STANDALONE}/arm-linux-androideabi/lib/armv7-a

The only issue is that the thumb version will never be used, but that shouldn't cause any runtime issues

#3 Updated by Dmitry Moskalchuk about 4 years ago

Xiao Bao Clark wrote:

The only issue is that the thumb version will never be used, but that shouldn't cause any runtime issues

If you need thumb version, you can specify:

export LDFLAGS=-L${STANDALONE}/arm-linux-androideabi/lib/armv7-a/thumb

Anyway, I confirm the bug is really present - gcc for some reason stopped including that library path into default linker search path list. The most interesting thing is that all our standalone tests passed successfully, but your specific case doesn't work.
We're working on it and will include the fix to the next release. In the meantime, please use workaround with LDFLAGS.

#4 Updated by Dmitry Moskalchuk about 4 years ago

  • Status changed from Open to In Progress

#5 Updated by Dmitry Moskalchuk about 4 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

#6 Updated by Dmitry Moskalchuk almost 4 years ago

  • Target version set to 10.2.0

Also available in: Atom PDF