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

 
 

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

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

Add a New Comment Rich Markup
   

Sun 01 Sep 2019 09:00:55 AM UTC, comment #3: 

Correction: s/many releases/some releases/.

James Youngman <jay>
Group administrator
Sun 01 Sep 2019 09:00:05 AM UTC, comment #2: 

There have been many releases since this bug was reported (most recently 4.7.0).   If you can reproduce this problem with 4.7.0, please re-open this bug.

James Youngman <jay>
Group administrator
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>
Group 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
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-09-01 jay StatusNone Need Info
        Assigned toNone jay
        Open/ClosedOpen Closed
    2014-04-10 yesu4tech Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code