«   2024/12   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

ITGenerations

[AVR]맥북(부트캠프) 환경설정오류 발견 (해결x) 본문

Univ/AVR atmega128

[AVR]맥북(부트캠프) 환경설정오류 발견 (해결x)

ITGenerations 2017. 12. 8. 16:44

<컴퓨터상태>

맥북에어 13인치, 듀얼OS(부트캠프), C 드라이브에 파일 저장 및 실행.


<코드>

--------------------------------------------------------

#include <avr/io.h>

void main()

{

DDRA=0xFF;

PORTA=0xFF;

}


--------------------------------------------------------

코드는 가장 기본적인 코드고, 현재 직면한 문제는 새로운 환경에 맞춰서 설정해줘야 하는데, 맥북에서 이런 문제가 발견됐음.

Above of this code is very basic and simple code, current problem is in install this program with new environment. So, I have to set it up as smoothly on MacBook air. It have two Os installed by Boot Camp. Macbook13' 2014 middle( late version). Anyone knew solution about it, Please leave a comment here or mail me.
mail: yangguq@gmail.com
thank you for reading it.


<증상>

/usr/bin/sh: fork: Resource temporarily unavailable

avr-gcc  -mmcu=atmega128 -Wall -gdwarf-2 -Os -std=gnu99 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT study2.o -MF dep/study2.o.d  -c  ../study2.c

../study2.c:2: warning: return type of 'main' is not 'int'

../study2.c:6: fatal error: opening dependency file dep/study2.o.d: No such file or directory

compilation terminated.

make: *** [study2.o] Error 1

Build failed with 1 errors and 1 warnings...