This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Greetings. I've been beating my head on this, and I'm out of my expertise at this point. I'm building a uClibc based system, but whether I'm using glibc or uClibc is IMHO irrevelant. Attached is a patch that I have put together based upon my searching the Internet and studying other people's patches. It builds the separate GCC libraries just fine, but when I go to link the final static uClibc C library, it dies and prints a ton of multiple definition messages. Can anyone give me some insight on what I am missing? Thank you VERY much in advance. -Steve
make[1]: Leaving directory `/usr/src/redhat/BUILD/uClibc-0.9.16/libpthread'
make[1]: Entering directory `/usr/src/redhat/BUILD/uClibc-0.9.16/libc'
mips-uclibc-swfp-ar rv ./tmp/libgcc-need.a
Finding missing symbols in libc.a ...
partial linking...
Extracting referenced libgcc.a objects ...
dp-bit.o: In function `__adddf3':
/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:543: multiple definition of `__adddf3'
_addsub_df.o:/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:543: first defined here
dp-bit.o: In function `__subdf3':
/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:563: multiple definition of `__subdf3'
_addsub_df.o:/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:563: first defined here
dp-bit.o: In function `__muldf3':
/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:757: multiple definition of `__muldf3'
_mul_df.o:/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:757: first defined here
dp-bit.o: In function `__divdf3':
/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:868: multiple definition of `__divdf3'
_div_df.o:/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:868: first defined here
dp-bit.o: In function `__eqdf2':
/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:996: multiple definition of `__eqdf2'
_eq_df.o:/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:996: first defined here
dp-bit.o: In function `__nedf2':
/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:1017: multiple definition of `__nedf2'
_ne_df.o:/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:1017: first defined here
dp-bit.o: In function `__gedf2':
/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:1059: multiple definition of `__gedf2'
_ge_df.o:/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:1059: first defined here
dp-bit.o: In function `__ltdf2':
/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:1079: multiple definition of `__ltdf2'
_lt_df.o:/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:1079: first defined here
dp-bit.o: In function `__floatsidf':
/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:1141: multiple definition of `__floatsidf'
_si_to_df.o:/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:1141: first defined here
dp-bit.o: In function `__fixdfsi':
/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:1211: multiple definition of `__fixdfsi'
_df_to_si.o:/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:1211: first defined here
dp-bit.o: In function `__negdf2':
/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:1279: multiple definition of `__negdf2'
_negate_df.o:/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:1279: first defined here
dp-bit.o: In function `__truncdfsf2':
/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:1356: multiple definition of `__truncdfsf2'
_df_to_sf.o:/usr/src/redhat/BUILD/build-gcc1/gcc/dp-bit.c:1356: first defined here
mips-uclibc-swfp-nm: libgcc.ldr: No such file or directory
Objects added from /opt/toolchains/uclibc-crosstools-swfp-2.1.0/lib/gcc-lib/mips-linux/3.2/soft-float/libgcc.a:
_addsub_df.o
_df_to_sf.o
_df_to_si.o
_div_df.o
_eq_df.o
_ge_df.o
_lt_df.o
_mul_df.o
_ne_df.o
_negate_df.o
_si_to_df.o
dp-bit.o
Done
Attachment:
gcc-3.2-swfp.patch.bz2
Description: Binary data
AR=mips-uclibc-swfp-ar AS=mips-uclibc-swfp-as \
RANLIB=mips-uclibc-swfp-ranlib ../gcc-3.2/configure \
--prefix=/usr/local/uclibc-swfp \
--target=mips-linux \
--with-newlib \
--disable-checking \
--disable-shared \
--disable-threads \
--enable-languages=c \
--enable-target-optspace \
--disable-nls \
--with-gnu-ld \
--program-transform-name=s,^,mips-uclibc-swfp-,
# Fix autoconf cross compiling
perl -i -p -e 's,ac_cv_prog_cc_cross=no,ac_cv_prog_cc_cross=yes,g' \
config.cache
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |