Making archlinux template: on make autoreconf not found but it is installed

137 views
Skip to first unread message

Facundo Curti

unread,
Aug 2, 2016, 8:25:38 AM8/2/16
to qubes-users
Hi there. Someone can help me?
I'm trying to make an archlinux template on qubes 3.2. But i'm having troubles to compile.

When I do:
$ make vmm-xen-vm

I get:
/home/user/qubes-src/vmm-xen/PKGBUILD: line 49: autoreconf: command not found

But autoreconf is already installed:
$ whereis autoreconf
autoreconf: /usr/bin/autoreconf /usr/share/man/man1/autoreconf.1.gz

Here is the complete output:

[user@development qubes-builder]$ make vmm-xen-vm
Currently installed dependencies:
git-2.5.5-1.fc23.x86_64
rpmdevtools-8.9-1.fc23.noarch
rpm-build-4.13.0-0.rc1.13.fc23.x86_64
createrepo-0.10.3-3.fc21.noarch
debootstrap-1.0.81-1.fc23.noarch
dpkg-dev-1.17.25-6.fc23.noarch
python-sh-1.11-1.fc23.noarch
dialog-1.3-4.20160424.fc23.x86_64
--> Archlinux dist-prepare-chroot (makefile):
  --> Checking mounting of dev/proc/sys on build chroot...
  --> Synchronize resolv.conf, in case it changed since last run...
-> Building vmm-xen (archlinux) for archlinux vm (logfile: build-logs/vmm-xen-vm-archlinux.log)
--> build failed!
==> Retrieving sources...
  -> Found xen-4.6.1.tar.gz
  -> Found series-vm.conf
  -> Found apply-patches
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting xen-4.6.1.tar.gz with bsdtar
bsdtar: Failed to set default locale
==> Starting build()...
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i ./patches.misc/qemu-tls-1.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i ./patches.misc/qemu-tls-2.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i ./patches.qubes/xen-shared-loop-losetup.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i ./patches.qubes/xen-no-downloads.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i ./patches.qubes/xen-hotplug-external-store.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i ./patches.qubes/xen-tools-qubes-vm.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i ./patches.qubes/vm-0001-hotplug-do-not-attempt-to-remove-containing-xenstore.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i ./patches.misc/libxc-fix-xc_gntshr_munmap-semantic.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i ./patches.misc/libvchan-Fix-cleanup-when-xc_gntshr_open-failed.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i ./patches.misc/0101-libvchan-create-xenstore-entries-in-one-transaction.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i ./patches.misc/0001-configure-Fix-when-no-libsystemd-compat-lib-are-avai.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i ./patches.misc/0001-libxc-prefer-using-privcmd-character-device.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i ./patches.misc/0001-tools-hotplug-Add-native-systemd-xendriverdomain.ser.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i ./patches.security/xsa155-xen-0003-libvchan-Read-prod-cons-only-once.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i ./patches.libxl/0001-libxl-trigger-attach-events-for-devices-attached-bef.patch
+ patch -s -F0 -E -p1 --no-backup-if-mismatch -i ./patches.misc/0001-systemd-use-standard-dependencies-for-xendriverdomai.patch
/home/user/qubes-src/vmm-xen/PKGBUILD: line 49: autoreconf: command not found
==> ERROR: A failure occurred in build().
    Aborting...
/home/user/qubes-builder/qubes-src/builder-archlinux/Makefile.archlinux:120: recipe for target 'dist-package' failed
make[2]: *** [dist-package] Error 2
Makefile.generic:139: recipe for target 'packages' failed
make[1]: *** [packages] Error 1
Makefile:208: recipe for target 'vmm-xen-vm' failed
make: *** [vmm-xen-vm] Error 1


Some ideas? :P

Facundo Curti

unread,
Aug 3, 2016, 1:23:21 AM8/3/16
to qubes-users
Someone? :S
I'm still having the problem. I tried making everything from fresh in a new VM, but i get the same error :P

donoban

unread,
Aug 3, 2016, 3:49:33 AM8/3/16
to qubes...@googlegroups.com
I have never tried to build a template but if this could help...

If the script can't find the autoreconf binary maybe it has a bad PATH
or it's being executed in a chroot/VM where autoreconf doesn't exist...

You could try to add some debug lines before the error, try to dump the
value of PATH. If PATH is right, try to determine if it's being executed
on a chroot or VM and if it has autoreconf installed in.

Look at the code of:
--> Archlinux dist-prepare-chroot (makefile):

It seems that it uses a chroot where doing the build. Try to find it.

Facundo Curti

unread,
Aug 3, 2016, 8:11:47 AM8/3/16
to qubes-users, don...@riseup.net
Thank you man!
I solved the error making this:
sudo chroot chroot-archlinux

then, inside the chroot:
pacman -S autoconf

Now I have another error:

>perl: warning: Setting locale failed.
>perl: warning: Please check that your locale settings:
> LANGUAGE = (unset),
> LC_ALL = (unset),
> LANG = "en_US.UTF-8"
> are supported and installed on your system.
>perl: warning: Falling back to the standard locale ("C").

But I will try to solve it inside chroot again. If I have troubles with this, i will let you know. Thanks men!

donoban

unread,
Aug 3, 2016, 8:34:36 AM8/3/16
to qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256



On 08/03/2016 02:11 PM, Facundo Curti wrote:
>
> Thank you man! I solved the error making this: sudo chroot
> chroot-archlinux
>
> then, inside the chroot: pacman -S autoconf
>
> Now I have another error:
>
>> perl: warning: Setting locale failed. perl: warning: Please check
>> that your locale settings: LANGUAGE = (unset), LC_ALL = (unset),
>> LANG = "en_US.UTF-8" are supported and installed on your system.
>> perl: warning: Falling back to the standard locale ("C").
>
> But I will try to solve it inside chroot again. If I have troubles
> with this, i will let you know. Thanks men!
>

Nice to hear. You will get it :)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXoeTZAAoJEBQTENjj7QilJh0P/2e9fGldDrX/bGswxNq8E0pq
QvKBhg1iVTlG/4tOfZVuXoRr8FRkymqJKx6MNJdWQtov1i/dSpLt3J94KfYbO7FB
/CN3UWjwSJC8OBTs7jNdFXArUu0ouSiOq2436NzTPRVd7Wu03defZutP230k2q7E
YTUoohlzNw32w0W3EfotE0ipa3qwZ+OPOpdjXtAa8szKvxkH9CLvEt33tOmXp2jm
T9uxjKboUUBLHduwTAgWrjkqZUiRKdjg8gxUUGh/PYUYSYeF0oO0jsd+DNPa10DF
CKAXqCEnKJ9vgIHawU+yuCr3GKCaQHdH/io2k8JsFhaPQRHydJymxSxjusJQMojK
ScdTL/oYfdwGF2lqk0JDU5Hu/sD+Is1iUx6uYTwQi40QtL18+z6/YIQNxpmTNP/a
xgFavz22PHoWvW5JoSNo5MZ2wWlJp2rz8DErnH7dDNEqMFUbFoY/PRHzg/uQu1Pi
nTu+4LUE77OOxRpIp66djTlmxEGoQmLJkG6mAX6UTfGKqoSGZhY8EMw7pbfdeGrj
Vz99QIVM2/AkW2Zi4nSodn0wVa0Iv4c6r2w0PQeYqnQvNE3tlXQ69Rjn/ryOfRv0
NNVqGdC665rl2p4GiOAJkLCDN5UNO8uKfKYrX/uM0vwq2fHZ2y8LwIRmch4Xpbk3
nt1PnRFUOhtAi3Rw8HmY
=bX/Q
-----END PGP SIGNATURE-----

Facundo Curti

unread,
Aug 3, 2016, 8:36:33 AM8/3/16
to qubes-users

--
You received this message because you are subscribed to a topic in the Google Groups "qubes-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qubes-users/Qppzj4RlrlU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qubes-users...@googlegroups.com.
To post to this group, send email to qubes...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/3a9cf5b3-5fe9-4712-958c-c801464a94a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

To solve the above problem, I had to install

pacman -S base-devel base-devel

Affter that I didn't had more problems compiling :)
Reply all
Reply to author
Forward
0 new messages