Christos Zoulas wrote:
On Oct 6, 9:18pm, [email protected] (Riccardo Mottola) wrote:
-- Subject: Re: build broken -groff and c++ compiler
| Hi Christos,
|
| Thanks.
|
| Christos Zoulas wrote:
| > On Oct 6, 2:21pm, [email protected] (Riccardo Mottola) wrote:
| > -- Subject: Re: build broken -groff and c++ compiler
| >
| > | Hi,
| > |
| > | Christos Zoulas wrote:
| > | > 1. cvs update to head
| > | > 2. cd /usr/src/external/gpl3/binutils
| > | > 3. for i in lib usr.bin usr.sbin; do (cd $i && make && make install);
done
| > | thanks, but it fails with:
| >
| > Add USETOOLS=never to the make lines.
| >
| Hi, that helped quite a bit, however:
|
| # compile addr2line/filemode.o
| gcc -O2 -O2 -fexpensive-optimizations -march=pentium-m -std=gnu99
| -I/usr/src/external/gpl3/binutils/usr.bin/addr2line/../common/arch/i386
| -DHAVE_CONFIG_H -I/usr/src/external/gpl3/binutils/lib/libbfd/arch/i386
| -I/usr/src/external/gpl3/binutils/dist/include
| -I/usr/src/external/gpl3/binutils/dist/bfd
| -I/usr/src/external/gpl3/binutils/dist/binutils
| -DLOCALEDIR=\"/usr/share/locale\" -c
| /usr/src/external/gpl3/binutils/dist/binutils/filemode.c
| make[1]: don't know how to make
| /usr/src/external/gpl3/binutils/lib/libiberty/libiberty.a. Stop
Looks like objdir or incomplete build confusion. Remove any objdirs and
their contents, make cleandir, make obj, make dependall, make install
first in lib and then in the bin directories.
christos
First I did it for lib and bin in usr, sbin, usr.bin, usr.sbin. All
executed without errors.
Then I got back into
/usr/src/external/gpl3/binutils
and modified your suggestion with the following:
for i in lib usr.bin usr.sbin; do (cd $i && make cleandir && make obj &
make dependall USETOOLS=never && make install); done
Finally it executed without errors.
At this point, i tried to update my distribution, but it still fails:
checking that C++ static constructors and destructors are called... no
configure: error: a working C++ compiler is required
What can I do? rebuild my compiler, how?
May I suppose I can run:
make cleandir && make obj & make dependall USETOOLS=never && make
install in external/gplv3/gcc ?
Riccardo