./configure arm-linux <--

--enable-kernel=2.4.18
/kernel/linux-2.4.19/include <--

--prefix=/usr/ar <--

간단히 위의것에서 지적만 해드리겠습니다.

./configure arm-linux 라고 쓰셨는데.. 여기서 arm-linux 라고 쓰는것은 제

생각에는 컴파일 대상을 찾는다고 생각이 듭니다. 그래서 님께서 처음에

Gcc 설치 할때 arm-linux로 설치 했다면 같이 해주고 armv5l-linux 로 했다면

같이 해줘야 합니다.

그리고 --prefix=/usr/ar 이곳에서도 --prefix=/usr/~ 아래에 생기는 디렉토

리를 설정 해줘야 합니다. 즉 --prefix=/usr/arm-linux 하던지

--prefix=/usr/armv5l-linux 하던지 해야 합니다.

그리고 마지막으로 커널 설정에서 enable-kernel 같은 경우 include 한것과

같지 않아야 할까 하는 생각이 드는군요..




정민우 wrote..
: 답변 달아주셔서 감사합니다. ^^;;
: 답글로 썼는데 답변이 없어 위에다 다시 씁니다.
:
: 답변을 보고 glibc-2.3.2에서 답변대로 3개의 파일을 수정하고
: configure를 하려고 했습니다. 그런데 안 되네요.. ^^;
:
: [root@localhost glibc-2.3.2]# ./configure arm-linux --with-
: headers=/home/cross/kernel/linux-2.4.19/include --enable-add-ons --
: enable-shared --prefix=/usr/ar
: m-linux --without-fp --enable-kernel=2.4.18






--build 옵션과 --host, --target옵션을 써주고 build 디렉토리를 분리하라

: 것 같은데 이것저것 다 해봐도 안됩니다. ㅜㅜ
:
: 웹서핑으로 찾아보려고 했는데 초보이다 보니 자료 찾기가 너무 힘드네요. 도
: 무지 찾을수가 없으니 ㅜㅜ
:
: 어떻게 configure하고 make 해야 하는지 추가답변 부탁드리겠습니다.
:
:
:
:
:
: garnet wrote..
: : 고생이 많으시군요..
: :
: : 저도 참 삽질 많이 했었는데..
: :
: : glibc-2.3.2 에 버그가 있는것으로 알고 있습니다.
: :
: : 아래는 제가 수정하면서 정리 해본것 들입니다. 그래봐야 돌아다니는거
: :
: : 찾은것이지만..
: :
: : 그리고 g++ 설치 하기 위해 gcc 재설치 시에도 라이브러리 수정해줘야 합 니
: 다.
: :
: : 경로는 잘 찾으시기 바랍니다. 그리고 설치시옵션도 아마 다른거 같던데..
: :
: : 그것은 정리를 못 했었습니다. 한번 같은 옵션으로 해보세요..
: :
: : =====[ 파일수정 ]=============================================
: : ==> ./sysdeps/unix/sysv/linux/arm/sysdep.h
: : @@ -158,7 +158,7 @@
: : asm volatile ("swi %1 @ syscall " #name
: : : "=r" (_a1)
: : : "i" (SYS_ify(name)) ASM_ARGS_##nr
: : - : "a1", "memory"); <= 제거
: : + : "memory"); <= 추가
: : _sys_result = _a1;
:
: : }
: : (int) _sys_result; })
: :
: : ==> ./stdio-common/sscanf.c
: : @@ -27,9 +27,7 @@
: : /* Read formatted input from S, according to the format string
: FORMAT.
: : */
: : /* VARARGS2 */
: : int
: : -sscanf (s, format) <= 제거
: : - const char *s; <= 제거
: :
: : - const char *format; <= 제거
: : +sscanf (const char *s, const char *format, ...) <= 추가
: : {
: : va_list arg;
: : int done;
: :
: :
: : ==> ./linuxthreads/sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
: : @@ -34,7 +34,7 @@
: : # define PSEUDO(name, syscall_name, args)
: : .section ".text";
: :
: : PSEUDO_PROLOGUE;
: :
: : - ENTRY (name) <= 제거
: :
: : + ENTRY (name); <= 추가
: :
: : SINGLE_THREAD_P_INT;
: :
: : bne .Lpseudo_cancel;
: :
: : DO_CALL (syscall_name, args);
: :
: : GLIBC_PATCH_END1
: :
: :
: : 재설치시..
: : [root@ $PREFIX]# sed -e '/*** BUG/d' lib/libc.so > lib/libc.so.new
: :
: : [root@ $PREFIX]# mv -f lib/libc.so.new -f lib/libc.so
: : [root@ $PREFIX]# sed -e '/*** BUG/d' lib/libpthread.so >
: : lib/libpthread.so.new
: : [root@ $PREFIX]# mv -f lib/libpthread.so.new -f lib/libpthread.so
: :
: :
: : 정민우 wrote..
: : : "[GCC 3.2 지원] 툴체인 소스패케지 크로스 컴파일 환경 구성하기" 강 좌
: 를 보
: : : 면서 크로스 컴파일 환경을 구성하고 있습니다.
: : :
: : : 잘 되다가 glibc 패키지 설치에서 막혔는데요, make clean 이나 glibc
: 디 렉 토
: : : 리를 날리고 다시 해봐도 진척이 없어 질문 드립니다.
: : :
: : : wow linux 7.1을 사용하고 있고,
: : : /home/cross/kernel/linux-2.4.19에 XScale 패치 적용된 리눅스 커널 이
: 있 고,
: : : /home/cross/kernel/glibc-2.3.1에 glibc를 깔고 다음과 같이 configure
: 를 했
: : : 습니다.
: : :
: : : ./configure arm-linux --build=i686-pc-linux-gnu --with-
: : : headers=/home/cross/kernel/linux-2.4.19/include --enable-add-ons --
: enab
: : : le-shared --prefix=/usr/arm-linux --with-cpu=xscale --without-fp --
: : : enable-kernel=2.4.19
: : :
: : : configure를 마칠때쯤 다음과 같은 화면이 나오구요
: : : checking for old glibc 2.0.x headers... no
: : : checking whether -fPIC is default... no
: : : creating ./config.status
: : : creating config.make
: : : creating glibcbug
: : : creating config.h
: : : config.h is unchanged
: : : configuring in linuxthreads
: : : running /bin/sh ./configure arm-linux --build=i686-pc-linux-gnu --
: with-
: : : headers=/home/cross/kernel/linux-2.4.19/include --enable-add-ons --
: : : enable-shared --p
: : : refix=/usr/arm-linux --with-cpu=xscale --without-fp --enable-
: : : kernel=2.4.19 --cache-file=.././config.cache --srcdir=.
: : : [root@localhost glibc-2.3.1]#
: : :
: : : 그리고 make를 하게 되면 조금 되다가 다음과 같은 에러가 나면서 멈춥 니
: 다.
: : : In file included from /home/cross/kernel/linux-
: : : 2.4.19/include/linux/param.h:4,
: : : from ../sysdeps/unix/sysv/linux/sys/param.h:24,
: : : from ../sysdeps/unix/sysv/linux/init-first.c:26:
: : : /home/cross/kernel/linux-2.4.19/include/asm/param.h:13:45:
: : : asm/arch/param.h: No such file or directory
: : : /home/cross/kernel/linux-2.4.19/include/asm/param.h:14:57:
: : : asm/proc/page.h: No such file or directory
: : : make[1]: *** [init-first.o] Error 1
: : : make[1]: Leaving directory `/home/cross/kernel/glibc-2.3.1/csu'
: : : make: *** [csu/subdir_lib] Error 2
: : : [root@localhost glibc-2.3.1]#
: : :
: : :
: : : 벌써 몇 시간째 glibc를 못 깔아서 헤매고 있습니다.
: : : 고수님들의 답변 부탁드립니다.