Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GeGeLv opened this issue Oct 7, 2018 · 6 comments
Closed

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

GeGeLv opened this issue Oct 7, 2018 · 6 comments
Labels
Milestone

Comments

@GeGeLv
Copy link

GeGeLv commented Oct 7, 2018

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

@tenbaht
Copy link
Owner

tenbaht commented Oct 8, 2018

What did you do exactly? I have seen this message for manual installs when %HOME% for msys2 wasn't properly set up. It should not happen for the automatic install.
https://tenbaht.github.io/sduino/usage/manual-install/#windows

@wilhelmzeuschner
Copy link

I have the exact same problem. I just followed the instructions for the automatic install.

@fastlink30
Copy link

i have the same problem, win 10, ide 1.8.5, automatic install, vs 0.3.3, some hints? variable temp & tmp are present

@aryeguetta
Copy link

I have the same problem, win 8.1, ide 1.8.5, automatic install, Sduino 0.3.3. /tmp not exist. please assist.

@1Sara1
Copy link

1Sara1 commented Dec 2, 2018

I figured out a fix for the /tmp directory error:

Create a tmp directory one directory before bash.exe:
C:\Users\a\AppData\Local\Arduino15\packages\sduino\tools\STM8Tools\2017.11.13\tmp
replace 'a' with your username

Now the /tmp error is gone there are more errors compiling blink example:

C:\Users\a\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.10088/bin/sdcc sketch\Blink.ino.cpp preproc\ctags_target_for_gcc_minus_e.cpp re12 -c -Ddouble=float -D__PROG_TYPES_COMPAT__ -E -MC -mstm8 -DSTM8S103 -DF_CPU=16000000L -DARDUINO=10808 -DARDUINO_STM8S_BLUE -DARDUINO_ARCH_STM8 -IC:\Users\a\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.3.3\cores\sduino -IC:\Users\a\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.3.3\variants\standard -IC:\Users\a\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.3.3/STM8S_StdPeriph_Driver/inc -IC:\Users\a\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.10088/include
Mark re12:C:\Users\a\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.10088/bin/sdcc -c -Ddouble=float -D__PROG_TYPES_COMPAT__ -E -MC -mstm8 -DSTM8S103 -DF_CPU=16000000L -DARDUINO=10808 -DARDUINO_STM8S_BLUE -DARDUINO_ARCH_STM8 -IC:\Users\a\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.3.3\cores\sduino -IC:\Users\a\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.3.3\variants\standard -IC:\Users\a\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.3.3/STM8S_StdPeriph_Driver/inc -IC:\Users\a\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.10088/include sketch\Blink.ino.cpp -o preproc\ctags_target_for_gcc_minus_e.cpp
cpp gefunden
C:\Users\a\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.10088/bin/sdcc sketch\Blink.ino.cpp sketch\Blink.ino.cpp.o re2 -MMD -c -Ddouble=float -D__PROG_TYPES_COMPAT__ --less-pedantic -mstm8 -DSTM8S103 -DF_CPU=16000000L -DARDUINO=10808 -DARDUINO_STM8S_BLUE -DARDUINO_ARCH_STM8 -IC:\Users\a\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.3.3\cores\sduino -IC:\Users\a\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.3.3\variants\standard -IC:\Users\a\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.3.3/STM8S_StdPeriph_Driver/inc -IC:\Users\a\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.10088/include
Mark re2:C:\Users\a\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.10088/bin/sdcc -MMD -c -Ddouble=float -D__PROG_TYPES_COMPAT__ --less-pedantic -mstm8 -DSTM8S103 -DF_CPU=16000000L -DARDUINO=10808 -DARDUINO_STM8S_BLUE -DARDUINO_ARCH_STM8 -IC:\Users\a\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.3.3\cores\sduino -IC:\Users\a\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.3.3\variants\standard -IC:\Users\a\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.3.3/STM8S_StdPeriph_Driver/inc -IC:\Users\a\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.10088/include sketch\Blink.ino.cpp -o sketch\Blink.ino.cpp.o
cpp gefunden
--nostdlib -LC:\Users\a\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.3.3/STM8S_StdPeriph_Driver/lib -LC:\Users\a\AppData\Local\Temp\arduino_build_910539 -LC:\Users\a\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.10088/lib/stm8 --code-size 8192 --iram-size 1024 -mstm8 -DSTM8S103 sketch\Blink.ino.cpp.o C:\Users\a\AppData\Local\Temp\arduino_build_910539/..\arduino_cache_907211\core\core_sduino_stm8_stm8sblue_027bf22e8dbe6c4787652511b4ec2d77.a C:\Users\a\AppData\Local\Temp\arduino_build_910539/core/main.c.rel -lSTM8S103 -lstm8 --out-fmt-elf -o C:\Users\a\AppData\Local\Temp\arduino_build_910539/Blink.ino.elf
?ASlink-Error- : "C:\Users\a\AppData\Local\Temp\arduino_build_910539/core/main.c.rel"

exit status 1
Error compiling for board STM8S103F3 Breakout Board

C:\Users\a\AppData\Local\Temp\arduino_build_910539
Sub directories Core and Libraries are empty.
none of the files the compiler is looking for.

@tenbaht tenbaht added this to the 0.4.0 milestone Dec 3, 2018
@tenbaht tenbaht added the bug label Dec 3, 2018
@tenbaht
Copy link
Owner

tenbaht commented Dec 6, 2018

Hm. Strange.
I used a fresh virtual machine with Windows 7 from https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/ for VirtualBox and installed Arduino-1.8.7.

I can reproduce the bash message about missing /tmp and I can confirm that 1Sara1's workaround of creating a directory named tmp inside of STM8Tools fixes the message issue.

And then everything works for me. Compilation and upload, all fine.
@1Sara1: Does this compilation error always happen? I sounds more like a case of a lost temp directory to me. Something that fixes itself by closing and re-opening the Arduino-IDE. Or maybe a full harddrive that stops the systems from saving the compilation results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants