ports/119388: ports that require gcc 34 instead of gcc42
vermaden
vermaden at interia.pl
Sun Jan 6 21:11:02 UTC 2008
> vermaden wrote:
> >> qemu does force the gcc34 dependency, that is exactly what the
> >> USE_GCC=3.4 line does.
> >>
> >> Kris
> >
> > # cd /usr/ports/emulators/qemu-devel
> > # make install clean
> > ===> Vulnerability check disabled, database not found
> > ===> Found saved configuration for qemu-devel-0.9.0s.20070802
> > ===> Extracting for qemu-devel-0.9.0s.20070802_1
> > => MD5 Checksum OK for qemu/qemu-snapshot-2007-08-02_05.tar.bz2.
> > => SHA256 Checksum OK for qemu/qemu-snapshot-2007-08-02_05.tar.bz2.
> > ===> qemu-devel-0.9.0s.20070802_1 depends on file:
> /usr/local/bin/perl5.8.8 - found
> > ===> Patching for qemu-devel-0.9.0s.20070802_1
> > ===> qemu-devel-0.9.0s.20070802_1 depends on file:
> /usr/local/bin/perl5.8.8 - found
> > ===> Applying FreeBSD patches for qemu-devel-0.9.0s.20070802_1
> > ===> qemu-devel-0.9.0s.20070802_1 depends on package:
> kqemu-kmod>=1.3.0pre5 - found
> > ===> qemu-devel-0.9.0s.20070802_1 depends on executable: texi2html -
> found
> > ===> qemu-devel-0.9.0s.20070802_1 depends on executable: gmake -
> found
> > ===> qemu-devel-0.9.0s.20070802_1 depends on executable: gcc34 -
> found
> > ===> qemu-devel-0.9.0s.20070802_1 depends on file:
> /usr/local/bin/sdl-config - found
> > ===> qemu-devel-0.9.0s.20070802_1 depends on file:
> /usr/local/bin/perl5.8.8 - found
> > ===> qemu-devel-0.9.0s.20070802_1 depends on shared library: SDL.11 -
> found
> > ===> Configuring for qemu-devel-0.9.0s.20070802_1
> > ERROR: "gcc34" either does not exist or does not work
> > ===> Script "configure" failed unexpectedly.
> > Please report the problem to nox at FreeBSD.org [maintainer] and attach
> the
> >
> "/usr/ports/obj/usr/ports/emulators/qemu-devel/work/qemu-snapshot-2007-08-02_05/config.log"
> > including the output of the failure of your make command. Also, it might
> be
> > a good idea to provide an overview of all packages installed on your
> system
> > (e.g. an `ls /var/db/pkg`).
> > *** Error code 1
> >
> > Stop in /usr/ports/emulators/qemu-devel.
> > *** Error code 1
> >
> > Stop in /usr/ports/emulators/qemu-devel.
> >
> > # pkg_info|grep gcc
> > # which gcc34
> > /usr/local/libexec/ccache/gcc34
> > # ls -l /usr/local/libexec/ccache/gcc34
> > lrwxr-xr-x 1 root wheel 21 Nov 19 01:07
> /usr/local/libexec/ccache/gcc34 -> /usr/local/bin/ccache
> > # echo $PATH
> >
> /usr/local/libexec/ccache:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
> > # export
> PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin"
> > # which gcc34
> > gcc34 not found
> > # make install clean
> > ===> Vulnerability check disabled, database not found
> > ===> Found saved configuration for qemu-devel-0.9.0s.20070802
> > ===> Extracting for qemu-devel-0.9.0s.20070802_1
> > => MD5 Checksum OK for qemu/qemu-snapshot-2007-08-02_05.tar.bz2.
> > => SHA256 Checksum OK for qemu/qemu-snapshot-2007-08-02_05.tar.bz2.
> > ===> qemu-devel-0.9.0s.20070802_1 depends on file:
> /usr/local/bin/perl5.8.8 - found
> > ===> Patching for qemu-devel-0.9.0s.20070802_1
> > ===> qemu-devel-0.9.0s.20070802_1 depends on file:
> /usr/local/bin/perl5.8.8 - found
> > ===> Applying FreeBSD patches for qemu-devel-0.9.0s.20070802_1
> > ===> qemu-devel-0.9.0s.20070802_1 depends on package:
> kqemu-kmod>=1.3.0pre5 - found
> > ===> qemu-devel-0.9.0s.20070802_1 depends on executable: texi2html -
> found
> > ===> qemu-devel-0.9.0s.20070802_1 depends on executable: gmake -
> found
> > ===> qemu-devel-0.9.0s.20070802_1 depends on executable: gcc34 - not
> found
> > ===> Verifying install for gcc34 in /usr/ports/lang/gcc34
> > Making GCC 3.4.6 for FreeBSD 7.0 target=i386-portbld-freebsd7.0
> > ===> Vulnerability check disabled, database not found
> > => gcc-core-3.4.6.tar.bz2 doesn't seem to exist in
> /usr/ports/distfiles/.
> > => Attempting to fetch from
> ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-3.4.6/.
> > gcc-core-3.4.6.tar.bz2 2% of 12 MB 184
> kBps^C
> > fetch: transfer interrupted
> > #
> >
> > Looks lkie ccache problem, ports does not add gcc34 as a dependency if
> you use ccache, it is treated as a nonworking installation of gcc34, not as
> a lack of gcc34 package.
>
> Yes, you should not have /usr/local/libexec/ccache in your path I
> believe.
>
> Kris
It is mandatory to make ccache work since ccache puts wrappers for 'real' gcc's in /usr/local/libexec/ccache directory
# ls -l /usr/local/libexec/ccache
total 4
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 c++ -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 cc -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 g++ -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 g++295 -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 g++32 -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 g++33 -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 g++34 -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 g++40 -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 g++41 -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 g++42 -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 g++43 -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 gcc -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 gcc295 -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 gcc32 -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 gcc33 -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 gcc34 -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 gcc40 -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 gcc41 -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 gcc42 -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 gcc43 -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 icc -> /usr/local/bin/ccache
lrwxr-xr-x 1 root wheel 21 Nov 19 01:07 icpc -> /usr/local/bin/ccache
-r-xr-xr-x 1 root wheel 96 Nov 19 01:07 world-c++
-r-xr-xr-x 1 root wheel 95 Nov 19 01:07 world-cc
I even wrote a small howto long time ago:
http://bsdforums.com/forums/showthread.php?t=47531
ccache can reduce compile time even by 70%, maybe even more.
Regards
vermaden
----------------------------------------------------------------------
Mamy worek pelen prezentow. Te prezenty sa dla Ciebie.
Sprawdz >> http://link.interia.pl/f1cbf
More information about the freebsd-ports-bugs
mailing list