DragonFly BSD
DragonFly bugs List (threaded) for 2004-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: GCC3 question.


To: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
From: walt <wa1ter@xxxxxxxxxxxxx>
Date: Tue, 15 Jun 2004 03:16:24 -0700

Joerg Sonnenberger wrote:
On Mon, Jun 14, 2004 at 10:21:31PM +0000, Adam K Kirchhoff wrote:

BTW, is buildworld supposed to work with gcc3.3?  I just tried, but it
died with:

cc -fpic -DPIC -O -pipe -mcpu=pentiumpro -DLIBC_RCS -DSYSLIBC_RCS -I/usr/src/lib/libc/include -D__DBINTERFACE_PRIVATE -DINET6 -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libc/locale -DBROKEN_DES -DYP  -c /usr/src/lib/libc/string/wmemset.c -o wmemset.So
building shared library libc.so.4
/usr/obj/usr/src/ctools_i386_i386/usr/libexec/binutils214/elf/ld: cannot open crtbeginS.o: No such file or directory


Yes, it is. Please cvsup and try again.

I'm seeing the same error during buildworld. I see two files by this name
/usr/obj/usr/src/world_i386/usr/lib/crtbeginS.o
/usr/obj/usr/src/world_i386/usr/src/lib/csu/common/crtbeginS.o
but ld is looking in the wrong place, apparently:
==============================================================
cc -fpic -DPIC -O -pipe -march=pentiumpro -DIN_GLIBCPP_V3 -DHAVE_CONFIG_H -I/usr/src/gnu/lib/gcc3/libstdc++ -I/usr/src/gnu/lib/gcc3/libstdc++/../../../../contrib/gcc-3.3/libstdc++-v3/libsupc++ -I/usr/src/gnu/lib/gcc3/libstdc++/../../../../contrib/gcc-3.3/gcc -I/usr/src/gnu/lib/gcc3/libstdc++/../../../../contrib/gcc-3.3/include -c /usr/src/contrib/gcc-3.3/libiberty/dyn-string.c -o dyn-string.So
building shared library libstdc++.so.4
/usr/obj/usr/src/ctools_i386_i386/usr/libexec/binutils214/elf/ld: cannot open crtbeginS.o: No such file or directory
*** Error code 1
Stop in /usr/src/gnu/lib/gcc3/libstdc++.
==============================================================
However, when I cd /usr/src/gnu/lib/gcc3/libstdc++ and do a 'make' it all
works fine and there is no mention of looking for crtbeginS.o:


cc -fpic -DPIC -O -pipe -march=pentiumpro -DIN_GLIBCPP_V3 -DHAVE_CONFIG_H -I/usr/src/gnu/lib/gcc3/libstdc++ -I/usr/src/gnu/lib/gcc3/libstdc++/../../../../contrib/gcc-3.3/libstdc++-v3/libsupc++ -I/usr/src/gnu/lib/gcc3/libstdc++/../../../../contrib/gcc-3.3/gcc -I/usr/src/gnu/lib/gcc3/libstdc++/../../../../contrib/gcc-3.3/include -c /usr/src/gnu/lib/gcc3/libstdc++/../../../../contrib/gcc-3.3/libiberty/dyn-string.c -o dyn-string.So
building shared library libstdc++.so.4
sed -e '/^#/s/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*\)/_GLIBCPP_\1/g' -e 's,^#include "\(.*\)",#include <bits/\1>,g' < /usr/src/gnu/lib/gcc3/libstdc++/../../../../contrib/gcc-3.3/gcc/gthr.h > gthr.h
sed -e 's/\(UNUSED\)/_GLIBCPP_\1/g' -e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCPP_\1/g' < /usr/src/gnu/lib/gcc3/libstdc++/../../../../contrib/gcc-3.3/gcc/gthr-single.h > gthr-single.h
sed -e 's/\(UNUSED\)/_GLIBCPP_\1/g' -e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCPP_\1/g' -e 's/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*WEAK\)/_GLIBCPP_\1/g' < /usr/src/gnu/lib/gcc3/libstdc++/../../../../contrib/gcc-3.3/gcc/gthr-posix.h > gthr-posix.h
sed -e 's/\(UNUSED\)/_GLIBCPP_\1/g' -e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCPP_\1/g' -e 's/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*WEAK\)/_GLIBCPP_\1/g' -e 's,^#include "\(.*\)",#include <bits/\1>,g' < /usr/src/gnu/lib/gcc3/libstdc++/../../../../contrib/gcc-3.3/gcc/gthr-posix.h > gthr-default.h




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]