syncthing-android: F-Droid build failed 1.21.0.3 / Downgrade NDK r25b > r24 / python(3)?

Description of the issue

# github.com/syncthing/syncthing/cmd/syncthing
/home/vagrant/build/syncthing-android-prereq/go_1.19.1/pkg/tool/linux_amd64/link: running /home/vagrant/build/com.github.catfriend1.syncthingandroid/syncthing/../../syncthing-android-prereq/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi19-clang failed: exit status 1
clang-14: error: unable to execute command: posix_spawn failed: Exec format error
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)

exit status 2
exit status 1
Traceback (most recent call last):
  File "./build-syncthing.py", line 385, in <module>
    ] + ['-no-upgrade', 'build'], env=environ, cwd=syncthing_dir)
  File "/usr/lib/python2.7/subprocess.py", line 186, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/vagrant/build/com.github.catfriend1.syncthingandroid/syncthing/../../syncthing-android-prereq/go_1.19.1/bin/go', 'run', 'build.go', '-goos', 'android', '-goarch', 'arm', '-cc', '/home/vagrant/build/com.github.catfriend1.syncthingandroid/syncthing/../../syncthing-android-prereq/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi19-clang', '-version', u'v1.21.0', '-no-upgrade', 'build']' returned non-zero exit status 1

https://monitor.f-droid.org/builds/log/com.github.catfriend1.syncthingandroid/1210003#site-footer

Could you please take a look? Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

image

Got the same problem too on my Debian builder. I wonder what’s the root cause here as it builds fine under Windows.