From owner-freebsd-current@FreeBSD.ORG Wed Sep 25 05:20:56 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 19F41F4B for ; Wed, 25 Sep 2013 05:20:56 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm30-vm8.bullet.mail.gq1.yahoo.com (nm30-vm8.bullet.mail.gq1.yahoo.com [98.136.216.199]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D039927B4 for ; Wed, 25 Sep 2013 05:20:55 +0000 (UTC) Received: from [98.137.12.55] by nm30.bullet.mail.gq1.yahoo.com with NNFMP; 25 Sep 2013 05:15:11 -0000 Received: from [98.136.164.73] by tm15.bullet.mail.gq1.yahoo.com with NNFMP; 25 Sep 2013 05:15:11 -0000 Received: from [127.0.0.1] by smtp235.mail.gq1.yahoo.com with NNFMP; 25 Sep 2013 05:15:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1380086111; bh=3ZcvVkjqo2fGxQUFIvQbIkzfyoO7v8DRf5WXv+s29vU=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Subject:From:Reply-To:To:Cc:In-Reply-To:References:Content-Type:Date:Message-ID:Mime-Version:X-Mailer; b=Vd5we15RCDnTz1YugzVDbBUmwOkBBMRY3f7ayIx8CkDEkrWSWc+u+CX7e0f9D3cfSeP52buGgTDzqMTnSFJPimsDefSGxv/5wCgTM6PMnBLA2RfEiJzWHPETnSynWtHuoquelkBeQ3IOGkuUuSY9/Vp8Fia1wzmHUkgwaVrQINo= X-Yahoo-Newman-Id: 830055.26942.bm@smtp235.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: dTyhEx4VM1lKzfPir99K.onTaFJ7uo.jmZ97oSQPy7LcfRD azHdVRCJQVbZyis9Vf9PXxgcVA3bHQKPf1KM7cr.1h6Oi2OgILOTu007_zSr oGnWgSXWfdT_47kHOsM2wjWB2qwWNPIWPFSClyZxh7i_yvesjVl7tzrhsejY Pj5q5ajuCauwoUVrVhTJ.zbKkGTXPCjfGijjkKz6NG4w2Igex_7076DqUrud 2LX3qEIcVt2rRP8cnaOFOGhykTMCCfFUtetOjZqvdhGUTcv0AgrTVrqrxq4Z sudyUeNDSvwNNkhe95RQ0Nqil8cSndezHMqLKB_YXEpi0r8y_g8GicZ_NxxL z8mGGDW2aagD5ceHGs.6x1Avr7el8rXIVw8RPUm5DKbvNtkaE8uA3GBzrhkO wAdDX93_.2J63EUUUsH118a.jB0xHDg28Yh0r8SnDhx1UZhaZ5fMPnxfKwN5 Bb0EHFKbTGkgcYizKEy1KbnsB8Y8EXkXyp7KPxHUILL1_w1Ap16UAoOFymxU wV_zBlYooUgHykPwujsiQKzckGvdP9qOx7nQ_H7pqyxDQb8r4kdwjbZmCYvZ bAGEbQ9tGqfT5PjHgAh3Vx0gTJhZvc7zdnq4DB0602Z.ow74zPZCon0zJeQi Zr5t_wRnQX0rnaLMZwwOPkz3It4XN5RHAUHo.YhI0Ol8qHenHWgweXMgdHFz .yRCX33JU_zqNhJAprNbzf6Uh0EEU6EUNN9PXmEOZA_hsF_r5MNv24.2UpyN CjTUgJ4CHV7qMIp2IjkR5sm4n6N_q5GaESIOzmFfseFkY5MfTVioFk7bYEgA ujj6yOQ8KUpKp10X0mZ8wuBk9kLahxa_EE9IG.zhVUj_FZ4iARUCW22SiJ8L ohbtXMtPd X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [192.168.100.228] (sean_bruno@24.23.220.111 with ) by smtp235.mail.gq1.yahoo.com with SMTP; 25 Sep 2013 05:15:11 +0000 UTC Subject: Re: Doing it wrong: Building world with lang/clang-devel and lang/gcc49 From: Sean Bruno To: Brooks Davis In-Reply-To: <20130922215307.GG62197@lor.one-eyed-alien.net> References: <1379702370.2402.3.camel@localhost> <1739775195.20130921154216@serebryakov.spb.ru> <20130922215307.GG62197@lor.one-eyed-alien.net> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-XZgS610N39ZvFK/LuFVL" Date: Tue, 24 Sep 2013 22:15:10 -0700 Message-ID: <1380086110.1619.70.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: Lev Serebryakov , "freebsd-current@freebsd.org" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: sbruno@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2013 05:20:56 -0000 --=-XZgS610N39ZvFK/LuFVL Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Sun, 2013-09-22 at 16:53 -0500, Brooks Davis wrote: > On Sat, Sep 21, 2013 at 03:42:16PM +0400, Lev Serebryakov wrote: > > Hello, Sean. > > You wrote 20 ???????????????? 2013 ??., 22:39:30: > >=20 > > SB> wow, that didn't work at all. :-) > >=20 > > SB> I set these in make.conf: > >=20 > > SB> CC=3D/usr/local/bin/clang > > SB> C++=3D/usr/local/bin/clang++ > > SB> CPP=3D/usr/local/bin/clang++ > >=20 > > SB> It exploded pretty badly: > >=20 > > SB> http://people.freebsd.org/~sbruno/doingitwrong.txt > >=20 > > SB> Any reason that this shouldn't work? > > Try > >=20 > > XCC=3D/usr/local/bin/clang > > XCXX=3D/usr/local/bin/clang++ > > XCPP=3D/usr/local/bin/clang++ > > COMPILER_TYPE=3Dclang > >=20 > > It should work, at least, in theory. >=20 > You will likely also need -WITHOUT_FORMAT_EXTENSIONS. >=20 > -- Brooks Well, I've tried clang-devel, gcc46 and gcc49. Each one yeilds different failures and I'm really just totally confused at this point. I've set: export XCC=3D/usr/local/bin/gcc49 export XCXX=3D/usr/local/bin/g++49 export XCPP=3D/usr/local/bin/g++49 export CC=3D/usr/local/bin/gcc49 export CXX=3D/usr/local/bin/g++49 export CPP=3D/usr/local/bin/g++49 export COMPILER_TYPE=3Dgcc and export TARGET=3Dmips export TARGET_ARCH=3Dmips export SRCCONF=3D/dev/null export SRCROOT=3D/home/sbruno/bsd/fbsd_head export MAKEOBJDIRPREFIX=3D/var/tmp export DESTDIR=3D/mipsbuild/$TARGET_ARCH export KERNCONF=3DMALTA =3D=3D> usr.bin/dtc (obj,depend,all,install) --- obj --- /var/tmp/mips.mips/home/sbruno/bsd/fbsd_head/tmp/home/sbruno/bsd/fbsd_head/= usr.bin/dtc created for /home/sbruno/bsd/fbsd_head/usr.bin/dtc --- .depend --- rm -f .depend CC=3D'/usr/local/bin/gcc49' mkdep -f .depend -a -I/var/tmp/mips.mips/home/sbruno/bsd/fbsd_head/tmp/legacy/usr/include = /home/sbruno/bsd/fbsd_head/usr.bin/dtc/dtc.cc /home/sbruno/bsd/fbsd_head/us= r.bin/dtc/input_buffer.cc /home/sbruno/bsd/fbsd_head/usr.bin/dtc/string.cc = /home/sbruno/bsd/fbsd_head/usr.bin/dtc/dtb.cc /home/sbruno/bsd/fbsd_head/us= r.bin/dtc/fdt.cc /home/sbruno/bsd/fbsd_head/usr.bin/dtc/checking.cc =20 echo dtc: /usr/lib/libc.a /var/tmp/mips.mips/home/sbruno/bsd/fbsd_head/tmp/legac= y/usr/lib/libegacy.a >> .depend echo dtc: /usr/lib/libstdc++.a >> .depend make[3]: /var/tmp/mips.mips/home/sbruno/bsd/fbsd_head/tmp/home/sbruno/bsd/f= bsd_head/usr.bin/dtc/.depend, 347: ignoring stale .depend for /usr/lib/libs= tdc++.a --- dtc.o --- --- input_buffer.o --- --- string.o --- --- dtb.o --- --- fdt.o --- --- checking.o --- --- dtc.o --- /usr/local/bin/g++49 -O2 -pipe -I/var/tmp/mips.mips/home/sbruno/bsd/fbsd_head/tmp/legacy/usr/include -c /home/sbruno/bsd/fbsd_head/usr.bin/dtc/dtc.cc --- input_buffer.o --- /usr/local/bin/g++49 -O2 -pipe -I/var/tmp/mips.mips/home/sbruno/bsd/fbsd_head/tmp/legacy/usr/include -c /home/sbruno/bsd/fbsd_head/usr.bin/dtc/input_buffer.cc --- string.o --- /usr/local/bin/g++49 -O2 -pipe -I/var/tmp/mips.mips/home/sbruno/bsd/fbsd_head/tmp/legacy/usr/include -c /home/sbruno/bsd/fbsd_head/usr.bin/dtc/string.cc --- dtb.o --- /usr/local/bin/g++49 -O2 -pipe -I/var/tmp/mips.mips/home/sbruno/bsd/fbsd_head/tmp/legacy/usr/include -c /home/sbruno/bsd/fbsd_head/usr.bin/dtc/dtb.cc --- fdt.o --- /usr/local/bin/g++49 -O2 -pipe -I/var/tmp/mips.mips/home/sbruno/bsd/fbsd_head/tmp/legacy/usr/include -c /home/sbruno/bsd/fbsd_head/usr.bin/dtc/fdt.cc --- checking.o --- /usr/local/bin/g++49 -O2 -pipe -I/var/tmp/mips.mips/home/sbruno/bsd/fbsd_head/tmp/legacy/usr/include -c /home/sbruno/bsd/fbsd_head/usr.bin/dtc/checking.cc --- string.o --- In file included from /home/sbruno/bsd/fbsd_head/usr.bin/dtc/input_buffer.hh:35:0, from /home/sbruno/bsd/fbsd_head/usr.bin/dtc/string.hh:35, from /home/sbruno/bsd/fbsd_head/usr.bin/dtc/string.cc:33: /home/sbruno/bsd/fbsd_head/usr.bin/dtc/util.hh:53:21: error: 'uint8_t' was not declared in this scope typedef std::vector byte_buffer; ^ /home/sbruno/bsd/fbsd_head/usr.bin/dtc/util.hh:53:28: error: template argument 1 is invalid typedef std::vector byte_buffer; with gcc49 I get even more peculiar behavior: =3D=3D=3D> gnu/usr.bin/gperf/doc (depend) make[3]: /var/tmp/mips.mips/home/sbruno/bsd/fbsd_head/tmp/home/sbruno/bsd/f= bsd_head/gnu/usr.bin/gperf/.depend, 145: ignoring stale .depend for /usr/li= b/libstdc++.a --- gperf --- /usr/local/bin/clang++ -O2 -pipe -I/var/tmp/mips.mips/home/sbruno/bsd/fbsd_head/tmp/legacy/usr/include -I/home/sbruno/bsd/fbsd_head/gnu/usr.bin/gperf/../../../contrib/gperf/lib -= I/home/sbruno/bsd/fbsd_head/gnu/usr.bin/gperf -static -L/var/tmp/mips.mips= /home/sbruno/bsd/fbsd_head/tmp/legacy/usr/lib -o gperf bool-array.o hash-ta= ble.o input.o keyword-list.o keyword.o main.o options.o output.o positions.= o search.o version.o getline.o hash.o -legacy /usr/local/bin/ld: cannot find -lstdc++ clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [gperf] Error code 1 --=-XZgS610N39ZvFK/LuFVL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (FreeBSD) iQEcBAABAgAGBQJSQnFaAAoJEBkJRdwI6BaH3XEH/0cadtF4s3lDTVZyjOkfbODS vbw+awL/QzD8m/MzkHfrshgguYs6eE2jpzKMKZ2o/Gw3IwdEkJJET3Ko0jYlD98c MgZqQ3dnQ7T5wH7GX2w6AzF+UkaDW9uZAK9dbe4PGKOLGd5NJ6lk5Qjtguuwt/nE 7QmhqPyVyotq0VxEVwH7X60ABeV2EijAhTlreiEbfK4M5C+MyWWSUljKJWxtpmBE 60cuBEv2s4NMhgd8s/r2aLNQJ//vmwlAicaarbgoXnQcGVbqdosT8zXLce5xDD5j E5GCIxeRscfu0Jqq4kqgu9padSVtIhJiLizq0zoztEVhCEO39jh/+TvjTCcuveQ= =0b/1 -----END PGP SIGNATURE----- --=-XZgS610N39ZvFK/LuFVL--