This is the mail archive of the gcc-help@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]

Error building mips-sde-elf crosscompiler


Hi,

I am trying to build a GCC 4.9.0 toolchain targeting mips-sde-elf on a OS X 10.7 host. Building the first stage compiler works fine, but trying to build the final compiler always ends with an error.

The configure command was "../gcc-4.9.0/configure --prefix=/Users/anders/local --target=mips-sde-elf --disable-nls --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --with-arch=mips32r2 --with-mips-plt --with-synci --with-llsc --with-newlib".

Any hints on what's going wrong?

Regards,
Anders Montonen
(please cc, not subscribed to list)

Running configure in multilib subdir el/mips64r2/sof/spram
pwd: /Users/anders/work/toolchain/gcc/4.9.0/mips-sde-elf/mips-sde-elf
mkdir el/mips64r2/sof/spram
configure: creating cache ./config.cache
checking build system type... x86_64-apple-darwin11.4.2
checking host system type... mips-sde-elf
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking for mips-sde-elf-ar... /Users/anders/local/mips-sde-elf/bin/ar
checking for mips-sde-elf-lipo... mips-sde-elf-lipo
checking for mips-sde-elf-nm... /Users/anders/work/toolchain/gcc/4.9.0/mips-sde-elf/./gcc/nm
checking for mips-sde-elf-ranlib... /Users/anders/local/mips-sde-elf/bin/ranlib
checking for mips-sde-elf-strip... /Users/anders/local/mips-sde-elf/bin/strip
checking whether ln -s works... yes
checking for mips-sde-elf-gcc... /Users/anders/work/toolchain/gcc/4.9.0/mips-sde-elf/./gcc/xgcc -B/Users/anders/work/toolchain/gcc/4.9.0/mips-sde-elf/./gcc/ -B/Users/anders/local/mips-sde-elf/bin/ -B/Users/anders/local/mips-sde-elf/lib/ -isystem /Users/anders/local/mips-sde-elf/include -isystem /Users/anders/local/mips-sde-elf/sys-include  -EL -mips64r2 -msoft-float -mcode-readable=no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /Users/anders/work/toolchain/gcc/4.9.0/mips-sde-elf/./gcc/xgcc -B/Users/anders/work/toolchain/gcc/4.9.0/mips-sde-elf/./gcc/ -B/Users/anders/local/mips-sde-elf/bin/ -B/Users/anders/local/mips-sde-elf/lib/ -isystem /Users/anders/local/mips-sde-elf/include -isystem /Users/anders/local/mips-sde-elf/sys-include  -EL -mips64r2 -msoft-float -mcode-readable=no accepts -g... yes
checking for /Users/anders/work/toolchain/gcc/4.9.0/mips-sde-elf/./gcc/xgcc -B/Users/anders/work/toolchain/gcc/4.9.0/mips-sde-elf/./gcc/ -B/Users/anders/local/mips-sde-elf/bin/ -B/Users/anders/local/mips-sde-elf/lib/ -isystem /Users/anders/local/mips-sde-elf/include -isystem /Users/anders/local/mips-sde-elf/sys-include  -EL -mips64r2 -msoft-float -mcode-readable=no option to accept ISO C89... none needed
checking how to run the C preprocessor... /Users/anders/work/toolchain/gcc/4.9.0/mips-sde-elf/./gcc/xgcc -B/Users/anders/work/toolchain/gcc/4.9.0/mips-sde-elf/./gcc/ -B/Users/anders/local/mips-sde-elf/bin/ -B/Users/anders/local/mips-sde-elf/lib/ -isystem /Users/anders/local/mips-sde-elf/include -isystem /Users/anders/local/mips-sde-elf/sys-include  -EL -mips64r2 -msoft-float -mcode-readable=no -E
checking size of double... 8
checking size of long double... 8
checking whether decimal floating point is supported... no
configure: WARNING: decimal float is not supported for this target, ignored
checking whether fixed-point is supported... yes
checking whether to use setjmp/longjmp exceptions... no
checking if the linker (/Users/anders/work/toolchain/gcc/4.9.0/mips-sde-elf/./gcc/collect-ld) is GNU ld... yes
checking for thread model used by GCC... single
checking whether assembler supports CFI directives... yes
checking whether the target is hard-float... no
checking for __attribute__((visibility("hidden")))... yes
checking whether the target assembler supports thread-local storage... yes
checking whether the thread-local storage support is from emutls... no
checking for init priority support... yes
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating auto-target.h
config.status: linking ../../../../../../../gcc-4.9.0/libgcc/enable-execute-stack-empty.c to enable-execute-stack.c
config.status: linking ../../../../../../../gcc-4.9.0/libgcc/unwind-generic.h to unwind.h
config.status: linking ../../../../../../../gcc-4.9.0/libgcc/config/no-unwind.h to md-unwind-support.h
config.status: linking ../../../../../../../gcc-4.9.0/libgcc/config/mips/sfp-machine.h to sfp-machine.h
config.status: linking ../../../../../../../gcc-4.9.0/libgcc/gthr-single.h to gthr-default.h
config.status: executing default commands
Adding multilib support to Makefile in ../../../../../../../gcc-4.9.0/libgcc
with_multisubdir=el/mips64r2/sof/spram
# If this is the top-level multilib, build all the other
# multilibs.
if [ -z "el mips32 mips32r2 mips64 mips64r2 mips16 micromips sof spram sof/spram mips16/sof mips16/spram mips16/sof/spram micromips/sof micromips/spram micromips/sof/spram mips32/mips16 mips32/micromips mips32/sof mips32/spram mips32/sof/spram mips32/mips16/sof mips32/mips16/spram mips32/mips16/sof/spram mips32/micromips/sof mips32/micromips/spram mips32/micromips/sof/spram mips32r2/mips16 mips32r2/micromips mips32r2/sof mips32r2/f64 mips32r2/spram mips32r2/sof/spram mips32r2/f64/spram mips32r2/mips16/sof mips32r2/mips16/f64 mips32r2/mips16/spram mips32r2/mips16/sof/spram mips32r2/mips16/f64/spram mips32r2/micromips/sof mips32r2/micromips/f64 mips32r2/micromips/spram mips32r2/micromips/sof/spram mips32r2/micromips/f64/spram mips64/sof mips64/spram mips64/sof/spram mips64r2/sof mips64r2/spram mips64r2/sof/spram el/mips32 el/mips32r2 el/mips64 el/mips64r2 el/mips16 el/micromips el/sof el/spram el/sof/spram el/mips16/sof el/mips16/spram el/mips16/sof/spram el/micromips/sof el/micromips/spram el/micromips/sof/spram el/mips32/mips16 el/mips32/micromips el/mips32/sof el/mips32/spram el/mips32/sof/spram el/mips32/mips16/sof el/mips32/mips16/spram el/mips32/mips16/sof/spram el/mips32/micromips/sof el/mips32/micromips/spram el/mips32/micromips/sof/spram el/mips32r2/mips16 el/mips32r2/micromips el/mips32r2/sof el/mips32r2/f64 el/mips32r2/spram el/mips32r2/sof/spram el/mips32r2/f64/spram el/mips32r2/mips16/sof el/mips32r2/mips16/f64 el/mips32r2/mips16/spram el/mips32r2/mips16/sof/spram el/mips32r2/mips16/f64/spram el/mips32r2/micromips/sof el/mips32r2/micromips/f64 el/mips32r2/micromips/spram el/mips32r2/micromips/sof/spram el/mips32r2/micromips/f64/spram el/mips64/sof el/mips64/spram el/mips64/sof/spram el/mips64r2/sof el/mips64r2/spram el/mips64r2/sof/spram" ]; then \
	  true; \
	else \
	  rootpre=`${PWDCMD-pwd}`/; export rootpre; \
	  srcrootpre=`cd ../../../gcc-4.9.0/libgcc; ${PWDCMD-pwd}`/; export srcrootpre; \
	  lib=`echo "${rootpre}" | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
	  compiler="/Users/anders/work/toolchain/gcc/4.9.0/mips-sde-elf/./gcc/xgcc -B/Users/anders/work/toolchain/gcc/4.9.0/mips-sde-elf/./gcc/ -B/Users/anders/local/mips-sde-elf/bin/ -B/Users/anders/local/mips-sde-elf/lib/ -isystem /Users/anders/local/mips-sde-elf/include -isystem /Users/anders/local/mips-sde-elf/sys-include   "; \
	  for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
	    dir=`echo $i | sed -e 's/;.*$//'`; \
	    if [ "${dir}" = "." ]; then \
	      true; \
	    else \
	      if [ -d ../${dir}/${lib} ]; then \
		flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
		if (cd ../${dir}/${lib}; make "AR=/Users/anders/local/mips-sde-elf/bin/ar" "AR_FLAGS=rc" "CC=/Users/anders/work/toolchain/gcc/4.9.0/mips-sde-elf/./gcc/xgcc -B/Users/anders/work/toolchain/gcc/4.9.0/mips-sde-elf/./gcc/ -B/Users/anders/local/mips-sde-elf/bin/ -B/Users/anders/local/mips-sde-elf/lib/ -isystem /Users/anders/local/mips-sde-elf/include -isystem /Users/anders/local/mips-sde-elf/sys-include   " "CFLAGS=-g -O2 -Os -minterlink-mips16 -mcode-readable=pcrel -mno-gpopt" "DESTDIR=" "EXTRA_OFILES=" "HDEFINES=" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "LDFLAGS=" "LOADLIBES=" "RANLIB=/Users/anders/local/mips-sde-elf/bin/ranlib" "SHELL=/bin/sh" "prefix=/Users/anders/local" "exec_prefix=/Users/anders/local" "libdir=/Users/anders/local/lib" "libsubdir=/Users/anders/local/lib/gcc/mips-sde-elf/4.9.0" "tooldir=/Users/anders/local/mips-sde-elf" \
				CFLAGS="-g -O2 -Os -minterlink-mips16 -mcode-readable=pcrel -mno-gpopt ${flags}" \
				CCASFLAGS=" ${flags}" \
				FCFLAGS=" ${flags}" \
				FFLAGS=" ${flags}" \
				ADAFLAGS=" ${flags}" \
				prefix="/Users/anders/local" \
				exec_prefix="/Users/anders/local" \
				GCJFLAGS=" ${flags}" \
				GOCFLAGS="-O2 -g ${flags}" \
				CXXFLAGS="-g -O2 -Os -minterlink-mips16 -mcode-readable=pcrel -mno-gpopt ${flags}" \
				LIBCFLAGS="-g -O2 -Os -minterlink-mips16 -mcode-readable=pcrel -mno-gpopt ${flags}" \
				LIBCXXFLAGS="-g -O2 -Os -minterlink-mips16 -mcode-readable=pcrel -mno-gpopt -fno-implicit-templates ${flags}" \
				LDFLAGS=" ${flags}" \
				MULTIFLAGS="${flags}" \
				DESTDIR="" \
				INSTALL="/usr/bin/install -c" \
				INSTALL_DATA="/usr/bin/install -c -m 644" \
				INSTALL_PROGRAM="/usr/bin/install -c" \
				INSTALL_SCRIPT="/usr/bin/install -c" \
				all); then \
		  true; \
		else \
		  exit 1; \
		fi; \
	      else true; \
	      fi; \
	    fi; \
	  done; \
	fi
# If this is the top-level multilib, build all the other
# multilibs.
DEFINES='' HEADERS='' \
		../../../../gcc-4.9.0/libgcc/mkheader.sh > tmp-libgcc_tm.h
/bin/sh ../../../../gcc-4.9.0/libgcc/../move-if-change tmp-libgcc_tm.h libgcc_tm.h
echo timestamp > libgcc_tm.stamp
Mode = sf\|df
Suffix = si\|2\|3
/Users/anders/work/toolchain/gcc/4.9.0/mips-sde-elf/./gcc/xgcc -B/Users/anders/work/toolchain/gcc/4.9.0/mips-sde-elf/./gcc/ -B/Users/anders/local/mips-sde-elf/bin/ -B/Users/anders/local/mips-sde-elf/lib/ -isystem /Users/anders/local/mips-sde-elf/include -isystem /Users/anders/local/mips-sde-elf/sys-include    -g -O2 -Os -minterlink-mips16 -mcode-readable=pcrel -mno-gpopt -EL -O2  -g -O2 -Os -minterlink-mips16 -mcode-readable=pcrel -mno-gpopt -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -I. -I. -I../../.././gcc -I../../../../gcc-4.9.0/libgcc -I../../../../gcc-4.9.0/libgcc/. -I../../../../gcc-4.9.0/libgcc/../gcc -I../../../../gcc-4.9.0/libgcc/../include  -DHAVE_CC_TLS  -o addsf3.o -MT addsf3.o -MD -MP -MF addsf3.dep addsf3 -c ../../../../gcc-4.9.0/libgcc/config/hardfp.c -fvisibility=hidden -DHIDE_EXPORTS -Wno-missing-prototypes
xgcc: error: addsf3: No such file or directory
make[4]: *** [addsf3.o] Error 1
make[3]: *** [multi-do] Error 1
make[2]: *** [all-multi] Error 2
make[1]: *** [all-target-libgcc] Error 2
make: *** [all] Error 2


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]