This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Configuring and building libgloss


On 26 Dec 2006 14:07:03 -0500, DJ Delorie <dj@redhat.com> wrote:

"Jie Zhang" <jzhang918@gmail.com> writes: > $ ../src/libgloss/configure --verbose --target bfin-elf > $ make > > don't work for me. When make, the host gcc is used instead of target cross gcc.

When configuring target libraries, you use --build for the machine
you're building on, and --host for the machine the library runs on.
--target is not used.

I tried, but it does not work, either.

Below is from the config.log of libgloss, which was generated when
building newlib:

/home/jie/Sources/newlib-1.15.0/libgloss/configure
--cache-file=./config.cache --build=i686-pc-linux-gnu --host=bfin-elf
--target=bfin-elf --with-newlib --with-cross-host=i686-pc-linux-gnu
--prefix=/home/jie/installs/bfin-41-217/ --enable-interwork
--enable-multilib --program-transform-name=s,^,bfin-elf-,;
--with-target-subdir=bfin-elf
--srcdir=/home/jie/Sources/newlib-1.15.0/libgloss

I created a new build directory and run this command. I got:

configure: loading cache ./config.cache
checking for a BSD-compatible install... (cached) /usr/bin/install -c
checking build system type... (cached) i686-pc-linux-gnu
checking host system type... (cached) bfin-unknown-elf
checking target system type... (cached) bfin-unknown-elf
checking whether build environment is sane... yes
checking for gawk... (cached) gawk
checking whether make sets $(MAKE)... (cached) yes
checking for bfin-elf-strip... (cached) bfin-elf-strip
checking for style of include used by make... GNU
checking for gcc... (cached) gcc
checking dependency style of gcc... (cached) gcc3
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) no
checking for ar... (cached) ar
checking for bfin-elf-ranlib... (cached) bfin-elf-ranlib
configure: creating ./config.status
config.status: creating Makefile
Adding multilib support to Makefile in /home/jie/Sources/newlib-1.15.0/libgloss
multidirs=
with_multisubdir=
config.status: executing depfiles commands
configure: configuring in doc
configure: running /bin/sh
'/home/jie/Sources/newlib-1.15.0/libgloss/doc/configure'
--prefix=/home/jie/installs/bfin-41-217/
'--cache-file=./config.cache' '--build=i686-pc-linux-gnu'
'--host=bfin-elf' '--target=bfin-elf' '--with-newlib'
'--with-cross-host=i686-pc-linux-gnu'
'--prefix=/home/jie/installs/bfin-41-217/' '--enable-interwork'
'--enable-multilib' '--program-transform-name=s,^,bfin-elf-,'
'build_alias=i686-pc-linux-gnu' 'host_alias=bfin-elf'
'target_alias=bfin-elf' --cache-file=.././config.cache
--srcdir=/home/jie/Sources/newlib-1.15.0/libgloss/doc
bash: --with-target-subdir=bfin-elf: command not found
jie@linux:~/Sources/build-libgloss> rm -rf *
jie@linux:~/Sources/build-libgloss>
/home/jie/Sources/newlib-1.15.0/libgloss/configure
--cache-file=./config.cache --build=i686-pc-linux-gnu --host=bfin-elf
--target=bfin-elf --with-newlib --with-cross-host=i686-pc-linux-gnu
--prefix=/home/jie/installs/bfin-41-217/ --enable-interwork
--enable-multilib --program-transform-name=s,^,bfin-elf-,;
--with-target-subdir=bfin-elf
--srcdir=/home/jie/Sources/newlib-1.15.0/libgloss
configure: creating cache ./config.cache
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... bfin-unknown-elf
checking target system type... bfin-unknown-elf
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for bfin-elf-strip... bfin-elf-strip
checking for style of include used by make... GNU
checking for gcc... gcc
checking dependency style of gcc... gcc3
checking whether we are using GNU C... yes
checking whether gcc accepts -g... no
checking for ar... ar
checking for bfin-elf-ranlib... bfin-elf-ranlib
updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
Adding multilib support to Makefile in /home/jie/Sources/newlib-1.15.0/libgloss
multidirs=
with_multisubdir=
config.status: executing depfiles commands
configure: configuring in doc
configure: running /bin/sh
'/home/jie/Sources/newlib-1.15.0/libgloss/doc/configure'
--prefix=/home/jie/installs/bfin-41-217/
'--cache-file=./config.cache' '--build=i686-pc-linux-gnu'
'--host=bfin-elf' '--target=bfin-elf' '--with-newlib'
'--with-cross-host=i686-pc-linux-gnu'
'--prefix=/home/jie/installs/bfin-41-217/' '--enable-interwork'
'--enable-multilib' '--program-transform-name=s,^,bfin-elf-,'
'build_alias=i686-pc-linux-gnu' 'host_alias=bfin-elf'
'target_alias=bfin-elf' --cache-file=.././config.cache
--srcdir=/home/jie/Sources/newlib-1.15.0/libgloss/doc
configure: loading cache .././config.cache
checking for a BSD-compatible install... (cached) /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
configure: configuring in libnosys
configure: running /bin/sh
'/home/jie/Sources/newlib-1.15.0/libgloss/libnosys/configure'
--prefix=/home/jie/installs/bfin-41-217/
'--cache-file=./config.cache' '--build=i686-pc-linux-gnu'
'--host=bfin-elf' '--target=bfin-elf' '--with-newlib'
'--with-cross-host=i686-pc-linux-gnu'
'--prefix=/home/jie/installs/bfin-41-217/' '--enable-interwork'
'--enable-multilib' '--program-transform-name=s,^,bfin-elf-,'
'build_alias=i686-pc-linux-gnu' 'host_alias=bfin-elf'
'target_alias=bfin-elf' --cache-file=.././config.cache
--srcdir=/home/jie/Sources/newlib-1.15.0/libgloss/libnosys
configure: loading cache .././config.cache
checking build system type... (cached) i686-pc-linux-gnu
checking host system type... (cached) bfin-unknown-elf
checking target system type... (cached) bfin-unknown-elf
checking for a BSD-compatible install... (cached) /usr/bin/install -c
checking for .previous assembler directive... yes
checking for .popsection assembler directive... yes
checking for section attributes... yes
checking for symbol prefix... none
checking for style of include used by make... GNU
checking for gcc... (cached) gcc
checking dependency style of gcc... (cached) gcc3
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) no
checking for bfin-elf-ranlib... (cached) bfin-elf-ranlib
updating cache .././config.cache
configure: creating ./config.status
config.status: creating Makefile
Adding multilib support to Makefile in
/home/jie/Sources/newlib-1.15.0/libgloss/libnosys
with_multisubdir=
config.status: creating config.h
config.status: executing depfiles commands
configure: configuring in bfin
configure: running /bin/sh
'/home/jie/Sources/newlib-1.15.0/libgloss/bfin/configure'
--prefix=/home/jie/installs/bfin-41-217/
'--cache-file=./config.cache' '--build=i686-pc-linux-gnu'
'--host=bfin-elf' '--target=bfin-elf' '--with-newlib'
'--with-cross-host=i686-pc-linux-gnu'
'--prefix=/home/jie/installs/bfin-41-217/' '--enable-interwork'
'--enable-multilib' '--program-transform-name=s,^,bfin-elf-,'
'build_alias=i686-pc-linux-gnu' 'host_alias=bfin-elf'
'target_alias=bfin-elf' --cache-file=.././config.cache
--srcdir=/home/jie/Sources/newlib-1.15.0/libgloss/bfin
configure: loading cache .././config.cache
checking build system type... (cached) i686-pc-linux-gnu
checking host system type... (cached) bfin-unknown-elf
checking target system type... (cached) bfin-unknown-elf
checking for a BSD-compatible install... (cached) /usr/bin/install -c
checking for style of include used by make... GNU
checking for gcc... (cached) gcc
checking dependency style of gcc... (cached) gcc3
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) no
checking for bfin-elf-ranlib... (cached) bfin-elf-ranlib
configure: creating ./config.status
config.status: creating Makefile
Adding multilib support to Makefile in
/home/jie/Sources/newlib-1.15.0/libgloss/bfin
with_multisubdir=
config.status: executing depfiles commands
bash: --with-target-subdir=bfin-elf: command not found


Then when make, it still tried to use native gcc.



Jie



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]