[uClibc]How to make a v850(e)-elf cross compiler from the gcc3.2-uclibc-toolchain

Anders Boegild sredna at mip.sdu.dk
Mon Dec 9 12:15:48 UTC 2002


Hi
Thanks for the quick response!
I'm not quite sure what to put in the makefile to make a cross sompiler
for the v850(e)-elf target from the gcc 3.3 uclibc toolchain.
I've tryed this but shortly after downloading the uclibc snapshot it fails:

BASEDIR:=${shell pwd}
#############################################################
#
# EDIT this stuff to suit your system and source locations
#
#############################################################
# Where do you want your toolchain to be installed?
#TARGET_PATH=/usr/local/uclibc
#TARGET_PATH=/opt/toolchain
TARGET_PATH=$(BASEDIR)/toolchain

# Native C compiler for the build system
HOSTCC:=gcc

# Pick your target CPU...
ARCH:=v850
#ARCH:=arm
#ARCH:=mipsel
#ARCH:=powerpc

# Set this to `false' if you are building for a CPU does not have
# a memory management unit (MMU) -- i.e. an uClinux system..  If
# you are targeting a regular Linux system, leave this "true".
# Set Most people will leave this set to "true".
HAS_MMU:=false


# Enable this to use the uClibc daily snapshot instead of a released
# version.  Daily snapshots may contain new features and bugfixes. Or
# they may not even compile at all, depending on what Erik is doing...
USE_UCLIBC_SNAPSHOT:=true

# Construct a tarball of the resulting toolchain
BUILD_TARBALL:=false



#############################################################
#
# What shall we build today?
#
#############################################################
TARGETS:=gcc_final
TARGET_LANGUAGES:=c,c++
ifneq ($(HAS_MMU),true)
TARGETS:=elf2flt
TARGET_LANGUAGES:=c,c++
endif

#############################################################
#
# You should probably leave this stuff alone unless you are
# hacking on the toolchain...
#
#############################################################
TARGET=$(ARCH)-linux
BASE_DIR:=$(shell pwd)
SOURCE_DIR:=$(BASE_DIR)/sources
DL_DIR:=$(SOURCE_DIR)/dl
BUILD_DIR:=$(BASE_DIR)/build
STAGING_DIR:=$(TARGET_PATH)
GNU_TARGET_NAME:=$(ARCH)-linux
MAKE:=make
.
.
.

I started out gently and changed only ARCH:=v850  (but wont that make
binutils and gcc for the v850 and not the v850e ?) and HAS_MMU:=false
but it fails with this message:

.
.
perl -i -p -e 's,^UNIX98PTY_ONLY.*,UNIX98PTY_ONLY=false,g'
/home/DarkWing/tools/gcc-3.2/build/uClibc/Config~
/home/DarkWing/tools/gcc-3.2/build/uClibc/extra/Configs/uClibc_config_fix.pl 

\
--arch=v850 \
--cross=/home/DarkWing/tools/gcc-3.2/toolchain/bin/v850-uclibc- \
--c99_math=false \
--devel_prefix=/home/DarkWing/tools/gcc-3.2/toolchain \
--kernel_dir=/home/DarkWing/tools/gcc-3.2/build/linux \
--long_long=true \
--float=true \
--shadow=true \
--threads=true \
--rpc_support=true \
--large_file=false \
--mmu=false \
--debug=false \
--ldso_path="/lib" \
         --shared_support=false \
         --file=/home/DarkWing/tools/gcc-3.2/build/uClibc/Config~ \
         > /home/DarkWing/tools/gcc-3.2/build/uClibc/Config;
/bin/sh:
/home/DarkWing/tools/gcc-3.2/build/uClibc/extra/Configs/uClibc_config_fix.pl: 

No such file or directory
make: *** [/home/DarkWing/tools/gcc-3.2/build/uClibc/.configured] Error 127
[DarkWing at localhost gcc-3.2]$ make clean

Regards Anders,  denmark







More information about the uClibc mailing list