Error Making archlinux template. Target not found pulseaudio < 9.0

177 views
Skip to first unread message

Facundo Curti

unread,
Jul 9, 2016, 8:13:06 PM7/9/16
to qubes...@googlegroups.com
Hi there.
I'm trying to make an archlinux template following this guide:

https://www.qubes-os.org/doc/templates/archlinux/

But when I try to: make gui-agent-linux-vm

I get this error:

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.80-1.fc23.noarch
dpkg-dev-1.17.25-6.fc23.noarch
python-sh-1.11-1.fc23.noarch
dialog-1.2-16.20150528.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 gui-agent-linux (archlinux) for archlinux vm (logfile: build-logs/gui-agent-linux-vm-archlinux.log)
--> build failed!
  -> Disabling key D4DE5ABDE2A7287644EAC7E36D1A9E70E19DAA50...
  -> Disabling key BC1FBE4D2826A0B51E47ED62E2539214C6C11350...
  -> Disabling key 9515D8A8EAB88E49BB65EDBCE6B456CAF15447D5...
  -> Disabling key 4A8B17E20B88ACA61860009B5CED81B7C2E5C0D2...
  -> Disabling key 63F395DE2D6398BBE458F281F2DBB4931985A992...
  -> Disabling key 0B20CA1931F5DA3A70D0F8D2EA6836E1AB441196...
  -> Disabling key 8F76BEEA0289F9E1D3E229C05F946DED983D4366...
  -> Disabling key 66BD74A036D522F51DD70A3C7F2A16726521E06D...
  -> Disabling key 81D7F8241DB38BC759C80FCE3A726C6170E80477...
  -> Disabling key E7210A59715F6940CF9A4E36A001876699AD6E84...
==> Updating trust database...
gpg: next trustdb check due at 2016-10-19
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 qubes is up to date
:: Starting full system upgrade...
 there is nothing to do
--> Archlinux dist-package (makefile)
  --> Building package in /home/user/qubes-src/gui-agent-linux
sudo BACKEND_VMM=xen chroot "/home/user/qubes-builder/chroot-archlinux" su user -c 'cd "/home/user/qubes-src/gui-agent-linux" && cp archlinux/PKGBUILD* ./ && env http_proxy="" makepkg --syncdeps --noconfirm --skipinteg'
==> Making package: qubes-vm-gui 3.1.7-5 (Sat Jul  9 23:44:54 UTC 2016)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: pulseaudio<9.0
==> ERROR: 'pacman' failed to install missing dependencies.
/home/user/qubes-builder/qubes-src/builder-archlinux/Makefile.archlinux:120: recipe for target 'dist-package' failed
make[2]: *** [dist-package] Error 1
Makefile.generic:139: recipe for target 'packages' failed
make[1]: *** [packages] Error 1
Makefile:208: recipe for target 'gui-agent-linux-vm' failed
make: *** [gui-agent-linux-vm] Error 1


So, I edited qubes-src/gui-agent-linux/archlinux/PKGBUILD on line 16:

depends=('pulseaudio>=8.0' 'pulseaudio<9.0' 'xorg-server>=1.18.0' 'xorg-server<1.19.0' 'qubes-vm-core>=3.0.14' 'xorg-xinit' 'alsa-lib' 'alsa-utils' 'pulseaudio-alsa' 'libxcomposite' 'zenity' 'qubes-libvchan-xen' 'python2-xcffib')
 
By:

depends=('pulseaudio>=8.0' 'pulseaudio<10.0' 'xorg-server>=1.18.0' 'xorg-server<1.19.0' 'qubes-vm-core>=3.0.14' 'xorg-xinit' 'alsa-lib' 'alsa-utils' 'pulseaudio-alsa' 'libxcomposite' 'zenity' 'qubes-libvchan-xen' 'python2-xcffib')

But now, I get this error:

 gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -I../include/ `pkg-config --cflags vchan-xen` -g -Wall -Wextra -Werror -pie -fPIC -DUSE_XENSTORE_H -D_FORTIFY_SOURCE=2  -c -o ../gui-common/error.o ../gui-common/error.c
../gui-common/error.c: In function ‘dummy_handler’:
../gui-common/error.c:37:5: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
     if (!print_x11_errors)
     ^~
../gui-common/error.c:40:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
  XGetErrorText(dpy, ev->error_code, buf, sizeof(buf));
  ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [<builtin>: ../gui-common/error.o] Error 1
make[1]: Leaving directory '/home/user/qubes-src/gui-agent-linux/gui-agent'
make: *** [Makefile:50: gui-agent/qubes-gui] Error 2
==> 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 'gui-agent-linux-vm' failed
make: *** [gui-agent-linux-vm] Error 1

 

 I also tried making this:
cd qubes-builder/qubes-src/gui-agent-linux/pulse
ls
cp -r pulsecore-#lastversion pulsecore-#archlinuxversion

But I get the same error.

Hope someone can help me plz. I'm new with Qubes. It is a one day install :3

Thank you! :)

Facundo Curti

unread,
Jul 10, 2016, 1:51:45 PM7/10/16
to qubes-users
I'm stuck.

https://groups.google.com/forum/#!topic/qubes-users/7wuwr3LgkQQ
https://groups.google.com/forum/#!topic/qubes-devel/tIFkS-rPVx8

None of these works for me :/

All day researching, but I cant solve this.

Marek Marczykowski-Górecki

unread,
Jul 10, 2016, 1:57:41 PM7/10/16
to Facundo Curti, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Sun, Jul 10, 2016 at 12:13:04AM +0000, Facundo Curti wrote:
> Hi there.
> I'm trying to make an archlinux template following this guide:
>
> https://www.qubes-os.org/doc/templates/archlinux/
>
> But when I try to:
>
> *make gui-agent-linux-vm*
> > user -c *'cd "/home/user/qubes-src/gui-agent-linux" && cp
> > archlinux/PKGBUILD* *./ && env http_proxy="" makepkg --syncdeps
> > --noconfirm --skipinteg'
> > ==> Making package: qubes-vm-gui 3.1.7-5 (Sat Jul 9 23:44:54 UTC 2016)
> > ==> Checking runtime dependencies...
> > *==> Installing missing dependencies...*
> > *error: target not found: pulseaudio<9.0*
> > ==> ERROR: 'pacman' failed to install missing dependencies.
> > /home/user/qubes-builder/qubes-src/builder-archlinux/Makefile.archlinux:120:
> > recipe for target 'dist-package' failed
> > make[2]: *** [dist-package] Error 1
> > Makefile.generic:139: recipe for target 'packages' failed
> > make[1]: *** [packages] Error 1
> > Makefile:208: recipe for target 'gui-agent-linux-vm' failed
> > make: *** [gui-agent-linux-vm] Error 1
> >
>
>
> So, I edited qubes-src/gui-agent-linux/archlinux/*PKGBUILD* on line *16*:
>
> depends=('pulseaudio>=8.0' *'pulseaudio<9.0'* 'xorg-server>=1.18.0'
> > 'xorg-server<1.19.0' 'qubes-vm-core>=3.0.14' 'xorg-xinit' 'alsa-lib'
> > 'alsa-utils' 'pulseaudio-alsa' 'libxcomposite' 'zenity'
> > 'qubes-libvchan-xen' 'python2-xcffib')
> >
>
> By:
>
> depends=('pulseaudio>=8.0' *'pulseaudio<10.0' * 'xorg-server>=1.18.0'
Both abover problems are already fixed in Qubes 3.2. Edit your
builder.conf and set RELEASE = 3.2, then download sources again. You may
need to remove qubes-src directory before to make sure you have clean
source tree.


- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXgoyQAAoJENuP0xzK19cs9eMH/ilfZM9FwZrpYVgxLfwxzxZB
ZTducDYIzBHNqmioQ+S+mA8GZnMJeQMy9JKijwH/HKq4rdF+ondlVKRTtaCPMTo/
f/oJn2VVUyswxeWOQjGEMY9DCMRxwMH/1Qzos0tnEdK8Lrvp6nbeYIss3Krcj9L+
HIWFup2Tc4KiNwdHVTXohSNavR5qTIBaHig5r9EUfY3oebMdM+ljvbmiE02drQwW
IAuNk3jQBXDlWxKdeWuyoVi03oPLtm3cObgOzmsC9WQ/K5sro1Pv7BC7tfGUuZ4t
jl2ZWeD2hMDU0k2bu55i1WWu+fP9PYxtgLhmdlP6NsuO32hf6261cBF6YwzXUCI=
=yGlR
-----END PGP SIGNATURE-----

Marek Marczykowski-Górecki

unread,
Jul 11, 2016, 9:04:08 AM7/11/16
to Facundo Curti, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Mon, Jul 11, 2016 at 04:17:47AM +0000, Facundo Curti wrote:
> I tried what you say but now I get another error.
> I even changed the qubes version following this:
> https://www.qubes-os.org/doc/upgrade-to-r3.2/
> But I have the same problem.
>
> Thank you for help
>
> [user@development qubes-builder]$ make gui-agent-linux-vm
(...)
> (cd gui-agent; make)
> make[1]: Entering directory '/home/user/qubes-src/gui-agent-linux/gui-agent'
> gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong
> -I../include/ `pkg-config --cflags vchan-xen` -g -Wall -Wextra -Werror -pie
> -fPIC -DUSE_XENSTORE_H -D_FORTIFY_SOURCE=2 -c -o vmside.o vmside.c
> vmside.c: In function ‘send_wmclass’:
> vmside.c:515:24: error: storage size of ‘msg’ isn’t known
> struct msg_wmclass msg;
> ^~~
> vmside.c:529:16: error: ‘MSG_WMCLASS’ undeclared (first use in this
> function)
> hdr.type = MSG_WMCLASS;
> ^~~~~~~~~~~
> vmside.c:529:16: note: each undeclared identifier is reported only once for
> each function it appears in
> vmside.c:515:24: error: unused variable ‘msg’ [-Werror=unused-variable]
> struct msg_wmclass msg;
> ^~~
> cc1: all warnings being treated as errors

It isn't the same. This time, it's about too old gui-common package
(probably still from 3.0 build). Recompile it with "make gui-common".

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXg5lAAAoJENuP0xzK19cso+YH/340DRjpC1dY7GJiVNfwsaSt
fj8l05IMIucYi3EACybmHwuZ8q5MsAB4TIlXUhLsS5teD9YpLdDR50MHodi/fucO
wRfjWeM/uqplXmIK+a9ux9AC9DMMUlA/n7e3PPyaPW6G2MXYWseZEiI/UlbJNcPm
rXMP6dVl+a8pdHUzxTtiQqu8TZSINHOCc0AvCpcT5YBk0Sh3UGw9se49rVvPUm+A
skGmlPexztEmcKI/MNikAh4rse3b7KOtZYVFA0AzecqDAYlXlnQXPpxuF02VGerq
RCDkNK8dBSHXgcD2fwjHjl1icDUwhMwGn4m02kRUa1etuh2lJSp/5W7SujDDKF8=
=QCLv
-----END PGP SIGNATURE-----

Marek Marczykowski-Górecki

unread,
Jul 11, 2016, 10:02:47 PM7/11/16
to Facundo Curti, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Tue, Jul 12, 2016 at 01:56:58AM +0000, Facundo Curti wrote:
> It seems endless. :P I had another error. So I downloaded the sources
> again, and retry...
>
> When I make vmm-xen-vm, now I have this error:
>

(...)

> ==> Finished making: qubes-vm-xen 4.6.1-17 (Tue Jul 12 01:40:42 UTC 2016)
> --> Archlinux dist-copy-out (makefile)
> ln: failed to create hard link
> ‘/home/user/qubes-builder/qubes-packages-mirror-repo/archlinux/pkgs/qubes-vm-xen-4.6.1-17-x86_64.pkg.tar.xz’
> =>
> ‘/home/user/qubes-builder/chroot-archlinux//home/user/qubes-src/vmm-xen//qubes-vm-xen-4.6.1-17-x86_64.pkg.tar.xz’:
> Invalid cross-device link
> /home/user/qubes-builder/qubes-src/builder-archlinux/Makefile.archlinux:131:

Looks like some stray mount left, probably from some previous failed
build. Try running "make umount" and retry.

PS Please don't drop mailing list from recipients.

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXhE/CAAoJENuP0xzK19cs78YH+gNtMvxBl9yugBPaP1mxMASa
gf6HIPsLRlQ7Z0T2Fs9rvqEUfgkwT0giHMOyGf1szbajraiz8GJiqC/bAof/63pl
aw+Fc+1zhd235FaEsKrBr9pJCLxFhdR4MXKDX0oUpFd+Lj0YJualLRlVm1hyUAJQ
Rx3TS9TlBZJovlZmHjhgiUz76tax8lMFxtLSPnkVLglxItAmfvkAQGPRiKwHfhIg
UrUg3Ikgn2T4X6260t7aoDEiXo8Gj/3RbcK3KJaMKS7xAJHwyPWA4UICvyQx88s7
/8Gz5BwDI6MMldgzCPHuM0sdi7f+zcwEzQW2+ZnOjWn2XZXvAY0cmyqFpEAd+jk=
=bIq9
-----END PGP SIGNATURE-----

Marek Marczykowski-Górecki

unread,
Jul 12, 2016, 12:38:14 AM7/12/16
to Facundo Curti, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Tue, Jul 12, 2016 at 04:08:52AM +0000, Facundo Curti wrote:
> 2016-07-12 2:02 GMT+00:00 Marek Marczykowski-Górecki <
> marm...@invisiblethingslab.com>:
>
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA256
> >
> > On Tue, Jul 12, 2016 at 01:56:58AM +0000, Facundo Curti wrote:
> > > It seems endless. :P I had another error. So I downloaded the sources
> > > again, and retry...
> > >
> > > When I make vmm-xen-vm, now I have this error:
> > >
> >
> > (...)
> >
> > > ==> Finished making: qubes-vm-xen 4.6.1-17 (Tue Jul 12 01:40:42 UTC 2016)
> > > --> Archlinux dist-copy-out (makefile)
> > > ln: failed to create hard link
> > >
> > ‘/home/user/qubes-builder/qubes-packages-mirror-repo/archlinux/pkgs/qubes-vm-xen-4.6.1-17-x86_64.pkg.tar.xz’
> > > =>
> > >
> > ‘/home/user/qubes-builder/chroot-archlinux//home/user/qubes-src/vmm-xen//qubes-vm-xen-4.6.1-17-x86_64.pkg.tar.xz’:
> > > Invalid cross-device link
> > >
> > /home/user/qubes-builder/qubes-src/builder-archlinux/Makefile.archlinux:131:
> >
> > Looks like some stray mount left, probably from some previous failed
> > build. Try running "make umount" and retry.
> >
> > PS Please don't drop mailing list from recipients.
>
> Thank you men! You are the best! But now I have a last problem (or I think
> is the last jaja)
>
> I finally could compile everything, but I get an error when I do make
> template:
>
> [root@development qubes-builder]# make template
> ln: failed to access
> ‘pkgs/fc23/x86_64/qubes-gpg-split-2.0.22-1.fc23.x86_64.rpm’: No such file
> or directory
> ln: failed to access
> ‘pkgs/fc23/x86_64/qubes-gpg-split-tests-2.0.22-1.fc23.x86_64.rpm’: No such
> file or directory
> /home/user/qubes-builder/qubes-src/builder-fedora/Makefile.fedora:163:
> recipe for target 'update-repo' failed

Looks like you are trying to build fedora-23 template. Is it what you
wanted? Check "make build-info" for configuration info. Then adjust
DISTS_VM setting - you probably want to have only "archlinux" there.

PS Please don't drop mailing list from recipients.

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXhHQxAAoJENuP0xzK19csvpYH/07frDUq9SL6uwoorGeVoj7p
JktkHT0mOygQd6YgK7Je0X9HN8GwmeLPOWc7WVKD32bOs4q4Ghpr1hN6xvWOeJHl
wArv1M/VXMiIB8rLWrev3VlfZcXvE2AHy4/0xFskEVDyiGivzvEm4Z4ecFGLbYqr
2clweG+Xp66ixef4LwRtBie2WM+Ld6FQ2SRxw7BQLq7MRjMnvF67N7uiXKrwc76D
M8+jpSCNWOgwFcFHIPU3X96dpkt7mt7czoFhgwD9wQqUQHQ9xLYd/YkQLtfKm8VT
JxHBVCSAfQtU0K9Y/QQGuRgYJV1B7M97W/eSqcgPtEbEkzrjjbRfswfQcdeciwM=
=UtH9
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages