[yocto] Cannot update dhcpcd receipe from v6.11.5 to v7.x.x

Khem Raj raj.khem at gmail.com
Tue Jan 8 18:40:58 PST 2019


On Tue, Jan 8, 2019 at 3:48 PM Stefano Cappa
<stefano.cappa.ks89 at 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.


More information about the yocto mailing list