Hello, I install gcc45 from ports:
I use this article (http://www.freebsd.org/doc/en/articles/custom-gcc/article.html) to configure gcc45 for ports:
Note: I didn't find libobjc.so.3 in /usr/share/lib/gcc45.
After reboot i try to recompile some ports and have:
In google, some linuxoids had this problem, but solution was "apt-get install libc-dev and build-essentials"
Can you help?
Thanks.
Code:
%uname -a
FreeBSD rapture 8.0-STABLE FreeBSD 8.0-STABLE #9: Wed Mar 24 12:01:05 SAKT 2010
root@rapture:/usr/obj/usr/src/sys/RAPTURE i386
%pkg_info |grep gcc
gcc-4.5.1.20100422 GNU Compiler Collection 4.5
gccmakedep-1.0.2 Create dependencies in makefiles using 'gcc -M'
%pkg_info | grep binutils
binutils-2.20.1_1 GNU binary tools
Code:
% sudo vi /etc/make.conf
...
# Use gcc45 as port compiler. Dangeon.
.if !empty(.CURDIR:M/usr/ports/*) && exists(/usr/local/bin/gcc45)
CC=gcc45
CXX=g++45
CPP=cpp45
CFLAGS+=-msse3 -march=atom -mtune=atom -fexcess-precision=fast -floop-parallellize-all
.endif
...
%sudo more /etc/libmap.conf
libgcc_s.so.1 gcc45/libgcc_s.so.1
libgomp.so.1 gcc45/libgomp.so.1
libssp.so.0 gcc45/libssp.so.0
libstdc++.so.6 gcc45/libstdc++.so.6
After reboot i try to recompile some ports and have:
Code:
checking for gcc... gcc45
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
===> Script "configure" failed unexpectedly.
Can you help?
Thanks.