Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 May 2020 08:34:30 +0200
From:      Christoph Kukulies <kuku@kukulies.org>
To:        Mario Lobo <lobo@bsd.com.br>
Cc:        freeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: virtualbox-ose port fails (12.1)
Message-ID:  <CA0653A7-0767-4080-AEC7-EAC80E437D8E@kukulies.org>
In-Reply-To: <CA%2ByoEx-iXmpWnt1OzP_vwoVLeHw-651or13hbK=v%2BBcF72W3Kg@mail.gmail.com>
References:  <3D852AFC-329C-46B7-A2DE-3E9B3D61BB21@kukulies.org> <alpine.BSF.2.22.395.2005151110010.4575@enterprise.ximalas.info> <310BA73B-3BFC-4B5A-B175-0A942FCC92B0@kukulies.org> <CA%2ByoEx8ye1fEy1Zi0wROo9ew-XG8XZ8R=hE1JSo1iPRufS274Q@mail.gmail.com> <29080AE7-3C98-4D2D-9A73-34E7CF02EA5C@kukulies.org> <alpine.BSF.2.22.395.2005152022380.4575@enterprise.ximalas.info> <910A2CF5-E2A5-4EC8-B250-C87FA8399ABA@kukulies.org> <alpine.BSF.2.22.395.2005152104200.4575@enterprise.ximalas.info> <184EB792-871B-486C-A210-6AA0D31BEECB@kukulies.org> <CA%2ByoEx-iXmpWnt1OzP_vwoVLeHw-651or13hbK=v%2BBcF72W3Kg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
My next stop is:


.0 -I/usr/local/lib/dbus-1.0/include -isystem =
/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -isystem =
/usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-clang -o =
.obj/deviceeventcontroller_adaptor.o deviceeventcontroller_adaptor.cpp
--- sub-input-all ---
In file included from evdevtouch/qevdevtouchhandler.cpp:62:
In file included from /usr/local/include/mtdev.h:36:
/usr/local/include/linux/input.h:27:8: error: redefinition of =
'input_event'
struct input_event {
       ^
/usr/include/dev/evdev/input.h:44:8: note: previous definition is here
struct input_event {
       ^
In file included from evdevtouch/qevdevtouchhandler.cpp:62:
In file included from /usr/local/include/mtdev.h:36:
/usr/local/include/linux/input.h:53:8: error: redefinition of 'input_id'
struct input_id {
       ^
/usr/include/dev/evdev/input.h:53:8: note: previous definition is here
struct input_id {
       ^
In file included from evdevtouch/qevdevtouchhandler.cpp:62:
In file included from /usr/local/include/mtdev.h:36:
/usr/local/include/linux/input.h:84:8: error: redefinition of =
'input_absinfo'
struct input_absinfo {
       ^
/usr/include/dev/evdev/input.h:60:8: note: previous definition is here
struct input_absinfo {
       ^
In file included from evdevtouch/qevdevtouchhandler.cpp:62:
In file included from /usr/local/include/mtdev.h:36:
/usr/local/include/linux/input.h:108:8: error: redefinition of =
'input_keymap_entry'
struct input_keymap_entry {
       ^
/usr/include/dev/evdev/input.h:71:8: note: previous definition is here
struct input_keymap_entry {
       ^
In file included from evdevtouch/qevdevtouchhandler.cpp:62:
In file included from /usr/local/include/mtdev.h:36:
/usr/local/include/linux/input.h:300:8: error: redefinition of =
'ff_replay'
struct ff_replay {
       ^
/usr/include/dev/evdev/input.h:164:8: note: previous definition is here
struct ff_replay {
       ^
In file included from evdevtouch/qevdevtouchhandler.cpp:62:
In file included from /usr/local/include/mtdev.h:36:
/usr/local/include/linux/input.h:310:8: error: redefinition of =
'ff_trigger'
struct ff_trigger {
       ^
/usr/include/dev/evdev/input.h:170:8: note: previous definition is here
struct ff_trigger {
       ^
In file included from evdevtouch/qevdevtouchhandler.cpp:62:
In file included from /usr/local/include/mtdev.h:36:
/usr/local/include/linux/input.h:327:8: error: redefinition of =
'ff_envelope'
struct ff_envelope {
       ^
/usr/include/dev/evdev/input.h:176:8: note: previous definition is here
struct ff_envelope {
       ^
In file included from evdevtouch/qevdevtouchhandler.cpp:62:
In file included from /usr/local/include/mtdev.h:36:
/usr/local/include/linux/input.h:339:8: error: redefinition of =
'ff_constant_effect'
struct ff_constant_effect {
       ^
/usr/include/dev/evdev/input.h:183:8: note: previous definition is here
struct ff_constant_effect {
       ^
In file included from evdevtouch/qevdevtouchhandler.cpp:62:
In file included from /usr/local/include/mtdev.h:36:
/usr/local/include/linux/input.h:350:8: error: redefinition of =
'ff_ramp_effect'
struct ff_ramp_effect {
       ^
/usr/include/dev/evdev/input.h:188:8: note: previous definition is here
struct ff_ramp_effect {
       ^
In file included from evdevtouch/qevdevtouchhandler.cpp:62:
In file included from /usr/local/include/mtdev.h:36:
/usr/local/include/linux/input.h:366:8: error: redefinition of =
'ff_condition_effect'
struct ff_condition_effect {
       ^
/usr/include/dev/evdev/input.h:194:8: note: previous definition is here
struct ff_condition_effect {
       ^
In file included from evdevtouch/qevdevtouchhandler.cpp:62:
In file included from /usr/local/include/mtdev.h:36:
/usr/local/include/linux/input.h:395:8: error: redefinition of =
'ff_periodic_effect'
struct ff_periodic_effect {
       ^
/usr/include/dev/evdev/input.h:221:8: note: previous definition is here
struct ff_periodic_effect {
       ^
In file included from evdevtouch/qevdevtouchhandler.cpp:62:
In file included from /usr/local/include/mtdev.h:36:
/usr/local/include/linux/input.h:416:8: error: redefinition of =
'ff_rumble_effect'
struct ff_rumble_effect {
       ^
/usr/include/dev/evdev/input.h:232:8: note: previous definition is here
struct ff_rumble_effect {
       ^
In file included from evdevtouch/qevdevtouchhandler.cpp:62:
In file included from /usr/local/include/mtdev.h:36:
/usr/local/include/linux/input.h:444:8: error: redefinition of =
'ff_effect'
struct ff_effect {
       ^
/usr/include/dev/evdev/input.h:253:8: note: previous definition is here
struct ff_effect {
       ^
13 errors generated.
*** [.obj/qevdevtouchhandler.o] Error code 1

make[7]: stopped in =
/usr/ports/x11-toolkits/qt5-gui/work/qtbase-everywhere-src-5.13.0/src/plat=
formsupport/input
1 error

make[7]: stopped in =
/usr/ports/x11-toolkits/qt5-gui/work/qtbase-everywhere-src-5.13.0/src/plat=
formsupport/input
*** [sub-input-support-pro-all-ordered] Error code 2

make[6]: stopped in =
/usr/ports/x11-toolkits/qt5-gui/work/qtbase-everywhere-src-5.13.0/src/plat=
formsupport/input
1 error

make[6]: stopped in =
/usr/ports/x11-toolkits/qt5-gui/work/qtbase-everywhere-src-5.13.0/src/plat=
formsupport/input
*** [sub-input-all] Error code 2

make[5]: stopped in =
/usr/ports/x11-toolkits/qt5-gui/work/qtbase-everywhere-src-5.13.0/src/plat=
formsupport
--- sub-linuxaccessibility-all ---
A failure has been detected in another branch of the parallel make

make[6]: stopped in =
/usr/ports/x11-toolkits/qt5-gui/work/qtbase-everywhere-src-5.13.0/src/plat=
formsupport/linuxaccessibility
*** [sub-linuxaccessibility-all] Error code 2

make[5]: stopped in =
/usr/ports/x11-toolkits/qt5-gui/work/qtbase-everywhere-src-5.13.0/src/plat=
formsupport
2 errors

make[5]: stopped in =
/usr/ports/x11-toolkits/qt5-gui/work/qtbase-everywhere-src-5.13.0/src/plat=
formsupport
*** Error code 2

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
#=20


Did you have qt5 installed at that time already as pkg ? The above at =
least proves that the qt port build fails or it=E2=80=99s a consequence =
of the python (link in /usr/local/bin) tweaking.


> Am 16.05.2020 um 00:11 schrieb Mario Lobo <lobo@bsd.com.br>:
>=20
> On Fri, May 15, 2020 at 4:39 PM Christoph Kukulies <kuku@kukulies.org =
<mailto:kuku@kukulies.org>>
> wrote:
>=20
>> I did the following:
>>=20
>> ln -s /usr/local/bin/phython3.7 /usr/local/bin/python
>>=20
>> (not sure whether this was healthy at all)
>>=20
>> Then went into
>>=20
>> /usr/ports/x11/libinput
>>=20
>> make install
>>=20
>> (this went through without a hitch)
>>=20
>> Then continued with building virtualbox-ose
>>=20
>> and it got over the point where it wanted to build libinput since the
>> request got satisfied.
>>=20
>> Don=E2=80=99t know what time to build the rest I would have to expect =
at all.
>>=20
>> 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 :) ?)
>>=20
>> =E2=80=94
>> Christoph
>>=20
>>=20
>>> Am 15.05.2020 um 21:17 schrieb Trond Endrest=C3=B8l <
>> trond.endrestol@ximalas.info>:
>>>=20
>>> On Fri, 15 May 2020 21:02+0200, Christoph Kukulies wrote:
>>>=20
>>>>> Am 15.05.2020 um 20:39 schrieb Trond Endrest=C3=B8l <
>> trond.endrestol@ximalas.info>:
>>>>>=20
>>>>> On Fri, 15 May 2020 20:18+0200, Christoph Kukulies wrote:
>>>>>=20
>>>>>>> Am 15.05.2020 um 19:15 schrieb Mario Lobo <lobo@bsd.com.br>:
>>>>>>>=20
>>>>>>> On Fri, May 15, 2020 at 8:57 AM Christoph Kukulies <
>> kuku@kukulies.org <mailto:kuku@kukulies.org>>
>>>>>>> wrote:
>>>>>>>>=20
>>>>>>>>> Am 15.05.2020 um 11:18 schrieb Trond Endrest=C3=B8l <
>>>>>>>> trond.endrestol@ximalas.info =
<mailto:trond.endrestol@ximalas.info
>>>> :
>>>>>>>>>=20
>>>>>>>>> On Fri, 15 May 2020 10:40+0200, Christoph Kukulies wrote:
>>>>>>>>>=20
>>>>>>>>>> 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.
>>>>>>>>>>=20
>>>>>>>>=20
>>>>>>> [snip...]
>>>>>>>=20
>>>>>>>>>>=20
>>>>>>>>>> Stop.
>>>>>>>>>> make: stopped in /usr/ports/emulators/virtualbox-ose
>>>>>>>>>> #
>>>>>>>>>>=20
>>>>>>>>>> I=E2=80=99m wondering anyway why two python versions (2 and =
3) have to be
>> built
>>>>>>>> . But that left aside, how do I now get around this obstacle?
>>>>>>>>>=20
>>>>>>>>> According to ports/Mk/bsd.default-versions.mk, Python 3.7 is =
both
>> the
>>>>>>>>> default Python version and the default Python3 version.
>>>>>>>>>=20
>>>>>>>>> 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?
>>>>>>>>=20
>>>>>>>> Thanks. Yes, I had some of these tools installed as pkg and =
already
>>>>>>>> deleted them and the correct tools got built out of the ports =
tree.
>>>>>>>>=20
>>>>>>>>> Do you mix prebuilt packages and packages built yourself?
>>>>>>>>>=20
>>>>>>>>> You should recompile devel/py-setuptools@py36 so that it =
abstains
>> from
>>>>>>>>> creating the /usr/local/bin/easy_install symlink.
>>>>>>>>=20
>>>>>>>> Done so, thanks.
>>>>>>>>=20
>>>>>>> Doesn't Vbox require python 2.7 to be built?
>>>>>>>=20
>>>>>>> I get a warning about python 2.7 everytime I build VBox.
>>>>>>>=20
>>>>>>> I have this in make.conf:
>>>>>>>=20
>>>>>>> DEFAULT_VERSIONS=3Dperl5=3D5.30 linux=3Dc7_64 ssl=3Dbase =
python=3D3.7
>> python2=3D2.7
>>>>>>> python3=3D3.7
>>>>>>>=20
>>>>>>> --
>>>>>>> Mario Lobo
>>>>>>=20
>>>>>> 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
>>>>>>=20
>>>>>> Stop.
>>>>>> make[5]: stopped in /usr/ports/x11/libinput
>>>>>> *** Error code 1
>>>>>>=20
>>>>>> Stop.
>>>>>> make[4]: stopped in /usr/ports/x11-toolkits/qt5-gui
>>>>>> *** Error code 1
>>>>>>=20
>>>>>> Stop.
>>>>>> make[3]: stopped in /usr/ports/x11-toolkits/qt5-declarative
>>>>>> *** Error code 1
>>>>>>=20
>>>>>> Stop.
>>>>>> make[2]: stopped in /usr/ports/devel/qt5-linguisttools
>>>>>> *** Error code 1
>>>>>>=20
>>>>>> Stop.
>>>>>> make[1]: stopped in /usr/ports/emulators/virtualbox-ose
>>>>>> *** Error code 1
>>>>>>=20
>>>>>> Stop.
>>>>>> make: stopped in /usr/ports/emulators/virtualbox-ose
>>>>>> #
>>>>>=20
>>>>> 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 to
>>>>> Python 3.7.
>>>>>=20
>>>>> You have two options:
>>>>>=20
>>>>> 1. Recreate and reinstall lang/python.
>>>>> 2. Change the /usr/local/bin/python symlink yourself.
>>>>=20
>>>>=20
>>>> Thanks. But I don=E2=80=99t have /usr/local/bin/python:
>>>=20
>>> 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.
>>>=20
>>>> 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
>>>>=20
>>>>> The same advice applies to lang/python2 and lang/python3, if any =
of
>>>>> these are installed.
>>>>>=20
>>>>> Just a friendly piece of advice:
>>>>>=20
>>>>> 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.
>>>>>=20
>>>>> They both build each package in full isolation from the running =
system
>>>>> and from each other. They can also build packages in parallel.
>>>>>=20
>>>>> 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.
>>>>>=20
>>>>> 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.
>>>>>=20
>>>>> 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.
>>>>=20
>>>> # dmesg | head
>>>> ---<<BOOT>>---
>>>> Copyright (c) 1992-2019 The FreeBSD Project.
>>>> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, =
1994
>>>>     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  =
Stepping=3D1
>>>> #
>>>>=20
>>>>=20
>>>> I=E2=80=99m afraid there is not much to parallelize :( (with a dual =
core)
>>>=20
>>> 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.
>>>=20
>>> --
>>> Trond.
>>=20
>>=20
> Here is a snippet from virtualbox-ose's Makefile:
>=20
> .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
>=20
> Virtualbox itself asks for it.
>=20
> As an experiment, I switched both lines for python:3.7 and compiled =
the
> port.
>=20
> The port builds without errors and VirtualBox runs just fine.
>=20
> --=20
> Mario Lobo
> http://www.mallavoodoo.com.br <http://www.mallavoodoo.com.br/>;
> FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!]




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA0653A7-0767-4080-AEC7-EAC80E437D8E>