기존 이솝 임베디드 포럼의 지식인 서비스가 게시판 형태로 변경되었습니다.

안녕하세요.왕초보 질문입니다.

Sourcery G++ Lite를

/home/CodeSourcery에 설치하고.

.bashrc에 PATH=$PATH:/home/CodeSourcery/Sourcery_G++_Lite/bin

               export PATH

이렇게 설정했습니다.

그 다음에 재시작하구요.

arm-none-linux-gnueabi-gcc --version 을 입력하면 올바르게 설치된 버전의 정보가 출력됩니다.

그리고 작은 샘플프로그램(hello,world)도 컴파일됩니다.

하지만 toolchain에 관련된 makefile에서 make,distclean,make config omap3530beagle_config

이후 make에서 다음과 같은 오류메시지가 출력됩니다.

 

arm-none-linux-gnueabi-gcc -Wa,-gstabs -D__ASSEMBLY__ -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8  -D__KERNEL__ -DTEXT_BASE=0x40200800 -I/home/elogics/x-load/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.3/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv7a -mabi=apcs-gnu -c -o cpu/omap3/start.o /home/elogics/x-load/cpu/omap3/start.S
make: arm-none-linux-gnueabi-gcc: Command not found
make: *** [cpu/omap3/start.o] Error 127

즉 make에서는 gcc의 위치가 올바르게 인식되지 않고 명령행에서만 된다는 것인데

그러면 Makefile을 변경해 줘야 하나요?

감사합니다.

 

 

 

 


profile

JhoonKim

2010.10.28 06:39:57
*.162.5.194

커널 최상위 루트의 Makefile를 열어서, CROSS_COMPILE 항목을 보시면 아마, path와 함께 컴파일러 경로가 지정되어 있을 것 입니다.

 

이것을 CROSS_COMPILE = arm-none-linux-gnueabi- 로 변경해 주시기 바랍니다. :)

Kangadin

2011.04.19 06:31:42
*.168.91.25

It is because you installed 64 bits OS. You may need to to run

sudo apt-get install ia32-libs

and try to above process again.

List of Articles
번호 제목 글쓴이 날짜 조회 수
» compile이 안됩니다. 어떤 문제일까요? [2] 왕초보 2010-10-27 771

사용자 로그인