Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Sep 2013 09:04:19 -0700
From:      Sean Bruno <sean_bruno@yahoo.com>
To:        Brooks Davis <brooks@FreeBSD.org>, "freebsd-current@freebsd.org" <freebsd-current@FreeBSD.org>, Lev Serebryakov <lev@FreeBSD.org>
Subject:   Re: Doing it wrong:  Building world with lang/clang-devel and lang/gcc49
Message-ID:  <1380125059.2545.1.camel@localhost>
In-Reply-To: <1380086110.1619.70.camel@localhost>
References:  <1379702370.2402.3.camel@localhost> <1739775195.20130921154216@serebryakov.spb.ru> <20130922215307.GG62197@lor.one-eyed-alien.net> <1380086110.1619.70.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-EHapE+JTmStgeVIranyu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

On Tue, 2013-09-24 at 22:15 -0700, Sean Bruno wrote:
> 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
>=20
>=20
> Well, I've tried clang-devel, gcc46 and gcc49.  Each one yeilds
> different failures and I'm really just totally confused at this point.
>=20
> 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
>=20
>=20
> =3D=3D> usr.bin/dtc (obj,depend,all,install)
> --- obj ---
> /var/tmp/mips.mips/home/sbruno/bsd/fbsd_head/tmp/home/sbruno/bsd/fbsd_hea=
d/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/=
usr.bin/dtc/input_buffer.cc /home/sbruno/bsd/fbsd_head/usr.bin/dtc/string.c=
c /home/sbruno/bsd/fbsd_head/usr.bin/dtc/dtb.cc /home/sbruno/bsd/fbsd_head/=
usr.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/leg=
acy/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=
/fbsd_head/usr.bin/dtc/.depend, 347: ignoring stale .depend for /usr/lib/li=
bstdc++.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,
>=20
> from /home/sbruno/bsd/fbsd_head/usr.bin/dtc/string.hh:35,
>=20
> 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;
>=20
>=20
>=20
> with gcc49 I get even more peculiar behavior:
>=20
> =3D=3D=3D> gnu/usr.bin/gperf/doc (depend)
> make[3]: /var/tmp/mips.mips/home/sbruno/bsd/fbsd_head/tmp/home/sbruno/bsd=
/fbsd_head/gnu/usr.bin/gperf/.depend, 145: ignoring stale .depend for /usr/=
lib/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.mi=
ps/home/sbruno/bsd/fbsd_head/tmp/legacy/usr/lib -o gperf bool-array.o hash-=
table.o input.o keyword-list.o keyword.o main.o options.o output.o position=
s.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
>=20
>=20


ok, completely giving up on any hope of externally cross compiling a
different $arch I swtiched back to see if I could muddle through and get
amd64 to compile ON amd64 with lang/gcc49

did this http://www.freebsd.org/doc/en/articles/custom-gcc/article.html

Fails here:

=3D=3D=3D> lib/libproc (all)
make[5]: /usr/obj/home/sbruno/bsd/head/lib/libproc/.depend, 187:
ignoring stale .depend
for /usr/obj/home/sbruno/bsd/head/tmp/usr/lib/libstdc++.a
/usr/bin/ld: cannot find -lsupc++
cc: error: linker command failed with exit code 1 (use -v to see
invocation)
--- libproc.so.2 ---
*** [libproc.so.2] Error code 1

make[5]: stopped in /home/sbruno/bsd/head/lib/libproc


No idea what to do next.  I assume that this has worked in the past for
someone?

--=-EHapE+JTmStgeVIranyu
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)

iQEcBAABAgAGBQJSQwl6AAoJEBkJRdwI6BaHgssH/2zkUTqkTrwGNlMgq52MpqTc
Yt/YN9h3sEIUalc+VKgHakgpd2+0r3eMTio8uIXK7h9ewG50ZEkm3NdRIZiIxIdx
3UwoEe+6272gVh5OkKhF7uLzZFGri2MOjqcL+kNGgok4rV6Eq+yAPyD1abVMD4+B
YWY1dzZ9UVJrgpCT758wJOoUzk0uZqh8le8Av8MibydT4wwmR1Gli/SZMsw0/8QN
5POPLI3nDmCaYMHSOTvy1McwBz12ipeVGNrFpol60w6oPSMo30q27p5zMfbZ5RDS
6vkKyIBLfqXX+/v0pj9KRRk+JwWI3zk1ymQod2c9KrBeS1GR+BIzMGZJW67FJL4=
=n01r
-----END PGP SIGNATURE-----

--=-EHapE+JTmStgeVIranyu--




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