Date: Tue, 24 Sep 2013 22:15:10 -0700 From: Sean Bruno <sean_bruno@yahoo.com> To: Brooks Davis <brooks@FreeBSD.org> Cc: Lev Serebryakov <lev@FreeBSD.org>, "freebsd-current@freebsd.org" <freebsd-current@FreeBSD.org> Subject: Re: Doing it wrong: Building world with lang/clang-devel and lang/gcc49 Message-ID: <1380086110.1619.70.camel@localhost> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-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<uint8_t> byte_buffer; ^ /home/sbruno/bsd/fbsd_head/usr.bin/dtc/util.hh:53:28: error: template argument 1 is invalid typedef std::vector<uint8_t> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1380086110.1619.70.camel>