logo
한국어 Select Language
FF 포럼
포럼지기에게 한 마디
공지사항
뉴스 EZ보드 통합 메뉴얼
FA-VUS 개발환경 !강추! 타켓보드 부팅-HyperTerminal 타켓보드 부팅-Tutty 타켓보드 부팅-minicom Windows환경-타겟 Linux 구동 Linux환경-타겟 Linux 구동 개발 시스템 구축 유형 페도라 설치 CentOS 설치 크로스 컴파일러 설치 TFTP 환경 구축 NFS 파일 시스템 구축 삼바 서버 구축 부트로더 부트로더 쓰기 커널 이미지 제작 및 설치 램디스크 이미지 제작 및 설치
임베디드 제품 사용기 오늘의 영어 휴게실 Appliance
강좌 & 팁
강좌 & 팁 EZ-보드 그래픽 & 멀티미디어 네트워크 프로그래밍 디바이스 드라이버 ImJa 솔루션 임베디드 FLEX 안드로이드 iOS 개발 FAIDE 하드웨어 C/C++ go언어 GNU C 레퍼런스 메뉴얼 ARM 루아 응용 프로젝트 이클립스 지그비 개발자 노트 권장도서 FPGA
VIVADO DSP HSIO Logic Zynq
함수설명
C 라이브러리 함수 커널 API 그래픽 라이브러리 - gxLib
자료실
자료실 FALINUX SDK ARM PC-V210 S3C6410
G100-S3C6410 S100-S3C6410 C221-S3C6410 N200-S3C6410 EZ-S3C6410
S5PV210
G100-S5PV210 S100-S5PV210 N200-S5PV210 C221-S5PV210
EZ-S3C2440 EZ-PXA270 EZ-X5 EZ-S2410 Auto Package
도와주세요
FAQ 도와주세요

  • 회원가입
  • ID/PW 찾기
 
  1. FAQ

  2. 도와주세요


최근 글

  • [특판][성Y인Y용Y품][...
  • 요즘 잘 나가는,,,
  • 요즘은 vmware 말고 ...
  • [docker] buildx 를 ...
  • buildroot 사용 관련
  • GPIO 제어 방법 문의 [1]
  • 임베디드 리눅스 개발...
  • make wandboard_quad ...
  • LCD 초기화 코드 좀 ... [1]
  • 임베디드 리눅스 커널...

최근 댓글

  • 오래 전에 해결법을 터득해서 ...
  • 비트 코인으로 작업하는 것은 ...
  • 10년차 임베 엔지니어 입니다. ...
  • 임베디드쪽이라면 SOC 쪽 displ...
  • 그렇군요 제가 질문이 잘못됬었...
  • 취준생으로서 포트폴리오를 만...
  • 제가 현재 취업준비생입니다. ...
  • 에프에이리눅스 보드는 아래 링...
  • 전체
  • 일반
  • X5
  • S2410
  • ESP-NS
  • S3C2440
  • EP9312
  • 구매
  • 기타

일반 Cross-compiler 만드는 과정에서 에러 발생 문의

2010.09.07 12:07

rudxo52 조회 수:31006

안녕하세요~!


요즘 태풍이다 뭐다 날씨도 야시꾸리하고 마음도 뒤숭숭한게 하는일 해결도 잘 안되고..ㅠ_ㅠ


다름이 아니라 Cross-compiler 버전업을 위해 다시 재작중에 있습니다.


대략의 버전은


1. binutils-2.17


2. gcc-4.1.1


3. newlib-1.14.0


4. gdb-6.5


이렇게구요... 검색을 통하여 설치하는 과정 그대로 하는데 이런 에러가 발생하네요..


In file included from ./gthr-default.h:1,
                 from ../.././gcc/gthr.h:114,
                 from ../.././gcc/unwind-dw2.c:42:
../.././gcc/gthr-posix.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__gthread_key_t’
../.././gcc/gthr-posix.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__gthread_once_t’
../.././gcc/gthr-posix.h:48: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__gthread_mutex_t’
../.././gcc/gthr-posix.h:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__gthread_recursive_mutex_t’
../.././gcc/gthr-posix.h:88: error: ‘pthread_once’ undeclared here (not in a function)
../.././gcc/gthr-posix.h:88: warning: type defaults to ‘int’ in declaration of ‘__gthrw_pthread_once’
../.././gcc/gthr-posix.h:89: error: ‘pthread_getspecific’ undeclared here (not in a function)
../.././gcc/gthr-posix.h:89: warning: type defaults to ‘int’ in declaration of ‘__gthrw_pthread_getspecific’
../.././gcc/gthr-posix.h:90: error: ‘pthread_setspecific’ undeclared here (not in a function)
../.././gcc/gthr-posix.h:90: warning: type defaults to ‘int’ in declaration of ‘__gthrw_pthread_setspecific’
../.././gcc/gthr-posix.h:91: error: ‘pthread_create’ undeclared here (not in a function)
../.././gcc/gthr-posix.h:91: warning: type defaults to ‘int’ in declaration of ‘__gthrw_pthread_create’
../.././gcc/gthr-posix.h:92: error: ‘pthread_cancel’ undeclared here (not in a function)
../.././gcc/gthr-posix.h:92: warning: type defaults to ‘int’ in declaration of ‘__gthrw_pthread_cancel’
../.././gcc/gthr-posix.h:93: error: ‘pthread_mutex_lock’ undeclared here (not in a function)
../.././gcc/gthr-posix.h:93: warning: type defaults to ‘int’ in declaration of ‘__gthrw_pthread_mutex_lock’
../.././gcc/gthr-posix.h:94: error: ‘pthread_mutex_trylock’ undeclared here (not in a function)
../.././gcc/gthr-posix.h:94: warning: type defaults to ‘int’ in declaration of ‘__gthrw_pthread_mutex_trylock’
../.././gcc/gthr-posix.h:95: error: ‘pthread_mutex_unlock’ undeclared here (not in a function)
../.././gcc/gthr-posix.h:95: warning: type defaults to ‘int’ in declaration of ‘__gthrw_pthread_mutex_unlock’
../.././gcc/gthr-posix.h:96: error: ‘pthread_mutex_init’ undeclared here (not in a function)
../.././gcc/gthr-posix.h:96: warning: type defaults to ‘int’ in declaration of ‘__gthrw_pthread_mutex_init’
../.././gcc/gthr-posix.h:99: error: ‘pthread_key_create’ undeclared here (not in a function)
../.././gcc/gthr-posix.h:99: warning: type defaults to ‘int’ in declaration of ‘__gthrw_pthread_key_create’
../.././gcc/gthr-posix.h:100: error: ‘pthread_key_delete’ undeclared here (not in a function)
../.././gcc/gthr-posix.h:100: warning: type defaults to ‘int’ in declaration of ‘__gthrw_pthread_key_delete’
../.././gcc/gthr-posix.h:101: error: ‘pthread_mutexattr_init’ undeclared here (not in a function)
../.././gcc/gthr-posix.h:101: warning: type defaults to ‘int’ in declaration of ‘__gthrw_pthread_mutexattr_init’
../.././gcc/gthr-posix.h:102: error: ‘pthread_mutexattr_settype’ undeclared here (not in a function)
../.././gcc/gthr-posix.h:102: warning: type defaults to ‘int’ in declaration of ‘__gthrw_pthread_mutexattr_settype’
../.././gcc/gthr-posix.h:103: error: ‘pthread_mutexattr_destroy’ undeclared here (not in a function)
../.././gcc/gthr-posix.h:103: warning: type defaults to ‘int’ in declaration of ‘__gthrw_pthread_mutexattr_destroy’
../.././gcc/gthr-posix.h:513: error: expected ‘)’ before ‘*’ token
../.././gcc/gthr-posix.h:522: error: expected ‘)’ before ‘*’ token
../.././gcc/gthr-posix.h:528: error: expected ‘)’ before ‘key’
../.././gcc/gthr-posix.h:534: error: expected ‘)’ before ‘key’
../.././gcc/gthr-posix.h:540: error: expected ‘)’ before ‘key’
../.././gcc/gthr-posix.h:546: error: expected ‘)’ before ‘*’ token
../.././gcc/gthr-posix.h:555: error: expected ‘)’ before ‘*’ token
../.././gcc/gthr-posix.h:564: error: expected ‘)’ before ‘*’ token
../.././gcc/gthr-posix.h:574: error: expected ‘)’ before ‘*’ token
../.././gcc/gthr-posix.h:595: error: expected ‘)’ before ‘*’ token
../.././gcc/gthr-posix.h:601: error: expected ‘)’ before ‘*’ token
../.././gcc/gthr-posix.h:607: error: expected ‘)’ before ‘*’ token
make[2]: *** [libgcc/./unwind-dw2.o] 오류 1
make[2]: Leaving directory `/root/arm-linux/src/gcc-4.1.1/host-i686-pc-linux-gnu/gcc'
make[1]: *** [libgcc.a] 오류 2
make[1]: Leaving directory `/root/arm-linux/src/gcc-4.1.1/host-i686-pc-linux-gnu/gcc'
make: *** [all-gcc] 오류 2


인터넷상의 소스와 설치과정은 동일하게 하였는데 왜 이런 에러가 뜨는지..


그래서 다른 일반적인 Cross-compiler 제작과정을 참고하여 gth-posix.h와 관련된 에러사항인가 생각이 들어


gcc-4.1.1/gcc/config/arm/t-linux 파일을 수정도 해보았지만


역시나 에러메세지 출력이 나옵니다.


컴파일상에 무슨 문제가 있는지 궁금하여 이렇게 글을 올리게 되었습니다.


자세하고 친절한 답변 해주신 분 정말 감사하겠습니다ㅠ_ㅠ


아참 그리고 glibc 컴파일 과정에서 계속 as 와 ld 가 손상되었다나 오래된 버전이라나 이러면서 에러가 나는데


혹시 이것에 관해서도 아시는 분 친절한 답변 부탁드립니다.

이 게시물을
  • Twitter
  • Facebook
  • Delicious
목록

댓글 4

  • rudxo52

    2010.09.07 12:19

    아.. 과정은..


    tar xvjf gcc-4.1.1.tar.bz2
    tar xvzf newlib-1.14.0.tar.gz
    cd gcc-4.1.1
    ln -s ../newlib-1.14.0/newlib newlib
    ln -s ../newlib-1.14.0/libgloss libgloss
    ./configure --target=arm-elf --prefix=/usr/local/arm-toolchain --enable-interwork \
    --enable-multilib --enable-languages="c,c++" --with-newlib \
    --with-headers=./newlib/libc/include
    make all-gcc install-gcc


    이렇게 입니다.

    댓글

  • 추락천사

    2010.09.08 06:49

    자세하고 친절한 답변은 아닙니다만,

     

    주로 라이브러리 링크가 제대로 안됐을때 저런 에러가 납니다.

    댓글

  • Sofwind

    2010.09.08 20:01

    버전 조합의 문제일수도....

    댓글

  • rudxo52

    2010.09.09 06:13

    인터넷에서 찾아본 결과 잘되었다는 분이 계셔서 버전을 저렇게 맞춘것인데...

     

    흠...

     

    혹시 gcc-4.3 대에 툴체인 만드신분 버전 조합좀 알려주실분 안계신가요..ㅠ

     

    cups를 컴파일 하려는데 버전이 낮아서 컴파일 에러가 발생하는거 같아서요..

     

    꼭 부탁드립니다. 이메일 주소는 rudxo52@gmail.com 입니다.

    댓글

목록
번호 제목 글쓴이 날짜 조회 수
공지 포럼의 메뉴가 보이지 않아요! 장길석 2014.02.06 957630
공지 [중요 공지]제품 사용 및 기술 문의는 전화 상담을 받지 않습니다. 장길석 2012.11.09 1408523
공지 답글에 대한 공지 사항. falinux 2006.11.20 2424020
15341 [특판][성Y인Y용Y품][비아][시알][여성흥분제] 전부 1+1 vv8282.top 지금 확인해보세요~! dde33 2026.10.15 2
15340 요즘 잘 나가는,,, dde33 2026.09.12 843
15339 buildroot 사용 관련 로즈마리 2021.02.01 38166
15338 GPIO 제어 방법 문의 [1] 단순최고 2021.01.25 51084
15337 임베디드 리눅스 개발 보드 추천 nam 2019.12.06 48863
15336 make wandboard_quad 실행시 문제 gasi 2019.08.27 47084
15335 LCD 초기화 코드 좀 봐주세요 [1] 김용수 2019.07.12 63134
15334 임베디드 리눅스 커널 소스에 관해 질문드립니다 ! ekthatkxkd 2019.06.28 43727
15333 numpy,scipy 를 arm-linux-XXXX 로 크로스컴파일 하여 올릴수 있나요? 초보자 2019.06.24 49287
15332 I2C - deal with arbitration loss 오류가 궁금합니다. [1] S1eepingBeauty 2018.12.10 56770
15331 구형 EM-PXA270 보드 혹시 보유하시분 연락 주시면 감사드릴께요. file 존 2018.11.24 42753
15330 리눅스 GPIO 관련 센서의 단선 또는 고장유무 판별법이 궁금합니다. [2] S1eepingBeauty 2018.11.12 55125
15329 임베디드 리눅스에서 c 언어 디버깅 궁금합니다. [1] 존 2018.09.14 47072
15328 부팅 시간 문의 [1] nam 2018.06.29 45791
15327 localport? port? 검은고래 2018.06.29 39957
15326 fork()의 thread 멈추는 현상 [4] HwangRoy 2018.05.09 58614
15325 임베디드 리눅스 습득용 보드 판매하시나요? 임베디드초급자 2018.04.27 39719
15324 (도와주세요)네트워크 디바이스 드라이버 수정문제입니다. [1] Chanmini 2018.03.04 43600
15323 Ez x5 구합니다!! khobaik 2018.01.26 38315
15322 실행중 symbol not found 를 발생시키는 u-boot 본적 있으신가요 ? sayyouandme 2017.12.17 57347
첫 페이지 1 2 3 4 5 6 7 8 9 10 끝 페이지
쓰기
태그
부탁드립니다. ^^
  • 글을 작성하시려면 회원으로 가입하시고 로그인 하셔야 합니다.
  • 회원 가입은 주민등록번호가 필요 없으며, 메일 주소만 있으면 간단하게 가입하실 수 있습니다.
  • 본 포럼에 등록된 모든 글의 저작권은 작성하신 분께 있으며, 저작자의 허락 없이 다른 곳에 펌이나 도용하시면 안 됩니다.
  • 또한, 전자우편 수집 프로그램이나 그 밖의 기술적 장치를 이용하여 무단으로 이메일 주소 및 자료 수집되는 것을 거부하며,
  • 이를 위반 시 정보통신망 법에 의해 형사 처벌됨을 유념하시기 바랍니다.
  • FF 포럼
  • 강좌 & 팁
  • 함수설명
  • 자료실
  • 도와주세요