This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
FW: RE: make problem
- To: "'GnuChat (E-mail)'" <gnu-win32 at cygnus dot com>, "'hmwang at csit dot edu dot cn'" <hmwang at csit dot edu dot cn>
- Subject: FW: RE: make problem
- From: "Smith, Eric" <erics at eastman dot com>
- Date: Thu, 9 Oct 1997 08:28:14 -0400
Eric M. Smith
telephone : (423) 229-2254
profs/officevision : XGIB003
internet -- business : erics@eastman.com
internet -- personal : burnsun@tricon.net
Do not meddle in the affairs of wizards, for they are quick to anger.
Do not meddle in the affairs of dragons, for you are crunchy and taste
good with ketchup.
>-----Original Message-----
>From: Smith, Eric
>Sent: Wednesday, October 08, 1997 8:36 AM
>To: 'hmwang@csit.edu.cn'
>Subject: RE: make problem
>
>I also am interested in a port of PostrgeSQL to NT, unfortunately, I
>don't have time to work on it.
>
>I copied your examples and tried to build. I also added a main() to see
>what would occur.
>
>The only way I could compile and get the output without a stack trace
>was to alter the C:\test\makefile as follows
>
> OBJS= common/heaptuple.o gist/gist.o
>
>With this in mind, I think you are having a problem with ld and it's
>command line arguments. Check them out and make sure you only want
> "-r -o SUBSYS.o {$OBJS)"
>
>You may need additional arguments based on the linking problems we've
>seen.
>
>Eric M. Smith
>telephone : (423) 229-2254
>profs/officevision : XGIB003
>internet -- business : erics@eastman.com
>internet -- personal : burnsun@tricon.net
>
>Do not meddle in the affairs of wizards, for they are quick to anger.
>Do not meddle in the affairs of dragons, for you are crunchy and taste good
>with ketchup.
>
>
>>-----Original Message-----
>>From: Yang Shuqiang [SMTP:hmwang@csit.edu.cn]
>>Sent: Monday, October 06, 1997 7:42 PM
>>To: gnu-win32@cygnus.com
>>Subject: make problem
>>
>>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@cygnus.com" with one line of text: "help".
>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".