This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: Problem configuring uclinux toolchain


On 7/9/2010 11:59 AM, Maxim Kuvyrkov wrote:
On 7/9/10 3:22 PM, Anthony Green wrote:
Hi Maxim,

Recent changes to config.gcc are preventing me from building a
moxie-uclinux toolchain.

Anthony,


What is the error the build process is failing on?

Here are the details:


Without OPTION_ANDROID=0:

../../../gcc/gcc/c-family/c-cppbuiltin.c: In function ‘c_cpp_builtins’:
../../../gcc/gcc/c-family/c-cppbuiltin.c:841: error: ‘OPTION_ANDROID’ undeclared (first use in this function)
../../../gcc/gcc/c-family/c-cppbuiltin.c:841: error: (Each undeclared identifier is reported only once
../../../gcc/gcc/c-family/c-cppbuiltin.c:841: error: for each function it appears in.)


Without LIBC_BIONIC=3:

../../../gcc/gcc/builtins.c: In function ‘expand_builtin_cexpi’:
../../../gcc/gcc/builtins.c:2430: error: ‘LIBC_BIONIC’ undeclared (first use in this function)
../../../gcc/gcc/builtins.c:2430: error: (Each undeclared identifier is reported only once
../../../gcc/gcc/builtins.c:2430: error: for each function it appears in.)


Without LIBC_UCLIBC=2:

options.c:1705: error: ‘LIBC_UCLIBC’ undeclared here (not in a function)
options.c:5593: warning: missing initializer
options.c:5593: warning: (near initialization for ‘cl_options[768].var_value’)


Without LIBC_GLIBC=1:

../../../gcc/gcc/builtins.def: In function ‘c_define_builtins’:
../../../gcc/gcc/builtins.def:178: error: ‘LIBC_GLIBC’ undeclared (first use in this function)
../../../gcc/gcc/builtins.def:178: error: (Each undeclared identifier is reported only once
../../../gcc/gcc/builtins.def:178: error: for each function it appears in.)



Building and testing the moxie-uclinux toolchain with the HEAD of GCC is very simple:

$ git clone git://github.com/atgreen/moxiedev
$ cd moxiedev/gcc
$ ../scripts/fix-svn.sh
$ ./contrib/gcc_update
$ cd ..
$ PATH=`pwd`/root/usr/bin:$PATH
$ ant build


Thanks,


AG


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