ports/160312: Can't compile devel/glib20 with gcc 4.6
Pavel Timofeev
timp87 at gmail.com
Wed Aug 31 06:50:11 UTC 2011
The following reply was made to PR ports/160312; it has been noted by GNATS.
From: Pavel Timofeev <timp87 at gmail.com>
To: bf1783 at gmail.com
Cc: bug-followup at freebsd.org
Subject: Re: ports/160312: Can't compile devel/glib20 with gcc 4.6
Date: Wed, 31 Aug 2011 10:42:08 +0400
--001517447a2e6179ec04abc76d16
Content-Type: text/plain; charset=UTF-8
Sorry, in the future I'll search info in maillists in the first place.
PR need to close.
2011/8/31 b. f. <bf1783 at googlemail.com>
> > /usr/bin/ld: unrecognized option '-Bsymbolic-functions'
> > /usr/bin/ld: use the --help option for usage information
> > gmake[4]: *** [libglib-2.0.la] Error 1
> > gmake[4]: Leaving directory
> `/usr/ports/devel/glib20/work/glib-2.28.8/glib'
> > gmake[3]: *** [all-recursive] Error 1
> > gmake[3]: Leaving directory
> `/usr/ports/devel/glib20/work/glib-2.28.8/glib'
> > gmake[2]: *** [all] Error 2
> > gmake[2]: Leaving directory
> `/usr/ports/devel/glib20/work/glib-2.28.8/glib'
> > gmake[1]: *** [all-recursive] Error 1
> > gmake[1]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.28.8'
> > gmake: *** [all] Error 2
> > *** Error code 1
> >
> > Stop in /usr/ports/devel/glib20.
> > *** Error code 1
>
> This is a known problem when using multiple compilers and toolchains
> together with devel/libtool, which caches and uses information about
> the compiler and toolchain that it was built with. If you want to use
> an alternative compiler and toolchain to build a port that uses
> devel/libtool, you must rebuild devel/libtool with your alternative
> compiler and toolchain before building your port. And you cannot
> simply set USE_GCC for your rebuild of devel/libtool, because that
> will introduce circular dependencies in your package database. So you
> must set CC, CXX, CFLAGS, and LDFLAGS individually, as in
> ports/Mk/bsd.gcc.mk. This has been discussed numerous times over the
> past few years on the lists and in the forums, and is the subject of
> some open PRs.
>
> b.
>
--001517447a2e6179ec04abc76d16
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Sorry, in the future I'll search info in maillists in the first place.<=
br>PR need to close.<br><br><div class=3D"gmail_quote">2011/8/31 b. f. <spa=
n dir=3D"ltr"><<a href=3D"mailto:bf1783 at googlemail.com">bf1783 at googlemai=
l.com</a>></span><br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;">> /usr/bin/ld: unrecognized option '=
-Bsymbolic-functions'<br>
> /usr/bin/ld: use the --help option for usage information<br>
> gmake[4]: *** [<a href=3D"http://libglib-2.0.la" target=3D"_blank">lib=
glib-2.0.la</a>] Error 1<br>
> gmake[4]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.28.8/=
glib'<br>
> gmake[3]: *** [all-recursive] Error 1<br>
> gmake[3]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.28.8/=
glib'<br>
> gmake[2]: *** [all] Error 2<br>
> gmake[2]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.28.8/=
glib'<br>
> gmake[1]: *** [all-recursive] Error 1<br>
> gmake[1]: Leaving directory `/usr/ports/devel/glib20/work/glib-2.28.8&=
#39;<br>
> gmake: *** [all] Error 2<br>
> *** Error code 1<br>
><br>
> Stop in /usr/ports/devel/glib20.<br>
> *** Error code 1<br>
<br>
This is a known problem when using multiple compilers and toolchains<br>
together with devel/libtool, which caches and uses information about<br>
the compiler and toolchain that it was built with. =C2=A0If you want to use=
<br>
an alternative compiler and toolchain to build a port that uses<br>
devel/libtool, you must rebuild devel/libtool with your alternative<br>
compiler and toolchain before building your port. =C2=A0And you cannot<br>
simply set USE_GCC for your rebuild of devel/libtool, because that<br>
will introduce circular dependencies in your package database. =C2=A0So you=
<br>
must set CC, CXX, CFLAGS, and LDFLAGS individually, as in<br>
ports/Mk/<a href=3D"http://bsd.gcc.mk" target=3D"_blank">bsd.gcc.mk</a>. =
=C2=A0This has been discussed numerous times over the<br>
past few years on the lists and in the forums, and is the subject of<br>
some open PRs.<br>
<font color=3D"#888888"><br>
b.<br>
</font></blockquote></div><br>
--001517447a2e6179ec04abc76d16--
More information about the freebsd-gnome
mailing list