Skip to content

p4a build with NDK r18b: clang: error: unknown argument: '-mandroid'  #1853

Closed as not planned
@Fak3

Description

@Fak3

os: openSUSE Tumbleweed linux x64
p4a version: git master

I tried to build apk with command:
p4a apk --private /home/z/pproj/paradox_ssh/ --version=1.7 --bootstrap=sdl2 --local-recipes=./recipes --requirements=python3,kivy-async,openssl,sqlite3,pil,requests,sdl2,plyer --whitelist=./whitelist.txt --permission=CALL_PHONE --permission=INTERNET --orientation=portrait --package=org.spbelect.paradox2 --name="paradox2" --release

The build failed with error:

configure: error: in `/home/u1/.local/share/python-for-android/build/other_builds/freetype/armeabi-v7a__ndk_target_19/freetype/builds/unix':
configure: error: C compiler cannot create executables

full p4a stdout: https://gist.github.com/Fak3/42ec4c772338ca359ae08cc9eeb332be

contents of ~/.local/share/python-for-android/build/other_builds/freetype/armeabi-v7a__ndk_target_19/freetype/builds/unix/config.log
https://gist.github.com/Fak3/1c65cc9476f326a0c3bf03d317b1eb9f

The suspect by quick googling is openssl recipe, which adds '-mandroid' flag, not recognized by clang. Although it is odd that the error occurs when building freetype.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions