Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 2019 18:26:19 +0100
From:      =?UTF-8?B?VMSzbA==?= Coosemans <tijl@FreeBSD.org>
To:        Lucas Nali de =?UTF-8?B?TWFnYWxow6Nlcw==?= <rollingbits@gmail.com>
Cc:        sgk@troutmask.apl.washington.edu, Mark Millard <marklmi@yahoo.com>, ports-list freebsd <freebsd-ports@freebsd.org>
Subject:   Re: Building qt5-gui port?
Message-ID:  <20190312182619.6ca5c122@kalimero.tijl.coosemans.org>
In-Reply-To: <4E7368FE-74DE-42FF-AF4C-2EE87F750114@gmail.com>
References:  <2EF34E75-DDBC-4D99-B317-3C8F20725AE5@yahoo.com> <6AFE3B36-FBFA-46AA-81DB-31BB24A5D75E@gmail.com> <20190210151427.GB34772@troutmask.apl.washington.edu> <FFA352D4-39FC-4BCC-A5E8-00076A78A543@yahoo.com> <20190210183250.GB35569@troutmask.apl.washington.edu> <20190210184352.GC35569@troutmask.apl.washington.edu> <F12D9923-3F62-45D0-9692-C66F69B33C4B@yahoo.com> <20190210231820.GA36811@troutmask.apl.washington.edu> <20190211100808.371c2f42@kalimero.tijl.coosemans.org> <20190211160518.GA41262@troutmask.apl.washington.edu> <4E7368FE-74DE-42FF-AF4C-2EE87F750114@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 12 Mar 2019 14:01:18 -0300 Lucas Nali de Magalh=C3=A3es
<rollingbits@gmail.com> wrote:
>> On Feb 11, 2019, at 2:05 PM, Steve Kargl <sgk@troutmask.apl.washington.e=
du> wrote:
>>> On Mon, Feb 11, 2019 at 10:08:08AM +0100, T=C4=B3l Coosemans wrote:
>>> On Sun, 10 Feb 2019 15:18:20 -0800 Steve Kargl
>>> <sgk@troutmask.apl.washington.edu> wrote:
>>>> On Sun, Feb 10, 2019 at 03:14:15PM -0800, Mark Millard wrote:
>>>>>=20
>>>>> /usr/ports/Mk/Uses/qt-dist.mk has:
>>>>>=20
>>>>> .    if ${ARCH} =3D=3D i386 && empty(MACHINE_CPU:Msse2)
>>>>> CONFIGURE_ARGS+=3D        -no-sse2
>>>>> .    endif
>>>>=20
>>>> Hmmm.  Oh well.  I set CPUTYPE=3Dcore2 in /etc/make.conf.
>>>> During configure of qt5-gui, it does try to use sse2,
>>>> sse3, ssse3, and even the unsupported avx.  The build
>>>> still dies.
>>>=20
>>> You probably need to build all of Qt with the same flags, starting
>>> with qt5-qmake and then the other dependencies of qt5-gui.
>>=20
>> Yes, that is what I decided to do.  Unfortnately, I decided
>> to use CPUTYPE=3Dcore2 to update kernel and world.  It seems a
>> recent change in FreeBSD-current has broken the drm-legacy-kmod
>> port, so no Xorg on the laptop, so no need for qt5 ports. :-)
>=20
> I'm using the dirty hack
>=20
> --- Makefile    (revision 495009)
> +++ Makefile    (working copy)
> @@ -36,6 +36,8 @@
>  # are using the obsolete 'register' key word.
>  CONFIGURE_ARGS+=3D       -c++std c++14
> =20
> +CPUTYPE=3Di686
> +
>  USE_LDCONFIG=3D  ${PREFIX}/${QT_LIBDIR_REL}
> =20
>  BUILD_WRKSRC=3D  ${WRKSRC}/src/${PORTNAME}
>=20
> to compile and install the port. My patch isn't portable, I know. I saw
> an update to it and tried the new version: same error. I'm using
> CPUTYPE=3Dnative everywhere else, last FreeBSD 12.0-RELEASE-p3. The cpu
> is a Celeron M (Yonah). Let me know if you need more info.

native is not a valid value for CPUTYPE.  It is used in
/usr/share/mk/bsd.cpu.mk to determine cpu features, not just to set
-march=3D flag.  You can set CPUTYPE=3Dyonah.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190312182619.6ca5c122>