Date: Thu, 3 Nov 1994 08:56:40 -0800 From: Soren Soe To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Problems compiling gcc I am running into some problems compiling gcc/g++ on my PC. Before I attempt to rebuild with fixed sources I want to verify that I can at least compile the source that are distributed in: gcc260s[1-6].zip Here is what I did and what went wrong. Could some kind soul please tell me what I am doing wrong and how I am really supposed to intall gcc/g++. 1. unzip the gcc260s[1-6] files 2. unzip the dj112m1/m2 and run the 112m1/2.bat 2. cd src/gcc-260 3. make LANGUAGES="c" Everything seems ok until the very end where I get: /bin/sh config.status make.exe: *** [Makefile] Error -1 This happens in the rule: Makefile: $(srcdir)/Makefile.in $(srcdir)/configure ... $(srcdir)/config/$(xmake_file) $(srcdir)/config/$(tmake_file) $(LANG_MAKEFILES) $(SHELL) config.status Called from: s-objlist: Makefile $(OBJS) $(BC_OBJS) echo.exe -o s-objlist $(addprefix ../,$(OBJS) $(BC_OBJS)) Obviously I can comment out the dependency on Makefile and get make to finish, but something is not right??? Another question: Why isn't libgcc.a build in step3? 4. make stage1 Doesn't work at all. F.ex. if [ -d stage1 ] ; then true ; else mkdir stage1 ; fi Syntax error for dir in . ; \ do \ if [ -d stage1/$dir ] ; then true ; else mkdir stage1/$dir ; fi done make.exe: [stage1-start] Error -1 (ignored) ... Again, I can do everything by hand, but when I then do 5. make CC="stage1/xgcc -Bstage1/" CFLAGS="-g -O" LANGUAGES="c c++" xgcc complains that it cannot find libgcc.a during linking. Any help is appreciated. Thank you. --soeren Soren Soe Xilinx Inc phone: 408-879-4555 2100 Logic Dr email: soeren AT xilinx DOT com San Jose, CA 95124