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 2020/03/16 09:32:21 UTC

[GitHub] [incubator-nuttx-apps] xiaoxiang781216 opened a new pull request #123: Fix parallel build

xiaoxiang781216 opened a new pull request #123: Fix parallel build
URL: https://github.com/apache/incubator-nuttx-apps/pull/123
 
 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx-apps] masayuki2009 commented on a change in pull request #123: Fix parallel build

Posted by GitBox <gi...@apache.org>.
masayuki2009 commented on a change in pull request #123: Fix parallel build
URL: https://github.com/apache/incubator-nuttx-apps/pull/123#discussion_r393612137
 
 

 ##########
 File path: examples/elf/tests/Makefile
 ##########
 @@ -100,19 +100,10 @@ ifneq ($(CONFIG_EXAMPLES_ELF_NOSTRIP),y)
 endif
 endif
 
-# Create the file system image directory
-
-$(FSIMG_DIR):
-	$(Q) mkdir $(FSIMG_DIR)
-
-# Populate the file system image directory
-
-populate:  $(FSIMG_DIR) build install
 
 Review comment:
   @xiaoxiang781216 I tried the new PR, but it failed.
   
   ```
   riscv64-unknown-elf-ld: task.o: file not recognized: file truncated                                                                                                                                    
   Makefile:82: recipe for target 'task' failed                                                                                                                                                           
   make[4]: *** [task] Error 1                                                                                                                                                                            
   make[4]: Leaving directory '/mnt/m2ssd/opensource/github_xiang/apps/examples/elf/tests/task'                                                                                                           
   Makefile:88: recipe for target 'task_install' failed                                                                                                                                                   
   make[3]: *** [task_install] Error 2                                                                                                                                                                    
   make[3]: Leaving directory '/mnt/m2ssd/opensource/github_xiang/apps/examples/elf/tests'                                                                                                                
   Makefile:57: recipe for target 'tests/symtab.c' failed                                              
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on issue #123: Fix parallel build

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on issue #123: Fix parallel build
URL: https://github.com/apache/incubator-nuttx-apps/pull/123#issuecomment-599969982
 
 
   > Hi, @xiaoxiang781216
   > 
   > > @masayuki2009 how about the new change?
   > 
   > So far, parallel build aging test for maix-bit:posix_spawn has no problem (FYI, there were no build errors for maix-bit:posix_spawn before applying the commit with my machine).
   > 
   > However, maix-bit:elf still has build errors, because the commit does not affect examples/elf.
   
   But the 2nd patch modify examples/elf/Makefile:
   ![image](https://user-images.githubusercontent.com/18066964/76842454-449fb100-6875-11ea-91f0-47fdaf7d0dc0.png)
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx-apps] masayuki2009 commented on issue #123: Fix parallel build

Posted by GitBox <gi...@apache.org>.
masayuki2009 commented on issue #123: Fix parallel build
URL: https://github.com/apache/incubator-nuttx-apps/pull/123#issuecomment-599974312
 
 
   @xiaoxiang781216 
   
   > But the 2nd patch modify examples/elf/Makefile:
   
   Sorry, I misunderstood. You are right.
   
   > Do you cherry-pick the first two patch in PR?
   
   I checked out your repository with the branch and confirmed the all commit ids are correct.
   However, there still have errors for maixbit:elf 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx-apps] masayuki2009 commented on issue #123: Fix parallel build

Posted by GitBox <gi...@apache.org>.
masayuki2009 commented on issue #123: Fix parallel build
URL: https://github.com/apache/incubator-nuttx-apps/pull/123#issuecomment-599968296
 
 
   Hi, @xiaoxiang781216 
   
   > @masayuki2009 how about the new change?
   
   So far, parallel build aging test for maix-bit:posix_spawn has no problem (FYI, there were no build errors for maix-bit:posix_spawn before applying the commit with my machine). 
   
   However, maix-bit:elf still has build errors, because the commit does not affect examples/elf. 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx-apps] xiaoxiang781216 edited a comment on issue #123: Fix parallel build

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 edited a comment on issue #123: Fix parallel build
URL: https://github.com/apache/incubator-nuttx-apps/pull/123#issuecomment-599969982
 
 
   > Hi, @xiaoxiang781216
   > 
   > > @masayuki2009 how about the new change?
   > 
   > So far, parallel build aging test for maix-bit:posix_spawn has no problem (FYI, there were no build errors for maix-bit:posix_spawn before applying the commit with my machine).
   > 
   > However, maix-bit:elf still has build errors, because the commit does not affect examples/elf.
   
   But the 2nd patch modify examples/elf/Makefile:
   ![image](https://user-images.githubusercontent.com/18066964/76842454-449fb100-6875-11ea-91f0-47fdaf7d0dc0.png)
   Do you cherry-pick the first two patch in PR?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx-apps] masayuki2009 commented on issue #123: Fix parallel build

Posted by GitBox <gi...@apache.org>.
masayuki2009 commented on issue #123: Fix parallel build
URL: https://github.com/apache/incubator-nuttx-apps/pull/123#issuecomment-599985048
 
 
   @xiaoxiang781216 
   
   > Is it g_elf_exports not found? or something else?
   
   ```
   riscv64-unknown-elf-ld: pthread.o: file not recognized: file truncated                                                                                                     
   Makefile:82: recipe for target 'pthread' failed                                                                                                                            
   make[4]: *** [pthread] Error 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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx-apps] masayuki2009 commented on issue #123: Fix parallel build

Posted by GitBox <gi...@apache.org>.
masayuki2009 commented on issue #123: Fix parallel build
URL: https://github.com/apache/incubator-nuttx-apps/pull/123#issuecomment-599805000
 
 
   @xiaoxiang781216 Also, sometimes following error occurred which is the same as I commented in https://github.com/apache/incubator-nuttx-apps/pull/118#discussion_r392831232
   
   ```
   riscv64-unknown-elf-ld: task.o: file not recognized: file truncated                                                                                                                     
   Makefile:82: recipe for target 'task' failed                                                                                                                                            
   make[4]: *** [task] Error 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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx-apps] masayuki2009 commented on issue #123: Fix parallel build

Posted by GitBox <gi...@apache.org>.
masayuki2009 commented on issue #123: Fix parallel build
URL: https://github.com/apache/incubator-nuttx-apps/pull/123#issuecomment-599992435
 
 
   @xiaoxiang781216 
   
   And another error occurred.
   
   ```
   install task /mnt/m2ssd/opensource/github_xiang/apps/examples/elf/tests/romfs/task                                                                                         
   install: cannot create regular file '/mnt/m2ssd/opensource/github_xiang/apps/examples/elf/tests/romfs/task': File exists                                                   
   Makefile:90: recipe for target 'install' failed                                                                                                                            
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on issue #123: Fix parallel build

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on issue #123: Fix parallel build
URL: https://github.com/apache/incubator-nuttx-apps/pull/123#issuecomment-599936644
 
 
   @masayuki2009 how about the new change?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on issue #123: Fix parallel build

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on issue #123: Fix parallel build
URL: https://github.com/apache/incubator-nuttx-apps/pull/123#issuecomment-599975991
 
 
   > @xiaoxiang781216
   > 
   > > But the 2nd patch modify examples/elf/Makefile:
   > 
   > Sorry, I misunderstood. You are right.
   > 
   > > Do you cherry-pick the first two patch in PR?
   > 
   > I checked out your repository with the branch and confirmed the all commit ids are correct.
   > However, there still have errors for maixbit:elf
   
   Is it g_elf_exports not found? or something else?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx-apps] xiaoxiang781216 closed pull request #123: Fix parallel build

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 closed pull request #123: Fix parallel build
URL: https://github.com/apache/incubator-nuttx-apps/pull/123
 
 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx-apps] masayuki2009 commented on issue #123: Fix parallel build

Posted by GitBox <gi...@apache.org>.
masayuki2009 commented on issue #123: Fix parallel build
URL: https://github.com/apache/incubator-nuttx-apps/pull/123#issuecomment-599801635
 
 
   @xiaoxiang781216 I did parallel build aging test (from -j1 to -j24) for maix-bit:elf with this PR, but it failed.
   
   ```
   lf_main.c: In function 'elf_main':                                                                                                                                                     
   elf_main.c:270:41: error: 'romfs_img' undeclared (first use in this function)                                                                                                           
                             (FAR uint8_t *)romfs_img,                                                                                                                                     
                                            ^~~~~~~~~                                                                                                                                      
   elf_main.c:270:41: note: each undeclared identifier is reported only once for each function it appears in                                                                               
   elf_main.c:271:35: error: 'romfs_img_len' undeclared (first use in this function)                                                                                                       
                             NSECTORS(romfs_img_len), SECTORSIZE);                                                                                                                         
                                      ^~~~~~~~~~~~~                                                                                                                                        
   elf_main.c:94:27: note: in definition of macro 'NSECTORS'                                                                                                                               
    #  define NSECTORS(b)  (((b) + SECTORSIZE - 1) / SECTORSIZE)          
   ```
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on a change in pull request #123: Fix parallel build

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on a change in pull request #123: Fix parallel build
URL: https://github.com/apache/incubator-nuttx-apps/pull/123#discussion_r393581072
 
 

 ##########
 File path: examples/elf/tests/Makefile
 ##########
 @@ -100,19 +100,10 @@ ifneq ($(CONFIG_EXAMPLES_ELF_NOSTRIP),y)
 endif
 endif
 
-# Create the file system image directory
-
-$(FSIMG_DIR):
-	$(Q) mkdir $(FSIMG_DIR)
-
-# Populate the file system image directory
-
-populate:  $(FSIMG_DIR) build install
 
 Review comment:
   @masayuki2009 I think I found the root cause why object files get truncated:
   The populate target above trigger build and install run parallelly, and then gcc may compile the same source file twice concurrently.
   Please try my new PR, which modify three similar examples(elf/posix_spwan/sotest).

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services