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

Paru fails to build in chroot if makepkg enables ccache #983

Closed
Zerophase opened this issue May 3, 2023 · 2 comments
Closed

Paru fails to build in chroot if makepkg enables ccache #983

Zerophase opened this issue May 3, 2023 · 2 comments

Comments

@Zerophase
Copy link

Zerophase commented May 3, 2023

Affected Version

1.11.1

Description

If ccache is enabled in makepkg.conf paru fails to build packages in chroot.

Output

paru -s pythonqt --chroot
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...

Aur (1) pythonqt-3.4.0-1

:: Proceed to review? [Y/n]: y

:: Downloading PKGBUILDs...
PKGBUILDs up to date
:: Proceed with installation? [Y/n]:
fetching devel info...
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
quarry is up to date
sublime-text is up to date
custom 20.0 KiB 189 KiB/s 00:00 [----------------------------------] 100%
:: Starting full system upgrade...
there is nothing to do
==> Synchronizing chroot copy [/var/lib/aurbuild/x86_64/root] -> [zerophase]...done
==> Making package: pythonqt 3.4.0-1 (Wed May 3 00:32:06 2023)
==> Retrieving sources...
-> Found v3.4.0.tar.gz
==> Validating source files with sha512sums...
v3.4.0.tar.gz ... Passed
==> ERROR: Cannot find the ccache binary required for compiler cache usage.
==> ERROR: Build failed, check /var/lib/aurbuild/x86_64/zerophase/build
error: failed to download sources for 'pythonqt-3.4.0-1': failed to run: makechrootpkg -c -r /var/lib/aurbuild/x86_64 -D /home/custompkgs -d /var/cache/pacman/pkg/ -- -ofA:
error: packages failed to build: pythonqt-3.4.0-1

@Morganamilo
Copy link
Owner

I believe arch uses another process to integrate chroot and ccache, though I don't remember where to find that. As you can see in your error output, the ccache binary can't be found. You could install ccache into the chroo but as each run is a clean chroot, no caching would actually be done.

@sr-tream
Copy link

@Morganamilo how I can add ccache in chroot? The flag -I of makechrootpkg require a path to package instead of name. So I can't once add ccache package, because it requires me to update path manualy on each ccache update.

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

3 participants