You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/02/02 05:25:16 UTC

[GitHub] [incubator-nuttx] zouboan opened a new pull request #5396: add sparc to the daily ci

zouboan opened a new pull request #5396:
URL: https://github.com/apache/incubator-nuttx/pull/5396


   ## Summary
   add sparc to the cibuild.sh
   ## Impact
   sparc architecture's daily ci
   ## Testing
   tested every command of function sparc-gcc-toolchain in cibuild.sh
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] Ouss4 commented on pull request #5396: add sparc to the daily ci

Posted by GitBox <gi...@apache.org>.
Ouss4 commented on pull request #5396:
URL: https://github.com/apache/incubator-nuttx/pull/5396#issuecomment-1028432829


   > @acassis thanks,it seems that i have to do two pull request: first: modify Dockerfile to install sparc toolchain in docker second: modify tools/ci/testlist/other.dat to enable sparc ci if i do these In one pull request,there's error in build xx3803:nsh can't find sparc-gaisler-elf-gcc,although sparc toolchain install success in Docker-Linux / push (pull_request) checks
   
   Yes, you have to do that.  The reason is that the CI only builds the docker image in a pull request.  The push triggers only when it's merged to master.
   So when the first PR is merged you can rebase the second one and it should pass.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] zouboan commented on a change in pull request #5396: add sparc to the daily ci

Posted by GitBox <gi...@apache.org>.
zouboan commented on a change in pull request #5396:
URL: https://github.com/apache/incubator-nuttx/pull/5396#discussion_r798065531



##########
File path: tools/ci/docker/linux/Dockerfile
##########
@@ -97,6 +97,15 @@ RUN mkdir riscv64-unknown-elf-gcc && \
   curl -s -L "https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-ubuntu14.tar.gz" \
   | tar -C riscv64-unknown-elf-gcc --strip-components 1 -xz
 
+###############################################################################
+# Build image for tool required by SPARC builds
+###############################################################################
+FROM nuttx-toolchain-base AS nuttx-toolchain-sparc
+# Download the SPARC GCC toolchain prebuilt by Gaisler
+RUN mkdir sparc-gaisler-elf-gcc && \
+  curl -L "https://www.gaisler.com/anonftp/bcc2/bin/bcc-2.1.0-gcc-linux64.tar.xz" \
+  | tar -C sparc-gaisler-elf-gcc --strip-components 1 -xvJf

Review comment:
       thanks,it indeed solved problem,but J must need




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] zouboan commented on pull request #5396: add sparc to the daily ci

Posted by GitBox <gi...@apache.org>.
zouboan commented on pull request #5396:
URL: https://github.com/apache/incubator-nuttx/pull/5396#issuecomment-1028107140


   @acassis Could be the permissions issue of docker?
   https://stackoverflow.com/questions/51044748/error-installing-docker-curl-23-failed-writing-body-0-13847
   
   I have no idea of how to solve it!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] zouboan commented on pull request #5396: add sparc to the daily ci

Posted by GitBox <gi...@apache.org>.
zouboan commented on pull request #5396:
URL: https://github.com/apache/incubator-nuttx/pull/5396#issuecomment-1027927082


   the exact error is curl: (23) Failed writing body (0 != 7969)
   &nbsp;
   &nbsp;
   ------------------&nbsp;Original&nbsp;------------------
   From: ***@***.***&gt;;
   Date: &nbsp;Wed, Feb 2, 2022 09:08 PM
   To: ***@***.***&gt;; 
   Cc: ***@***.***&gt;; ***@***.***&gt;; 
   Subject: &nbsp;Re: [apache/incubator-nuttx] add sparc to the daily ci (PR #5396)
   
   &nbsp;
   
   
   
    
   Hi @zouboan seems it is failing to download/extract the toolchain:
    &gt; [nuttx-toolchain-sparc 1/1] RUN mkdir sparc-gaisler-elf-gcc &amp;&amp;   curl -L "https://www.gaisler.com/anonftp/bcc2/bin/bcc-2.1.0-gcc-linux64.tar.xz"   | tar -C sparc-gaisler-elf-gcc --strip-components 1 -xvJf: ------ executor failed running [/bin/sh -c mkdir sparc-gaisler-elf-gcc &amp;&amp;   curl -L "https://www.gaisler.com/anonftp/bcc2/bin/bcc-2.1.0-gcc-linux64.tar.xz"   | tar -C sparc-gaisler-elf-gcc --strip-components 1 -xvJf]: exit code: 64 Error: Process completed with exit code 1.  
   —
   Reply to this email directly, view it on GitHub, or unsubscribe.
   Triage notifications on the go with GitHub Mobile for iOS or Android. 
   You are receiving this because you were mentioned.Message ID: ***@***.***&gt;


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] acassis commented on pull request #5396: add sparc to the daily ci

Posted by GitBox <gi...@apache.org>.
acassis commented on pull request #5396:
URL: https://github.com/apache/incubator-nuttx/pull/5396#issuecomment-1027923854


   Hi @zouboan seems it is failing to download/extract the toolchain:
   ```
   > [nuttx-toolchain-sparc 1/1] RUN mkdir sparc-gaisler-elf-gcc &&   curl -L "https://www.gaisler.com/anonftp/bcc2/bin/bcc-2.1.0-gcc-linux64.tar.xz"   | tar -C sparc-gaisler-elf-gcc --strip-components 1 -xvJf:
   ------
   executor failed running [/bin/sh -c mkdir sparc-gaisler-elf-gcc &&   curl -L "https://www.gaisler.com/anonftp/bcc2/bin/bcc-2.1.0-gcc-linux64.tar.xz"   | tar -C sparc-gaisler-elf-gcc --strip-components 1 -xvJf]: exit code: 64
   Error: Process completed with exit code 1.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] acassis commented on pull request #5396: add sparc to the daily ci

Posted by GitBox <gi...@apache.org>.
acassis commented on pull request #5396:
URL: https://github.com/apache/incubator-nuttx/pull/5396#issuecomment-1028147949


   > @acassis Could be the permissions issue of docker? https://stackoverflow.com/questions/51044748/error-installing-docker-curl-23-failed-writing-body-0-13847
   > 
   > I have no idea of how to solve it!
   
   Yes, could be. But it is strange because for other similar commands it is working. Did you try wget instead of curl ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] zouboan commented on pull request #5396: add sparc to the daily ci

Posted by GitBox <gi...@apache.org>.
zouboan commented on pull request #5396:
URL: https://github.com/apache/incubator-nuttx/pull/5396#issuecomment-1028424540


   @acassis thanks,it seems that i have to do two pull request:
   first: modify Dockerfile to install sparc toolchain in docker
   second: modify tools/ci/testlist/other.dat to enable sparc ci
   if i do these In one pull request,there's error in build xx3803:nsh can't find sparc-gaisler-elf-gcc,although sparc toolchain install success in Docker-Linux / push (pull_request)  checks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] Ouss4 commented on a change in pull request #5396: add sparc to the daily ci

Posted by GitBox <gi...@apache.org>.
Ouss4 commented on a change in pull request #5396:
URL: https://github.com/apache/incubator-nuttx/pull/5396#discussion_r797979772



##########
File path: tools/ci/docker/linux/Dockerfile
##########
@@ -97,6 +97,15 @@ RUN mkdir riscv64-unknown-elf-gcc && \
   curl -s -L "https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-ubuntu14.tar.gz" \
   | tar -C riscv64-unknown-elf-gcc --strip-components 1 -xz
 
+###############################################################################
+# Build image for tool required by SPARC builds
+###############################################################################
+FROM nuttx-toolchain-base AS nuttx-toolchain-sparc
+# Download the SPARC GCC toolchain prebuilt by Gaisler
+RUN mkdir sparc-gaisler-elf-gcc && \
+  curl -L "https://www.gaisler.com/anonftp/bcc2/bin/bcc-2.1.0-gcc-linux64.tar.xz" \
+  | tar -C sparc-gaisler-elf-gcc --strip-components 1 -xvJf

Review comment:
       Speaking of not needed, the manual says that `J` is not needed too.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] Ouss4 commented on a change in pull request #5396: add sparc to the daily ci

Posted by GitBox <gi...@apache.org>.
Ouss4 commented on a change in pull request #5396:
URL: https://github.com/apache/incubator-nuttx/pull/5396#discussion_r797977305



##########
File path: tools/ci/docker/linux/Dockerfile
##########
@@ -97,6 +97,15 @@ RUN mkdir riscv64-unknown-elf-gcc && \
   curl -s -L "https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-ubuntu14.tar.gz" \
   | tar -C riscv64-unknown-elf-gcc --strip-components 1 -xz
 
+###############################################################################
+# Build image for tool required by SPARC builds
+###############################################################################
+FROM nuttx-toolchain-base AS nuttx-toolchain-sparc
+# Download the SPARC GCC toolchain prebuilt by Gaisler
+RUN mkdir sparc-gaisler-elf-gcc && \
+  curl -L "https://www.gaisler.com/anonftp/bcc2/bin/bcc-2.1.0-gcc-linux64.tar.xz" \
+  | tar -C sparc-gaisler-elf-gcc --strip-components 1 -xvJf

Review comment:
       ```suggestion
     | tar -C sparc-gaisler-elf-gcc --strip-components 1 -xJ
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #5396: add sparc to the daily ci

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #5396:
URL: https://github.com/apache/incubator-nuttx/pull/5396


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] zouboan commented on pull request #5396: add sparc to the daily ci

Posted by GitBox <gi...@apache.org>.
zouboan commented on pull request #5396:
URL: https://github.com/apache/incubator-nuttx/pull/5396#issuecomment-1028436758


   @Ouss4 Ok,thank you for clearing up my doubts! 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org