To: djgpp AT delorie DOT com Date: Fri, 11 May 2001 23:42:48 -0400 From: "James Dowdell" Message-ID: Mime-Version: 1.0 X-Sent-Mail: off X-Mailer: MailCity Service Subject: DJGPP mailing list - erroneous errors, gcc and DJGPP X-Sender-Ip: 38.37.73.19 Organization: Angelfire (http://email.angelfire.mailcity.lycos.com:80) Content-Type: text/plain; charset=us-ascii Content-Language: en Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Sorry if this is the wrong place for this - website was slightly confusing. Before I do say anything, I would like to say 1)Thank you very much 2)I would not be coming here if I hadn't tried to fix it on my own. I've run (and still do) DJGPP on two other machines, one Win95 and one Win98. The problem is a new laptop I just got, running Windows ME. I got DJGPP it to work fine on it, but one day allegro mysteriously stopped working. I haggled with it for a while, and then I decided to throw it out and remake it. The problem is, make wouldn't work - it choked on the first gcc statement. So then I tried working with gcc itself - it wouldn't work. Wouldn't even compile a simple hello_world.c file. So I decided to throw everything out and reinstall from the zips. Except, after doing all that, I got all the same errors. I'm totally baffled. I'm guessing for it to just stop, something must have changed with the system, and not the program. I really haven't done that much with it, besides a VisC++, VisJ++, and Money 2000 install. The biggest thing would be the Linus duel-boot - I had to use Mandrake's partition compressor in order to get enough space for a second partition without deleting everything. But that was months ago and I've had no trouble anywhere else. If anyone's got some advice or experience with this kind of thing, please let me know. I've included some other info below: after set > environ.txt, environ.txt: COMSPEC=C:\WINDOWS\COMMAND.COM PROMPT=$p$g TEMP=C:\WINDOWS\TEMP TMP=C:\WINDOWS\TEMP DJGPP = C:\DJGPP\DJGPP.ENV PATH=C:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND winbootdir=C:\WINDOWS windir=C:\WINDOWS BLASTER=A220 I5 D1 T4 P330 CMDLINE=gcc call to go32-v2: DPMI memory available: 49755 Kb DPMI swap space available: 12525 Kb Autoexec.bat: SET windir=C:\WINDOWS SET winbootdir=C:\WINDOWS SET COMSPEC=C:\WINDOWS\COMMAND.COM SET PROMPT=$p$g SET TEMP=C:\WINDOWS\TEMP SET TMP=C:\WINDOWS\TEMP SET DJGPP = C:\DJGPP\DJGPP.ENV SET PATH=C:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND (note that I still have to call setdjgpp.bat, or compiler complains about no DJGPP Environment variable. On compiling following code stored in C:\DJGPP\temp.c : #include int main() { printf("Hello World"); return 0; } compiler gives: temp.c: In function `main': temp.c:4: warning: return type of `main' is not `int' c:/djgpp/tmp\ccCSyHGQ.s: Assembler messages: c:/djgpp/tmp\ccCSyHGQ.s:6: Error: no such 386 instruction: `bset' Note that on compiling all programs it gives me Assembler crap, especially that thing about bset. Also gives me problems with key words, like long or volatile. for a more in depth look at that temp.c problem, here's gcc with verbose output: C:\DJGPP>bin\setdjgpp C:\DJGPP C:/DJGPP C:\DJGPP>gcc -v temp.c Reading specs from c:/djgpp/lib/specs gcc version 2.95.2 19991024 (release) c:/djgpp/lib/gcc-lib/djgpp/2.952/cpp.exe -lang-c -v -isystem c:/djgpp/bin/include -D__GNUC__=2 -D__GNUC_MINOR__=95 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=2 -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP MINOR__=2 -D__unix -D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=2 temp.c c:/djgpp/tmp\ccMyMMPJ.i GNU CPP version 2.95.2 19991024 (release) (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: c:/djgpp/include c:/djgpp/lib/gcc-lib/djgpp/2.952/include c:/djgpp/include End of search list. The following default directories have been omitted from the search path: $DJDIR/lang/cxx $DJDIR/lib/gcc-lib/djgpp/2.952/../../../../djgpp/include End of omitted list. c:/djgpp/lib/gcc-lib/djgpp/2.952/cc1.exe c:/djgpp/tmp\ccMyMMPJ.i -m486 -malign-jumps=2 -malign-loops=2 -malign-functions=2 -quiet -dumpbase temp.c -version -o c:/djgpp/tmp\ccMr4F9r.s GNU C version 2.95.2 19991024 (release) (djgpp) compiled by GNU C version 2.95. 19991024 (release). temp.c: In function `main': temp.c:4: warning: return type of `main' is not `int' c:/djgpp/bin/as.exe -o c:/djgpp/tmp\ccA61GFg.o c:/djgpp/tmp\ccMr4F9r.s c:/djgpp/tmp\ccMr4F9r.s: Assembler messages: c:/djgpp/tmp\ccMr4F9r.s:6: Error: no such 386 instruction: `bset' Once again, thanks for any help. Sincerely, James Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/