/usr/bin/c++filt is one of Apple's installer's favorites when it comesto "forgetting" to install random files. You might want to reinstall the
BSD.pkg from your system CD; if you updated your Xcode tools after the
system installation, the file might also have been on the to-do list of
the 2005-06XcodeExtras.pkg. Look if you have a receipt for the latter in
/Library/Receipts; if yes, reinstall it.
Martin
I did have that receipt.
I had this problem. I followed the instructions on the fink FAQ
(which amounted to installing XCode v2.2). The problem went away.
-Ross Smith-
Thanks Martin and Ross, you got me up and running again;
I downloaded and installed Xcode 2.2 (my 10.4 CD only had v2.0) and I’m now able to compile using g77.
There must have been a second issue since I’m still not able to upgrade g77 from 3.4.1-1 to 3.4.3-2 using FinkCommander (see below)
Thanks again,
Jerel
FinkCommander output at the point I see “No such file or directory” and errors appearing;
mv: rename libgcc/*.os to stage1/libgcc/*.os: No such file or directory
subdirs="f"; for dir in $subdirs; \
do \
if [ -d stage1/$dir ] ; then true ; else mkdir stage1/$dir ; fi ; \
done
mv specs stage1/specs
mv *.o insn-flags.h insn-config.h insn-codes.h insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c insn-attr.h insn-attrtab.c insn-opinit.c insn-constants.h tm-preds.h tree-check.h insn-conditions.c min-insn-modes.c insn-modes.c insn-modes.h s-flags s-config s-codes s-mlib s-genrtl s-modes s-gtype gtyp-gen.h s-output s-recog s-emit s-extract s-peep s-check s-conditions s-attr s-attrtab s-opinit s-preds s-constants s-crt0 genemit genoutput genrecog genextract genflags gencodes genconfig genpeep genattrtab genattr genopinit gengenrtl gencheck genpreds genconstants gengtype genconditions genmodes genrtl.c genrtl.h gt-*.h gtype-*.h gtype-desc.c xgcc cpp cc1 crt2.o gcc-cross protoize unprotoize specs collect2 collect2 gcov-iov gcov gcov-dump *.[0-9][0-9].* *.[si] libcpp.a libbackend.a libgcc.mk g77 g77-cross f771 stage1
mv: rename s-crt0 to stage1/s-crt0: No such file or directory
mv: crt2.o: No such file or directory
mv: rename gcc-cross to stage1/gcc-cross: No such file or directory
mv: rename protoize to stage1/protoize: No such file or directory
mv: rename unprotoize to stage1/unprotoize: No such file or directory
mv: specs: No such file or directory
mv: collect2: No such file or directory
mv: rename gcov to stage1/gcov: No such file or directory
mv: rename gcov-dump to stage1/gcov-dump: No such file or directory
mv: rename *.[0-9][0-9].* to stage1/*.[0-9][0-9].*: No such file or directory
mv: rename *.[si] to stage1/*.[si]: No such file or directory
mv: rename g77-cross to stage1/g77-cross: No such file or directory
mv: rename f771 to stage1/f771: No such file or directory
make[2]: [stage1-start] Error 1 (ignored)
if [ -f as ] ; then (cd stage1 && ln -s ../as .) ; else true ; fi
if [ -f ld ] ; then (cd stage1 && ln -s ../ld .) ; else true ; fi
if [ -f collect-ld ] ; then (cd stage1 && ln -s ../collect-ld .) ; else true ; fi
rm -f stage1/libgcc.a stage1/libgcc_eh.a stage1/libgcov.a
rm -f stage1/libgcc_s*.dylib
rm -f stage1/libunwind.a stage1/libunwind*.dylib
cp libgcc.a stage1
` if [ -f /sw/src/fink.build/g77-3.4.3-2/darwin/gcc/../binutils/ranlib ] ; then echo /sw/src/fink.build/g77-3.4.3-2/darwin/gcc/../binutils/ranlib ; else if [ "powerpc-apple-darwin8.3.0" = "powerpc-apple-darwin8.3.0" ] ; then echo ranlib; else t='s,y,y,'; echo ranlib | sed -e $t ; fi; fi` stage1/libgcc.a
cp libgcov.a stage1
` if [ -f /sw/src/fink.build/g77-3.4.3-2/darwin/gcc/../binutils/ranlib ] ; then echo /sw/src/fink.build/g77-3.4.3-2/darwin/gcc/../binutils/ranlib ; else if [ "powerpc-apple-darwin8.3.0" = "powerpc-apple-darwin8.3.0" ] ; then echo ranlib; else t='s,y,y,'; echo ranlib | sed -e $t ; fi; fi` stage1/libgcov.a
if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stage1; \
` if [ -f /sw/src/fink.build/g77-3.4.3-2/darwin/gcc/../binutils/ranlib ] ; then echo /sw/src/fink.build/g77-3.4.3-2/darwin/gcc/../binutils/ranlib ; else if [ "powerpc-apple-darwin8.3.0" = "powerpc-apple-darwin8.3.0" ] ; then echo ranlib; else t='s,y,y,'; echo ranlib | sed -e $t ; fi; fi` stage1/libgcc_eh.a; \
fi
cp libgcc_s*.dylib stage1
cp: libgcc_s*.dylib: No such file or directory
make[2]: [stage1-start] Error 1 (ignored)
cp libunwind.a libunwind*.dylib stage1
cp: libunwind*.dylib: No such file or directory
cp: libunwind.a: No such file or directory
make[2]: [stage1-start] Error 1 (ignored)
for f in .. ; do if [ x${f} != x.. ]; then \
cp stage1/${f} . ; \
else true; \
fi; done
mv -f f/*.o f/fini f/stamp-str f/str-*.h f/str-*.j g77spec.o stage1/f
mv: rename f/*.o to stage1/f/*.o: No such file or directory
mv: rename f/fini to stage1/f/fini: No such file or directory
mv: rename f/stamp-str to stage1/f/stamp-str: No such file or directory
mv: rename f/str-*.h to stage1/f/str-*.h: No such file or directory
mv: rename f/str-*.j to stage1/f/str-*.j: No such file or directory
mv: rename g77spec.o to stage1/f/g77spec.o: No such file or directory
make[2]: [f77.stage1] Error 1 (ignored)
for dir in . f ; \
do \
rm -f $dir/*.{gcda,gcno} ; \
done
echo timestamp > stage1_copy
echo stage2_build > stage_last
make CC=" stage1/xgcc -Bstage1/ -B/sw/powerpc-apple-darwin8.3.0/bin/" CC_FOR_BUILD=" stage1/xgcc -Bstage1/ -B/sw/powerpc-apple-darwin8.3.0/bin/" \
STAGE_PREFIX=stage1/ \
ADAFLAGS="" CFLAGS="-g -O2" LDFLAGS="" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WARN="-pedantic -Wno-long-long -Wold-style-definition " libdir=/sw/lib LANGUAGES="c gcov gcov-dump f77" MAKEINFO="makeinfo --split-size=5000000" MAKEINFOFLAGS="--no-split" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@" \
CFLAGS="-g -O2 -fprofile-generate"
stage1/xgcc -Bstage1/ -B/sw/powerpc-apple-darwin8.3.0/bin/ -c -g -O2 -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -I/sw/include -I. -I. -I../../gcc-3.4.3/gcc -I../../gcc-3.4.3/gcc/. -I../../gcc-3.4.3/gcc/../include ../../gcc-3.4.3/gcc/genmodes.c -o genmodes.o
stage1/xgcc -Bstage1/ -B/sw/powerpc-apple-darwin8.3.0/bin/ -c -g -O2 -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I../../gcc-3.4.3/gcc -I../../gcc-3.4.3/gcc/. -I../../gcc-3.4.3/gcc/../include -I/sw/include ../../gcc-3.4.3/gcc/errors.c -o errors.o
stage1/xgcc -Bstage1/ -B/sw/powerpc-apple-darwin8.3.0/bin/ -g -O2 -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -o genmodes \
genmodes.o errors.o ../libiberty/libiberty.a
/usr/bin/ld: can't open: /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc.a (No such file or directory, errno = 2)
collect2: ld returned 1 exit status
make[2]: *** [genmodes] Error 1
make[1]: *** [stageprofile_build] Error 2
make: *** [profiledbootstrap] Error 2
### execution of /var/tmp/tmp.2.UODE7F failed, exit code 2
Removing build lock...
/sw/bin/dpkg-lockwait -r fink-buildlock-g77-3.4.3-2
(Reading database ... 28496 files and directories currently installed.)
Removing fink-buildlock-g77-3.4.3-2 ...
Failed: phase compiling: g77-3.4.3-2 failed
