From: pjfarley AT dorsai DOT org (Peter J. Farley III) Newsgroups: comp.os.msdos.djgpp Subject: Rebuilding gcc -- errors in tests (djtst201.zip) Date: Sat, 06 Sep 1997 02:21:06 GMT Organization: None Lines: 85 Message-ID: <3410b47f.1231392@snews.zippo.com> NNTP-Posting-Host: news.newsdawg.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk After rebuilding gcc, I wanted to at least run some minimal tests on it, so I went into the tests directory and ran "makeall.bat". All seemed to go well until the "libclink" directory. There are a few errors I can see: 1. "gcc" is used to compile *.cc source without the gxx options, and compile errors result due to no libg++ includes available. 2. The following error is fairly self-explanatory: make.exe: *** No rule to make target `/v1/lib/libc.a', needed by `oldlibc.arm'. Obviously, those who have only downloaded v2 do not have a "/v1/lib/libc.a" or "/v1/lib/libpc.a" or "/v1/lib/libm.a", all of which are needed to make "oldlibc.arm". 3. There do not seem to be any test executions of the .exe files that are built in the test subdirectories, nor sample output nor instructions for running them manually. Q1: Is the compare of "newlibc.arm" and "oldlibc.arm" significant or necessary to the tests? Q2: Is the success in building the .exe files test enough, or is there more that should be done to confirm correct operation? TIA for any help or info you can provide. Below is the diff for the tests/libclink/makefile that corrects these problems. ---------------- makefile.dif -------------------------------- *** makefile.0 Sun Oct 1 01:06:44 1995 --- makefile Fri Sep 5 22:08:44 1997 *************** *** 1,5 **** %.o : %.cc ! gcc -O2 -g -c $< .PHONY: all p_check.out p_compare.out clean --- 1,5 ---- %.o : %.cc ! gxx -O2 -g -c $< .PHONY: all p_check.out p_compare.out clean *************** *** 15,37 **** @nm -g ../../lib/crt0.o ../../lib/libc.a | check > check.out check : check.o slist.o objs.o ! gcc -o $@ $^ coff2exe $@ compare.out : compare oldlibc.arm newlibc.arm @compare oldlibc.arm newlibc.arm > compare.out compare : compare.o slist.o ! gcc -o $@ $^ coff2exe $@ ! oldlibc.arm : /v1/lib/libc.a /v1/lib/libpc.a /v1/lib/libm.a nm --print-armap /v1/lib/libc.a | grep " in " > oldlibc.arm ! nm --print-armap /v1/lib/libpc.a | grep " in " >> oldlibc.arm ! nm --print-armap /v1/lib/libm.a | grep " in " >> oldlibc.arm newlibc.arm : ../../lib/libc.a nm --print-armap ../../lib/libc.a > newlibc.arm clean : ! -rm -f check.out check check.exe *.o libc.map \ No newline at end of file --- 15,43 ---- @nm -g ../../lib/crt0.o ../../lib/libc.a | check > check.out check : check.o slist.o objs.o ! gxx -o $@ $^ coff2exe $@ ---------------------cut here ------------------------------- ---------------------------------------------------- Peter J. Farley III (pjfarley AT dorsai DOT org)