* toolchain issue with with-libtool-sysroot unrecognized
@ 2013-09-03 21:23 JC
2013-09-04 15:32 ` Otavio Salvador
0 siblings, 1 reply; 5+ messages in thread
From: JC @ 2013-09-03 21:23 UTC (permalink / raw)
To: meta-freescale@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 934 bytes --]
Hi,
I tried to follow the steps from the official Yocto toolchain
documentation as in :
http://www.yoctoproject.org/docs/1.4.2/adt-manual/adt-manual.html#creating-and-running-a-project-based-on-gnu-autotools
When I run the configure step, I get a warning :
configure: WARNING: unrecognized options: --with-libtool-sysroot
This shouldn't be so bad, but unfortunately, because of this warning, I
get the following issue: when I try to run the generated binary, I get :
/lib/ld-linux.so.3: No such file or directory
So it's clear that because configure doesn't understand the libtool
sysroot parameter, it won't link my executable to the appropriate
library path. ld-linux.so.3 is indeed present under sysroots/lib. So if
the --with-libtool-sysroot were understood, that would work perfectly.
Has anyone any clue on this? I google the error but couldn't find any
valuable information
Regards
Jay
[-- Attachment #2: Type: text/html, Size: 1514 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: toolchain issue with with-libtool-sysroot unrecognized
2013-09-03 21:23 toolchain issue with with-libtool-sysroot unrecognized JC
@ 2013-09-04 15:32 ` Otavio Salvador
2013-09-04 16:36 ` JC
0 siblings, 1 reply; 5+ messages in thread
From: Otavio Salvador @ 2013-09-04 15:32 UTC (permalink / raw)
To: JC; +Cc: meta-freescale@yoctoproject.org
On Tue, Sep 3, 2013 at 6:23 PM, JC <jc@vtkloud.com> wrote:
> Hi,
>
> I tried to follow the steps from the official Yocto toolchain documentation
> as in :
> http://www.yoctoproject.org/docs/1.4.2/adt-manual/adt-manual.html#creating-and-running-a-project-based-on-gnu-autotools
>
> When I run the configure step, I get a warning :
> configure: WARNING: unrecognized options: --with-libtool-sysroot
>
> This shouldn't be so bad, but unfortunately, because of this warning, I get
> the following issue: when I try to run the generated binary, I get :
>
> /lib/ld-linux.so.3: No such file or directory
>
>
> So it's clear that because configure doesn't understand the libtool sysroot
> parameter, it won't link my executable to the appropriate library path.
> ld-linux.so.3 is indeed present under sysroots/lib. So if the
> --with-libtool-sysroot were understood, that would work perfectly.
>
> Has anyone any clue on this? I google the error but couldn't find any
> valuable information
It seems to be an issue with your autotools-based project as it works
fine in all recipes which use autotools in Yocto.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: toolchain issue with with-libtool-sysroot unrecognized
2013-09-04 15:32 ` Otavio Salvador
@ 2013-09-04 16:36 ` JC
2013-09-04 17:03 ` Otavio Salvador
0 siblings, 1 reply; 5+ messages in thread
From: JC @ 2013-09-04 16:36 UTC (permalink / raw)
To: Otavio Salvador; +Cc: meta-freescale@yoctoproject.org
On 04/09/2013 17:32, Otavio Salvador wrote:
> On Tue, Sep 3, 2013 at 6:23 PM, JC <jc@vtkloud.com> wrote:
>> Hi,
>>
>> I tried to follow the steps from the official Yocto toolchain documentation
>> as in :
>> http://www.yoctoproject.org/docs/1.4.2/adt-manual/adt-manual.html#creating-and-running-a-project-based-on-gnu-autotools
>>
>> When I run the configure step, I get a warning :
>> configure: WARNING: unrecognized options: --with-libtool-sysroot
>>
>> This shouldn't be so bad, but unfortunately, because of this warning, I get
>> the following issue: when I try to run the generated binary, I get :
>>
>> /lib/ld-linux.so.3: No such file or directory
>>
>>
>> So it's clear that because configure doesn't understand the libtool sysroot
>> parameter, it won't link my executable to the appropriate library path.
>> ld-linux.so.3 is indeed present under sysroots/lib. So if the
>> --with-libtool-sysroot were understood, that would work perfectly.
>>
>> Has anyone any clue on this? I google the error but couldn't find any
>> valuable information
> It seems to be an issue with your autotools-based project as it works
> fine in all recipes which use autotools in Yocto.
not so sure. I see the same configure warning in many other recipes. It
doesn't prevent the binary from working, it just prevents it to be
launched from within the SDK.
Regards
Jay
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: toolchain issue with with-libtool-sysroot unrecognized
2013-09-04 16:36 ` JC
@ 2013-09-04 17:03 ` Otavio Salvador
2013-09-04 18:26 ` JC
0 siblings, 1 reply; 5+ messages in thread
From: Otavio Salvador @ 2013-09-04 17:03 UTC (permalink / raw)
To: JC; +Cc: meta-freescale@yoctoproject.org
On Wed, Sep 4, 2013 at 1:36 PM, JC <jc@vtkloud.com> wrote:
> On 04/09/2013 17:32, Otavio Salvador wrote:
>>
>> On Tue, Sep 3, 2013 at 6:23 PM, JC <jc@vtkloud.com> wrote:
>>>
>>> Hi,
>>>
>>> I tried to follow the steps from the official Yocto toolchain
>>> documentation
>>> as in :
>>>
>>> http://www.yoctoproject.org/docs/1.4.2/adt-manual/adt-manual.html#creating-and-running-a-project-based-on-gnu-autotools
>>>
>>> When I run the configure step, I get a warning :
>>> configure: WARNING: unrecognized options: --with-libtool-sysroot
>>>
>>> This shouldn't be so bad, but unfortunately, because of this warning, I
>>> get
>>> the following issue: when I try to run the generated binary, I get :
>>>
>>> /lib/ld-linux.so.3: No such file or directory
>>>
>>>
>>> So it's clear that because configure doesn't understand the libtool
>>> sysroot
>>> parameter, it won't link my executable to the appropriate library path.
>>> ld-linux.so.3 is indeed present under sysroots/lib. So if the
>>> --with-libtool-sysroot were understood, that would work perfectly.
>>>
>>> Has anyone any clue on this? I google the error but couldn't find any
>>> valuable information
>>
>> It seems to be an issue with your autotools-based project as it works
>> fine in all recipes which use autotools in Yocto.
>
>
> not so sure. I see the same configure warning in many other recipes. It
> doesn't prevent the binary from working, it just prevents it to be launched
> from within the SDK.
You must be careful how to call configure and like; so it most
probably an error in configure.ac/Makefile.am or how you are calling
the configure script.
I use autotools based projects in toolchain daily at our projects and
customer projects and it works fine. Without further research in logs
and code access it is hard to do a better bet.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: toolchain issue with with-libtool-sysroot unrecognized
2013-09-04 17:03 ` Otavio Salvador
@ 2013-09-04 18:26 ` JC
0 siblings, 0 replies; 5+ messages in thread
From: JC @ 2013-09-04 18:26 UTC (permalink / raw)
To: Otavio Salvador; +Cc: meta-freescale@yoctoproject.org
Hi Otavio
On 04/09/2013 19:03, Otavio Salvador wrote:
>
> When I run the configure step, I get a warning :
> configure: WARNING: unrecognized options: --with-libtool-sysroot
>
> This shouldn't be so bad, but unfortunately, because of this warning, I
> get
> the following issue: when I try to run the generated binary, I get :
>
> /lib/ld-linux.so.3: No such file or directory
>
>
>
> I use autotools based projects in toolchain daily at our projects and
> customer projects and it works fine. Without further research in logs
> and code access it is hard to do a better bet.
You are right. It's impossible to tell more, so here are more details:
Makefile.am:
SUBDIRS =
bin_PROGRAMS = hello
configure.ac:
AC_INIT([hello], 0.1.0, trevor.woerner@linaro.org, hello)
AC_CONFIG_SRCDIR(hello.c)
AC_CONFIG_AUX_DIR(.)
AM_INIT_AUTOMAKE([foreign no-dist-gzip dist-bzip2 1.9])
SUBDIRS=""
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_OUTPUT(Makefile)
hello.c:
#include <stdio.h>
main()
{
printf("Hello World!\n");
}
I don't know what kind of logs I should post to help investigate the issue?
Regards
Jay
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-09-04 18:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-03 21:23 toolchain issue with with-libtool-sysroot unrecognized JC
2013-09-04 15:32 ` Otavio Salvador
2013-09-04 16:36 ` JC
2013-09-04 17:03 ` Otavio Salvador
2013-09-04 18:26 ` JC
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.