[질문] cygwin에서 리눅스 cross-compile환경 구축?

jimink의 이미지

음..
성공하신분 계신가요?
아니면 자료라도..

아무리해도..
glibc를 make할때 에러가 납니다.
전 참고로 strong arm을 대상으로 했거든요..

어떻게 해야하는지?
처음에 binutils하고 커널 2.4헤더 복사하고..
gcc를 c로 해서 깔긴 되는데요..

glibc에서 안됩니다.
꼭 arm이 아니더라도.... 아무거라도 cross-compile환경 구축에 대한 자료 있으면 좀 알려주세요..
cygwin에서 하는 거면 더 좋구요..
리눅스에서 rpm사용하는 거 말구요..
좋은 하루되세요.

송지석의 이미지

make할 때 에러나는 부분의 메시지를 보여주셔야 하지 않을까요?

저도 ARM용 glibc를 빌드해보긴 했지만. 리눅스라서 제 경우랑 같은 지는 모르겠습니다. 아마 다를 것 같네요..

저는 arm-linux-gcc 2.95.3 으로 glibc 2.2.3을 빌드했었는데요

나중에 info 인스톨중에 오류가 났었습니다.. (make 할 때는 괜찮았습니다.. make install할 때 오류)

그래서 manual/stdio.texi의 해당 오류행을 지워버리니 인스톨 되더군요..

제 경우랑 같으면 좋겠지만 아마 다를 듯..

오류 메시지를 보여주셔야 할 것 같네요..

빌드하는 방법은 http://www.objsw.com/CrossGCC/ 에 나온 것이 있습니다. (영문..) kelp.or.kr이나 www.kesl.org 에서 자료를 찾아보심이..

jimink의 이미지

답변너무 감사합니다..

우선 에러는요..
제가 CC를 어떻게 하느냐에 따라 많이 다른데.
현재 에러는 마지막에 이렇게 됩니다.
제가 다른 조건으로
CC=arm-linux-gcc ../glibc-2.2.5/configure 이걸 하면 약간 다르구요.

저는
binutils-2.11.2
gcc-2.95.3.tar.gz
gcc-2.95.3.diff.bz2
linux-2.4.18하고 -rmk7
glibc-2.2.5
glibc-linuxthreads-2.2.5.tar.bz2사용합니다.

다음과 같이 나네요..
In file included from /usr/local/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-li
nux/sys-include/linux/param.h:4,
from ../sysdeps/unix/sysv/linux/sys/param.h:24,
from ../sysdeps/unix/sysv/linux/init-first.c:26:
/usr/local/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/pa
ram.h:13: asm/arch/param.h: No such file or directory
/usr/local/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/param.h:14: asm/proc/page.h: No such file or directory
make[2]: *** [/home/down/glibc-build/csu/init-first.o] Error 1
make[2]: Leaving directory `/home/down/glibc-2.2.5/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/home/down/glibc-2.2.5'
make: *** [all] Error 2

arm-linux/sys-include/asm/proc/page.h 가 없다는 것 같은데..
해당 디렉토리를 보면 ..
그 디렉토리 구조가..그냥 proc가 아니라.
arm-linux/sys-include/asm/proc_armo
arm-linux/sys-include/asm/proc_armv
이렇게 두개가있더라구요..
흠..
그 다음에러는 .init_first.o에서 났네요.

어쩌죠?

송지석의 이미지

저의 경우는 proc이 proc-armv로 심볼릭 링크가 걸려있네요. (제 시스템은 리눅스)

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.