On Tue, Apr 5, 2016 at 6:44 AM, Jim Wilson <jim.wil...@linaro.org> wrote:
> On Mon, Apr 4, 2016 at 11:30 AM, $rik@nth <srikanth0...@gmail.com> 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-linux-gnueabi toolchain in the path.
>
> When I try to build an arm-linux-gnueabi toolchain by dropping the
> --host option, I get a glibc build failure
> home/wilson/Linaro/tcwg/X-tmp/builds/x86_64-unknown-linux-gnu/arm-linux-gnueabi/glibc.git~release-2.21-master/config.h:4:3:
> error: #error "glibc cannot be compiled without optimization"
> --set cflags is overriding the default flags instead of adding to
> them, so this isn't going to work.
>
> If I try using --set cflags="-O2 -static", then I get an abe option parse 
> error
> ERROR (#612): check_directive (--stage requires a directive.  abe.sh
> found the next -- switch.  See --usage for details.' )
Sure.. I will give it a try by looking more into the usage once to play with it.
> This is trying to parse -static thinking it is the abe --stage option
> because it accepts -sta* as an abbreviation.  Personally, I think all
> of the abbreviations should be dropped as useless.  Anyways, it seems
> it is ignoring the quotes when trying to parse the options.  It
> appears that using the abe --set cflags option isn't useful, and you
> won't be able to build a static toolchain this way.
>
> I successfully built a cross by dropping the cflags and ldflags options.
There is no way to build static tool chain by using abe tool at all?
>
> I then tried to use it to build a canadian cross.  The build fails in
> gdb, complaining that I don't have a libtermcap library which is true.
> This is before it tried to build gcc, so I didn't get any gcc build.
>
> Jim



-- 
Thanks & Regards,
M.Srikanth Kumar.
_______________________________________________
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/linaro-toolchain

Reply via email to