[질문]msys 사용하여 mingw 에서 arm-elf 크로스 컴파일 도중 에러가 나에요..

tobezidane의 이미지

msys에서 MinGW 사용하여 GCC를 arm용으로 컴파일 하려는 개발자입니다.

우선 cygwin DLL과 독립적인 cross compiler를 만들기 위해

MinGW를 사용하게 되었습니다.

binutil install은 성공하였으나..

gcc src에서 make all 에러가 나더군요.. ㅠ ㅠ

fork kill pipe 는 msys에서 지원해주는 것 아닌가요???

좀 당황스럽네요 linux api환경을 사용하기 위해 msys를 사용하였는데..

혹시 경험있는 분들의 조언부탁드립니다.

-- 개발환경 -

windows XP

binutils-2.17
gcc-3.2.2

MinGW-5.0.3.exe
MSYS-1.0.11-2004.04.30-1.exe
msysDTK-1.0.1.exe

----------------------- log file------------
..
make[1]: Entering directory `/home/tobezidane/usr/local/src/gcc_build/libiberty'
make[2]: Entering directory `/home/tobezidane/usr/local/src/gcc_build/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/tobezidane/usr/local/src/gcc_build/libiberty/testsuite'
make[1]: Leaving directory `/home/tobezidane/usr/local/src/gcc_build/libiberty'
make[1]: Entering directory `/home/tobezidane/usr/local/src/gcc_build/gcc'
(cd intl && make all)
make[2]: Entering directory `/home/tobezidane/usr/local/src/gcc_build/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/tobezidane/usr/local/src/gcc_build/gcc/intl'
gcc -DIN_GCC -DCROSS_COMPILE -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -o Tcollect2.exe \
collect2.o tlink.o hash.o intl.o underscore.o version.o ../libiberty/libiberty.a
collect2.o(.text+0xaaf):collect2.c: undefined reference to `kill'
collect2.o(.text+0xae0):collect2.c: undefined reference to `kill'
collect2.o(.text+0x1fc5):collect2.c: undefined reference to `pipe'
collect2.o(.text+0x2024):collect2.c: undefined reference to `fork'
collect2: ld returned 1 exit status
make[1]: *** [collect2.exe] Error 1
make[1]: Leaving directory `/home/tobezidane/usr/local/src/gcc_build/gcc'
make: *** [all-gcc] Error 2

jcmaeng의 이미지

요즘 저도 같은 문제로 고민했었는데, 찾아보니 되는 방법이 있네요.

http://sources.redhat.com/ml/crossgcc/2000-q1/msg00072.html

여기에 보시면 수정해야할 내용들이 나옵니다.

1. gcc/configure 안의 'i[34567]86-*-mingw32*' 엔트리 안에 xmake_file=i386/x-mingw32를 추가
2. gcc/config/i386 디렉토리에 x-mingw32라는 파일을 추가합니다. 이 파일에는 다음의 한줄만 들어갑니다.
USE_COLLECT2=

문제는 collect2에서 위의 함수들을 사용하는 것이었는데, 이것을 이 파일의 설정으로 건너뛰는것 같습니다.

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.