question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Catfriend1commented, Oct 21, 2022

image

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

0reactions
linsuicommented, Dec 1, 2022

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

WSL1 NDK r25 clang-14: cannot execute binary file ... - GitHub
android -ndk-r23c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang-12 -v Andr.. ... F-Droid build failed 1.21.0.3 / Downgrade NDK r25b > r24 ...
Read more >
syncthing-android - bytemeta
syncthing-android repo issues. ... F-Droid build failed 1.21.0.3 / Downgrade NDK r25b > r24 / python(3)?. tidux. tidux CLOSED · Updated 4 weeks...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found