This is the mail archive of the mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.

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

ToolChain building Problem

Respected Sir,
I am vipin Sharma working in software development company based in INDIA. We
are currently porting linux kernel 2.4.19 on SH7727 based board.
I am trying to build Toolchain for that but i m facing some problem
I followed following steps

$ ../binutils-2.11.2/configure --prefix=$PREFIX --target=$TARGET
$ make
$ make install
$ ../gcc-3.0.3/configure --prefix=$PREFIX --target=$TARGET --with-newlib \
  --enable-languages="c" --disable-shared
$ make all-gcc
$ make install-gcc

# First you need to create a "configparms" (mind the spelling) file, and
# place it in your glibc build directory:
  CFLAGS := -ml -m3 -O $(CFLAGS)
  ASFLAGS-.o := -ml
  LDFLAGS-relocatable := -ml
  CC=sh3-linux-gcc -ml -m3
  AS=sh3-linux-gcc -ml
  LD=sh3-linux-ld -ml

# The -ml -m3 flags are redundant if you use the `sh3-linux' target, but I
# left them in there in case you build `sh-unknown-linux'.

# Next set the path to your kernel headers:
# $HEADERS=/path/to/kernel/include

$ CC="sh3-linux-gcc -ml -m3" ../glibc-2.2.5/configure -host=$TARGET \
  --build=`arch`-linux --disable-debug --disable-profile \
  --with-headers=$HEADERS --prefix=$PREFIX --enable-add-ons \
$ make
$ touch iconv/iconv_prog login/pt_chown
$ make install_root=$PREFIX/$TARGET prefix="" install

# Because you don't have SH3 glibc shared libraries in /lib on your host
# system, you need to make a quick edit:
$ echo GROUP \( libc_nonshared.a \) > $PREFIX/$TARGET/lib/

# You should now be able to compile normal C programs and have them execute
# on your target machine.

# Finally you can build the complete GCC toolchain
$ ../gcc-3.0.3/configure --prefix=$PREFIX --target=$TARGET \
$ make
$ make install

till gcc-final everything goes smooth but in gcc-final step i am getting
following problem
checking whether the C compiler
(/home/knitterb/linuxce/src/build-gcc/gcc/xgcc -B/home/knitterb/linuxce/src/
build-gcc/gcc/ -B/home/knitterb/linuxce/root/sh-linux/bin/ -B/home/knitterb/
linuxce/root/sh-linux/lib/ -isystem
/home/knitterb/linuxce/root/sh-linux/include -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.

Please guide me on this or If there is any other way of doing the same then
let me know.
Thanks in advance.


Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to crossgcc-unsubscribe at sources dot redhat dot com

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