[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #42087] make error while cros compiling for arm with static flag en
From: |
yesuraj |
Subject: |
[bug #42087] make error while cros compiling for arm with static flag enabled |
Date: |
Thu, 10 Apr 2014 10:06:28 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 |
URL:
<http://savannah.gnu.org/bugs/?42087>
Summary: make error while cros compiling for arm with static
flag enabled
Project: findutils
Submitted by: yesu4tech
Submitted on: Thu 10 Apr 2014 10:06:26 AM GMT
Category: None
Severity: 3 - Normal
Item Group: Compilation Failure
Status: None
Privacy: Public
Assigned to: None
Originator Name: yesuraj
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.4.2
Fixed Release: None
_______________________________________________________
Details:
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.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42087>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #42087] make error while cros compiling for arm with static flag enabled,
yesuraj <=