0 votes

I have a custom build of godot and I have been trying to compile export templates for android for months now. When I run the scons command I get this error.

~/Development/Godot-Source/godot36$ scons platform=android target=release android_arch=armv7
scons: Reading SConscript files ...
Auto-detected 6 CPU cores available for build parallelism. Using 5 cores by default. You can override it with the -j argument.
Checking for Android NDK...
Building for Android (armv7) (with NEON)
Checking for C header file mntent.h... (cached) yes
scons: done reading SConscript files.
scons: Building targets ...
[ 66%] /home/worryword/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-linux-androideabi19 -c - m f p u = n e o n -o thirdparty/libvpx/vpx_dsp/arm/gas/intrapred_neon_asm.android.opt.armv7.neon.o thirdparty/libvpx/vpx_dsp/arm/gas/intrapred_neon_asm.s
[ 66%] /home/worryword/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-linux-androideabi19 -c - m f p u = n e o n -o thirdparty/libvpx/vpx_dsp/arm/gas/loopfilter_mb_neon.android.opt.armv7.neon.o thirdparty/libvpx/vpx_dsp/arm/gas/loopfilter_mb_neon.s
[ 66%] /home/worryword/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-linux-androideabi19 -c - m f p u = n e o n -o thirdparty/libvpx/vpx_dsp/arm/gas/save_reg_neon.android.opt.armv7.neon.o thirdparty/libvpx/vpx_dsp/arm/gas/save_reg_neon.s
clang-12: clang-12error: : -E or -x required when input is from standard input
error: -E or -x required when input is from standard input
clang-12: error: no such file or directory: 'm'
clang-12: error: no such file or directory: 'm'
clang-12: error: no such file or directory: 'f'
clang-12: error: no such file or directory: 'f'
clang-12: error: no such file or directory: 'p'
clang-12: error: no such file or directory: 'p'
clang-12: error: no such file or directory: 'u'
clang-12: error: no such file or directory: 'u'
clang-12: error: -E or -x required when input is from standard input
clang-12: error: no such file or directory: '='
clang-12: error: no such file or directory: '='
clang-12: error: no such file or directory: 'm'
clang-12: error: no such file or directory: 'n'
clang-12: error: no such file or directory: 'n'
clang-12: error: no such file or directory: 'f'
clang-12: error: no such file or directory: 'e'
clang-12: error: no such file or directory: 'e'
clang-12: error: no such file or directory: 'p'
clang-12: error: no such file or directory: 'o'
clang-12: error: no such file or directory: 'o'
clang-12: error: no such file or directory: 'u'
clang-12: error: no such file or directory: 'n'
clang-12: error: no such file or directory: 'n'
clang-12: error: no such file or directory: '='
clang-12: clang-12: error: error: cannot specify -o when generating multiple output filescannot specify -o when generating multiple output files

clang-12: error: no such file or directory: 'n'
[ 66%] clang-12: error: no such file or directory: 'e'
[ 66%] clang-12: error: no such file or directory: 'o'
[ 66%] clang-12: error: no such file or directory: 'n'
clang-12: error: cannot specify -o when generating multiple output files
[ 66%] Compiling ==> thirdparty/libsimplewebm/libwebm/mkvparser/mkvparser.cc
[ 66%] scons: *** [thirdparty/libvpx/vpx_dsp/arm/gas/save_reg_neon.android.opt.armv7.neon.o] Error 1
scons: *** [thirdparty/libvpx/vpx_dsp/arm/gas/intrapred_neon_asm.android.opt.armv7.neon.o] Error 1
scons: *** [thirdparty/libvpx/vpx_dsp/arm/gas/loopfilter_mb_neon.android.opt.armv7.neon.o] Error 1
Compiling ==> thirdparty/libsimplewebm/OpusVorbisDecoder.cpp
scons: building terminated because of errors.
[Time elapsed: 00:00:07.782]

I am using Linux Mint Vera if that helps.

Godot version 3.6-beta
in Engine by (59 points)

I'm far from an expert in this area, but this (for example) looks suspicious in your above log...

/home/worryword/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-linux-androideabi19 -c - m f p u = n e o n

I assume the end of that should be:

-c -mfpu=neon

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.