failed to Optimizing a build for size

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By icqqq

I download the source code from branch 3.0 (should be 3.0.6 now) and run the following:

scons p=android target=release_debug tools=no disable_3d=yes

but I get

scons: *** [bin\libgodot.android.opt.debug.armv7.neon.so] Error 1
scons: building terminated because of errors.

Is the Optimizing a build for size only work for 3.1?
Or am I missing something?
Thank you.

ps. the output of compilation:

modules\libmodules.android.opt.debug.armv7.neon.a(soft_body_bullet.android.opt.debug.armv7.neon.o):modules\bullet\soft_body_bullet.cpp:function SoftBodyBullet::SoftBodyBullet(): error: undefined reference to 'ImmediateGeometry::ImmediateGeometry()'

modules\libmodules.android.opt.debug.armv7.neon.a(soft_body_bullet.android.opt.debug.armv7.neon.o):modules\bullet\soft_body_bullet.cpp:function SoftBodyBullet::dispatch_callbacks(): error: undefined reference to 'ImmediateGeometry::clear()'

modules\libmodules.android.opt.debug.armv7.neon.a(soft_body_bullet.android.opt.debug.armv7.neon.o):modules\bullet\soft_body_bullet.cpp:function SoftBodyBullet::dispatch_callbacks(): error: undefined reference to 'ImmediateGeometry::begin(Mesh::PrimitiveType, Ref<Texture> const&)'
modules\libmodules.android.opt.debug.armv7.neon.a(soft_body_bullet.android.opt.debug.armv7.neon.o):modules\bullet\soft_body_bullet.cpp:function SoftBodyBullet::dispatch_callbacks(): error: undefined reference to 'ImmediateGeometry::add_vertex(Vector3 const&)'
modules\libmodules.android.opt.debug.armv7.neon.a(soft_body_bullet.android.opt.debug.armv7.neon.o):modules\bullet\soft_body_bullet.cpp:function SoftBodyBullet::dispatch_callbacks(): error: undefined reference to 'ImmediateGeometry::add_vertex(Vector3 const&)'
modules\libmodules.android.opt.debug.armv7.neon.a(soft_body_bullet.android.opt.debug.armv7.neon.o):modules\bullet\soft_body_bullet.cpp:function SoftBodyBullet::dispatch_callbacks(): error: undefined reference to 'ImmediateGeometry::add_vertex(Vector3 const&)'
modules\libmodules.android.opt.debug.armv7.neon.a(soft_body_bullet.android.opt.debug.armv7.neon.o):modules\bullet\soft_body_bullet.cpp:function SoftBodyBullet::dispatch_callbacks(): error: undefined reference to 'ImmediateGeometry::end()'clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)