bugfindutils - Bugs: bug #42087, make error while cros compiling...

 
 

bug #42087: make error while cros compiling for arm with static flag enabled

Submitted by:  yesuraj <yesu4tech>
Submitted on:  Thu 10 Apr 2014 10:06:26 AM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  Compilation Failure Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  yesuraj Open/Closed:  Open
Release:  4.4.2 Fixed Release:  None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 11 May 2014 11:43:24 PM UTC, comment #1:

Please try again with the master branch from git. There are some brief instructions about downloading the code here:
https://savannah.gnu.org/git/?group=findutils

Once you have done that, follow the instructions at http://git.savannah.gnu.org/cgit/findutils.git/tree/README-hacking in order to build the code.

James Youngman <jay>
Project Administrator
Thu 10 Apr 2014 10:06:26 AM UTC, original submission:

Objective: Build " findutils-4.4.2" statically for arm platform

Steps followed:
CLFS_TARGET=arm-linux-gnueabi
export CC="${CLFS_TARGET}-gcc"
export CXX="${CLFS_TARGET}-g++"
export AR="${CLFS_TARGET}-ar"
export AS="${CLFS_TARGET}-as"
export RANLIB="${CLFS_TARGET}-ranlib"
export LD="${CLFS_TARGET}-ld"
export STRIP="${CLFS_TARGET}-strip"
cat > config.cache << EOF
gl_cv_func_wcwidth_works=yes
gl_cv_header_working_fcntl_h=yes
ac_cv_func_fnmatch_gnu=yes
EOF
CLFS_HOST=x86_64-linux-gnu
CLFS=/home/user/chrome/

./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} --prefix=/home/chrome/install/ --cache-file=config.cache --libexecdir=/usr/lib/locate --localstatedir=/var/lib/locate CFLAGS="-static"
make

ERROR RECEIVED:
make all-am
make[4]: Entering directory `/home/chrome/data/yesuraj/test_apps/android_utils/findutils-4.4.2/gnulib/lib'
depbase=`echo areadlink-with-size.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
arm-linux-gnueabi-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../intl -static -MT areadlink-with-size.o -MD -MP -MF $depbase.Tpo -c -o areadlink-with-size.o areadlink-with-size.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from ./stdio.h:31:0,
from areadlink-with-size.c:25:
/usr/arm-linux-gnueabi/include/stdio.h:746:12: error: expected declaration specifiers or ‘...’ before ‘(’ token
make[4]: *** [areadlink-with-size.o] Error 1
make[4]: Leaving directory `/home/chrome/data/yesuraj/test_apps/android_utils/findutils-4.4.2/gnulib/lib'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/chrome/data/yesuraj/test_apps/android_utils/findutils-4.4.2/gnulib/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/chrome/data/yesuraj/test_apps/android_utils/findutils-4.4.2/gnulib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/chrome/data/yesuraj/test_apps/android_utils/findutils-4.4.2'
make: *** [all] Error 2

NOTE:
The error is not seen if I remove the flags CFLAGS="-static"

I want to build statically for arm architecture.
Please help me in resolving this issue.

yesuraj <yesu4tech>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jay (Posted a comment)
  • -email is unavailable- added by yesu4tech (Submitted the item)
  • -email is unavailable- added by yesu4tech
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-04-10 yesu4tech Carbon-Copy- => Added -email is unavailable-

    Back to the top


    Powered by Savane 3.3