From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31CC6C05027 for ; Thu, 2 Feb 2023 18:07:00 +0000 (UTC) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by mx.groups.io with SMTP id smtpd.web11.87.1675361214112014553 for ; Thu, 02 Feb 2023 10:06:54 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=mxwKwhQh; spf=pass (domain: bootlin.com, ip: 217.70.183.201, mailfrom: michael.opdenacker@bootlin.com) Received: (Authenticated sender: michael.opdenacker@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id C02FE1BF203; Thu, 2 Feb 2023 18:06:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1675361212; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IvwWkYY1bHDxEYMWk3kmg7D23OhP45PKY1gzouFeNuA=; b=mxwKwhQhEcHMfVEx6fbQ0mOUYDJgblsbJMXt3k/5ZSoCR0A4efaSLKk9MFUtbaDorTf0fS p0dRZU+1Yp0sVTBcvQ04qCGJ/68wK48w/SdoFD4gAxxbNAb6jP3WfS9g5k66sEul0hZ836 wEGfCMkoxYoupjZEDWO522v2grd/SEhsd7/LBeZNbSiCdo5P2t2Np18tM4/Wl8n/cu8y52 jywETyn2HPv+C9G/iWV9dyoQpuWNyay2EBKANsqbZcyyyBbjrgdfYLqbTX0wGAIWjGTZ5+ ADSoj+fFWOgCixSjwlZq+HQmyeREyWUQ85UqyHJEPJ+04FBR3yOnLrzeZceiIQ== Message-ID: Date: Thu, 2 Feb 2023 19:06:51 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: docs@lists.yoctoproject.org, Alexander Kanavin Subject: Re: [docs] [PATCH] ref-manual: document Rust classes Content-Language: en-US To: Alex Kiernan References: <20230113180932.1507356-1-michael.opdenacker@bootlin.com> From: Michael Opdenacker Organization: Bootlin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 02 Feb 2023 18:07:00 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/3631 Hi Alex, I tried the example you gave to use the "cargo-update-recipe-crates" class. On 15.01.23 at 21:03, Alex Kiernan wrote: > We should reference `cargo-update-recipe-crates` here rather than > `cargo bitbake`. The flow for creating a recipe then goes something > like (using hippotat as an example > https://www.chiark.greenend.org.uk/~ianmdlvl/hippotat/current/docs/): > > devtool add -S a6ac94b4922602af64f22b86ba5347ad95fcda44 -V 1.1.7 > hippotat https://salsa.debian.org/iwj/hippotat.git > # edit resulting recipe delete boiler plate tasks and add `inherit > cargo cargo-update-recipe-crates` > bitbake -c update_crates hippotat > # edit recipe to add `require ${BPN}-crates.inc` > devtool build hippotat > # fix resulting errors (add `DEPENDS += "openssl"`, `inherit > pkgconfig` in this case) > devtool build hippotat I did just that, but "devtool build hippotat" failed: <<< NOTE: hippotat: compiling from external source tree /home/mike/work/yocto/poky/build/workspace/sources/hippotat ERROR: hippotat-1.1.7+git999-r0 do_compile: oe_runmake failed ERROR: hippotat-1.1.7+git999-r0 do_compile: ExecutionError('/home/mike/work/yocto/poky/build/tmp/work/core2-64-poky-linux/hippotat/1.1.7+git999-r0/temp/run.do_compile.14532', 1, None, None) ERROR: Logfile of failure stored in: /home/mike/work/yocto/poky/build/tmp/work/core2-64-poky-linux/hippotat/1.1.7+git999-r0/temp/log.do_compile.14532 Log data follows: | DEBUG: Executing python function externalsrc_compile_prefunc | NOTE: hippotat: compiling from external source tree /home/mike/work/yocto/poky/build/workspace/sources/hippotat | DEBUG: Python function externalsrc_compile_prefunc finished | DEBUG: Executing shell function do_compile | NOTE: make -j 20 | cargo build --release  --workspace | rm -rf docs/html | sphinx-build -M html docs docs | /bin/bash: line 1: sphinx-build: command not found | make: *** [Makefile:68: docs/html/index.html] Error 127 | make: *** Waiting for unfinished jobs.... |     Updating crates.io index | warning: spurious network error (2 tries remaining): failed to resolve address for github.com: Name or service not known; class=Net (12) | warning: spurious network error (1 tries remaining): failed to resolve address for github.com: Name or service not known; class=Net (12) | error: Unable to update registry `crates-io` | | Caused by: |   failed to fetch `https://github.com/rust-lang/crates.io-index` | | Caused by: |   network failure seems to have happened |   if a proxy or similar is necessary `net.git-fetch-with-cli` may help here | https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli | | Caused by: |   failed to resolve address for github.com: Name or service not known; class=Net (12) | make: *** [Makefile:52: stamp/cargo-build] Error 101 | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command. ERROR: Task (/home/mike/work/yocto/poky/build/workspace/recipes/hippotat/hippotat_git.bb:do_compile) failed with exit code '1' NOTE: Tasks Summary: Attempted 739 tasks of which 731 didn't need to be rerun and 1 failed. Summary: 1 task failed: /home/mike/work/yocto/poky/build/workspace/recipes/hippotat/hippotat_git.bb:do_compile Summary: There was 1 WARNING message. Summary: There were 2 ERROR messages, returning a non-zero exit code. >>> I did try to add BB_NO_NETWORK = "0" to conf/local.conf but it didn't help. Any clues? Maybe we could use an example that's simpler to build and with fewer dependencies... Cheers Michael. -- Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com