You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nuttx.apache.org by fft <ff...@feedforward.com.cn> on 2022/02/02 07:36:08 UTC

enable the excute of install_tools in cibuild.sh

Hi team's
I'm try to add sparc to the daily ci,I add code to tools/ci/cibuild.sh and&nbsp; tools/ci/testlist/other.dat,but when i start&nbsp; pull requests,there's ci check error,beacuse "install_tools" function was not executed,what resulte the build of xx3803:nsh can't find sparc-gaisler-elf-gcc,to solve this problem,i change ./cibuild.sh -A -c testlist/${{matrix.boards}}.dat to ./cibuild.sh -A -c -i testlist/${{matrix.boards}}.dat in build.yml, but the excute of

function install_tools {
&nbsp; pushd .
&nbsp; for func in ${install}; do
&nbsp;&nbsp;&nbsp; ${func}
&nbsp; done
&nbsp; popd

&nbsp; echo PATH="${EXTRA_PATH}"/"${PATH}" &gt; "${prebuilt}"/env.sh
}
has other error when install kconfig-frontends

https://github.com/apache/incubator-nuttx/runs/5032993342?check_suite_focus=true

how solve this problem?
Best regards,
Zou

Re: enable the excute of install_tools in cibuild.sh

Posted by fft <ff...@feedforward.com.cn>.
Hi Ashton
there's new error when run Dockerfile,do you know why?
thanks!


#31 [nuttx-toolchain-sparc 1/1] RUN mkdir sparc-gaisler-elf-gcc &amp;&amp;&nbsp;&nbsp; curl -L "https://www.gaisler.com/anonftp/bcc2/bin/bcc-2.1.0-gcc-linux64.tar.xz"&nbsp;&nbsp; | tar -C sparc-gaisler-elf-gcc --strip-components 1 -xvJf
#31 sha256:9c56a185adad62b5689e15e6d9b614d798c756d34ec8c0441d63750ea8096125
#31 0.406 tar: option requires an argument -- 'f'
#31 0.406 Try 'tar --help' or 'tar --usage' for more information.
#31 0.415&nbsp;&nbsp; % Total&nbsp;&nbsp;&nbsp; % Received % Xferd&nbsp; Average Speed&nbsp;&nbsp; Time&nbsp;&nbsp;&nbsp; Time&nbsp;&nbsp;&nbsp;&nbsp; Time&nbsp; Current
#31 0.417&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dload&nbsp; Upload&nbsp;&nbsp; Total&nbsp;&nbsp; Spent&nbsp;&nbsp;&nbsp; Left&nbsp; Speed
#31 0.418 
&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 --:--:-- --:--:-- --:--:--&nbsp;&nbsp;&nbsp;&nbsp; 0
&nbsp; 0&nbsp; 249M&nbsp;&nbsp;&nbsp; 0&nbsp; 7969&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp; 11351&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp; 6:24:32 --:--:--&nbsp; 6:24:32 11368
#31 1.119 curl: (23) Failed writing body (0 != 7969)
#31 ERROR: executor failed running [/bin/sh -c mkdir sparc-gaisler-elf-gcc &amp;&amp;&nbsp;&nbsp; curl -L "https://www.gaisler.com/anonftp/bcc2/bin/bcc-2.1.0-gcc-linux64.tar.xz"&nbsp;&nbsp; | tar -C sparc-gaisler-elf-gcc --strip-components 1 -xvJf]: exit code: 64
&nbsp;
------------------&nbsp;Original&nbsp;------------------
From: &nbsp;"Brennan&nbsp;Ashton"<bashton@brennanashton.com&gt;;
Date: &nbsp;Wed, Feb 2, 2022 04:44 PM
To: &nbsp;"dev"<dev@nuttx.apache.org&gt;; 

Subject: &nbsp;Re: enable the excute of install_tools in cibuild.sh

&nbsp;

We do not run install_tools in the Linux builds and instead pre install
them in the docker image I linked. This provides a stable environment to
then run the test builds against and also substantially reduces the build
time.

To make changes to the image the changes will have to first merge to master
so the container can be built and uploaded.

On Wed, Feb 2, 2022, 12:40 AM fft <fft@feedforward.com.cn&gt; wrote:

&gt; The "install_tools" function in tools/ci/cibuild.sh should be excuted
&gt; firstly to install sparc-gcc-toolchain,isn't it? but there's some error
&gt; when excute "install_tools" function
&gt; &amp;nbsp;
&gt; ------------------&amp;nbsp;Original&amp;nbsp;------------------
&gt; From: &amp;nbsp;"Brennan&amp;nbsp;Ashton"<bashton@brennanashton.com&amp;gt;;
&gt; Date: &amp;nbsp;Wed, Feb 2, 2022 04:17 PM
&gt; To: &amp;nbsp;"dev"<dev@nuttx.apache.org&amp;gt;;
&gt;
&gt; Subject: &amp;nbsp;Re: enable the excute of install_tools in cibuild.sh
&gt;
&gt; &amp;nbsp;
&gt;
&gt; The ci uses the docker container. You will want to submit a PR updating
&gt; that and have that merge first.
&gt;
&gt;
&gt; https://github.com/apache/incubator-nuttx/blob/master/tools/ci/docker/linux/Dockerfile
&gt;
&gt;
&gt; On Tue, Feb 1, 2022, 11:37 PM fft <fft@feedforward.com.cn&amp;gt; wrote:
&gt;
&gt; &amp;gt; Hi team's
&gt; &amp;gt; I'm try to add sparc to the daily ci,I add code to tools/ci/cibuild.sh
&gt; &amp;gt; and&amp;amp;nbsp; tools/ci/testlist/other.dat,but when i start&amp;amp;nbsp;
&gt; pull
&gt; &amp;gt; requests,there's ci check error,beacuse "install_tools" function was
&gt; not
&gt; &amp;gt; executed,what resulte the build of xx3803:nsh can't find
&gt; &amp;gt; sparc-gaisler-elf-gcc,to solve this problem,i change ./cibuild.sh -A
&gt; -c
&gt; &amp;gt; testlist/${{matrix.boards}}.dat to ./cibuild.sh -A -c -i
&gt; &amp;gt; testlist/${{matrix.boards}}.dat in build.yml, but the excute of
&gt; &amp;gt;
&gt; &amp;gt; function install_tools {
&gt; &amp;gt; &amp;amp;nbsp; pushd .
&gt; &amp;gt; &amp;amp;nbsp; for func in ${install}; do
&gt; &amp;gt; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; ${func}
&gt; &amp;gt; &amp;amp;nbsp; done
&gt; &amp;gt; &amp;amp;nbsp; popd
&gt; &amp;gt;
&gt; &amp;gt; &amp;amp;nbsp; echo PATH="${EXTRA_PATH}"/"${PATH}" &amp;amp;gt;
&gt; "${prebuilt}"/env.sh
&gt; &amp;gt; }
&gt; &amp;gt; has other error when install kconfig-frontends
&gt; &amp;gt;
&gt; &amp;gt;
&gt; &amp;gt;
&gt; https://github.com/apache/incubator-nuttx/runs/5032993342?check_suite_focus=true
&gt; &amp;gt
&gt; <https://github.com/apache/incubator-nuttx/runs/5032993342?check_suite_focus=true&amp;gt&gt;
&gt; ;
&gt; &amp;gt; how solve this problem?
&gt; &amp;gt; Best regards,
&gt; &amp;gt; Zou

Re: enable the excute of install_tools in cibuild.sh

Posted by Brennan Ashton <ba...@brennanashton.com>.
We do not run install_tools in the Linux builds and instead pre install
them in the docker image I linked. This provides a stable environment to
then run the test builds against and also substantially reduces the build
time.

To make changes to the image the changes will have to first merge to master
so the container can be built and uploaded.

On Wed, Feb 2, 2022, 12:40 AM fft <ff...@feedforward.com.cn> wrote:

> The "install_tools" function in tools/ci/cibuild.sh should be excuted
> firstly to install sparc-gcc-toolchain,isn't it? but there's some error
> when excute "install_tools" function
> &nbsp;
> ------------------&nbsp;Original&nbsp;------------------
> From: &nbsp;"Brennan&nbsp;Ashton"<bashton@brennanashton.com&gt;;
> Date: &nbsp;Wed, Feb 2, 2022 04:17 PM
> To: &nbsp;"dev"<dev@nuttx.apache.org&gt;;
>
> Subject: &nbsp;Re: enable the excute of install_tools in cibuild.sh
>
> &nbsp;
>
> The ci uses the docker container. You will want to submit a PR updating
> that and have that merge first.
>
>
> https://github.com/apache/incubator-nuttx/blob/master/tools/ci/docker/linux/Dockerfile
>
>
> On Tue, Feb 1, 2022, 11:37 PM fft <fft@feedforward.com.cn&gt; wrote:
>
> &gt; Hi team's
> &gt; I'm try to add sparc to the daily ci,I add code to tools/ci/cibuild.sh
> &gt; and&amp;nbsp; tools/ci/testlist/other.dat,but when i start&amp;nbsp;
> pull
> &gt; requests,there's ci check error,beacuse "install_tools" function was
> not
> &gt; executed,what resulte the build of xx3803:nsh can't find
> &gt; sparc-gaisler-elf-gcc,to solve this problem,i change ./cibuild.sh -A
> -c
> &gt; testlist/${{matrix.boards}}.dat to ./cibuild.sh -A -c -i
> &gt; testlist/${{matrix.boards}}.dat in build.yml, but the excute of
> &gt;
> &gt; function install_tools {
> &gt; &amp;nbsp; pushd .
> &gt; &amp;nbsp; for func in ${install}; do
> &gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; ${func}
> &gt; &amp;nbsp; done
> &gt; &amp;nbsp; popd
> &gt;
> &gt; &amp;nbsp; echo PATH="${EXTRA_PATH}"/"${PATH}" &amp;gt;
> "${prebuilt}"/env.sh
> &gt; }
> &gt; has other error when install kconfig-frontends
> &gt;
> &gt;
> &gt;
> https://github.com/apache/incubator-nuttx/runs/5032993342?check_suite_focus=true
> &gt
> <https://github.com/apache/incubator-nuttx/runs/5032993342?check_suite_focus=true&gt>
> ;
> &gt; how solve this problem?
> &gt; Best regards,
> &gt; Zou

Re: enable the excute of install_tools in cibuild.sh

Posted by fft <ff...@feedforward.com.cn>.
The "install_tools" function in tools/ci/cibuild.sh should be excuted firstly to install sparc-gcc-toolchain,isn't it? but there's some error when excute "install_tools" function
&nbsp;
------------------&nbsp;Original&nbsp;------------------
From: &nbsp;"Brennan&nbsp;Ashton"<bashton@brennanashton.com&gt;;
Date: &nbsp;Wed, Feb 2, 2022 04:17 PM
To: &nbsp;"dev"<dev@nuttx.apache.org&gt;; 

Subject: &nbsp;Re: enable the excute of install_tools in cibuild.sh

&nbsp;

The ci uses the docker container. You will want to submit a PR updating
that and have that merge first.

https://github.com/apache/incubator-nuttx/blob/master/tools/ci/docker/linux/Dockerfile


On Tue, Feb 1, 2022, 11:37 PM fft <fft@feedforward.com.cn&gt; wrote:

&gt; Hi team's
&gt; I'm try to add sparc to the daily ci,I add code to tools/ci/cibuild.sh
&gt; and&amp;nbsp; tools/ci/testlist/other.dat,but when i start&amp;nbsp; pull
&gt; requests,there's ci check error,beacuse "install_tools" function was not
&gt; executed,what resulte the build of xx3803:nsh can't find
&gt; sparc-gaisler-elf-gcc,to solve this problem,i change ./cibuild.sh -A -c
&gt; testlist/${{matrix.boards}}.dat to ./cibuild.sh -A -c -i
&gt; testlist/${{matrix.boards}}.dat in build.yml, but the excute of
&gt;
&gt; function install_tools {
&gt; &amp;nbsp; pushd .
&gt; &amp;nbsp; for func in ${install}; do
&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; ${func}
&gt; &amp;nbsp; done
&gt; &amp;nbsp; popd
&gt;
&gt; &amp;nbsp; echo PATH="${EXTRA_PATH}"/"${PATH}" &amp;gt; "${prebuilt}"/env.sh
&gt; }
&gt; has other error when install kconfig-frontends
&gt;
&gt;
&gt; https://github.com/apache/incubator-nuttx/runs/5032993342?check_suite_focus=true
&gt;
&gt; how solve this problem?
&gt; Best regards,
&gt; Zou

Re: enable the excute of install_tools in cibuild.sh

Posted by Brennan Ashton <ba...@brennanashton.com>.
The ci uses the docker container. You will want to submit a PR updating
that and have that merge first.

https://github.com/apache/incubator-nuttx/blob/master/tools/ci/docker/linux/Dockerfile


On Tue, Feb 1, 2022, 11:37 PM fft <ff...@feedforward.com.cn> wrote:

> Hi team's
> I'm try to add sparc to the daily ci,I add code to tools/ci/cibuild.sh
> and&nbsp; tools/ci/testlist/other.dat,but when i start&nbsp; pull
> requests,there's ci check error,beacuse "install_tools" function was not
> executed,what resulte the build of xx3803:nsh can't find
> sparc-gaisler-elf-gcc,to solve this problem,i change ./cibuild.sh -A -c
> testlist/${{matrix.boards}}.dat to ./cibuild.sh -A -c -i
> testlist/${{matrix.boards}}.dat in build.yml, but the excute of
>
> function install_tools {
> &nbsp; pushd .
> &nbsp; for func in ${install}; do
> &nbsp;&nbsp;&nbsp; ${func}
> &nbsp; done
> &nbsp; popd
>
> &nbsp; echo PATH="${EXTRA_PATH}"/"${PATH}" &gt; "${prebuilt}"/env.sh
> }
> has other error when install kconfig-frontends
>
>
> https://github.com/apache/incubator-nuttx/runs/5032993342?check_suite_focus=true
>
> how solve this problem?
> Best regards,
> Zou