소스 직접 컴파일 해서 써볼려고 하고있는데 아무리 해봐도

계속 에러가 나네요.. 아직 리눅스도 익숙하질 않아서 질문 드립니다.

데비안에서 작업중입니다.

문제는 패치랑 환경설정 다 하고 make하는 부분 입니다.

명령 주고 에러만 따로 저장한겁니다. 2> 요렇게 해서-_-;

binutils의 경우입니다. make명령 주면

==============================================================
./../ylwrap: line 86: -d: command not found
make[3]: *** [arparse.c] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive-am] Error 2
make: *** [all-binutils] Error 2
==============================================================

요렇게 에러 나구요.. 그냥 make install하면

==============================================================
./../ylwrap: line 86: -d: command not found
make[2]: *** [arparse.c] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-binutils] Error 2
==============================================================

이렇게 되네요.. 거의 똑같은 에러같긴 한데..;;

어쨌든 그러고 그냥 gcc도 컴파일 해봤는데요.. make 하면

==============================================================
/tmp/ccLBF9oi.s: Assembler messages:
/tmp/ccLBF9oi.s:37: Error: junk at end of line, first unrecognized
character is `@'
/tmp/ccLBF9oi.s:38: Error: junk at end of line, first unrecognized
character is `@'
/tmp/ccLBF9oi.s:39: Error: no such instruction: `stmfd sp!,{r4,lr}'
/tmp/ccLBF9oi.s:40: Error: no such instruction: `ldr r3,.L10'
/tmp/ccLBF9oi.s:41: Error: no such instruction: `ldrb r2,[r3,'
/tmp/ccLBF9oi.s:42: Error: expecting operand after ','; got nothing
/tmp/ccLBF9oi.s:43: Error: no such instruction: `bne .L1'
/tmp/ccLBF9oi.s:44: Error: no such instruction: `ldr r4,.L10+4'
/tmp/ccLBF9oi.s:45: Error: no such instruction: `ldr r3,[r4,'
/tmp/ccLBF9oi.s:46: Error: no such instruction: `ldr r2,[r3,'
/tmp/ccLBF9oi.s:47: Error: expecting operand after ','; got nothing
/tmp/ccLBF9oi.s:48: Error: no such instruction: `beq .L9'
/tmp/ccLBF9oi.s:50: Error: too many memory references for `add'
/tmp/ccLBF9oi.s:51: Error: invalid char '[' beginning operand 2 `[r4'
/tmp/ccLBF9oi.s:52: Error: too many memory references for `mov'
/tmp/ccLBF9oi.s:53: Error: too many memory references for `mov'
/tmp/ccLBF9oi.s:54: Error: no such instruction: `ldr r3,[r4,'
/tmp/ccLBF9oi.s:55: Error: no such instruction: `ldr r2,[r3,'
/tmp/ccLBF9oi.s:56: Error: expecting operand after ','; got nothing
/tmp/ccLBF9oi.s:57: Error: no such instruction: `bne .L6'
/tmp/ccLBF9oi.s:59: Error: no such instruction: `ldr r3,.L10+8'
/tmp/ccLBF9oi.s:60: Error: expecting operand after ','; got nothing
/tmp/ccLBF9oi.s:61: Error: no such instruction: `ldrne r0,.L10+12'
/tmp/ccLBF9oi.s:62: Error: no such instruction: `movne lr,pc'
/tmp/ccLBF9oi.s:63: Error: no such instruction: `movne pc,r3'
/tmp/ccLBF9oi.s:65: Error: no such instruction: `ldr r3,.L10'
/tmp/ccLBF9oi.s:66: Error: expecting operand after ','; got nothing
/tmp/ccLBF9oi.s:67: Error: invalid char '[' beginning operand 2 `[r3'
/tmp/ccLBF9oi.s:69: Error: no such instruction: `ldmfd sp!,{r4,pc}'
/tmp/ccLBF9oi.s:80: Error: junk at end of line, first unrecognized
character is `@'
/tmp/ccLBF9oi.s:81: Error: junk at end of line, first unrecognized
character is `@'
/tmp/ccLBF9oi.s:82: Error: invalid char '[' beginning operand 2 `[sp'
/tmp/ccLBF9oi.s:84: Error: no such instruction: `bl
__do_global_dtors_aux'
/tmp/ccLBF9oi.s:86: Error: no such instruction: `ldr pc,[sp],'
/tmp/ccLBF9oi.s:95: Error: junk at end of line, first unrecognized
character is `@'
/tmp/ccLBF9oi.s:96: Error: junk at end of line, first unrecognized
character is `@'
/tmp/ccLBF9oi.s:97: Error: no such instruction: `ldr r3,.L16'
/tmp/ccLBF9oi.s:98: Error: invalid char '[' beginning operand 2 `[sp'
/tmp/ccLBF9oi.s:99: Error: expecting operand after ','; got nothing
/tmp/ccLBF9oi.s:100: Error: no such instruction: `ldr r0,.L16+4'
/tmp/ccLBF9oi.s:101: Error: no such instruction: `ldr r1,.L16+8'
/tmp/ccLBF9oi.s:102: Error: no such instruction: `movne lr,pc'
/tmp/ccLBF9oi.s:103: Error: no such instruction: `movne pc,r3'
/tmp/ccLBF9oi.s:105: Error: no such instruction: `ldr r0,.L16+12'
/tmp/ccLBF9oi.s:106: Error: no such instruction: `ldr r3,[r0,'
/tmp/ccLBF9oi.s:107: Error: expecting operand after ','; got nothing
/tmp/ccLBF9oi.s:108: Error: no such instruction: `ldreq pc,[sp],'
/tmp/ccLBF9oi.s:109: Error: no such instruction: `ldr r3,.L16+16'
/tmp/ccLBF9oi.s:110: Error: expecting operand after ','; got nothing
/tmp/ccLBF9oi.s:111: Error: no such instruction: `ldreq pc,[sp],'
/tmp/ccLBF9oi.s:112: Error: junk at end of line, first unrecognized
character is `@'
/tmp/ccLBF9oi.s:113: Error: no such instruction: `ldr lr,[sp],'
/tmp/ccLBF9oi.s:114: Error: no such instruction: `b _Jv_RegisterClasses'
/tmp/ccLBF9oi.s:126: Error: junk at end of line, first unrecognized
character is `@'
/tmp/ccLBF9oi.s:127: Error: junk at end of line, first unrecognized
character is `@'
/tmp/ccLBF9oi.s:128: Error: invalid char '[' beginning operand 2 `[sp'
/tmp/ccLBF9oi.s:130: Error: no such instruction: `bl frame_dummy'
/tmp/ccLBF9oi.s:132: Error: no such instruction: `ldr pc,[sp],'
make[1]: *** [crtbegin.o] Error 1
make: *** [all-gcc] Error 2
==============================================================

문제가 많은가 보네요..-_-; make install 그냥 해보면..

==============================================================
/tmp/ccPHZoA9.s: Assembler messages:
/tmp/ccPHZoA9.s:37: Error: junk at end of line, first unrecognized
character is `@'
/tmp/ccPHZoA9.s:38: Error: junk at end of line, first unrecognized
character is `@'
/tmp/ccPHZoA9.s:39: Error: no such instruction: `stmfd sp!,{r4,lr}'
/tmp/ccPHZoA9.s:40: Error: no such instruction: `ldr r3,.L10'
/tmp/ccPHZoA9.s:41: Error: no such instruction: `ldrb r2,[r3,'
/tmp/ccPHZoA9.s:42: Error: expecting operand after ','; got nothing
/tmp/ccPHZoA9.s:43: Error: no such instruction: `bne .L1'
/tmp/ccPHZoA9.s:44: Error: no such instruction: `ldr r4,.L10+4'
/tmp/ccPHZoA9.s:45: Error: no such instruction: `ldr r3,[r4,'
/tmp/ccPHZoA9.s:46: Error: no such instruction: `ldr r2,[r3,'
/tmp/ccPHZoA9.s:47: Error: expecting operand after ','; got nothing
/tmp/ccPHZoA9.s:48: Error: no such instruction: `beq .L9'
/tmp/ccPHZoA9.s:50: Error: too many memory references for `add'
/tmp/ccPHZoA9.s:51: Error: invalid char '[' beginning operand 2 `[r4'
/tmp/ccPHZoA9.s:52: Error: too many memory references for `mov'
/tmp/ccPHZoA9.s:53: Error: too many memory references for `mov'
/tmp/ccPHZoA9.s:54: Error: no such instruction: `ldr r3,[r4,'
/tmp/ccPHZoA9.s:55: Error: no such instruction: `ldr r2,[r3,'
/tmp/ccPHZoA9.s:56: Error: expecting operand after ','; got nothing
/tmp/ccPHZoA9.s:57: Error: no such instruction: `bne .L6'
/tmp/ccPHZoA9.s:59: Error: no such instruction: `ldr r3,.L10+8'
/tmp/ccPHZoA9.s:60: Error: expecting operand after ','; got nothing
/tmp/ccPHZoA9.s:61: Error: no such instruction: `ldrne r0,.L10+12'
/tmp/ccPHZoA9.s:62: Error: no such instruction: `movne lr,pc'
/tmp/ccPHZoA9.s:63: Error: no such instruction: `movne pc,r3'
/tmp/ccPHZoA9.s:65: Error: no such instruction: `ldr r3,.L10'
/tmp/ccPHZoA9.s:66: Error: expecting operand after ','; got nothing
/tmp/ccPHZoA9.s:67: Error: invalid char '[' beginning operand 2 `[r3'
/tmp/ccPHZoA9.s:69: Error: no such instruction: `ldmfd sp!,{r4,pc}'
/tmp/ccPHZoA9.s:80: Error: junk at end of line, first unrecognized
character is `@'
/tmp/ccPHZoA9.s:81: Error: junk at end of line, first unrecognized
character is `@'
/tmp/ccPHZoA9.s:82: Error: invalid char '[' beginning operand 2 `[sp'
/tmp/ccPHZoA9.s:84: Error: no such instruction: `bl
__do_global_dtors_aux'
/tmp/ccPHZoA9.s:86: Error: no such instruction: `ldr pc,[sp],'
/tmp/ccPHZoA9.s:95: Error: junk at end of line, first unrecognized
character is `@'
/tmp/ccPHZoA9.s:96: Error: junk at end of line, first unrecognized
character is `@'
/tmp/ccPHZoA9.s:97: Error: no such instruction: `ldr r3,.L16'
/tmp/ccPHZoA9.s:98: Error: invalid char '[' beginning operand 2 `[sp'
/tmp/ccPHZoA9.s:99: Error: expecting operand after ','; got nothing
/tmp/ccPHZoA9.s:100: Error: no such instruction: `ldr r0,.L16+4'
/tmp/ccPHZoA9.s:101: Error: no such instruction: `ldr r1,.L16+8'
/tmp/ccPHZoA9.s:102: Error: no such instruction: `movne lr,pc'
/tmp/ccPHZoA9.s:103: Error: no such instruction: `movne pc,r3'
/tmp/ccPHZoA9.s:105: Error: no such instruction: `ldr r0,.L16+12'
/tmp/ccPHZoA9.s:106: Error: no such instruction: `ldr r3,[r0,'
/tmp/ccPHZoA9.s:107: Error: expecting operand after ','; got nothing
/tmp/ccPHZoA9.s:108: Error: no such instruction: `ldreq pc,[sp],'
/tmp/ccPHZoA9.s:109: Error: no such instruction: `ldr r3,.L16+16'
/tmp/ccPHZoA9.s:110: Error: expecting operand after ','; got nothing
/tmp/ccPHZoA9.s:111: Error: no such instruction: `ldreq pc,[sp],'
/tmp/ccPHZoA9.s:112: Error: junk at end of line, first unrecognized
character is `@'
/tmp/ccPHZoA9.s:113: Error: no such instruction: `ldr lr,[sp],'
/tmp/ccPHZoA9.s:114: Error: no such instruction: `b _Jv_RegisterClasses'
/tmp/ccPHZoA9.s:126: Error: junk at end of line, first unrecognized
character is `@'
/tmp/ccPHZoA9.s:127: Error: junk at end of line, first unrecognized
character is `@'
/tmp/ccPHZoA9.s:128: Error: invalid char '[' beginning operand 2 `[sp'
/tmp/ccPHZoA9.s:130: Error: no such instruction: `bl frame_dummy'
/tmp/ccPHZoA9.s:132: Error: no such instruction: `ldr pc,[sp],'
make[1]: *** [crtbegin.o] Error 1
make: *** [install-gcc] Error 2
==============================================================

이거도 뭐 거의 똑같은거 같지만 일단은..;; 이렇게 에러가 나네요.

파일도 제대로 생성 안되구요. 3일동안 리눅스 설치부터 이거까지를

몇번씩이나 해봤는데 결국은 해결을 못해서요... 답변 부탁드릴께요^^;


아 참 그리고 ex-x5보드로 공부중인데요 부팅하고나서

ctrl-A Z 뭐 요런 키들이 안먹네요. 설정 다시 하고서 해봐도 잘 안되던데

뭐가 문젤까요? 부트로더랑 이미지들 새로 다 올린건데 잘못된건가요?

ezboot에서 FEK FER FEA명령 준다음에 ezflashw 이걸로 부트로더 올리고

그런식으로 한건데 맞게 한건지도 좀..^^; 감사합니다~