From owner-freebsd-questions@freebsd.org Fri May 15 22:12:05 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C66092DBAE6 for ; Fri, 15 May 2020 22:12:05 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49P2h355npz4XQg for ; Fri, 15 May 2020 22:12:03 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by mail-io1-xd29.google.com with SMTP id x5so4396337ioh.6 for ; Fri, 15 May 2020 15:12:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=YvgHJfjpkqxEYbl/JCSWCVPX/3jp8IJxmkepYWS0y7k=; b=VAWijSjIIKaRDtR64guciVXn4xV0y3CozB0kGQRvRT9tVYbX9bbIeJ8nH2+eG8sCnt hz7x4Rqp1OXLpD+6AL+D0xHjbrxwbALh4L83V4MBKt+euvaTR3txIlLRXoLP1lbaZuzS uJOlKuRHBRzt1mh/VXDY/MiZA4VgcEOddzLWw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=YvgHJfjpkqxEYbl/JCSWCVPX/3jp8IJxmkepYWS0y7k=; b=m5W09yaFbusjO0Gr1JX1V5C2AimYtK/vxuMFv0QwAm4y13jbi923Wgdf9g2Afm/WZf Tx2lycTbv77IOpztz/hcxzuhHw0Yijfi0nBQrg7A6tTdmTlFyycz75ElphUGlyFyE+w0 lsLyTf7BF22ev0FMQ2s637+k3rlLeM5DDHVFlwxCVMbkUCx8dSx9cDqstXFuwc/6pbjW WEYcrftqkblKp+1gNbyR4vgP52IvWqUn1J2CZAdgeYMeU0tQKm9X8fVTVS0dH8q4Tssb CltgP9RyyLytrz9LA5VxhNJ/OFKISzEFW9p85VQugFhvGtluNOzYVAIenRNTNpOiBzZu olAA== X-Gm-Message-State: AOAM532Jf88odwZYCNPpCG27CslLakbNOGPgVO4pXl6GdYbkbUDJvt+m 0k9XrEIDtJyTdbDpGPGj5IvE+1bjPmPo8Woimq9I4mJtRJM= X-Google-Smtp-Source: ABdhPJxUv3PCEVvlHp0/hMghje77NTszVQwc7BukYw0CoaoMQlJJX+IHxO/moRcM70yxRzexfowTBVAa/ibPwHwRvEk= X-Received: by 2002:a02:4d:: with SMTP id 74mr280232jaa.141.1589580721372; Fri, 15 May 2020 15:12:01 -0700 (PDT) MIME-Version: 1.0 References: <3D852AFC-329C-46B7-A2DE-3E9B3D61BB21@kukulies.org> <310BA73B-3BFC-4B5A-B175-0A942FCC92B0@kukulies.org> <29080AE7-3C98-4D2D-9A73-34E7CF02EA5C@kukulies.org> <910A2CF5-E2A5-4EC8-B250-C87FA8399ABA@kukulies.org> <184EB792-871B-486C-A210-6AA0D31BEECB@kukulies.org> In-Reply-To: <184EB792-871B-486C-A210-6AA0D31BEECB@kukulies.org> From: Mario Lobo Date: Fri, 15 May 2020 19:11:50 -0300 Message-ID: Subject: Re: virtualbox-ose port fails (12.1) To: freeBSD Mailing List X-Rspamd-Queue-Id: 49P2h355npz4XQg X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsd.com.br header.s=capeta header.b=VAWijSjI; dmarc=none; spf=pass (mx1.freebsd.org: domain of lobo@bsd.com.br designates 2607:f8b0:4864:20::d29 as permitted sender) smtp.mailfrom=lobo@bsd.com.br X-Spamd-Result: default: False [-2.74 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[bsd.com.br:s=capeta]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[bsd.com.br]; URI_COUNT_ODD(1.00)[7]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsd.com.br:+]; RCVD_IN_DNSWL_NONE(0.00)[9.2.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-1.24)[ip: (-5.40), ipnet: 2607:f8b0::/32(-0.33), asn: 15169(-0.42), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2020 22:12:05 -0000 On Fri, May 15, 2020 at 4:39 PM Christoph Kukulies wrote: > I did the following: > > ln -s /usr/local/bin/phython3.7 /usr/local/bin/python > > (not sure whether this was healthy at all) > > Then went into > > /usr/ports/x11/libinput > > make install > > (this went through without a hitch) > > Then continued with building virtualbox-ose > > and it got over the point where it wanted to build libinput since the > request got satisfied. > > Don=E2=80=99t know what time to build the rest I would have to expect at = all. > > I also have a desktop with WIndows 10 that has 16GB and an AMD Hex core > (whatnot GHz). Maybe I should dedicate this one to FreeBSD :) ?) > > =E2=80=94 > Christoph > > > > Am 15.05.2020 um 21:17 schrieb Trond Endrest=C3=B8l < > trond.endrestol@ximalas.info>: > > > > On Fri, 15 May 2020 21:02+0200, Christoph Kukulies wrote: > > > >>> Am 15.05.2020 um 20:39 schrieb Trond Endrest=C3=B8l < > trond.endrestol@ximalas.info>: > >>> > >>> On Fri, 15 May 2020 20:18+0200, Christoph Kukulies wrote: > >>> > >>>>> Am 15.05.2020 um 19:15 schrieb Mario Lobo : > >>>>> > >>>>> On Fri, May 15, 2020 at 8:57 AM Christoph Kukulies < > kuku@kukulies.org > > >>>>> wrote: > >>>>>> > >>>>>>> Am 15.05.2020 um 11:18 schrieb Trond Endrest=C3=B8l < > >>>>>> trond.endrestol@ximalas.info >>: > >>>>>>> > >>>>>>> On Fri, 15 May 2020 10:40+0200, Christoph Kukulies wrote: > >>>>>>> > >>>>>>>> I knew why I initially began compiling the virtual box. Then I > got the > >>>>>> advice here to use the pckg. Trying that I ended up in a failing > >>>>>> (panicking) vboxvfs.ko module. > >>>>>>>> > >>>>>> > >>>>> [snip...] > >>>>> > >>>>>>>> > >>>>>>>> Stop. > >>>>>>>> make: stopped in /usr/ports/emulators/virtualbox-ose > >>>>>>>> # > >>>>>>>> > >>>>>>>> I=E2=80=99m wondering anyway why two python versions (2 and 3) h= ave to be > built > >>>>>> . But that left aside, how do I now get around this obstacle? > >>>>>>> > >>>>>>> According to ports/Mk/bsd.default-versions.mk, Python 3.7 is both > the > >>>>>>> default Python version and the default Python3 version. > >>>>>>> > >>>>>>> Have you locked the Pythons to 3.6 in /etc/make.conf or in an > >>>>>>> equivalent file such as /usr/local/etc/poudriere.d/make.conf? > >>>>>> > >>>>>> Thanks. Yes, I had some of these tools installed as pkg and alread= y > >>>>>> deleted them and the correct tools got built out of the ports tree= . > >>>>>> > >>>>>>> Do you mix prebuilt packages and packages built yourself? > >>>>>>> > >>>>>>> You should recompile devel/py-setuptools@py36 so that it abstains > from > >>>>>>> creating the /usr/local/bin/easy_install symlink. > >>>>>> > >>>>>> Done so, thanks. > >>>>>> > >>>>> Doesn't Vbox require python 2.7 to be built? > >>>>> > >>>>> I get a warning about python 2.7 everytime I build VBox. > >>>>> > >>>>> I have this in make.conf: > >>>>> > >>>>> DEFAULT_VERSIONS=3Dperl5=3D5.30 linux=3Dc7_64 ssl=3Dbase python=3D3= .7 > python2=3D2.7 > >>>>> python3=3D3.7 > >>>>> > >>>>> -- > >>>>> Mario Lobo > >>>> > >>>> In this vein my vbox make stops at the next obstacle: > >>>> =3D=3D=3D> qt5-gui-5.13.0_1 depends on shared library: libharfbuzz= .so - > found (/usr/local/lib/libharfbuzz.so) > >>>> =3D=3D=3D> qt5-gui-5.13.0_1 depends on shared library: libinput.so= - not > found > >>>> =3D=3D=3D> libinput-1.12.6_1 needs Python 3.4 at least, but 2.7 was > specified. > >>>> *** Error code 1 > >>>> > >>>> Stop. > >>>> make[5]: stopped in /usr/ports/x11/libinput > >>>> *** Error code 1 > >>>> > >>>> Stop. > >>>> make[4]: stopped in /usr/ports/x11-toolkits/qt5-gui > >>>> *** Error code 1 > >>>> > >>>> Stop. > >>>> make[3]: stopped in /usr/ports/x11-toolkits/qt5-declarative > >>>> *** Error code 1 > >>>> > >>>> Stop. > >>>> make[2]: stopped in /usr/ports/devel/qt5-linguisttools > >>>> *** Error code 1 > >>>> > >>>> Stop. > >>>> make[1]: stopped in /usr/ports/emulators/virtualbox-ose > >>>> *** Error code 1 > >>>> > >>>> Stop. > >>>> make: stopped in /usr/ports/emulators/virtualbox-ose > >>>> # > >>> > >>> lang/python controls what the /usr/local/bin/python symlink points to= . > >>> It might still be pointing to Python 2.7 when it should be pointing t= o > >>> Python 3.7. > >>> > >>> You have two options: > >>> > >>> 1. Recreate and reinstall lang/python. > >>> 2. Change the /usr/local/bin/python symlink yourself. > >> > >> > >> Thanks. But I don=E2=80=99t have /usr/local/bin/python: > > > > I see. Maybe you could try "ln -s python3.7 /usr/local/bin/python" > > just to see if it helps. If not, then I'm out of suggestions. > > > >> lrwxr-xr-x 1 root wheel 11 May 15 11:40 pybabel -> pybabel-3= .6 > >> -rwxr-xr-x 1 root wheel 384 May 15 11:40 pybabel-3.6 > >> -rwxr-xr-x 1 root wheel 84 May 15 10:04 pydoc2.7 > >> -rwxr-xr-x 1 root wheel 84 May 15 10:22 pydoc3.6 > >> -rwxr-xr-x 1 root wheel 84 Apr 23 03:20 pydoc3.7 > >> lrwxr-xr-x 1 root wheel 14 May 15 11:44 pygmentize -> > pygmentize-3.6 > >> -rwxr-xr-x 1 root wheel 399 May 15 11:44 pygmentize-3.6 > >> -r-xr-xr-x 1 root wheel 15192 May 15 10:03 python2.7 > >> -r-xr-xr-x 1 root wheel 1769 May 15 10:04 python2.7-config > >> -r-xr-xr-x 2 root wheel 15392 May 15 10:21 python3.6 > >> lrwxr-xr-x 1 root wheel 17 May 15 10:22 python3.6-config -> > python3.6m-config > >> -r-xr-xr-x 2 root wheel 15392 May 15 10:21 python3.6m > >> -r-xr-xr-x 1 root wheel 3127 May 15 10:22 python3.6m-config > >> -r-xr-xr-x 2 root wheel 15208 Apr 23 03:20 python3.7 > >> lrwxr-xr-x 1 root wheel 17 Apr 23 03:20 python3.7-config -> > python3.7m-config > >> -r-xr-xr-x 2 root wheel 15208 Apr 23 03:20 python3.7m > >> -r-xr-xr-x 1 root wheel 2936 Apr 23 03:20 python3.7m-config > >> -rwxr-xr-x 1 root wheel 441 May 15 10:22 pyvenv-3.6 > >> -rwxr-xr-x 1 root wheel 441 Apr 23 03:20 pyvenv-3.7 > >> > >>> The same advice applies to lang/python2 and lang/python3, if any of > >>> these are installed. > >>> > >>> Just a friendly piece of advice: > >>> > >>> Explore the possible use of ports-mgmt/poudriere and ports-mgmt/synth= . > >>> Even an old fart like myself have realised their potential and > >>> practical value. > >>> > >>> They both build each package in full isolation from the running syste= m > >>> and from each other. They can also build packages in parallel. > >>> > >>> synth is more straight forward of the two but requires an Ada > >>> compiler. Its /usr/local/etc/synth/synth.ini has self-explanatory > >>> parameters for each profile you create. > >>> > >>> poudriere requires you to set ALLOW_MAKE_JOBS=3Dyes and PARALLEL_JOBS= =3D6 > >>> in /usr/local/etc/poudriere.conf, and MAKE_JOBS_NUMBER=3D4 in > >>> /usr/local/etc/poudriere.d/make.conf, in order to achieve reasonable > >>> parallelism. > >>> > >>> 6 and 4 are the values chosen by synth when auto-configured on an > >>> 8-core system, yielding a 300 % load on the CPUs in the worst case. > >>> Adjust these values to suit your system and/or taste. > >> > >> # dmesg | head > >> ---<>--- > >> Copyright (c) 1992-2019 The FreeBSD Project. > >> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 19= 94 > >> The Regents of the University of California. All rights reserved. > >> FreeBSD is a registered trademark of The FreeBSD Foundation. > >> FreeBSD 12.1-RELEASE GENERIC amd64 > >> FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on > LLVM 8.0.1) > >> VT(vga): resolution 640x480 > >> CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (1995.64-MHz > K8-class CPU) > >> Origin=3D"AuthenticAMD" Id=3D0x20fb1 Family=3D0xf Model=3D0x2b St= epping=3D1 > >> # > >> > >> > >> I=E2=80=99m afraid there is not much to parallelize :( (with a dual co= re) > > > > Incidently, I'm playing with an old Dell Latitude D531 at $WORK. It > > has almost the same processor as your system. It took me 84 hours > > building stable/11 from scratch. synth ran for 8 days and 17 hours > > while building in excess of 700 packages. synth initially ran in a 2x2 > > configuration, but I'm now experimenting running it as 1x2. I have two > > separate ccache instances, one for each of base and localbase, at > > least it speeds up autoconf and friends. > > > > -- > > Trond. > > Here is a snippet from virtualbox-ose's Makefile: .if ${PORT_OPTIONS:MPYTHON} USES+=3D python:2.7 USE_PYTHON=3D distutils noegginfo noflavors PYDISTUTILS_PKGNAME=3D vboxapi PYDISTUTILS_PKGVERSION=3D 1.0 .else USES+=3D python:2.7,build .endif Virtualbox itself asks for it. As an experiment, I switched both lines for python:3.7 and compiled the port. The port builds without errors and VirtualBox runs just fine. --=20 Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!]