From owner-freebsd-ports@freebsd.org Tue Mar 12 17:27:42 2019 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8C6451537D3F for ; Tue, 12 Mar 2019 17:27:42 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay107.isp.belgacom.be (mailrelay107.isp.belgacom.be [195.238.20.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign Organization Validation CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B73F672CC6 for ; Tue, 12 Mar 2019 17:27:41 +0000 (UTC) (envelope-from tijl@freebsd.org) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2B3AACA64dc/0RF8lFkHQEBBQEHBQG?= =?us-ascii?q?BUQgBCwGCD1cRUCESJ4QKiBpfilgBAYIMNQGIe3mOAYF7KIRRAoQ4IzQJDQE?= =?us-ascii?q?BAwEBCQEDAm0cDIVLAQUjMyMQCxgCAgUhAgIPEhgeBhODI4FdAxmwSoEviA0?= =?us-ascii?q?NgRGBDoELJAGLQ4F/gRGDEoJXgiqDCoJXA6N6NAmHVYgBgzMlgXmRQ4wNhgi?= =?us-ascii?q?NJziBVk0wCIMnCYoOhjU+AzABkT4BAQ?= X-IPAS-Result: =?us-ascii?q?A2B3AACA64dc/0RF8lFkHQEBBQEHBQGBUQgBCwGCD1cRU?= =?us-ascii?q?CESJ4QKiBpfilgBAYIMNQGIe3mOAYF7KIRRAoQ4IzQJDQEBAwEBCQEDAm0cD?= =?us-ascii?q?IVLAQUjMyMQCxgCAgUhAgIPEhgeBhODI4FdAxmwSoEviA0NgRGBDoELJAGLQ?= =?us-ascii?q?4F/gRGDEoJXgiqDCoJXA6N6NAmHVYgBgzMlgXmRQ4wNhgiNJziBVk0wCIMnC?= =?us-ascii?q?YoOhjU+AzABkT4BAQ?= Received: from 68.69-242-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.242.69.68]) by relay.skynet.be with ESMTP; 12 Mar 2019 18:26:22 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id x2CHQKb7013622; Tue, 12 Mar 2019 18:26:21 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Tue, 12 Mar 2019 18:26:19 +0100 From: =?UTF-8?B?VMSzbA==?= Coosemans To: Lucas Nali de =?UTF-8?B?TWFnYWxow6Nlcw==?= Cc: sgk@troutmask.apl.washington.edu, Mark Millard , ports-list freebsd 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> <20190210183250.GB35569@troutmask.apl.washington.edu> <20190210184352.GC35569@troutmask.apl.washington.edu> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: B73F672CC6 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.972,0]; ASN(0.00)[asn:5432, ipnet:195.238.0.0/19, country:BE] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Mar 2019 17:27:42 -0000 On Tue, 12 Mar 2019 14:01:18 -0300 Lucas Nali de Magalh=C3=A3es wrote: >> On Feb 11, 2019, at 2:05 PM, Steve Kargl 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 >>> 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.