www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/10/03/14:31:52

From: rhhopper AT horsies DOT b15 DOT ingr DOT com (Randy Hopper)
Subject: How to get gcc to find its /tmp/cc??????.s files
To: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP Mailing List)
Date: Sun, 3 Oct 93 13:07:22 CDT

     I'm trying to get started using djgpp on my system, and I'm having trouble
compiling the sample programs.	I've checked the documentation and cannot
figure out what I don't have set up correctly.  The error I'm getting has
to do with the compiler not being able to find some of the temp files it's
creating (/tmp/cc??????.s).

     I'd greatly appreciate it if someone would glance through my setup
procedure below and tell me what's missing.

					     Randy Hopper
					     rhhopper AT horsies DOT b15 DOT ingr DOT com

_____________________________________________________________________________

1. Downloaded DJDOC108.ZIP, DJGCC222.ZIP, DJDEV108.ZIP, DJGAS138.ZIP, and
	      DJLGR108.ZIP
   and installed them (using pkunzip -d) into c:\lang\djgpp.
2. Increased environment size to 1024
3. Created c:\tmp
4. Installed all include files in c:\lang\djgpp\include to c:\usr\include
5. Created setenv.bat script, and loaded the environment by executing it:

set COMPILER_PATH=c:/lang/djgpp/bin
set C_INCLUDE_PATH=c:/lang/djgpp/include
set CPLUS_INCLUDE_PATH=c:/lang/djgpp/cplusinc:c:/lang/djgpp/include
set OBJC_INCLUDE_PATH=c:/lang/djgpp/include
set OBJCPLUS_INCLUDE_PATH=c:/lang/djgpp/include
set LIBRARY_PATH=c:/lang/djgpp/lib
set TEMP=c:/tmp
set GO32TMP=c:/tmp
set GO32=ansi driver c:/lang/djgpp/drivers/ati.grd gw 1024 gh 768
set BISON_SIMPLE=c:/lang/djgpp/lib/bison.simple
set BISON_HAIRY=c:/lang/djgpp/lib/bison.hairy
set FLEX_SKELETON=c:/lang/djgpp/lib/flex.skeleton
set PATH=c:\lang\djgpp\bin;c:\dos;c:\bat;c:\util\misc;c:\

6. Attempted to make the escape sample program using:

	cd \lang\djgpp\samples\escape
	make

   Here's the make output:
______________________________________________________________________________

MAKE  Version 3.5  Copyright (c) 1991 Borland International

Available memory 431168 bytes

	gcc -O -c  main.cc
Bad command or file name
Can't open /tmp/cc001136.s for readingfile not found.
	gcc -o main main.o -lgr -lpc -lc -lm
c:/lang/djgpp/lib/crt0.o: Undefined symbol _main referenced from text segment

** error 1 ** deleting main
______________________________________________________________________________

   I then tried running c:\lang\djbpp\bin\gcc -O -c main.cc by itself.	This
is the output from that command:

______________________________________________________________________________

Bad command or file name
Can't open /tmp/cc001121.s for readingfile not found.
______________________________________________________________________________

Incidentally, gcc.exe is in c:\lang\djbpp\bin, so the "Bad command or file
name" message is a result of something gcc is doing.

Is the compiler possibly trying to do a system()/exec() call to run something
that I don't have downloaded?


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019