Re: Cross compilation issue

2016-04-19 Thread $rik@nth
On Tue, Apr 19, 2016 at 9:47 AM, Rob Savoye wrote: > On 04/18/2016 09:08 PM, $rik@nth wrote: > `../abe.sh --set arch=armv7-a --host arm-linux-gnueabi --target arm-linux-gnueabi --build all`.. Still observing the same issue while building libgcc > >>> You'd need to first build a ar

Re: Cross compilation issue

2016-04-18 Thread Rob Savoye
On 04/18/2016 09:08 PM, $rik@nth wrote: >>> `../abe.sh --set arch=armv7-a --host arm-linux-gnueabi --target >>> arm-linux-gnueabi --build all`.. Still observing the same issue while >>> building libgcc >> You'd need to first build a arm-linux-gnueabi cross compiler, > Here i am failing to build

Re: Cross compilation issue

2016-04-18 Thread $rik@nth
On Fri, Apr 15, 2016 at 7:07 PM, Rob Savoye wrote: > On 04/15/2016 07:35 AM, $rik@nth wrote: >> On Tue, Apr 5, 2016 at 11:12 AM, Jim Wilson wrote: >>> On Mon, Apr 4, 2016 at 8:18 PM, $rik@nth wrote: There is no way to build static tool chain by using abe tool at all? >>> >>> Maybe modify a

Re: Cross compilation issue

2016-04-18 Thread $rik@nth
On Tue, Apr 19, 2016 at 12:08 AM, Rob Savoye wrote: > On 04/18/2016 11:43 AM, $rik@nth wrote: >> On Fri, Apr 15, 2016 at 7:07 PM, Rob Savoye wrote: > >> `../abe.sh --set arch=armv7-a --host arm-linux-gnueabi --target >> arm-linux-gnueabi --build all`.. Still observing the same issue while >> bu

Re: Cross compilation issue

2016-04-18 Thread Rob Savoye
On 04/18/2016 11:43 AM, $rik@nth wrote: > On Fri, Apr 15, 2016 at 7:07 PM, Rob Savoye wrote: > `../abe.sh --set arch=armv7-a --host arm-linux-gnueabi --target > arm-linux-gnueabi --build all`.. Still observing the same issue while > building libgcc > if i drop --host flag.. It compiles proper

Re: Cross compilation issue

2016-04-18 Thread $rik@nth
On Fri, Apr 15, 2016 at 7:07 PM, Rob Savoye wrote: > static_link Thank Rob for the pointers. Actually i am trying to build cross gcc for ARM aarch 32bit. I moved all `no` flags to `yes`. `../abe.sh --set arch=armv7-a --host arm-linux-gnueabi --target arm-linux-gnueabi --build all`.. Still obser

Re: Cross compilation issue

2016-04-15 Thread Rob Savoye
On 04/15/2016 07:35 AM, $rik@nth wrote: > On Tue, Apr 5, 2016 at 11:12 AM, Jim Wilson wrote: >> On Mon, Apr 4, 2016 at 8:18 PM, $rik@nth wrote: >>> There is no way to build static tool chain by using abe tool at all? >> >> Maybe modify abe/lib/make.sh to add -static directly to LDFLAGS? All t

Re: Cross compilation issue

2016-04-15 Thread $rik@nth
On Tue, Apr 5, 2016 at 11:12 AM, Jim Wilson wrote: > On Mon, Apr 4, 2016 at 8:18 PM, $rik@nth wrote: >> There is no way to build static tool chain by using abe tool at all? > > Maybe modify abe/lib/make.sh to add -static directly to LDFLAGS? Even this is not helpful. It is returning the same ear

Re: Cross compilation issue

2016-04-04 Thread Jim Wilson
On Mon, Apr 4, 2016 at 8:18 PM, $rik@nth wrote: > There is no way to build static tool chain by using abe tool at all? Maybe modify abe/lib/make.sh to add -static directly to LDFLAGS? Jim ___ linaro-toolchain mailing list linaro-toolchain@lists.linaro.

Re: Cross compilation issue

2016-04-04 Thread $rik@nth
On Tue, Apr 5, 2016 at 6:44 AM, Jim Wilson wrote: > On Mon, Apr 4, 2016 at 11:30 AM, $rik@nth wrote: >> I am issuing abe with `../abe.sh --set cflags="-static" --set >> ldflags="-pthread" --host arm-linux-gnueabi --target arm-linux-gnueabi >> --build all` >> am i configuring something wrong her

Re: Cross compilation issue

2016-04-04 Thread Jim Wilson
On Mon, Apr 4, 2016 at 11:30 AM, $rik@nth wrote: > I am issuing abe with `../abe.sh --set cflags="-static" --set > ldflags="-pthread" --host arm-linux-gnueabi --target arm-linux-gnueabi > --build all` > am i configuring something wrong here? Please correct me That won't work without an arm-linu

Re: Cross compilation issue

2016-04-04 Thread $rik@nth
On Mon, Apr 4, 2016 at 9:27 PM, Jim Wilson wrote: > On Sat, Apr 2, 2016 at 3:00 AM, $rik@nth wrote: >> /home/hydlnxbld84/Srikanth/abe/build/snapshots/gcc.git~linaro-gcc-5-branch/gcc/real.h:79:76: >> error: size of array test_real_width is negative >>[sizeof (REAL_VALUE_TYPE) <= REAL_WIDTH * s

Re: Cross compilation issue

2016-04-04 Thread Jim Wilson
On Fri, Apr 1, 2016 at 7:10 AM, $rik@nth wrote: > I've read the Wiki page and start using abe tool to build cross > compile for ARM on x86 build system. But i am getting below error. > Also --set arch=arm argument is showing the arch is not found while > configuring. Abe --set arch= translates i

Re: Cross compilation issue

2016-04-04 Thread Jim Wilson
On Sat, Apr 2, 2016 at 3:00 AM, $rik@nth wrote: > /home/hydlnxbld84/Srikanth/abe/build/snapshots/gcc.git~linaro-gcc-5-branch/gcc/real.h:79:76: > error: size of array test_real_width is negative >[sizeof (REAL_VALUE_TYPE) <= REAL_WIDTH * sizeof (HOST_WIDE_INT) ? 1 : -1]; I don't know offhand h

Re: Cross compilation issue

2016-04-02 Thread $rik@nth
Jim, Need your expertise here. I've tried building in a different machine and end up with different error. Command used `../abe.sh --set cflags="-static" --set ldflags="-pthread" --build x86_64-linux-gnu --host arm-linux-gnueabi --target arm-linux-gnueabi --build all` /home/hydlnxbld84/Srik

Re: Cross compilation issue

2016-04-01 Thread $rik@nth
Hi Jim, I've read the Wiki page and start using abe tool to build cross compile for ARM on x86 build system. But i am getting below error. Also --set arch=arm argument is showing the arch is not found while configuring. /local2/mnt/tools/Linux-kernel/Linaro-GCC/abe/build/snapshots/gcc.git~linaro-

Re: Cross compilation issue

2016-03-31 Thread $rik@nth
On Thu, Mar 31, 2016 at 12:51 PM, $rik@nth wrote: > On Thu, Mar 31, 2016 at 8:59 AM, Jim Wilson wrote: >> On Wed, Mar 30, 2016 at 7:37 PM, $rik@nth wrote: >>> You mean if i set --host=arm-linux-gnuebi and >>> --target=arm-linux-gunebi should automatically pick cross compilers >> >> Yes, in theor

Re: Cross compilation issue

2016-03-31 Thread $rik@nth
On Thu, Mar 31, 2016 at 8:59 AM, Jim Wilson wrote: > On Wed, Mar 30, 2016 at 7:37 PM, $rik@nth wrote: >> You mean if i set --host=arm-linux-gnuebi and >> --target=arm-linux-gunebi should automatically pick cross compilers > > Yes, in theory, it should find CC, AS, AR, etc by itself. Don't > forg

Re: Cross compilation issue

2016-03-30 Thread Jim Wilson
On Wed, Mar 30, 2016 at 7:37 PM, $rik@nth wrote: > You mean if i set --host=arm-linux-gnuebi and > --target=arm-linux-gunebi should automatically pick cross compilers Yes, in theory, it should find CC, AS, AR, etc by itself. Don't forget that you need to set all 3 of build, host, and target for

Re: Cross compilation issue

2016-03-30 Thread $rik@nth
On Wed, Mar 30, 2016 at 9:12 PM, Jim Wilson wrote: > On Tue, Mar 29, 2016 at 11:12 PM, $rik@nth wrote: >> Yes. I am using ubuntu 64bit to cross compile GCC to ARM. If i issue >> --host=arm-linux-gnueabi then it will pick up default >> /usr/arm-linux-gnuebi bins. I would like to pick up my binutil

Re: Cross compilation issue

2016-03-30 Thread Jim Wilson
On Tue, Mar 29, 2016 at 11:12 PM, $rik@nth wrote: > Yes. I am using ubuntu 64bit to cross compile GCC to ARM. If i issue > --host=arm-linux-gnueabi then it will pick up default > /usr/arm-linux-gnuebi bins. I would like to pick up my binutils which > are built statically for doing some experiment.

Re: Cross compilation issue

2016-03-29 Thread $rik@nth
On Tue, Mar 29, 2016 at 9:30 PM, Jim Wilson wrote: > --build=x86_64-pc-inux-gnu --host=arm-linux-gnueabi Yes. I am using ubuntu 64bit to cross compile GCC to ARM. If i issue --host=arm-linux-gnueabi then it will pick up default /usr/arm-linux-gnuebi bins. I would like to pick up my binutils whic

Re: Cross compilation issue

2016-03-29 Thread Jim Wilson
On Tue, Mar 29, 2016 at 8:03 AM, $rik@nth wrote: > gcc.o:(.rodata+0x5acc): undefined reference to > `host_detect_local_cpu(int, char const**)' This suggests a problem with the --host configure option. host_detect_local_cpu is used only if __arm__ is defined, which means you must be using an arm c

Cross compilation issue

2016-03-29 Thread $rik@nth
Hi All, I don't whether this is the right community mailing list to post support or not. Please correct me if i am wrong. I am trying to cross compile gcc to ARM as static binaries and as part of this, i am facing below issue. My build system is Ubuntu and using [1] gcc branch. Let me know what i