target 환경에 맞추어서 컴파일 하면 에러가 나네요...
글쓴이: swunk / 작성시간: 목, 2005/11/03 - 6:03오후
아래와 같이 레드헷 환경(2.4.20)에서 잘 콤파일되서 사용하던 커널 모듈입니다.
[root@superman QoS_Class_Mark]# make all gcc -D_QOS_DEBUG_ -D__KERNEL__ -DMODULE -I /usr/src/linux/include -I./ -O -Wall -c -o packet_classify_mark.o packet_classify_mark.c packet_classify_mark.c: In function `packet_classify': packet_classify_mark.c:459: warning: deprecated use of label at end of compound statement packet_classify_mark.c:98: warning: unused variable `sk' packet_classify_mark.c:101: warning: `tcp_h' might be used uninitialized in this function gcc -D_QOS_DEBUG_ -D__KERNEL__ -DMODULE -I /usr/src/linux/include -I./ -O -Wall -c -o qos_control.o qos_control.c ld -r packet_classify_mark.o qos_control.o -o qos_classify_mark.o
같은 코드를 가져와서 target 환경에 맞추어서 컴파일 하려 합니다.
target 머신은 xscale_big endian 입니다.
아래와 같은 에러가 나는데 뭐가 문제일까요 ?
[root@localhost class_mark]# make all /opt/montavista/pro/devkit/arm/xscale_be/bin/xscale_be-gcc -D_QOS_DEBUG_ -D__KERNEL__ -DMODULE -I /opt/montavista/pro/devkit/lsp/intel-ixdp4xx-arm_xscale_be/linux-2.4.20_mvl31/include -I./ -O -Wall -c -o packet_classify_mark.o packet_classify_mark.c packet_classify_mark.c: In function `packet_classify': packet_classify_mark.c:459: warning: deprecated use of label at end of compound statement packet_classify_mark.c:98: warning: unused variable `sk' packet_classify_mark.c:101: warning: `tcp_h' might be used uninitialized in this function /opt/montavista/pro/devkit/arm/xscale_be/bin/xscale_be-gcc -D_QOS_DEBUG_ -D__KERNEL__ -DMODULE -I /opt/montavista/pro/devkit/lsp/intel-ixdp4xx-arm_xscale_be/linux-2.4.20_mvl31/include -I./ -O -Wall -c -o qos_control.o qos_control.c ld -r packet_classify_mark.o qos_control.o -o qos_classify_mark.o ld: packet_classify_mark.o: Relocations in generic ELF (EM: 40) packet_classify_mark.o: could not read symbols: File in wrong format make: *** [qos_classify_mark.o] Error 1 [root@localhost class_mark]#
Forums:
컴파일러 버젼은 각각 어떻게 되나요..?
컴파일러 버젼은 각각 어떻게 되나요..?
원래것(레드헷)은 [code:1][root@superman Q
원래것(레드헷)은
안된것(몬타비스타)는
입니다.
xscale_be-ld 대신 ld가 사용돼서 그런 게 아닐까요?
xscale_be-ld 대신 ld가 사용돼서 그런 게 아닐까요?
$PWD `date`
죄송합니다.위의분 말씀대로 로더를 호스트 머신의 로더로 해놓고 m
죄송합니다.
위의분 말씀대로 로더를 호스트 머신의 로더로 해놓고 make 를 실행했습니다.
물이를 일으켜 죄송 합니다. *^^*
댓글 달기