Advanced - Powered by Google


   
Log In
New Account
  
 
Home
My Page
Project Tree
Project Openings
THINK
          
 
 
Summary
Tracker
Lists
Tasks
News
CVS
Files
SVN
                
 

Tracker: codegen

Submit New | Browse | Admin | ExportToXml

[ #314130 ] Problem When cross compiling a think project for ARM target

Date:
2009-08-07 12:10
Priority:
5
Submitted By:
Damien VALLAT (damienvallat)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Problem When cross compiling a think project for ARM target

Detailed description:
I had an application compiling very weel on a linux host. when came time to cross compile it for an ARM target, ant tool returned an error during compilation, after code generation... build/adl/chess_ia_iaLegacy_comp.c:180: error: expected specifier-qualifier-list before '__io_read_fn__ssize_t' The 180s->185th lines of file looked like that : typedef struct __anonymous_struct87__ { __io_read_fn__ssize_t (*read)(void* __cookie, char* __buf, size_t __bufsize); __io_write_fn__ssize_t (*write)(void* __cookie, __const char* __buf, size_t __bufsize); __io_seek_fnint (*seek)(void* __cookie, __offmax_t* __pos, int __whence); __io_close_fnint (*close)(void* __cookie); } _IO_cookie_io_functions_t; And i have joined the fixed file, at the same lines. I've built my arm-linux-gcc with buildroot-2009.05. Here is the -v return : damien@debian-dev:/mnt/temp$ arm-linux-gcc -v Using built-in specs. Target: arm-linux-uclibc Configured with: /mnt/temp/buildroot-2009.05/toolchain_build_arm/gcc-4.3.3/configure --prefix=/usr --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=arm-linux-uclibc --enable-languages=c --with-sysroot=/mnt/temp/buildroot-2009.05/build_arm/staging_dir --with-build-time-tools=/mnt/temp/buildroot-2009.05/build_arm/staging_dir/usr/arm-linux-uclibc/bin --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --disable-libssp --disable-tls --enable-shared --with-gmp=/mnt/temp/buildroot-2009.05/toolchain_build_arm/gmp --with-mpfr=/mnt/temp/buildroot-2009.05/toolchain_build_arm/mpfr --disable-nls --enable-threads --disable-multilib --disable-decimal-float --with-float=soft --with-abi=apcs-gnu --with-arch=armv4t --with-tune=arm920t --disable-largefile Thread model: posix gcc version 4.3.3 (GCC) I describe it for one file but i had 7 or 8 times this same error in 7 or 8 different files...

Add A Comment:

Please login

Followup

Message
Date: 2009-08-07 14:59
Sender: damienvallat
Logged In: YES 
user_id=17842

The lines in the fixed file looks like :

struct __anonymous_struct87__ {
  __io_read_fn (*read);
  __io_write_fn (*write);
  __io_seek_fn (*seek);
  __io_close_fn (*close);
} _IO_cookie_io_functions_t;

We found out how to fix it by having a look to the
/usr/libio.h and /usr/stdio.h on the host machine and we saw
it was different in the generated code...

Sorry for the comment it would have been better in an only
post..:)

Attached Files:

Name Description Download
sources.tar sources du projet a compiler. Download
chess_ia_iaLegacy_comp_bugged.c Bugged File, Lines 180 to 185 Download
chess_ia_iaLegacy_comp_fixed.c Fixed file at lines 180 to 185 Download

Changes:

Field Old Value Date By
File Added2063: sources.tar2009-08-07 15:00damienvallat
File Added2061: chess_ia_iaLegacy_comp_bugged.c2009-08-07 12:12damienvallat
File Added2060: chess_ia_iaLegacy_comp_fixed.c2009-08-07 12:10damienvallat

Copyright © 1999-2008, OW2 Consortium | contact | webmaster.