From owner-freebsd-current@freebsd.org Thu Dec 29 20:33:08 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 414B6C96B4A; Thu, 29 Dec 2016 20:33:08 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ACE761E8C; Thu, 29 Dec 2016 20:33:07 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from thor.walstatt.dynvpn.de ([85.178.51.182]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0McVGq-1c51yN25gG-00HhR6; Thu, 29 Dec 2016 21:32:59 +0100 Date: Thu, 29 Dec 2016 21:32:53 +0100 From: "O. Hartmann" To: Dimitry Andric Cc: "O. Hartmann" , FreeBSD CURRENT , FreeBSD Ports , Ed Maste Subject: Re: emulators/qemu: qemu ports failing due to compiler error on 12-CURRENT Message-ID: <20161229213253.75c7993f@thor.walstatt.dynvpn.de> In-Reply-To: References: <20161207104203.7c9524a3@thor.walstatt.dynvpn.de> <782FAC01-9A7C-438F-912C-831628A08E63@FreeBSD.org> <20161229172949.48792b29@thor.walstatt.dynvpn.de> Organization: WALSTATT User-Agent: OutScare 3.1415926 X-Operating-System: ImNotAnOperatingSystem 3.141592527 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/RV2Cv70TvMfk18ylJzNGwBF"; protocol="application/pgp-signature" X-Provags-ID: V03:K0:JDZFjmhzyVAHhEEIx2Q5Ah7T2wcjOL8pAOKML2rYCjjJoTBOnkX wpWQxFIEZJAazadCMUnbKn3X4tkoQcIR9rGH+vf3X4zfpzl46ZyD2dAsThesHEQWNTlyxdK FDMRuomiOY32/U9efR0ROs7IjBRJscHB7SF7U5zBue6QQKFIRkHhgucnnXm6s1Li7BhLKqU N+r5IOsB+weQHR5EHuD1A== X-UI-Out-Filterresults: notjunk:1;V01:K0:ffKLxS2mSJE=:P6uL5NgQWL1j2Rxoytf0sT 3Bq194i9d+OIzXTJbu8fNYIMPuvALf2yRL5UQbJganUZpxj1flVs9M8adfp246QltHH7Qs/mA qVz87Hd7F17lOeZ6vPe/8LY8fJfMEQEAalZ3c0Cnj1IAxVyxBDJ/XIqARno9frsGiGHfhWjvR A2RdGE0pwRqokyNfmgd2DaORMUpDkTt0RFsjGpABTCAXl+QIwWu4f2kiGEv/srytriPKMZ1rj qvDS6ebIrRp57DXVDM1Sd6q1a3Au6N6ibN7t4m4l8MIARzyf/cd8dIam+28VisnNdcQz7dzDT IWtRqXABLwamwGCz0AsW28ytsWM2kgIThtsMCtX9tlvMNnP7HVEC32nNFnOuug2nQhMKKI2Fv HeAHlWCdi6XoMXOGUA8x5kefuH8ibK+fmLPElbD/eSSk8e1mIdSqRqGlW24hI7Ngi2Bs3p6dt R5i5Spe5PQoNOmIa1PqTbohL/vAeiU5er66uWuJHM+nXXGOWwpKCwqlHPcUJ93UJ9mxGfxjiP WgoPC2VqgxtpG7iAdIyGeUPhGiGQB9+V0Q9IUHLOXM8BkDfEegsMtbwoc6yWFWgYytLMXHSsy vsPWN840rUckbgiV3ob5WybUbQnD58hY0mcUiUsRDXfkI6VuuJOqsYnYMVqRd7P6DPvOaUCot YZQ9yS2pwLOtfPiyrEkEhTi6R83sFD2h9KkRt1YRimILDAtAH8elYXn9rrB1mw3LNyA58sPd4 X3bjXdTq9VF5LI8Uu0r79jIjh6wegknOyuRfuOiHILzLr94knJZ161PETpw= X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2016 20:33:08 -0000 --Sig_/RV2Cv70TvMfk18ylJzNGwBF Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am Thu, 29 Dec 2016 20:26:32 +0100 Dimitry Andric schrieb: > On 29 Dec 2016, at 17:29, O. Hartmann wrote: > >=20 > > Am Wed, 7 Dec 2016 23:31:01 +0100 > > Dimitry Andric schrieb: > > =20 > >> On 07 Dec 2016, at 10:42, O. Hartmann wrote: = =20 > >>>=20 > >>> I try my first steps in cross compiling ports with poudriere and ther= efore I try to > >>> setup an appropriate jail and QEMU environment. > >>>=20 > >>> Well, I'm failing at the jail setup due to the non-exitence of any su= itable QEMU > >>> environment and for that I tried to figure out to find some proper HO= WTO. > >>> Searching via google ave some hints, but in questions which QEMU from= ports should > >>> be used, all leave me alone, so I tried > >>>=20 > >>> emulators/qemu > >>> emulators/qemu-devel > >>> emulators/qemu-static > >>>=20 > >>> emulators/qemu is known for me to fail since months and the days of 1= 1-CURRENT, > >>> there is a compiler error spit out with clang 3.8 and now 3.9. The ve= ry same for > >>> qemu-devel (both ports used with standard options, no extras). See al= so Bug 214873 > >>> (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214873) and Bug = 215100 > >>> (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215100). =20 > >>=20 > >> I couldn't reproduce the compilation errors, it builds fine for me unt= il > >> the link phase. =20 > >=20 > > Well, I face this in poudriere on the most recent 12-CURRENT, too as we= ll as > > 12-CURRENT buildworld today. > >=20 > > On the host I'd like to run qemu for testing aarch64 binaries for a Odr= oid-C2 > > project, I use a customized /etc/src.conf - but on poudriere, there is = no such > > customisation but the failing is identical. =20 >=20 > Looking at your errors, it seems that the port has decided to enable > rdma support. This is normally enabled using --enable-rdma with the > configure script, but I don't see that at all in the port Makefile. >=20 > On my systems, it runs a test to check for rdma support, but this fails. > Quoting from config.log: >=20 > cc -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE > -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings > -Wmissing-prototypes -fno-strict-aliasing -fno-common > -I/usr/work/share/dim/ports/emulators/qemu/work/qemu-2.6.1 -I/usr/local/i= nclude > -DPREFIX=3D\""/usr/local\"" -Wno-string-plus-int -Wno-initializer-overrid= es > -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wfor= mat-security > -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-definition -Wty= pe-limits > -fstack-protector-strong -I/usr/local/include -I/usr/local/include/p11-ki= t-1 > -I/usr/local/include -o config-temp/qemu-conf.exe config-temp/qemu-conf.c= -m64 -g > -fstack-protector -L"/usr/local/lib" -lrdmacm -libverbs config-temp/qemu-= conf.c:1:10: > fatal error: 'rdma/rdma_cma.h' file not found #include ^ >=20 > The minimal test program it tries to compile here is just this: >=20 > #include > int main(void) { return 0; } >=20 > and it attempts to link it with -lrdmacm -libverbs. If this somehow > succeeds on your system, then it will think rdma support is available, > while apparently the support is not complete, if it misses the > rdma_getaddrinfo() function. >=20 > Do you have some Linux rdma or infiniband headers or libraries installed > into /usr or /usr/local? This might be the cause of the problems. >=20 > If you don't want or care about rdma, you can try the following patch > (should similarly apply to the other qemu ports): >=20 > Index: emulators/qemu/Makefile > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- emulators/qemu/Makefile (revision 429888) > +++ emulators/qemu/Makefile (working copy) > @@ -78,6 +78,7 @@ > --disable-libssh2 --enable-debug \ > --prefix=3D${PREFIX} --cc=3D${CC} --enable-docs --disable= -kvm \ > --disable-linux-user --disable-linux-aio --disable-xen \ > + --disable-rdma \ > --smbd=3D${LOCALBASE}/sbin/smbd --enable-debug-info > --python=3D${PYTHON_CMD} \ --extra-cflags=3D-I${WRKSRC}\ -I${LOCALBASE}/i= nclude\ > -DPREFIX=3D\\\"\"${PREFIX}\\\"\" >=20 > -Dimitry >=20 emulators/qemu bugged out at: [...] /usr/bin/ld:../config-host.ld:14: syntax error c++: error: linker command failed with exit code 1 (use -v to see invocatio= n) gmake[3]: *** [Makefile:195: qemu-sparc64] Error 1 I think so far this is a real bug? I'll adjust the PR in bugzilla. I also opened another PR regarding the real bug reported earlier, you'll fi= nd the PR here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215659 Kind regards, oh --=20 O. Hartmann Ich widerspreche der Nutzung oder =C3=9Cbermittlung meiner Daten f=C3=BCr Werbezwecke oder f=C3=BCr die Markt- oder Meinungsforschung (=C2=A7 28 Abs.= 4 BDSG). --Sig_/RV2Cv70TvMfk18ylJzNGwBF Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCWGVy9QAKCRDS528fyFhY lOSbAf90WTvBoBtK77MjklVOkEdhtlF450fVt6w34IADHisQql4hEOytL2bvR6St AU5y3hOg0dwQWDVgSbsMd8Xwndi9AgCBQ6bLQ7Nxi77dqjNIetwplCKT+lRFIP8S b01BvT57pgOXi3NcvDKluXji4xuLN2l/gK/S0tqw6ME4Wq+xW2Li =21jb -----END PGP SIGNATURE----- --Sig_/RV2Cv70TvMfk18ylJzNGwBF--