mobile-nixos icon indicating copy to clipboard operation
mobile-nixos copied to clipboard

oneplus-enchilada build fails

Open theotheroracle opened this issue 1 year ago • 4 comments

error: builder for '/nix/store/6aswplbfapsb4iqjwx1l21hbzy1s5wh0-gnupg-aarch64-unknown-linux-gnu-2.4.4.drv' failed with exit code 1;
       last 25 log lines:
       > checking whether readline via "-lreadline" is present and sane... no
       > checking whether readline via "-lreadline -ltermcap" is present and sane... no
       > checking whether readline via "-lreadline -lcurses" is present and sane... no
       > checking whether readline via "-lreadline -lncurses" is present and sane... no
       > checking for library containing TSS_Create... no
       > checking for library containing Esys_Initialize... no
       > configure: checking for cc features
       > checking if gcc ignores unknown -Wno-* options... yes
       > checking if gcc supports -Wpointer-arith... yes
       > checking whether to enable log_clock... no
       > checking whether "make check" shall run all tests... no
       > checking whether tests should be run... yes
       > configure:
       > ***
       > *** It is now required to build with support for the
       > *** New Portable Threads Library (nPth). Please install this
       > *** library first.  The library is for example available at
       > ***   https://gnupg.org/ftp/gcrypt/npth/
       > *** (at least version 1.2 (API 1) is required).
       > ***
       > configure: error:
       > ***
       > *** Required libraries not found. Please consult the above messages
       > *** and install them before running configure again.
       > ***
       For full logs, run 'nix log /nix/store/6aswplbfapsb4iqjwx1l21hbzy1s5wh0-gnupg-aarch64-unknown-linux-gnu-2.4.4.drv'.

logs.txt

the command i ran was nix-build --argstr device oneplus-enchilada -A outputs.android-fastboot-images

on commit 655c8830d5fe2eae79c8fc0bab8033b34c8456eb

theotheroracle avatar Jun 08 '24 03:06 theotheroracle

You can change in pkgs.nix the revision for nixpkgs to 6143fc5eeb9c4f00163267708e26191d1e918932, thats the commit that fixed it upstream, and updating the hash accordingly

PedroMAdorno4 avatar Aug 02 '24 22:08 PedroMAdorno4

test it as below to check if has any issue.

nix-build examples/phosh/ --argstr device oneplus-enchilada -A outputs.android-fastboot-images

gmicroul avatar Sep 18 '24 07:09 gmicroul

You can change in pkgs.nix the revision for nixpkgs to 6143fc5eeb9c4f00163267708e26191d1e918932, thats the commit that fixed it upstream, and updating the hash accordingly

I tried it, something else broke. Couldn't find any mention of this on nixpkgs

error: builder for '/nix/store/bsnm5mb2v3ny790ygs63yqbmj4h1pkmq-libgnt-aarch64-unknown-linux-gnu-2.14.1.drv' failed with exit code 1;
       last 25 log lines:
       > Target machine cpu family: aarch64
       > Target machine cpu: aarch64
       > Found pkg-config: YES (/nix/store/9sf0pipn71prr5sk6d4by3jwarwrln6i-aarch64-unknown-linux-gnu-pkg-config-wrapper-0.29.2/bin/aarch64-unknown-linux-gnu-pkg-config) 0.29.2
       > Run-time dependency glib-2.0 found: YES 2.78.4
       > Run-time dependency gobject-2.0 found: YES 2.78.4
       > Run-time dependency gmodule-2.0 found: YES 2.78.4
       > Run-time dependency libxml-2.0 found: YES 2.12.6
       > Library ncursesw found: YES
       > Library panelw found: YES
       > Library tinfow found: NO
       > Header "/nix/store/insr9r0vmmvz8rfgw5if6zd9h1z1vm4p-ncurses-aarch64-unknown-linux-gnu-6.4-dev/include/ncursesw/ncurses.h" has symbol "get_wch" : YES
       > Found CMake: NO
       > Run-time dependency python2 found: NO (tried pkgconfig and cmake)
       > Configuring gntconfig.h using configuration
       > Did not find pkg-config by name 'pkg-config'
       > Found pkg-config: NO
       > WARNING: Could not detect glib version, assuming 2.54. You may get build errors if your glib is older.
       > Did not find CMake 'cmake'
       > Found CMake: NO
       > Build-time dependency glib-2.0 found: NO (tried pkgconfig and cmake)
       > Program glib-genmarshal found: NO
       >
       > meson.build:206:19: ERROR: Program 'glib-genmarshal' not found or not executable
       >
       > A full log can be found at /build/libgnt-2.14.1/build/meson-logs/meson-log.txt
       For full logs, run 'nix log /nix/store/bsnm5mb2v3ny790ygs63yqbmj4h1pkmq-libgnt-aarch64-unknown-linux-gnu-2.14.1.drv'.```

silvarc141 avatar Oct 28 '24 02:10 silvarc141

The issue from my previous comment may be related to #751

silvarc141 avatar Nov 17 '24 01:11 silvarc141

after a while decided to revist this and try again , got this error :

/nix/store/ri6vnprxj30d0rd233q8kjck7hfnf2l2-stdenv-linux/setup: line 2022: /nix/store/nfqdppf1j1jqkpnc1j1w4zr9cpgizkvd-kernel-configuration-validator-snippet: cannot execute: required file not found
error: builder for '/nix/store/242anmvrrfbk2raf1z3nypsd4kwmjk0s-linux-aarch64-unknown-linux-gnu-6.4.0.drv' failed with exit code 127;
       last 25 log lines:
       > .config:7664:warning: override: reassigning to symbol SYSVIPC
       > .config:7665:warning: override: reassigning to symbol TIMERFD
       > .config:7666:warning: override: reassigning to symbol TMPFS
       > .config:7667:warning: override: reassigning to symbol TMPFS_POSIX_ACL
       > .config:7668:warning: override: reassigning to symbol TMPFS_XATTR
       > .config:7669:warning: override: reassigning to symbol TTY
       > .config:7670:warning: override: reassigning to symbol UEVENT_HELPER
       > .config:7671:warning: override: reassigning to symbol UNIX
       > .config:7672:warning: override: reassigning to symbol USER_NS
       > .config:7673:warning: override: reassigning to symbol VT
       > .config:7674:warning: override: reassigning to symbol XFRM
       > .config:7675:warning: override: reassigning to symbol XFRM_ALGO
       > .config:7676:warning: override: reassigning to symbol XFRM_USER
       > #
       > # configuration written to .config
       > #
       >
       >   GEN     Makefile
       > #
       > # No change to .config
       > #
       >
       > :: Validating required and suggested kernel config options
       >
       > /nix/store/ri6vnprxj30d0rd233q8kjck7hfnf2l2-stdenv-linux/setup: line 2022: /nix/store/nfqdppf1j1jqkpnc1j1w4zr9cpgizkvd-kernel-configuration-validator-snippet: cannot execute: required file not found
       For full logs, run 'nix log /nix/store/242anmvrrfbk2raf1z3nypsd4kwmjk0s-linux-aarch64-unknown-linux-gnu-6.4.0.drv'.
error (ignored): error: cannot unlink 'ruby-3.3.8' in directory '/nix/var/nix/builds/nix-build-ruby-aarch64-unknown-linux-gnu-3.3.8.drv-3': Directory not empty
error (ignored): error: cannot unlink 'libglib-2.0.so.0.8400.1.p' in directory '/nix/var/nix/builds/nix-build-glib-aarch64-unknown-linux-gnu-2.84.1.drv-1/glib-2.84.1/build/glib': Directory not empty
error (ignored): error: cannot unlink 'openssh-10.0p1' in directory '/nix/var/nix/builds/nix-build-openssh-aarch64-unknown-linux-gnu-10.0p2.drv-0': Directory not empty
error: 1 dependencies of derivation '/nix/store/0nabzwkazaxm3qrrnmp1c9xjlbxpqyzk-mobile-nixos_oneplus-fajita_boot.img.drv' failed to build
error: 1 dependencies of derivation '/nix/store/sgrzczhnibp3pmx4lkg482hhd6pv88m6-nixos-system-nixos-25.11pre804993.063f43f2dbde.drv' failed to build
error: 1 dependencies of derivation '/nix/store/md3k1c0wpn7shw4xqlv46jdr4iqx56sa-android-fastboot-images-oneplus-fajita.drv' failed to build

running nix-build --argstr device oneplus-enchilada -A outputs.android-fastboot-images on a fresh clone of 7a5fb89f4d2f08829f3fa1078108ceb40e8c8a67

theotheroracle avatar Jul 20 '25 23:07 theotheroracle

test it as below to check if has any issue.

nix-build examples/phosh/ --argstr device oneplus-enchilada -A outputs.android-fastboot-images

i did also try this command , it gave the same error

theotheroracle avatar Jul 20 '25 23:07 theotheroracle