bash.exe: warning: could not find /tmp, please create!

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I installed the winavr tool chain 20030913 on an XP system. Everything seems to compile fine ( using the samples ) except I get a bash warning message about not finding /tmp. I put a TMPDIR = C:\WINDOWS\TEMP in my autoexec, as well as "SET" an enviroment variable from the command line. The TEMP variable is also set as a register entry in HKEY_LOCAL_MACHINE|SYSTEM|CurrentControlSet|Control|SessionManager|Enviroment. I also put /tmp folders all over the place.

I couldn't find any reference to specifying the temp directory in the make file ( I used the sample makefile). I've gone through all the doc's and been googling for the last day trying to find any comments on this. Can anybody point me in the right direction.
Thanks
Colin S

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Could you post the actual toolchain output and error message? Thanks.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here is the output from the make. I am using the example outlined in Colin 0"Flynn excellent "how to " article

bash.exe: warning: could not find /tmp, please create!

bash.exe: warning: could not find /tmp, please create!
-------- begin --------
avr-gcc (GCC) 3.3.1
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

bash.exe: warning: could not find /tmp, please create!

Size before:
test1.elf :
section size addr
.data 0 8388864
.text 220 0
.bss 0 8388864
.noinit 0 8388864
.eeprom 0 8454144
.stab 492 0
.stabstr 1123 0
Total 1835

bash.exe: warning: could not find /tmp, please create!

Size after:
test1.elf :
section size addr
.data 0 8388864
.text 220 0
.bss 0 8388864
.noinit 0 8388864
.eeprom 0 8454144
.stab 492 0
.stabstr 1123 0
Total 1835

bash.exe: warning: could not find /tmp, please create!
Errors: none
bash.exe: warning: could not find /tmp, please create!
-------- end --------
bash.exe: warning: could not find /tmp, please create!

> Process Exit Code: 0

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

colin17814 wrote:
I installed the winavr tool chain 20030913 on an XP system. Everything seems to compile fine ( using the samples ) except I get a bash warning message about not finding /tmp. I put a TMPDIR = C:\WINDOWS\TEMP in my autoexec, as well as "SET" an enviroment variable from the command line. The TEMP variable is also set as a register entry in HKEY_LOCAL_MACHINE|SYSTEM|CurrentControlSet|Control|SessionManager|Enviroment. I also put /tmp folders all over the place.

Could you try setting a TMP environment variable? You can set it to the same path as TEMP. Let me know if that helps.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I set "TMP=c:\windows\temp" from the command line. Same problem.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

colin17814 wrote:
I set "TMP=c:\windows\temp" from the command line. Same problem.

Don't set it on the command line, set it in the... oh where is it.... on Win2K, right click on the My Computer, select Properties, Advanced Tab, Environment Variables button. I'm sure there's something similar for XP.

I would think that if you set it in the command line, it's only good for that process. Then when you run make, it's going to open up other processes and they will get their environment from Windows, not the one process that you set the variable for. I still don't know for sure if this will help, but please give it a try. Thanks.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I tried that & same problem. However, what I had not been doing ( I should have know better since it is microsoft) was rebooting the system after adding enviroment variables. That seems to have fixed the problem.

Thanks for all you help

Colin S