From: hmwang AT csit DOT edu DOT cn (Yang Shuqiang) Subject: make problem 6 Oct 1997 19:38:19 -0700 Message-ID: <3.0.32.19971007074121.00799100.cygnus.gnu-win32@csit.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: gnu-win32 AT cygnus DOT com help! I want to use gnuwin32 to port postgresql to winNT. But when i run gmake,some errors exists. Now I build a simple project which has the same errors as the porting of postgresql. The project is list below in details. Can anybody know how to resolve this problem? The files and directories are organized as follows: / heaptuple.c / common - makefile / / gist.c c: - test -- gist - makefile \ makefile The contents of these files are as follows: 1. c:\test\common\heaptuple.c: int ComputeDataSize() { return 1; } 2. c:\test\common\makefile: OBJS = heaptuple.o all: SUBSYS.o SUBSYS.o: $(OBJS) $(CC) -r -o SUBSYS.o $(OBJS) 3. c:\test\gist\gist.c: void gistbuild(){} 4. c:\test\gist\makefile: OBJS = gist.o all: SUBSYS.o SUBSYS.o: $(OBJS) $(CC) -r -o SUBSYS.o $(OBJS) 5. c:\test\makefile: OBJS = common/SUBSYS.o gist/SUBSYS.o all: submake SUBSYS.o SUBSYS.o: $(OBJS) $(LD) -r -o SUBSYS.o $(OBJS) submake: $(MAKE) -C common SUBSYS.o $(MAKE) -C gist SUBSYS.o When i make the project under gnuwin32, it reports the following errors: c:\temp> make make -C common SUBSYS.o gcc -c heaptuple.c -o heaptuple.o gcc -r -o SUBSYS.o heaptuple.o make -C gist SUBSYS.o gcc -c gist.c -o gist.o gcc -r -o SUBSYS.o gist.o ld -r -o SUBSYS.o common/SUBSYS.o gist/SUBSYS.o (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) In cygwin_except_handler (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) Exception trapped! (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) exception C0000005 at 42703A (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) exception: ax 49E8ED0 bx 45E92DC cx 49E8ED0 dx 427034 (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) exception: si 45D7A84 di 45D7A84 bp 257F150 sp 257F150 (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) exception is: STATUS_ACCESS_VIOLATION (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) Stack trace: (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) frame 0: sp = 0x257EF68, pc = 0x1000CEC2 (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) frame 1: sp = 0x257EF84, pc = 0xBFF766B8 (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) frame 2: sp = 0x257EFA8, pc = 0xBFF85C48 (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) frame 3: sp = 0x257F040, pc = 0xFFECBAD7 (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) frame 4: sp = 0x257F150, pc = 0x43558A (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) frame 5: sp = 0x257F1A8, pc = 0x437BF6 (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) frame 6: sp = 0x257F1F8, pc = 0x41AC9D (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) frame 7: sp = 0x257F334, pc = 0x41AFCB (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) frame 8: sp = 0x257F348, pc = 0x4178DA (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) frame 9: sp = 0x257F36C, pc = 0x422E32 (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) frame 10: sp = 0x257F3F0, pc = 0x43838A (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) frame 11: sp = 0x257F47C, pc = 0x437FDB (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) frame 12: sp = 0x257F494, pc = 0x437F9F (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) frame 13: sp = 0x257F4A4, pc = 0x412B3C (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) frame 14: sp = 0x257F4C4, pc = 0x413010 (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) frame 15: sp = 0x257F4EC, pc = 0x414F47 (C:\GNUWIN32\B18\H-I386-CYGWIN32\BIN\LD.EXE 1016) End of stack trace (more stack frames may be present) make: *** [SUBSYS.o] Error 2 I needs your help! Thanks! S.Q.Yang - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".