All of lore.kernel.org
 help / color / mirror / Atom feed
* Cannot update dhcpcd receipe from v6.11.5 to v7.x.x
@ 2019-01-08 23:47 Stefano Cappa
  2019-01-09  2:40 ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: Stefano Cappa @ 2019-01-08 23:47 UTC (permalink / raw)
  To: yocto, Khem Raj

[-- Attachment #1: Type: text/plain, Size: 4826 bytes --]

Hi!
I'm using Yocto THUD and I'm trying to update dhcpcd
(meta-openembedded/meta-networking) from 6.11.5 to 7.0.8 (
https://roy.marples.name/downloads/dhcpcd/dhcpcd-7.0.8.tar.xz) only to do
some experiments, however I think that it's correct to migrate to the new
version.

I modified the recipe to download version 7.0.8, but when it's building it
throws this error:

ERROR: dhcpcd-7.0.8-r0 do_configure: configure failed
ERROR: dhcpcd-7.0.8-r0 do_configure: Function failed: do_configure (log
file is located at
/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/temp/log.do_configure.90966)
ERROR: Logfile of failure stored in:
/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/temp/log.do_configure.90966
Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32',
'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_aclocals
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32',
'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| DEBUG: Python function autotools_aclocals finished
| DEBUG: Executing shell function do_configure
| NOTE: Running ./configure  --build=x86_64-linux
--host=arm-poky-linux-gnueabi    --target=arm-poky-linux-gnueabi
--prefix=/usr    --exec_prefix=/usr    --bindir=/usr/bin
--sbindir=/usr/sbin    --libexecdir=/usr/libexec    --datadir=/usr/share
--sysconfdir=/etc    --sharedstatedir=/com    --localstatedir=/var
--libdir=/usr/lib    --includedir=/usr/include
--oldincludedir=/usr/include    --infodir=/usr/share/info
--mandir=/usr/share/man    --disable-silent-rules
--disable-dependency-tracking
--with-libtool-sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
--enable-ipv4 --disable-static  --enable-ipv6 --with-udev
| configure args: --build=x86_64-linux --host=arm-poky-linux-gnueabi
--target=arm-poky-linux-gnueabi --prefix=/usr --exec_prefix=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec
--datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com
--localstatedir=/var --libdir=/usr/lib --includedir=/usr/include
--oldincludedir=/usr/include --infodir=/usr/share/info
--mandir=/usr/share/man --disable-silent-rules
--disable-dependency-tracking
--with-libtool-sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
--enable-ipv4 --disable-static --enable-ipv6 --with-udev
| ./configure: WARNING: unknown option --exec_prefix
| ./configure: WARNING: unknown option --sharedstatedir
| ./configure: WARNING: unknown option --oldincludedir
| ./configure: WARNING: unknown option --with-libtool-sysroot
| ./configure: WARNING: unknown option --with-udev
| Deriving operating system from ... arm-poky-linux-gnueabi
| Configuring dhcpcd for ... linux
| Enabling INET support
| Enabling ARP support
| Enabling ARPing support
| Enabling IPv4LL support
| Enabling INET6 support
| Enabling DHCPv6 support
| Enabling Authentication
| Using compiler .. arm-poky-linux-gnueabi-gcc  -march=armv7ve -mthumb
-mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7
 --sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
| arm-poky-linux-gnueabi-gcc  -march=armv7ve -mthumb -mfpu=neon
-mfloat-abi=hard -mcpu=cortex-a7
 --sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
does not create executables
| NOTE: The following config.log files may provide further information.
| NOTE:
/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/dhcpcd-7.0.8/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at
/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/temp/log.do_configure.90966)

Also, the content of "config.log" is :
*       cc1: error: include location "/usr/include" is unsafe for
cross-compilation [-Werror=poison-system-directories]*
       cc1: all warnings being treated as errors

I compared configure files of versions 6.11.5 and 7.0.8 and they are quite
similar with some additions, in particular "-I|--includedir)
INCLUDEDIR="$INCLUDEDIR${INCLUDEDIR:+ }-I$var";;".

In not an expert of autotools and so on, so I don't know how to fix this.
Do you have suggestions?

I added also Khem Raj, but I'm not sure if it's the maintainer of dhcpcd
recipe.

Thank u.

[-- Attachment #2: Type: text/html, Size: 6422 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Cannot update dhcpcd receipe from v6.11.5 to v7.x.x
  2019-01-08 23:47 Cannot update dhcpcd receipe from v6.11.5 to v7.x.x Stefano Cappa
@ 2019-01-09  2:40 ` Khem Raj
  2019-01-09 23:12   ` Stefano Cappa
  0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2019-01-09  2:40 UTC (permalink / raw)
  To: Stefano Cappa; +Cc: yocto

On Tue, Jan 8, 2019 at 3:48 PM Stefano Cappa
<stefano.cappa.ks89@gmail.com> wrote:
>
> Hi!
> I'm using Yocto THUD and I'm trying to update dhcpcd (meta-openembedded/meta-networking) from 6.11.5 to 7.0.8 (https://roy.marples.name/downloads/dhcpcd/dhcpcd-7.0.8.tar.xz) only to do some experiments, however I think that it's correct to migrate to the new version.
>
> I modified the recipe to download version 7.0.8, but when it's building it throws this error:
>
> ERROR: dhcpcd-7.0.8-r0 do_configure: configure failed
> ERROR: dhcpcd-7.0.8-r0 do_configure: Function failed: do_configure (log file is located at /home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/temp/log.do_configure.90966)
> ERROR: Logfile of failure stored in: /home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/temp/log.do_configure.90966
> Log data follows:
> | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
> | DEBUG: Executing shell function autotools_preconfigure
> | DEBUG: Shell function autotools_preconfigure finished
> | DEBUG: Executing python function autotools_aclocals
> | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
> | DEBUG: Python function autotools_aclocals finished
> | DEBUG: Executing shell function do_configure
> | NOTE: Running ./configure  --build=x86_64-linux    --host=arm-poky-linux-gnueabi    --target=arm-poky-linux-gnueabi    --prefix=/usr    --exec_prefix=/usr    --bindir=/usr/bin    --sbindir=/usr/sbin    --libexecdir=/usr/libexec    --datadir=/usr/share    --sysconfdir=/etc    --sharedstatedir=/com    --localstatedir=/var    --libdir=/usr/lib    --includedir=/usr/include    --oldincludedir=/usr/include    --infodir=/usr/share/info    --mandir=/usr/share/man    --disable-silent-rules    --disable-dependency-tracking    --with-libtool-sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot --enable-ipv4 --disable-static  --enable-ipv6 --with-udev
> | configure args: --build=x86_64-linux --host=arm-poky-linux-gnueabi --target=arm-poky-linux-gnueabi --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot --enable-ipv4 --disable-static --enable-ipv6 --with-udev
> | ./configure: WARNING: unknown option --exec_prefix
> | ./configure: WARNING: unknown option --sharedstatedir
> | ./configure: WARNING: unknown option --oldincludedir
> | ./configure: WARNING: unknown option --with-libtool-sysroot
> | ./configure: WARNING: unknown option --with-udev
> | Deriving operating system from ... arm-poky-linux-gnueabi
> | Configuring dhcpcd for ... linux
> | Enabling INET support
> | Enabling ARP support
> | Enabling ARPing support
> | Enabling IPv4LL support
> | Enabling INET6 support
> | Enabling DHCPv6 support
> | Enabling Authentication
> | Using compiler .. arm-poky-linux-gnueabi-gcc  -march=armv7ve -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7   --sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
> | arm-poky-linux-gnueabi-gcc  -march=armv7ve -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7   --sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot does not create executables
> | NOTE: The following config.log files may provide further information.
> | NOTE: /home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/dhcpcd-7.0.8/config.log
> | ERROR: configure failed
> | WARNING: exit code 1 from a shell command.
> | ERROR: Function failed: do_configure (log file is located at /home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/temp/log.do_configure.90966)
>
> Also, the content of "config.log" is :
>        cc1: error: include location "/usr/include" is unsafe for cross-compilation [-Werror=poison-system-directories]
>        cc1: all warnings being treated as errors
>
> I compared configure files of versions 6.11.5 and 7.0.8 and they are quite similar with some additions, in particular "-I|--includedir) INCLUDEDIR="$INCLUDEDIR${INCLUDEDIR:+ }-I$var";;".
>
> In not an expert of autotools and so on, so I don't know how to fix this.
> Do you have suggestions?

The error suggests that its poking into build host for headers, so you need
to look into that usually this means it has hardcoded paths for
headers pointing to /usr/include, or it does not respect sysroot
option that compiler is passing.

>
> I added also Khem Raj, but I'm not sure if it's the maintainer of dhcpcd recipe.
>
> Thank u.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Cannot update dhcpcd receipe from v6.11.5 to v7.x.x
  2019-01-09  2:40 ` Khem Raj
@ 2019-01-09 23:12   ` Stefano Cappa
  2019-01-13  2:00     ` Stefano Cappa
  0 siblings, 1 reply; 6+ messages in thread
From: Stefano Cappa @ 2019-01-09 23:12 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 5674 bytes --]

Which should be the right path instead of the hardcoded /usr/include?
Is there a recommended way to fix it in a yocto recipe?

Il giorno mer 9 gen 2019 alle ore 03:41 Khem Raj <raj.khem@gmail.com> ha
scritto:

> On Tue, Jan 8, 2019 at 3:48 PM Stefano Cappa
> <stefano.cappa.ks89@gmail.com> wrote:
> >
> > Hi!
> > I'm using Yocto THUD and I'm trying to update dhcpcd
> (meta-openembedded/meta-networking) from 6.11.5 to 7.0.8 (
> https://roy.marples.name/downloads/dhcpcd/dhcpcd-7.0.8.tar.xz) only to do
> some experiments, however I think that it's correct to migrate to the new
> version.
> >
> > I modified the recipe to download version 7.0.8, but when it's building
> it throws this error:
> >
> > ERROR: dhcpcd-7.0.8-r0 do_configure: configure failed
> > ERROR: dhcpcd-7.0.8-r0 do_configure: Function failed: do_configure (log
> file is located at
> /home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/temp/log.do_configure.90966)
> > ERROR: Logfile of failure stored in:
> /home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/temp/log.do_configure.90966
> > Log data follows:
> > | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32',
> 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
> > | DEBUG: Executing shell function autotools_preconfigure
> > | DEBUG: Shell function autotools_preconfigure finished
> > | DEBUG: Executing python function autotools_aclocals
> > | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32',
> 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
> > | DEBUG: Python function autotools_aclocals finished
> > | DEBUG: Executing shell function do_configure
> > | NOTE: Running ./configure  --build=x86_64-linux
> --host=arm-poky-linux-gnueabi    --target=arm-poky-linux-gnueabi
> --prefix=/usr    --exec_prefix=/usr    --bindir=/usr/bin
> --sbindir=/usr/sbin    --libexecdir=/usr/libexec    --datadir=/usr/share
> --sysconfdir=/etc    --sharedstatedir=/com    --localstatedir=/var
> --libdir=/usr/lib    --includedir=/usr/include
> --oldincludedir=/usr/include    --infodir=/usr/share/info
> --mandir=/usr/share/man    --disable-silent-rules
> --disable-dependency-tracking
> --with-libtool-sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
> --enable-ipv4 --disable-static  --enable-ipv6 --with-udev
> > | configure args: --build=x86_64-linux --host=arm-poky-linux-gnueabi
> --target=arm-poky-linux-gnueabi --prefix=/usr --exec_prefix=/usr
> --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec
> --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com
> --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include
> --oldincludedir=/usr/include --infodir=/usr/share/info
> --mandir=/usr/share/man --disable-silent-rules
> --disable-dependency-tracking
> --with-libtool-sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
> --enable-ipv4 --disable-static --enable-ipv6 --with-udev
> > | ./configure: WARNING: unknown option --exec_prefix
> > | ./configure: WARNING: unknown option --sharedstatedir
> > | ./configure: WARNING: unknown option --oldincludedir
> > | ./configure: WARNING: unknown option --with-libtool-sysroot
> > | ./configure: WARNING: unknown option --with-udev
> > | Deriving operating system from ... arm-poky-linux-gnueabi
> > | Configuring dhcpcd for ... linux
> > | Enabling INET support
> > | Enabling ARP support
> > | Enabling ARPing support
> > | Enabling IPv4LL support
> > | Enabling INET6 support
> > | Enabling DHCPv6 support
> > | Enabling Authentication
> > | Using compiler .. arm-poky-linux-gnueabi-gcc  -march=armv7ve -mthumb
> -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7
>  --sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
> > | arm-poky-linux-gnueabi-gcc  -march=armv7ve -mthumb -mfpu=neon
> -mfloat-abi=hard -mcpu=cortex-a7
>  --sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
> does not create executables
> > | NOTE: The following config.log files may provide further information.
> > | NOTE:
> /home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/dhcpcd-7.0.8/config.log
> > | ERROR: configure failed
> > | WARNING: exit code 1 from a shell command.
> > | ERROR: Function failed: do_configure (log file is located at
> /home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/temp/log.do_configure.90966)
> >
> > Also, the content of "config.log" is :
> >        cc1: error: include location "/usr/include" is unsafe for
> cross-compilation [-Werror=poison-system-directories]
> >        cc1: all warnings being treated as errors
> >
> > I compared configure files of versions 6.11.5 and 7.0.8 and they are
> quite similar with some additions, in particular "-I|--includedir)
> INCLUDEDIR="$INCLUDEDIR${INCLUDEDIR:+ }-I$var";;".
> >
> > In not an expert of autotools and so on, so I don't know how to fix this.
> > Do you have suggestions?
>
> The error suggests that its poking into build host for headers, so you need
> to look into that usually this means it has hardcoded paths for
> headers pointing to /usr/include, or it does not respect sysroot
> option that compiler is passing.
>
> >
> > I added also Khem Raj, but I'm not sure if it's the maintainer of dhcpcd
> recipe.
> >
> > Thank u.
>

[-- Attachment #2: Type: text/html, Size: 6595 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Cannot update dhcpcd receipe from v6.11.5 to v7.x.x
  2019-01-09 23:12   ` Stefano Cappa
@ 2019-01-13  2:00     ` Stefano Cappa
  2019-01-13  2:33       ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: Stefano Cappa @ 2019-01-13  2:00 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 5971 bytes --]

Fixed. After some tests I'll send the new recipe with a patch to update
dhcpcd.

Il gio 10 gen 2019, 00:12 Stefano Cappa <stefano.cappa.ks89@gmail.com> ha
scritto:

> Which should be the right path instead of the hardcoded /usr/include?
> Is there a recommended way to fix it in a yocto recipe?
>
>
> Il giorno mer 9 gen 2019 alle ore 03:41 Khem Raj <raj.khem@gmail.com> ha
> scritto:
>
>> On Tue, Jan 8, 2019 at 3:48 PM Stefano Cappa
>> <stefano.cappa.ks89@gmail.com> wrote:
>> >
>> > Hi!
>> > I'm using Yocto THUD and I'm trying to update dhcpcd
>> (meta-openembedded/meta-networking) from 6.11.5 to 7.0.8 (
>> https://roy.marples.name/downloads/dhcpcd/dhcpcd-7.0.8.tar.xz) only to
>> do some experiments, however I think that it's correct to migrate to the
>> new version.
>> >
>> > I modified the recipe to download version 7.0.8, but when it's building
>> it throws this error:
>> >
>> > ERROR: dhcpcd-7.0.8-r0 do_configure: configure failed
>> > ERROR: dhcpcd-7.0.8-r0 do_configure: Function failed: do_configure (log
>> file is located at
>> /home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/temp/log.do_configure.90966)
>> > ERROR: Logfile of failure stored in:
>> /home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/temp/log.do_configure.90966
>> > Log data follows:
>> > | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32',
>> 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
>> > | DEBUG: Executing shell function autotools_preconfigure
>> > | DEBUG: Shell function autotools_preconfigure finished
>> > | DEBUG: Executing python function autotools_aclocals
>> > | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32',
>> 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
>> > | DEBUG: Python function autotools_aclocals finished
>> > | DEBUG: Executing shell function do_configure
>> > | NOTE: Running ./configure  --build=x86_64-linux
>> --host=arm-poky-linux-gnueabi    --target=arm-poky-linux-gnueabi
>> --prefix=/usr    --exec_prefix=/usr    --bindir=/usr/bin
>> --sbindir=/usr/sbin    --libexecdir=/usr/libexec    --datadir=/usr/share
>> --sysconfdir=/etc    --sharedstatedir=/com    --localstatedir=/var
>> --libdir=/usr/lib    --includedir=/usr/include
>> --oldincludedir=/usr/include    --infodir=/usr/share/info
>> --mandir=/usr/share/man    --disable-silent-rules
>> --disable-dependency-tracking
>> --with-libtool-sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
>> --enable-ipv4 --disable-static  --enable-ipv6 --with-udev
>> > | configure args: --build=x86_64-linux --host=arm-poky-linux-gnueabi
>> --target=arm-poky-linux-gnueabi --prefix=/usr --exec_prefix=/usr
>> --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec
>> --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com
>> --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include
>> --oldincludedir=/usr/include --infodir=/usr/share/info
>> --mandir=/usr/share/man --disable-silent-rules
>> --disable-dependency-tracking
>> --with-libtool-sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
>> --enable-ipv4 --disable-static --enable-ipv6 --with-udev
>> > | ./configure: WARNING: unknown option --exec_prefix
>> > | ./configure: WARNING: unknown option --sharedstatedir
>> > | ./configure: WARNING: unknown option --oldincludedir
>> > | ./configure: WARNING: unknown option --with-libtool-sysroot
>> > | ./configure: WARNING: unknown option --with-udev
>> > | Deriving operating system from ... arm-poky-linux-gnueabi
>> > | Configuring dhcpcd for ... linux
>> > | Enabling INET support
>> > | Enabling ARP support
>> > | Enabling ARPing support
>> > | Enabling IPv4LL support
>> > | Enabling INET6 support
>> > | Enabling DHCPv6 support
>> > | Enabling Authentication
>> > | Using compiler .. arm-poky-linux-gnueabi-gcc  -march=armv7ve -mthumb
>> -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7
>>  --sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
>> > | arm-poky-linux-gnueabi-gcc  -march=armv7ve -mthumb -mfpu=neon
>> -mfloat-abi=hard -mcpu=cortex-a7
>>  --sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
>> does not create executables
>> > | NOTE: The following config.log files may provide further information.
>> > | NOTE:
>> /home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/dhcpcd-7.0.8/config.log
>> > | ERROR: configure failed
>> > | WARNING: exit code 1 from a shell command.
>> > | ERROR: Function failed: do_configure (log file is located at
>> /home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/temp/log.do_configure.90966)
>> >
>> > Also, the content of "config.log" is :
>> >        cc1: error: include location "/usr/include" is unsafe for
>> cross-compilation [-Werror=poison-system-directories]
>> >        cc1: all warnings being treated as errors
>> >
>> > I compared configure files of versions 6.11.5 and 7.0.8 and they are
>> quite similar with some additions, in particular "-I|--includedir)
>> INCLUDEDIR="$INCLUDEDIR${INCLUDEDIR:+ }-I$var";;".
>> >
>> > In not an expert of autotools and so on, so I don't know how to fix
>> this.
>> > Do you have suggestions?
>>
>> The error suggests that its poking into build host for headers, so you
>> need
>> to look into that usually this means it has hardcoded paths for
>> headers pointing to /usr/include, or it does not respect sysroot
>> option that compiler is passing.
>>
>> >
>> > I added also Khem Raj, but I'm not sure if it's the maintainer of
>> dhcpcd recipe.
>> >
>> > Thank u.
>>
>

[-- Attachment #2: Type: text/html, Size: 7031 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Cannot update dhcpcd receipe from v6.11.5 to v7.x.x
  2019-01-13  2:00     ` Stefano Cappa
@ 2019-01-13  2:33       ` Khem Raj
  2019-01-13 11:52         ` Stefano Cappa
  0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2019-01-13  2:33 UTC (permalink / raw)
  To: Stefano Cappa; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 6202 bytes --]

Awesome

On Sat, Jan 12, 2019 at 6:00 PM Stefano Cappa <stefano.cappa.ks89@gmail.com>
wrote:

> Fixed. After some tests I'll send the new recipe with a patch to update
> dhcpcd.
>
> Il gio 10 gen 2019, 00:12 Stefano Cappa <stefano.cappa.ks89@gmail.com> ha
> scritto:
>
>> Which should be the right path instead of the hardcoded /usr/include?
>> Is there a recommended way to fix it in a yocto recipe?
>>
>>
>> Il giorno mer 9 gen 2019 alle ore 03:41 Khem Raj <raj.khem@gmail.com> ha
>> scritto:
>>
>>> On Tue, Jan 8, 2019 at 3:48 PM Stefano Cappa
>>> <stefano.cappa.ks89@gmail.com> wrote:
>>> >
>>> > Hi!
>>> > I'm using Yocto THUD and I'm trying to update dhcpcd
>>> (meta-openembedded/meta-networking) from 6.11.5 to 7.0.8 (
>>> https://roy.marples.name/downloads/dhcpcd/dhcpcd-7.0.8.tar.xz) only to
>>> do some experiments, however I think that it's correct to migrate to the
>>> new version.
>>> >
>>> > I modified the recipe to download version 7.0.8, but when it's
>>> building it throws this error:
>>> >
>>> > ERROR: dhcpcd-7.0.8-r0 do_configure: configure failed
>>> > ERROR: dhcpcd-7.0.8-r0 do_configure: Function failed: do_configure
>>> (log file is located at
>>> /home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/temp/log.do_configure.90966)
>>> > ERROR: Logfile of failure stored in:
>>> /home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/temp/log.do_configure.90966
>>> > Log data follows:
>>> > | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common',
>>> 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi',
>>> 'common']
>>> > | DEBUG: Executing shell function autotools_preconfigure
>>> > | DEBUG: Shell function autotools_preconfigure finished
>>> > | DEBUG: Executing python function autotools_aclocals
>>> > | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common',
>>> 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi',
>>> 'common']
>>> > | DEBUG: Python function autotools_aclocals finished
>>> > | DEBUG: Executing shell function do_configure
>>> > | NOTE: Running ./configure  --build=x86_64-linux
>>> --host=arm-poky-linux-gnueabi    --target=arm-poky-linux-gnueabi
>>> --prefix=/usr    --exec_prefix=/usr    --bindir=/usr/bin
>>> --sbindir=/usr/sbin    --libexecdir=/usr/libexec    --datadir=/usr/share
>>> --sysconfdir=/etc    --sharedstatedir=/com    --localstatedir=/var
>>> --libdir=/usr/lib    --includedir=/usr/include
>>> --oldincludedir=/usr/include    --infodir=/usr/share/info
>>> --mandir=/usr/share/man    --disable-silent-rules
>>> --disable-dependency-tracking
>>> --with-libtool-sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
>>> --enable-ipv4 --disable-static  --enable-ipv6 --with-udev
>>> > | configure args: --build=x86_64-linux --host=arm-poky-linux-gnueabi
>>> --target=arm-poky-linux-gnueabi --prefix=/usr --exec_prefix=/usr
>>> --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec
>>> --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com
>>> --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include
>>> --oldincludedir=/usr/include --infodir=/usr/share/info
>>> --mandir=/usr/share/man --disable-silent-rules
>>> --disable-dependency-tracking
>>> --with-libtool-sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
>>> --enable-ipv4 --disable-static --enable-ipv6 --with-udev
>>> > | ./configure: WARNING: unknown option --exec_prefix
>>> > | ./configure: WARNING: unknown option --sharedstatedir
>>> > | ./configure: WARNING: unknown option --oldincludedir
>>> > | ./configure: WARNING: unknown option --with-libtool-sysroot
>>> > | ./configure: WARNING: unknown option --with-udev
>>> > | Deriving operating system from ... arm-poky-linux-gnueabi
>>> > | Configuring dhcpcd for ... linux
>>> > | Enabling INET support
>>> > | Enabling ARP support
>>> > | Enabling ARPing support
>>> > | Enabling IPv4LL support
>>> > | Enabling INET6 support
>>> > | Enabling DHCPv6 support
>>> > | Enabling Authentication
>>> > | Using compiler .. arm-poky-linux-gnueabi-gcc  -march=armv7ve -mthumb
>>> -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7
>>>  --sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
>>> > | arm-poky-linux-gnueabi-gcc  -march=armv7ve -mthumb -mfpu=neon
>>> -mfloat-abi=hard -mcpu=cortex-a7
>>>  --sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
>>> does not create executables
>>> > | NOTE: The following config.log files may provide further information.
>>> > | NOTE:
>>> /home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/dhcpcd-7.0.8/config.log
>>> > | ERROR: configure failed
>>> > | WARNING: exit code 1 from a shell command.
>>> > | ERROR: Function failed: do_configure (log file is located at
>>> /home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/temp/log.do_configure.90966)
>>> >
>>> > Also, the content of "config.log" is :
>>> >        cc1: error: include location "/usr/include" is unsafe for
>>> cross-compilation [-Werror=poison-system-directories]
>>> >        cc1: all warnings being treated as errors
>>> >
>>> > I compared configure files of versions 6.11.5 and 7.0.8 and they are
>>> quite similar with some additions, in particular "-I|--includedir)
>>> INCLUDEDIR="$INCLUDEDIR${INCLUDEDIR:+ }-I$var";;".
>>> >
>>> > In not an expert of autotools and so on, so I don't know how to fix
>>> this.
>>> > Do you have suggestions?
>>>
>>> The error suggests that its poking into build host for headers, so you
>>> need
>>> to look into that usually this means it has hardcoded paths for
>>> headers pointing to /usr/include, or it does not respect sysroot
>>> option that compiler is passing.
>>>
>>> >
>>> > I added also Khem Raj, but I'm not sure if it's the maintainer of
>>> dhcpcd recipe.
>>> >
>>> > Thank u.
>>>
>>

[-- Attachment #2: Type: text/html, Size: 7416 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Cannot update dhcpcd receipe from v6.11.5 to v7.x.x
  2019-01-13  2:33       ` Khem Raj
@ 2019-01-13 11:52         ` Stefano Cappa
  0 siblings, 0 replies; 6+ messages in thread
From: Stefano Cappa @ 2019-01-13 11:52 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 6527 bytes --]

Ok, I created a pull request on github:
https://github.com/openembedded/meta-openembedded/pull/112

Il giorno dom 13 gen 2019 alle ore 03:33 Khem Raj <raj.khem@gmail.com> ha
scritto:

> Awesome
>
> On Sat, Jan 12, 2019 at 6:00 PM Stefano Cappa <
> stefano.cappa.ks89@gmail.com> wrote:
>
>> Fixed. After some tests I'll send the new recipe with a patch to update
>> dhcpcd.
>>
>> Il gio 10 gen 2019, 00:12 Stefano Cappa <stefano.cappa.ks89@gmail.com>
>> ha scritto:
>>
>>> Which should be the right path instead of the hardcoded /usr/include?
>>> Is there a recommended way to fix it in a yocto recipe?
>>>
>>>
>>> Il giorno mer 9 gen 2019 alle ore 03:41 Khem Raj <raj.khem@gmail.com>
>>> ha scritto:
>>>
>>>> On Tue, Jan 8, 2019 at 3:48 PM Stefano Cappa
>>>> <stefano.cappa.ks89@gmail.com> wrote:
>>>> >
>>>> > Hi!
>>>> > I'm using Yocto THUD and I'm trying to update dhcpcd
>>>> (meta-openembedded/meta-networking) from 6.11.5 to 7.0.8 (
>>>> https://roy.marples.name/downloads/dhcpcd/dhcpcd-7.0.8.tar.xz) only to
>>>> do some experiments, however I think that it's correct to migrate to the
>>>> new version.
>>>> >
>>>> > I modified the recipe to download version 7.0.8, but when it's
>>>> building it throws this error:
>>>> >
>>>> > ERROR: dhcpcd-7.0.8-r0 do_configure: configure failed
>>>> > ERROR: dhcpcd-7.0.8-r0 do_configure: Function failed: do_configure
>>>> (log file is located at
>>>> /home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/temp/log.do_configure.90966)
>>>> > ERROR: Logfile of failure stored in:
>>>> /home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/temp/log.do_configure.90966
>>>> > Log data follows:
>>>> > | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common',
>>>> 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi',
>>>> 'common']
>>>> > | DEBUG: Executing shell function autotools_preconfigure
>>>> > | DEBUG: Shell function autotools_preconfigure finished
>>>> > | DEBUG: Executing python function autotools_aclocals
>>>> > | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common',
>>>> 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi',
>>>> 'common']
>>>> > | DEBUG: Python function autotools_aclocals finished
>>>> > | DEBUG: Executing shell function do_configure
>>>> > | NOTE: Running ./configure  --build=x86_64-linux
>>>> --host=arm-poky-linux-gnueabi    --target=arm-poky-linux-gnueabi
>>>> --prefix=/usr    --exec_prefix=/usr    --bindir=/usr/bin
>>>> --sbindir=/usr/sbin    --libexecdir=/usr/libexec    --datadir=/usr/share
>>>> --sysconfdir=/etc    --sharedstatedir=/com    --localstatedir=/var
>>>> --libdir=/usr/lib    --includedir=/usr/include
>>>> --oldincludedir=/usr/include    --infodir=/usr/share/info
>>>> --mandir=/usr/share/man    --disable-silent-rules
>>>> --disable-dependency-tracking
>>>> --with-libtool-sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
>>>> --enable-ipv4 --disable-static  --enable-ipv6 --with-udev
>>>> > | configure args: --build=x86_64-linux --host=arm-poky-linux-gnueabi
>>>> --target=arm-poky-linux-gnueabi --prefix=/usr --exec_prefix=/usr
>>>> --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec
>>>> --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com
>>>> --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include
>>>> --oldincludedir=/usr/include --infodir=/usr/share/info
>>>> --mandir=/usr/share/man --disable-silent-rules
>>>> --disable-dependency-tracking
>>>> --with-libtool-sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
>>>> --enable-ipv4 --disable-static --enable-ipv6 --with-udev
>>>> > | ./configure: WARNING: unknown option --exec_prefix
>>>> > | ./configure: WARNING: unknown option --sharedstatedir
>>>> > | ./configure: WARNING: unknown option --oldincludedir
>>>> > | ./configure: WARNING: unknown option --with-libtool-sysroot
>>>> > | ./configure: WARNING: unknown option --with-udev
>>>> > | Deriving operating system from ... arm-poky-linux-gnueabi
>>>> > | Configuring dhcpcd for ... linux
>>>> > | Enabling INET support
>>>> > | Enabling ARP support
>>>> > | Enabling ARPing support
>>>> > | Enabling IPv4LL support
>>>> > | Enabling INET6 support
>>>> > | Enabling DHCPv6 support
>>>> > | Enabling Authentication
>>>> > | Using compiler .. arm-poky-linux-gnueabi-gcc  -march=armv7ve
>>>> -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7
>>>>  --sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
>>>> > | arm-poky-linux-gnueabi-gcc  -march=armv7ve -mthumb -mfpu=neon
>>>> -mfloat-abi=hard -mcpu=cortex-a7
>>>>  --sysroot=/home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/recipe-sysroot
>>>> does not create executables
>>>> > | NOTE: The following config.log files may provide further
>>>> information.
>>>> > | NOTE:
>>>> /home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/dhcpcd-7.0.8/config.log
>>>> > | ERROR: configure failed
>>>> > | WARNING: exit code 1 from a shell command.
>>>> > | ERROR: Function failed: do_configure (log file is located at
>>>> /home/ks89/git/poky/build/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dhcpcd/7.0.8-r0/temp/log.do_configure.90966)
>>>> >
>>>> > Also, the content of "config.log" is :
>>>> >        cc1: error: include location "/usr/include" is unsafe for
>>>> cross-compilation [-Werror=poison-system-directories]
>>>> >        cc1: all warnings being treated as errors
>>>> >
>>>> > I compared configure files of versions 6.11.5 and 7.0.8 and they are
>>>> quite similar with some additions, in particular "-I|--includedir)
>>>> INCLUDEDIR="$INCLUDEDIR${INCLUDEDIR:+ }-I$var";;".
>>>> >
>>>> > In not an expert of autotools and so on, so I don't know how to fix
>>>> this.
>>>> > Do you have suggestions?
>>>>
>>>> The error suggests that its poking into build host for headers, so you
>>>> need
>>>> to look into that usually this means it has hardcoded paths for
>>>> headers pointing to /usr/include, or it does not respect sysroot
>>>> option that compiler is passing.
>>>>
>>>> >
>>>> > I added also Khem Raj, but I'm not sure if it's the maintainer of
>>>> dhcpcd recipe.
>>>> >
>>>> > Thank u.
>>>>
>>>

[-- Attachment #2: Type: text/html, Size: 7930 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-01-13 11:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-08 23:47 Cannot update dhcpcd receipe from v6.11.5 to v7.x.x Stefano Cappa
2019-01-09  2:40 ` Khem Raj
2019-01-09 23:12   ` Stefano Cappa
2019-01-13  2:00     ` Stefano Cappa
2019-01-13  2:33       ` Khem Raj
2019-01-13 11:52         ` Stefano Cappa

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.