This is the mail archive of the crossgcc@sources.redhat.com 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]

Linux 2.4.26: ppc32: gen_crc32table.c how and where "uint32_t" is defined ?


> Hi,
> 
> I am getting "uint32_t" undefined  in gen_crc32table.c when
> cross-compiling 
> Linux 2.4.26 for ppc 32 arch ?
I am using cross-compiler generated by crosstool-0.28-rc36...
> Temporarily I "patched" it right in gen_crc32table.c :
> typedef unsigned int uint32_t
> 
> Would you by any chance tell me where uint32_t is supposed to be defined ?
> 
> Thanks,
Response is appreciated in advance,
> Best Regards,
> Alex
 
PS crosstool-0.28-rc36 uses Linux 2.6.8 source - is it OK to use
cross-compiler 
      generated by crosstool-0.28-rc36 for cross-compiling Linux 2.4.26 ?
     I noticed at least one difference :

[root@localhost gcc-lib]# diff /opt/voip/linux-2.4.26/lib/gen_crc32table.c
/opt
/crosstool/crosstool-0.28-rc36/build/powerpc-860-linux-gnu/gcc-3.4.1-glibc-2
.3.
3/linux-2.6.8/lib/gen_crc32table.c
3c3
< #include <sys/types.h>
---
> #include <inttypes.h>
> *******************************************************
> powerpc-860-linux-gnu-gcc-3.4.1 -D__KERNEL__
> -I/opt/voip/linux-2.4.26/include -W
> all -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
> -fno-common -fom
> it-frame-pointer -I/opt/voip/linux-2.4.26/arch/ppc -fsigned-char
> -msoft-float -p
> ipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -mcpu=860
> -nostdinc -iwi
> thprefix include -DKBUILD_BASENAME=rbtree  -DEXPORT_SYMTAB -c rbtree.c
> powerpc-860-linux-gnu-gcc-3.4.1 -D__KERNEL__
> -I/opt/voip/linux-2.4.26/include -W
> all -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
> -fno-common -fom
> it-frame-pointer -I/opt/voip/linux-2.4.26/arch/ppc -fsigned-char
> -msoft-float -p
> ipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -mcpu=860
> -nostdinc -iwi
> thprefix include -DKBUILD_BASENAME=dump_stack  -c -o dump_stack.o
> dump_stack.c
> powerpc-860-linux-gnu-gcc-3.4.1 -D__KERNEL__
> -I/opt/voip/linux-2.4.26/include -W
> all -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
> -fno-common -fom
> it-frame-pointer -I/opt/voip/linux-2.4.26/arch/ppc -fsigned-char
> -msoft-float -p
> ipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -mcpu=860
> -nostdinc -iwi
> thprefix include -DKBUILD_BASENAME=rwsem  -DEXPORT_SYMTAB -c rwsem.c
> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
> -I/opt/voip/linux-2.4.26/
> arch/ppc -o gen_crc32table gen_crc32table.c
> gen_crc32table.c:10: error: parse error before "crc32table_le"

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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