bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] stdint, read-file: fix missing SIZE_MAX on Android


From: Kevin Cernekee
Subject: Re: [PATCH] stdint, read-file: fix missing SIZE_MAX on Android
Date: Wed, 5 Mar 2014 12:14:38 -0800

On Wed, Mar 5, 2014 at 12:10 PM, Kevin Cernekee <address@hidden> wrote:
> Building read-file.c currently fails on Android (ARM):
>
>     arm-linux-androideabi-gcc -DHAVE_CONFIG_H -I. -I..  
> -DGNULIB_STRICT_CHECKING=1   -g -O2 -MT read-file.o -MD -MP -MF 
> .deps/read-file.Tpo -c -o read-file.o read-file.c
>     read-file.c: In function 'fread_file':
>     read-file.c:62:17: error: 'SIZE_MAX' undeclared (first use in this 
> function)
>     read-file.c:62:17: note: each undeclared identifier is reported only once 
> for each function it appears in
>     make[4]: *** [read-file.o] Error 1

I used the attached script to compile-test ARM, x86, and MIPS builds
on NDK r9d (the latest).  For the sake of completeness I also tested
against r8e, after making the following changes:

--- android-test.sh 2014-03-05 12:04:45.945109866 -0800
+++ r8e.sh 2014-03-05 12:04:41.977118542 -0800
@@ -11,8 +11,8 @@
  triplet=$2

  rm -rf $TOOLCHAIN
- $NDK/build/tools/make-standalone-toolchain.sh --platform=android-19 \
- --arch=$arch --install-dir=$TOOLCHAIN
+ $NDK/build/tools/make-standalone-toolchain.sh --platform=android-14 \
+ --arch=$arch --install-dir=$TOOLCHAIN --system=linux-x86_64

  rm -rf tmp
  ./gnulib-tool --create-testdir --dir tmp read-file

Attachment: android-test.sh
Description: Bourne shell script


reply via email to

[Prev in Thread] Current Thread [Next in Thread]