도와주세요!!
글 수 15,339
2006.05.24 12:28:26 (*.100.159.62)
33596
안녕하셔요...허접한 실력이라 문제점이 생기니 해결방법을 찾을수가 없어 고수님의 조언을 구합니다...ㅡㅡ;
cygwin을 가지고 arm용 gcc를 만들고자 합니다...
자료는 http://cafe.naver.com/devctrl.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=862 을 참조하였습니다...
binutils과 gcc는 에러없이 잘 진행되었지만 glibc를 make하는중에 에러가 발생합니다...
cygwin의 버젼은 아래와 같습니다...
$ uname -a
CYGWIN_NT-5.1 rim 1.5.19(0.150/4/2) 2006-01-20 13:28 i686 Cygwin
cygwin에서 사용하는 gcc의 버전은 아래와 같습니다...
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with: /netrel/src/gcc-3.2-3/configure --enable-languages=c,c++,f77,java --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --without-included-gettext --enable-interpreter --disable-sjlj-exceptions --disable-version-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecdir=/usr/sbin
Thread model: posix
gcc version 3.2 20020927 (prerelease)
arm용 컴파일러를 만들기 위한 소스패키지의 버전은 아래와 같습니다...
binutils-2.11.2.tar.tar
diff-2.4.17-rmk5-pxa1.gz
gcc-2.95.3.tar.tar
glibc-2.1.3.tar.tar
glibc-crypt-2.1.tar.tar
glibc-linuxthreads-2.1.3.tar.tar
linux-2.4.17.tar.bz2
patch-2.4.17-rmk5.gz
binutils을 make시행과 make install을 수행했을때는 별다른 문제점은 없었습니다...
gcc를 make 할때는 아래와 같은 내용이 나왔지만 에러가 없어서 문제없다고 판단하였고요...
.
.
.
selector.c ..linked
sendmsg.c ..linked
thr-dce.c ..linked
thr-decosf1.c ..linked
thr-irix.c ..linked
thr-mach.c ..linked
thr-os2.c ..linked
thr-posix.c ..linked
thr-pthreads.c ..linked
thr-single.c ..linked
thr-solaris.c ..linked
thr-vxworks.c ..linked
thr-win32.c ..linked
thr.c ..linked
creating cache ./config.cache
checking if compiler cc1obj has been built... no
rmdir: libobjc: Directory not empty
CORE@rim /projects/gcc-2.95.3
gcc까지 진행한후 glibc를 수행한 결과의 에러는 아래와 같습니다...
Makerules:512: target `stamp.SS' given more than once in the same rule.
Makerules:512: target `stamp.SS' given more than once in the same rule.
Makerules:512: target `stamp.SS' given more than once in the same rule.
Makerules:512: target `stamp.SS' given more than once in the same rule.
mkdir ../gnu
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccCDRHmS.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccCDRHmS.s:295: Warning: Ignoring changed section attributes for .gnu.warning.sigstack
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccFPiv5p.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccFPiv5p.s:239: Warning: Ignoring changed section attributes for .gnu.warning.sigreturn
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc36xRvZ.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc36xRvZ.s:222: Warning: Ignoring changed section attributes for .gnu.warning.siggetmask
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccggufvT.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccggufvT.s:304: Warning: Ignoring changed section attributes for .gnu.warning.sigstack
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccwoG0Wq.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccwoG0Wq.s:248: Warning: Ignoring changed section attributes for .gnu.warning.sigreturn
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccY7wMc1.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccY7wMc1.s:231: Warning: Ignoring changed section attributes for .gnu.warning.siggetmask
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cczz5zBk.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cczz5zBk.s:238: Warning: Ignoring changed section attributes for .gnu.warning.getcontext
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cccOFrJJ.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cccOFrJJ.s:238: Warning: Ignoring changed section attributes for .gnu.warning.setcontext
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc98Hw5Y.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc98Hw5Y.s:238: Warning: Ignoring changed section attributes for .gnu.warning.makecontext
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccqYoFe0.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccqYoFe0.s:239: Warning: Ignoring changed section attributes for .gnu.warning.swapcontext
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccQiJLNK.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccQiJLNK.s:247: Warning: Ignoring changed section attributes for .gnu.warning.getcontext
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc6bo1YJ.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc6bo1YJ.s:247: Warning: Ignoring changed section attributes for .gnu.warning.setcontext
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc7yssL8.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc7yssL8.s:247: Warning: Ignoring changed section attributes for .gnu.warning.makecontext
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc98OXzg.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc98OXzg.s:248: Warning: Ignoring changed section attributes for .gnu.warning.swapcontext
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccjZ1BJK.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccjZ1BJK.s:587: Warning: Ignoring changed section attributes for .gnu.warning.gets
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccPQDTr4.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccPQDTr4.s:596: Warning: Ignoring changed section attributes for .gnu.warning.gets
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccNkTOZJ.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccNkTOZJ.s:8623: Warning: .space repeat count is zero, ignored
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc9VDTt5.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc9VDTt5.s:8978: Warning: .space repeat count is zero, ignored
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc98LeAW.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc98LeAW.s:341: Warning: Ignoring changed section attributes for .gnu.warning.getpw
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccHOAMeL.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccHOAMeL.s:350: Warning: Ignoring changed section attributes for .gnu.warning.getpw
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccDqJmyl.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccDqJmyl.s:221: Warning: Ignoring changed section attributes for .gnu.warning.fexecve
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc7bIfGJ.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc7bIfGJ.s:195: Warning: Ignoring changed section attributes for .gnu.warning.setlogin
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccHe6URb.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccHe6URb.s:230: Warning: Ignoring changed section attributes for .gnu.warning.fexecve
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccPPSjOk.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccPPSjOk.s:204: Warning: Ignoring changed section attributes for .gnu.warning.setlogin
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccA4y8Qu.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccA4y8Qu.s:285: Warning: Ignoring changed section attributes for .gnu.warning.getwd
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccFT5pUF.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccFT5pUF.s:294: Warning: Ignoring changed section attributes for .gnu.warning.getwd
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccBuxYSo.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccBuxYSo.s:92: Warning: Ignoring changed section attributes for .gnu.warning.sstk
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc32bwDp.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc32bwDp.s:195: Warning: Ignoring changed section attributes for .gnu.warning.revoke
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccfwzHBT.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccfwzHBT.s:133: Warning: Ignoring changed section attributes for .gnu.warning.gtty
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc8HD8Yu.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc8HD8Yu.s:133: Warning: Ignoring changed section attributes for .gnu.warning.stty
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccLEakYb.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccLEakYb.s:205: Warning: Ignoring changed section attributes for .gnu.warning.chflags
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccmpJXXI.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccmpJXXI.s:205: Warning: Ignoring changed section attributes for .gnu.warning.fchflags
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccPbPfeQ.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccPbPfeQ.s:255: Warning: Ignoring changed section attributes for .gnu.warning.madvise
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc6Jw7bg.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc6Jw7bg.s:312: Warning: Ignoring changed section attributes for .gnu.warning.llseek
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccAYI5wd.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccAYI5wd.s:101: Warning: Ignoring changed section attributes for .gnu.warning.sstk
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccLfXMwh.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccLfXMwh.s:204: Warning: Ignoring changed section attributes for .gnu.warning.revoke
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccaKJvjD.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccaKJvjD.s:142: Warning: Ignoring changed section attributes for .gnu.warning.gtty
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cciTO2Ta.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cciTO2Ta.s:142: Warning: Ignoring changed section attributes for .gnu.warning.stty
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccDYGdiE.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccDYGdiE.s:214: Warning: Ignoring changed section attributes for .gnu.warning.chflags
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc9vo2a5.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc9vo2a5.s:214: Warning: Ignoring changed section attributes for .gnu.warning.fchflags
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccbvvPWn.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccbvvPWn.s:264: Warning: Ignoring changed section attributes for .gnu.warning.madvise
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccZFGixM.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccZFGixM.s:321: Warning: Ignoring changed section attributes for .gnu.warning.llseek
mcount.c:63: warning: `mcount_internal' defined but not used
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc1Ozui9.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc1Ozui9.s:179: Warning: Ignoring changed section attributes for .gnu.warning.getmsg
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccCdxlcI.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccCdxlcI.s:180: Warning: Ignoring changed section attributes for .gnu.warning.getpmsg
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccCKk2ji.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccCKk2ji.s:179: Warning: Ignoring changed section attributes for .gnu.warning.putmsg
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc0Pzwpf.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc0Pzwpf.s:180: Warning: Ignoring changed section attributes for .gnu.warning.putpmsg
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccKKLSJN.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccKKLSJN.s:177: Warning: Ignoring changed section attributes for .gnu.warning.fattach
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cctnCKVD.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cctnCKVD.s:176: Warning: Ignoring changed section attributes for .gnu.warning.fdetach
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccL1RPIq.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccL1RPIq.s:188: Warning: Ignoring changed section attributes for .gnu.warning.getmsg
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc4hCiuU.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc4hCiuU.s:189: Warning: Ignoring changed section attributes for .gnu.warning.getpmsg
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cciKjxlg.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cciKjxlg.s:188: Warning: Ignoring changed section attributes for .gnu.warning.putmsg
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccQ8HLwX.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccQ8HLwX.s:189: Warning: Ignoring changed section attributes for .gnu.warning.putpmsg
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc5nWfrM.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc5nWfrM.s:186: Warning: Ignoring changed section attributes for .gnu.warning.fattach
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccTyhf7h.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccTyhf7h.s:185: Warning: Ignoring changed section attributes for .gnu.warning.fdetach
dl-reloc.c: In function `_dl_relocate_object':
dl-reloc.c:131: warning: unused variable `_flg'
dl-reloc.c:131: warning: unused variable `_end'
dl-reloc.c:131: warning: unused variable `_beg'
dl-profile.c: In function `_dl_mcount':
dl-profile.c:511: warning: passing arg 1 of `exchange_and_add' discards qualifiers from pointer target type
dl-profile.c:538: warning: passing arg 1 of `atomic_add' discards qualifiers from pointer target type
dl-reloc.c: In function `_dl_relocate_object':
dl-reloc.c:131: warning: unused variable `_flg'
dl-reloc.c:131: warning: unused variable `_end'
dl-reloc.c:131: warning: unused variable `_beg'
dl-profile.c: In function `_dl_mcount':
dl-profile.c:511: warning: passing arg 1 of `exchange_and_add' discards qualifiers from pointer target type
dl-profile.c:538: warning: passing arg 1 of `atomic_add' discards qualifiers from pointer target type
make[1]: *** No rule to make target `rtld.os', needed by `dl-allobjs.os'. Stop.
make: *** [elf/subdir_lib] Error 2
위와 같이 에러가 나는데 해결방법을 찾을수가 없습니다...
아직까지 제공되는 자료만을 의지하는 초보이다보니 답을 찾기가 어렵습니다...
http://cafe.naver.com/devctrl.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=862 에서 제공하는 자료를 근거로
linux에서 컴파일을 해본 결과 gcc를 make할때 나타나는 아래와 같은 문제는 발생합니다...
creating cache ./config.cache
checking if compiler cc1obj has been built... no
rmdir: libobjc: Directory not empty
그것을 제외하고는 정상적으로 arm-linux-gcc가 만들어진것까지 확인했습니다...
같은 방법으로 cygwin에서 컴파일러를 만들면 glibc에서 에러가 나는 문제를 파악하지 못했습니다...
리눅스의 gcc버전은 아래와 같습니다...
[root@AkingRobot /]# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
고수님의 조언을 부탁드립니다...
cygwin을 가지고 arm용 gcc를 만들고자 합니다...
자료는 http://cafe.naver.com/devctrl.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=862 을 참조하였습니다...
binutils과 gcc는 에러없이 잘 진행되었지만 glibc를 make하는중에 에러가 발생합니다...
cygwin의 버젼은 아래와 같습니다...
$ uname -a
CYGWIN_NT-5.1 rim 1.5.19(0.150/4/2) 2006-01-20 13:28 i686 Cygwin
cygwin에서 사용하는 gcc의 버전은 아래와 같습니다...
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with: /netrel/src/gcc-3.2-3/configure --enable-languages=c,c++,f77,java --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --without-included-gettext --enable-interpreter --disable-sjlj-exceptions --disable-version-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecdir=/usr/sbin
Thread model: posix
gcc version 3.2 20020927 (prerelease)
arm용 컴파일러를 만들기 위한 소스패키지의 버전은 아래와 같습니다...
binutils-2.11.2.tar.tar
diff-2.4.17-rmk5-pxa1.gz
gcc-2.95.3.tar.tar
glibc-2.1.3.tar.tar
glibc-crypt-2.1.tar.tar
glibc-linuxthreads-2.1.3.tar.tar
linux-2.4.17.tar.bz2
patch-2.4.17-rmk5.gz
binutils을 make시행과 make install을 수행했을때는 별다른 문제점은 없었습니다...
gcc를 make 할때는 아래와 같은 내용이 나왔지만 에러가 없어서 문제없다고 판단하였고요...
.
.
.
selector.c ..linked
sendmsg.c ..linked
thr-dce.c ..linked
thr-decosf1.c ..linked
thr-irix.c ..linked
thr-mach.c ..linked
thr-os2.c ..linked
thr-posix.c ..linked
thr-pthreads.c ..linked
thr-single.c ..linked
thr-solaris.c ..linked
thr-vxworks.c ..linked
thr-win32.c ..linked
thr.c ..linked
creating cache ./config.cache
checking if compiler cc1obj has been built... no
rmdir: libobjc: Directory not empty
CORE@rim /projects/gcc-2.95.3
gcc까지 진행한후 glibc를 수행한 결과의 에러는 아래와 같습니다...
Makerules:512: target `stamp.SS' given more than once in the same rule.
Makerules:512: target `stamp.SS' given more than once in the same rule.
Makerules:512: target `stamp.SS' given more than once in the same rule.
Makerules:512: target `stamp.SS' given more than once in the same rule.
mkdir ../gnu
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccCDRHmS.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccCDRHmS.s:295: Warning: Ignoring changed section attributes for .gnu.warning.sigstack
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccFPiv5p.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccFPiv5p.s:239: Warning: Ignoring changed section attributes for .gnu.warning.sigreturn
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc36xRvZ.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc36xRvZ.s:222: Warning: Ignoring changed section attributes for .gnu.warning.siggetmask
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccggufvT.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccggufvT.s:304: Warning: Ignoring changed section attributes for .gnu.warning.sigstack
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccwoG0Wq.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccwoG0Wq.s:248: Warning: Ignoring changed section attributes for .gnu.warning.sigreturn
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccY7wMc1.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccY7wMc1.s:231: Warning: Ignoring changed section attributes for .gnu.warning.siggetmask
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cczz5zBk.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cczz5zBk.s:238: Warning: Ignoring changed section attributes for .gnu.warning.getcontext
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cccOFrJJ.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cccOFrJJ.s:238: Warning: Ignoring changed section attributes for .gnu.warning.setcontext
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc98Hw5Y.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc98Hw5Y.s:238: Warning: Ignoring changed section attributes for .gnu.warning.makecontext
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccqYoFe0.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccqYoFe0.s:239: Warning: Ignoring changed section attributes for .gnu.warning.swapcontext
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccQiJLNK.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccQiJLNK.s:247: Warning: Ignoring changed section attributes for .gnu.warning.getcontext
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc6bo1YJ.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc6bo1YJ.s:247: Warning: Ignoring changed section attributes for .gnu.warning.setcontext
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc7yssL8.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc7yssL8.s:247: Warning: Ignoring changed section attributes for .gnu.warning.makecontext
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc98OXzg.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc98OXzg.s:248: Warning: Ignoring changed section attributes for .gnu.warning.swapcontext
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccjZ1BJK.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccjZ1BJK.s:587: Warning: Ignoring changed section attributes for .gnu.warning.gets
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccPQDTr4.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccPQDTr4.s:596: Warning: Ignoring changed section attributes for .gnu.warning.gets
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccNkTOZJ.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccNkTOZJ.s:8623: Warning: .space repeat count is zero, ignored
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc9VDTt5.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc9VDTt5.s:8978: Warning: .space repeat count is zero, ignored
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc98LeAW.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc98LeAW.s:341: Warning: Ignoring changed section attributes for .gnu.warning.getpw
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccHOAMeL.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccHOAMeL.s:350: Warning: Ignoring changed section attributes for .gnu.warning.getpw
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccDqJmyl.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccDqJmyl.s:221: Warning: Ignoring changed section attributes for .gnu.warning.fexecve
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc7bIfGJ.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc7bIfGJ.s:195: Warning: Ignoring changed section attributes for .gnu.warning.setlogin
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccHe6URb.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccHe6URb.s:230: Warning: Ignoring changed section attributes for .gnu.warning.fexecve
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccPPSjOk.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccPPSjOk.s:204: Warning: Ignoring changed section attributes for .gnu.warning.setlogin
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccA4y8Qu.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccA4y8Qu.s:285: Warning: Ignoring changed section attributes for .gnu.warning.getwd
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccFT5pUF.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccFT5pUF.s:294: Warning: Ignoring changed section attributes for .gnu.warning.getwd
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccBuxYSo.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccBuxYSo.s:92: Warning: Ignoring changed section attributes for .gnu.warning.sstk
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc32bwDp.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc32bwDp.s:195: Warning: Ignoring changed section attributes for .gnu.warning.revoke
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccfwzHBT.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccfwzHBT.s:133: Warning: Ignoring changed section attributes for .gnu.warning.gtty
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc8HD8Yu.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc8HD8Yu.s:133: Warning: Ignoring changed section attributes for .gnu.warning.stty
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccLEakYb.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccLEakYb.s:205: Warning: Ignoring changed section attributes for .gnu.warning.chflags
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccmpJXXI.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccmpJXXI.s:205: Warning: Ignoring changed section attributes for .gnu.warning.fchflags
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccPbPfeQ.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccPbPfeQ.s:255: Warning: Ignoring changed section attributes for .gnu.warning.madvise
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc6Jw7bg.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc6Jw7bg.s:312: Warning: Ignoring changed section attributes for .gnu.warning.llseek
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccAYI5wd.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccAYI5wd.s:101: Warning: Ignoring changed section attributes for .gnu.warning.sstk
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccLfXMwh.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccLfXMwh.s:204: Warning: Ignoring changed section attributes for .gnu.warning.revoke
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccaKJvjD.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccaKJvjD.s:142: Warning: Ignoring changed section attributes for .gnu.warning.gtty
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cciTO2Ta.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cciTO2Ta.s:142: Warning: Ignoring changed section attributes for .gnu.warning.stty
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccDYGdiE.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccDYGdiE.s:214: Warning: Ignoring changed section attributes for .gnu.warning.chflags
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc9vo2a5.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc9vo2a5.s:214: Warning: Ignoring changed section attributes for .gnu.warning.fchflags
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccbvvPWn.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccbvvPWn.s:264: Warning: Ignoring changed section attributes for .gnu.warning.madvise
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccZFGixM.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccZFGixM.s:321: Warning: Ignoring changed section attributes for .gnu.warning.llseek
mcount.c:63: warning: `mcount_internal' defined but not used
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
../Makerules:512: target `stamp.SS' given more than once in the same rule.
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc1Ozui9.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc1Ozui9.s:179: Warning: Ignoring changed section attributes for .gnu.warning.getmsg
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccCdxlcI.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccCdxlcI.s:180: Warning: Ignoring changed section attributes for .gnu.warning.getpmsg
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccCKk2ji.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccCKk2ji.s:179: Warning: Ignoring changed section attributes for .gnu.warning.putmsg
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc0Pzwpf.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc0Pzwpf.s:180: Warning: Ignoring changed section attributes for .gnu.warning.putpmsg
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccKKLSJN.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccKKLSJN.s:177: Warning: Ignoring changed section attributes for .gnu.warning.fattach
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cctnCKVD.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cctnCKVD.s:176: Warning: Ignoring changed section attributes for .gnu.warning.fdetach
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccL1RPIq.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccL1RPIq.s:188: Warning: Ignoring changed section attributes for .gnu.warning.getmsg
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc4hCiuU.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc4hCiuU.s:189: Warning: Ignoring changed section attributes for .gnu.warning.getpmsg
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cciKjxlg.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cciKjxlg.s:188: Warning: Ignoring changed section attributes for .gnu.warning.putmsg
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccQ8HLwX.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccQ8HLwX.s:189: Warning: Ignoring changed section attributes for .gnu.warning.putpmsg
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc5nWfrM.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/cc5nWfrM.s:186: Warning: Ignoring changed section attributes for .gnu.warning.fattach
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccTyhf7h.s: Assembler messages:
/cygdrive/c/DOCUME~1/CORE/LOCALS~1/Temp/ccTyhf7h.s:185: Warning: Ignoring changed section attributes for .gnu.warning.fdetach
dl-reloc.c: In function `_dl_relocate_object':
dl-reloc.c:131: warning: unused variable `_flg'
dl-reloc.c:131: warning: unused variable `_end'
dl-reloc.c:131: warning: unused variable `_beg'
dl-profile.c: In function `_dl_mcount':
dl-profile.c:511: warning: passing arg 1 of `exchange_and_add' discards qualifiers from pointer target type
dl-profile.c:538: warning: passing arg 1 of `atomic_add' discards qualifiers from pointer target type
dl-reloc.c: In function `_dl_relocate_object':
dl-reloc.c:131: warning: unused variable `_flg'
dl-reloc.c:131: warning: unused variable `_end'
dl-reloc.c:131: warning: unused variable `_beg'
dl-profile.c: In function `_dl_mcount':
dl-profile.c:511: warning: passing arg 1 of `exchange_and_add' discards qualifiers from pointer target type
dl-profile.c:538: warning: passing arg 1 of `atomic_add' discards qualifiers from pointer target type
make[1]: *** No rule to make target `rtld.os', needed by `dl-allobjs.os'. Stop.
make: *** [elf/subdir_lib] Error 2
위와 같이 에러가 나는데 해결방법을 찾을수가 없습니다...
아직까지 제공되는 자료만을 의지하는 초보이다보니 답을 찾기가 어렵습니다...
http://cafe.naver.com/devctrl.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=862 에서 제공하는 자료를 근거로
linux에서 컴파일을 해본 결과 gcc를 make할때 나타나는 아래와 같은 문제는 발생합니다...
creating cache ./config.cache
checking if compiler cc1obj has been built... no
rmdir: libobjc: Directory not empty
그것을 제외하고는 정상적으로 arm-linux-gcc가 만들어진것까지 확인했습니다...
같은 방법으로 cygwin에서 컴파일러를 만들면 glibc에서 에러가 나는 문제를 파악하지 못했습니다...
리눅스의 gcc버전은 아래와 같습니다...
[root@AkingRobot /]# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
고수님의 조언을 부탁드립니다...