Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to build with ndk-23-2-8568313 #113

Open
goatchurchprime opened this issue Dec 18, 2024 · 1 comment
Open

Failure to build with ndk-23-2-8568313 #113

goatchurchprime opened this issue Dec 18, 2024 · 1 comment

Comments

@goatchurchprime
Copy link

I put ndk-23-2-8568313 in the example on the front page and it had lots of errors like:

searching for dependencies of /nix/store/iglkwk3ij18dmj2n06v8zi0d8mblnz97-ndk-23-2-8568313-23.2.8568313/prebuilt/linux-x86_64/lib/python2.7/lib-dynload/cmath.so

I tried replicating it in the example at this issue: #62 where the not working flake (at the top) now works. But while it's okay with ndk-21, it doesn't work for ndk-23 (The furthest I can get it to is complaining about missing python39)

For background, ndk-23-2-8568313 is required by the GodotEngine build environment
https://docs.godotengine.org/en/stable/contributing/development/compiling/compiling_for_android.html#setting-up-the-buildsystem

sdk.zip

@JJJHolscher
Copy link

I am having the same trouble. I need ndk-bundle to work, but it has troubles with various dependencies

auto-patchelf: 7 dependencies could not be satisfied
error: auto-patchelf could not satisfy dependency libssl.so.1.0.0 wanted by /nix/store/g8bcqbhc0j08l1k3qri6m8iibriycg4q-ndk-bundle-23.0.7344513-rc4/toolchains/llvm/prebuilt/linux-x86_64/python3/lib/python3.9/lib-dynload/_ssl.cpython-39-x86_64-linux-gnu.so
error: auto-patchelf could not satisfy dependency libcrypto.so.1.0.0 wanted by /nix/store/g8bcqbhc0j08l1k3qri6m8iibriycg4q-ndk-bundle-23.0.7344513-rc4/toolchains/llvm/prebuilt/linux-x86_64/python3/lib/python3.9/lib-dynload/_ssl.cpython-39-x86_64-linux-gnu.so
error: auto-patchelf could not satisfy dependency libcrypto.so.1.0.0 wanted by /nix/store/g8bcqbhc0j08l1k3qri6m8iibriycg4q-ndk-bundle-23.0.7344513-rc4/toolchains/llvm/prebuilt/linux-x86_64/python3/lib/python3.9/lib-dynload/_hashlib.cpython-39-x86_64-linux-gnu.so
error: auto-patchelf could not satisfy dependency libgdbm_compat.so.3 wanted by /nix/store/g8bcqbhc0j08l1k3qri6m8iibriycg4q-ndk-bundle-23.0.7344513-rc4/toolchains/llvm/prebuilt/linux-x86_64/python3/lib/python3.9/lib-dynload/_dbm.cpython-39-x86_64-linux-gnu.so
error: auto-patchelf could not satisfy dependency libffi.so.6 wanted by /nix/store/g8bcqbhc0j08l1k3qri6m8iibriycg4q-ndk-bundle-23.0.7344513-rc4/toolchains/llvm/prebuilt/linux-x86_64/python3/lib/python3.9/lib-dynload/_ctypes.cpython-39-x86_64-linux-gnu.so
error: auto-patchelf could not satisfy dependency libgdbm.so.3 wanted by /nix/store/g8bcqbhc0j08l1k3qri6m8iibriycg4q-ndk-bundle-23.0.7344513-rc4/toolchains/llvm/prebuilt/linux-x86_64/python3/lib/python3.9/lib-dynload/_gdbm.cpython-39-x86_64-linux-gnu.so
error: auto-patchelf could not satisfy dependency libreadline.so.6 wanted by /nix/store/g8bcqbhc0j08l1k3qri6m8iibriycg4q-ndk-bundle-23.0.7344513-rc4/toolchains/llvm/prebuilt/linux-x86_64/python3/lib/python3.9/lib-dynload/readline.cpython-39-x86_64-linux-gnu.so
auto-patchelf failed to find all the required dependencies.
Add the missing dependencies to --libs or use `--ignore-missing="foo.so.1 bar.so etc.so"`.
error: builder for '/nix/store/2dd9pmbhas97a0smzmsd8aww3lzi016g-ndk-bundle-23.0.7344513-rc4.drv' failed with exit code 1;

It seems that overwriting the buildInputs for it is the way to go, since I did eliminate the sqlite error that way (I used to have 8 dependencies not satisfied)

    (ndk-bundle.overrideAttrs (old: {
        buildInputs = old.buildInputs ++ [ 
            # this helps
            pkgs.sqlite
            # these make no difference
            pkgs.gdbm
            pkgs.libffi
            pkgs.openssl
            pkgs.readline
        ];
    }))

Unfortunately, there might be a version problem since adding packages for the other missing dependencies don't cause the errors to go away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants