'configure'에 해당되는 글 2건

  1. 2010.05.18 cross compile 초기화 하기
  2. 2010.03.11 glibc 컴파일하기
드물게(?) 크로스컴파일을 시도하려다 다시 지우고 컴파일을 하려고 하면 안되는 경우가 있다.
아래는 gdb/insight의 경우인데, 특이하게도 하라는대로 해도 안된다. ㄱ-

configure: loading cache ./config.cache
configure: error: `target_alias' has changed since the previous run:
configure:   former value:  sh4-linux
configure:   current value: i686-pc-linux-gnu
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over

이녀석은 make distclean 해도 하위 디렉토리의 config.cache를 개별로 지우지 않기 때문이다.
(음... 알려줘서 원 소스에 넣도록 해야하나?)

미봉책으로는
# make distclean
# find ./ -name config.cache -exec {} \;
를 하면 하위 디렉토리에서 config.cache를 찾아 지우므로 해결된다.

'프로그램 사용 > make, configure' 카테고리의 다른 글

make를 조용하게  (0) 2014.09.12
cmake 사용  (0) 2011.10.07
cmake - cross make  (0) 2010.04.06
makefile 에서 컴파일할 목록 생성하기  (0) 2010.04.03
makefile 정렬하기  (2) 2010.03.31
Posted by 구차니
Linux2010. 3. 11. 13:30
이 녀석은 특이하게(?) 도 build 용 디렉토리를 따로 구성해야 한다.
그냥 configure 치면 다음과 같은 에러가 발생한다.

"configure: error: you must configure in a separate build directory"

추천 방법은
# git clone git://sourceware.org/git/glibc.git
# cd glibc
# mkdir build
# cd build
# ../configure
소스를 받고 그 아래와 디렉토리를 만들어 그 곳에서 상위의 configure를 호출하는 것이다.

만약, configure에서 --prefix, --exec-prefix 를 설정해주었다면
make install 시에 그 위치로 설치된다.

하지만, 각종 실행파일의 기본 경로가 --exec-prefix로 고정되서 삽입되는 듯한데 어쩌리오..
# cat Changelog.10
2138 Line
2000-01-04  Ulrich Drepper  <drepper@cygnus.com>

        * Makefile (install): Pass $(install_root) to ldconfig.
        Patch by Akira YOSHIYAMA <yosshy@tkf.att.ne.jp>.

ldconfig 에만 install_root을 넣나본데,
이녀석은 configure에서 설정가능한 항목이 존재하지 않는다.
config.make 파일을 수정해야 하는데, 이값을 넣지 않으면 -prefix 값이 들어가는것으로 생각된다.


[링크 : http://kldp.org/node/39946]
[링크 : http://www.gnu.org/software/libc/manual/html_node/Configuring-and-compiling.html#Configuring-and-compiling]

'Linux' 카테고리의 다른 글

MIME + nautilus(GNOME)  (0) 2010.03.15
glibc는.. 설치시 매~~~우 주의를 요합니다 ㄱ-  (0) 2010.03.11
*.la 파일 - libtool  (0) 2010.03.09
fribidi - Unicode BIDIrectional Algorithm  (0) 2010.03.09
chkconfig  (0) 2010.03.06
Posted by 구차니