You are not logged in.

#1 2022-01-06 10:46:47

UnequalB
Member
Registered: 2021-05-17
Posts: 21

[SOLVED] Unable to install aur package after power loss

Was installing touche and my laptop battery died, now trying to reinstall (both through yay and makepkg) gives this error:

ln: failed to create symbolic link '/home/unequal/.cache/yay/touche/pkg/touche/usr/bin/touche': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...

I tried deleting .cache/yay/touche as well as the touche folder in /tmp/, neither of which worked

Last edited by UnequalB (2022-01-11 08:06:48)


CPU: Intel Core i5-8265U (Coffee Lake)
GPU: Intel UHD Graphics 620 (Whiskey Lake-U GT2) / NVIDIA MX130
Laptop model: HP ProBook 450 G6
Kernel: Zen

Offline

#2 2022-01-06 13:38:20

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,262

Re: [SOLVED] Unable to install aur package after power loss

The source tarball / extracted files or PKGBUILD may have been corrupted, have you tried with freshly downloaded versions ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2022-01-07 14:19:39

UnequalB
Member
Registered: 2021-05-17
Posts: 21

Re: [SOLVED] Unable to install aur package after power loss

Not entirely sure, but I tried cloning it with git and running makepkg, only to get the same error.


CPU: Intel Core i5-8265U (Coffee Lake)
GPU: Intel UHD Graphics 620 (Whiskey Lake-U GT2) / NVIDIA MX130
Laptop model: HP ProBook 450 G6
Kernel: Zen

Offline

#4 2022-01-08 12:26:05

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,262

Re: [SOLVED] Unable to install aur package after power loss

Please build like this :

LC_ALL=C makepkg --cleanbuild --syncdeps --rmdeps --log

Once that has finished , there will be several new files ending with .log , post their content.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2022-01-08 22:01:07

UnequalB
Member
Registered: 2021-05-17
Posts: 21

Re: [SOLVED] Unable to install aur package after power loss

The build.log and check.log files are empty, but the package.log shows

ln: failed to create symbolic link '/home/unequal/touche/pkg/touche/usr/bin/touche': No such file or directory
[1m[31m==> ERROR:(B[m[1m A failure occurred in package().(B[m
[1m    Aborting...(B[m

CPU: Intel Core i5-8265U (Coffee Lake)
GPU: Intel UHD Graphics 620 (Whiskey Lake-U GT2) / NVIDIA MX130
Laptop model: HP ProBook 450 G6
Kernel: Zen

Offline

#6 2022-01-09 11:25:08

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,262

Re: [SOLVED] Unable to install aur package after power loss

the touche PKGBUILD does have a build & check function and the package function does do more then set a symbolic link.

Something is very wrong on your system.

Output of

$ type makepkg
$ type pacman
$ pacman -Qkk pacman

?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2022-01-09 11:28:28

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Unable to install aur package after power loss

`type -a meson` would also be good. It sounds like meson is failing, but not returning a failure.

Offline

#8 2022-01-09 15:17:37

UnequalB
Member
Registered: 2021-05-17
Posts: 21

Re: [SOLVED] Unable to install aur package after power loss

type pacman gives:

pacman is /usr/bin/pacman

type makepkg:

makepkg is /usr/bin/makepkg

type -a meson:

meson is /usr/bin/meson

pacman -Qkk pacman:

backup file: pacman: /etc/pacman.conf (Modification time mismatch)
backup file: pacman: /etc/pacman.conf (Size mismatch)
backup file: pacman: /etc/pacman.conf (MD5 checksum mismatch)
backup file: pacman: /etc/pacman.conf (SHA256 checksum mismatch)
pacman: 399 total files, 0 altered files

CPU: Intel Core i5-8265U (Coffee Lake)
GPU: Intel UHD Graphics 620 (Whiskey Lake-U GT2) / NVIDIA MX130
Laptop model: HP ProBook 450 G6
Kernel: Zen

Offline

#9 2022-01-09 15:33:10

UnequalB
Member
Registered: 2021-05-17
Posts: 21

Re: [SOLVED] Unable to install aur package after power loss

Okay so meson was broken, and reinstalling meson with

 sudo pacman -S meson --overwrite "*" 

gets it a bit further, now the logs aren't empty.
the build.log:

+ exec meson setup --prefix /usr --libexecdir lib --sbindir bin --buildtype plain --auto-features enabled --wrap-mode nodownload -D b_lto=true -D b_pie=true . build
The Meson build system
Version: 0.60.3
Source dir: /home/unequal/touche/src/touche-2.0.2
Build dir: /home/unequal/touche/src/touche-2.0.2/build
Build type: native build
Project name: com.github.joseexposito.touche
Project version: 2.0.2
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program gjs found: YES (/usr/bin/gjs)
Program npm found: YES (/usr/bin/npm)
Program node found: YES (/usr/bin/node)
Program g-ir-scanner found: YES (/usr/bin/g-ir-scanner)
Program desktop-file-validate found: YES (/usr/bin/desktop-file-validate)
Program appstream-util found: YES (/usr/bin/appstream-util)
Program glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas)
Program xgettext found: YES (/usr/bin/xgettext)

Executing subproject libtouche 

libtouche| Project name: libtouche
libtouche| Project version: 2.0.0
libtouche| C++ compiler for the host machine: c++ (gcc 11.1.0 "c++ (GCC) 11.1.0")
libtouche| C++ linker for the host machine: c++ ld.bfd 2.36.1
libtouche| Found pkg-config: /usr/bin/pkg-config (1.8.0)
libtouche| Run-time dependency glib-2.0 found: YES 2.70.2
libtouche| Run-time dependency gobject-2.0 found: YES 2.70.2
libtouche| Run-time dependency x11 found: YES 1.7.3.1
libtouche| Found CMake: /usr/bin/cmake (3.22.1)
libtouche| WARNING: CMake Toolchain: Failed to determine CMake compilers state
libtouche| Run-time dependency gobject-introspection-1.0 found: NO (tried pkgconfig and cmake)

subprojects/libtouche/meson.build:37:6: ERROR: Dependency "gobject-introspection-1.0" not found, tried pkgconfig and cmake

A full log can be found at /home/unequal/touche/src/touche-2.0.2/build/meson-logs/meson-log.txt
[1m[31m==> ERROR:(B[m[1m A failure occurred in build().(B[m
[1m    Aborting...(B[m

as well as the meson.log:

Build started at 2022-01-09T15:24:34.258523
Main binary: /usr/bin/python
Build Options: -Db_lto=true -Db_pie=true -Dprefix=/usr -Dlibexecdir=lib -Dsbindir=bin -Dauto_features=enabled -Dbuildtype=plain -Dwrap_mode=nodownload
Python system: Linux
The Meson build system
Version: 0.60.3
Source dir: /home/unequal/touche/src/touche-2.0.2
Build dir: /home/unequal/touche/src/touche-2.0.2/build
Build type: native build
Project name: com.github.joseexposito.touche
Project version: 2.0.2
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Program gjs found: YES (/usr/bin/gjs)
Program npm found: YES (/usr/bin/npm)
Program node found: YES (/usr/bin/node)
Program g-ir-scanner found: YES (/usr/bin/g-ir-scanner)
Program desktop-file-validate found: YES (/usr/bin/desktop-file-validate)
Program appstream-util found: YES (/usr/bin/appstream-util)
Program glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas)
Program xgettext found: YES (/usr/bin/xgettext)

Executing subproject libtouche 

Project name: libtouche
Project version: 2.0.0
Sanity testing C++ compiler: c++
Is cross compiler: False.
Sanity check compiler command line: c++ sanitycheckcpp.cc -o sanitycheckcpp.exe -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -D_FILE_OFFSET_BITS=64 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/unequal/touche/src/touche-2.0.2/build/meson-private/sanitycheckcpp.exe
C++ compiler for the host machine: c++ (gcc 11.1.0 "c++ (GCC) 11.1.0")
C++ linker for the host machine: c++ ld.bfd 2.36.1
Sanity testing C++ compiler: c++
Is cross compiler: False.
Sanity check compiler command line: c++ sanitycheckcpp.cc -o sanitycheckcpp.exe -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -D_FILE_OFFSET_BITS=64 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /home/unequal/touche/src/touche-2.0.2/build/meson-private/sanitycheckcpp.exe
C++ compiler for the build machine: c++ (gcc 11.1.0 "c++ (GCC) 11.1.0")
C++ linker for the build machine: c++ ld.bfd 2.36.1
Pkg-config binary for MachineChoice.HOST is not cached.
Pkg-config binary missing from cross or native file, or env var undefined.
Trying a default Pkg-config fallback at pkg-config
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Determining dependency 'glib-2.0' with pkg-config executable '/usr/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --modversion glib-2.0` -> 0
2.70.2
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --cflags glib-2.0` -> 0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --libs glib-2.0` -> 0
-L/usr/lib -lglib-2.0
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --libs glib-2.0` -> 0
-lglib-2.0
Running compile:
Working directory:  /home/unequal/touche/src/touche-2.0.2/build/meson-private/tmpmsnr828n
Command line:  c++ /home/unequal/touche/src/touche-2.0.2/build/meson-private/tmpmsnr828n/testfile.cpp -o /home/unequal/touche/src/touche-2.0.2/build/meson-private/tmpmsnr828n/output.exe -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -D_FILE_OFFSET_BITS=64 -O0 -fpermissive -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now 

Code:
 #include<stdio.h>
        
        int main(void) {
            printf("%ld\n", (long)(sizeof(void *)));
            return 0;
        }
Compiler stdout:
 
Compiler stderr:
 In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from /home/unequal/touche/src/touche-2.0.2/build/meson-private/tmpmsnr828n/testfile.cpp:1:
/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
  397 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~

Program stdout:

8

Program stderr:


Running compile:
Working directory:  /home/unequal/touche/src/touche-2.0.2/build/meson-private/tmp7c90u4o8
Command line:  c++ /home/unequal/touche/src/touche-2.0.2/build/meson-private/tmp7c90u4o8/testfile.cpp -o /home/unequal/touche/src/touche-2.0.2/build/meson-private/tmp7c90u4o8/output.obj -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -D_FILE_OFFSET_BITS=64 -O0 -fpermissive --print-search-dirs 

Code:
 
Compiler stdout:
 install: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/
programs: =/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu/11.1.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/
libraries: =/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/lib/x86_64-pc-linux-gnu/11.1.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/lib/../lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../x86_64-pc-linux-gnu/11.1.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib/:/lib/x86_64-pc-linux-gnu/11.1.0/:/lib/../lib/:/usr/lib/x86_64-pc-linux-gnu/11.1.0/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../:/lib/:/usr/lib/

Compiler stderr:
 
Run-time dependency glib-2.0 found: YES 2.70.2
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'gobject-2.0' with pkg-config executable '/usr/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --modversion gobject-2.0` -> 0
2.70.2
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --cflags gobject-2.0` -> 0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --libs gobject-2.0` -> 0
-L/usr/lib -lgobject-2.0 -lglib-2.0
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --libs gobject-2.0` -> 0
-lgobject-2.0 -lglib-2.0
Run-time dependency gobject-2.0 found: YES 2.70.2
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'x11' with pkg-config executable '/usr/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --modversion x11` -> 0
1.7.3.1
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --cflags x11` -> 0

env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --libs x11` -> 0
-L/usr/lib -lX11
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --libs x11` -> 0
-lX11
Run-time dependency x11 found: YES 1.7.3.1
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'gobject-introspection-1.0' with pkg-config executable '/usr/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/bin/pkg-config --modversion gobject-introspection-1.0` -> 1

CMake binary for 1 is not cached
CMake binary missing from cross or native file, or env var undefined.
Trying a default CMake fallback at cmake
Found CMake: /usr/bin/cmake (3.22.1)
Extracting basic cmake information
CMake Toolchain: Calling CMake once to generate the compiler state
Calling CMake (['/usr/bin/cmake']) in /home/unequal/touche/src/touche-2.0.2/build/meson-private/__CMake_compiler_info__ with:
  - "--trace-expand"
  - "--trace-format=json-v1"
  - "--no-warn-unused-cli"
  - "--trace-redirect=cmake_trace.txt"
  - "-G"
  - "Ninja"
  - "-DCMAKE_TOOLCHAIN_FILE=/home/unequal/touche/src/touche-2.0.2/build/meson-private/__CMake_compiler_info__/CMakeMesonTempToolchainFile.cmake"
  - "."
WARNING: CMake Toolchain: Failed to determine CMake compilers state
Try CMake generator: auto
Calling CMake (['/usr/bin/cmake']) in /home/unequal/touche/src/touche-2.0.2/build/meson-private/cmake_gobject-introspection-1.0 with:
  - "--trace-expand"
  - "--trace-format=json-v1"
  - "--no-warn-unused-cli"
  - "--trace-redirect=cmake_trace.txt"
  - "-DCMAKE_TOOLCHAIN_FILE=/home/unequal/touche/src/touche-2.0.2/build/meson-private/cmake_gobject-introspection-1.0/CMakeMesonToolchainFile.cmake"
  - "."
  -- Module search paths:    ['/', '/opt', '/usr', '/usr/local']
  -- CMake root:             /usr/share/cmake
  -- CMake architectures:    ['libpyldb-util.cpython-310-x86-64-linux-gnu.so', 'libpyldb-util.cpython-310-x86-64-linux-gnu.so.2', 'libpyldb-util.cpython-310-x86-64-linux-gnu.so.2.4.1', 'libpytalloc-util.cpython-310-x86-64-linux-gnu.so', 'libpytalloc-util.cpython-310-x86-64-linux-gnu.so.2', 'libpytalloc-util.cpython-310-x86-64-linux-gnu.so.2.3.3', 'libsamba-policy.cpython-310-x86-64-linux-gnu.so', 'libsamba-policy.cpython-310-x86-64-linux-gnu.so.0', 'libsamba-policy.cpython-310-x86-64-linux-gnu.so.0.0.1']
  -- CMake lib search paths: ['lib', 'lib32', 'lib64', 'libx32', 'share', 'lib/libpyldb-util.cpython-310-x86-64-linux-gnu.so', 'lib/libpyldb-util.cpython-310-x86-64-linux-gnu.so.2', 'lib/libpyldb-util.cpython-310-x86-64-linux-gnu.so.2.4.1', 'lib/libpytalloc-util.cpython-310-x86-64-linux-gnu.so', 'lib/libpytalloc-util.cpython-310-x86-64-linux-gnu.so.2', 'lib/libpytalloc-util.cpython-310-x86-64-linux-gnu.so.2.3.3', 'lib/libsamba-policy.cpython-310-x86-64-linux-gnu.so', 'lib/libsamba-policy.cpython-310-x86-64-linux-gnu.so.0', 'lib/libsamba-policy.cpython-310-x86-64-linux-gnu.so.0.0.1']
Preliminary CMake check failed. Aborting.
Run-time dependency gobject-introspection-1.0 found: NO (tried pkgconfig and cmake)

subprojects/libtouche/meson.build:37:6: ERROR: Dependency "gobject-introspection-1.0" not found, tried pkgconfig and cmake

Not sure if this helps much, a bunch of packages were broken when my laptop died (including libadawaita, appstream, appstream-glib, gcab, gtk3 and gtk4), and I'm not sure i got all of them, but I had to reinstall them the same way i reinstalled meson (with --overwrite "*") because it'd spit out a bunch of file conflict errors for files that, according to pacman, weren't owned by any packages.


CPU: Intel Core i5-8265U (Coffee Lake)
GPU: Intel UHD Graphics 620 (Whiskey Lake-U GT2) / NVIDIA MX130
Laptop model: HP ProBook 450 G6
Kernel: Zen

Offline

#10 2022-01-09 15:43:16

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Unable to install aur package after power loss

Offline

#11 2022-01-11 08:06:12

UnequalB
Member
Registered: 2021-05-17
Posts: 21

Re: [SOLVED] Unable to install aur package after power loss

That seems to have worked, thanks!


CPU: Intel Core i5-8265U (Coffee Lake)
GPU: Intel UHD Graphics 620 (Whiskey Lake-U GT2) / NVIDIA MX130
Laptop model: HP ProBook 450 G6
Kernel: Zen

Offline

Board footer

Powered by FluxBB