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/10/24 23:33:13 UTC

[GitHub] [incubator-nuttx] btashton opened a new issue #2099: qemu-i486 build broken

btashton opened a new issue #2099:
URL: https://github.com/apache/incubator-nuttx/issues/2099


   The `qemu-i486:nsh` and `qemu-i486:ostest` configurations do not seem to build any more due to a linker error looking for `libm`
   
   ```
   CC:  qemu_boot.c
   CC:  qemu_appinit.c
   AR (create): libboard.a   qemu_boot.o qemu_appinit.o 
   make[2]: Leaving directory '/home/bashton/nuttx/apache/incubator-nuttx/boards/x86/qemu/qemu-i486/src'
   LD: nuttx.elf
   ld: cannot find -lm
   make[1]: *** [Makefile:135: nuttx.elf] Error 1
   make[1]: Leaving directory '/home/bashton/nuttx/apache/incubator-nuttx/arch/x86/src'
   make: *** [tools/Makefile.unix:415: nuttx.elf] Error 2
   ```


----------------------------------------------------------------
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



[GitHub] [incubator-nuttx] btashton commented on issue #2099: qemu-i486 build broken

Posted by GitBox <gi...@apache.org>.
btashton commented on issue #2099:
URL: https://github.com/apache/incubator-nuttx/issues/2099#issuecomment-716261678


   Ok looks like I was wrong here and it is intentional.  Including the `glibc-static.i686` fixes this, I did not even have the 64-bit version on my system, for the x86_64 port we have `LIBM=y` so this is not required.


----------------------------------------------------------------
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



[GitHub] [incubator-nuttx] masayuki2009 commented on issue #2099: qemu-i486 build broken

Posted by GitBox <gi...@apache.org>.
masayuki2009 commented on issue #2099:
URL: https://github.com/apache/incubator-nuttx/issues/2099#issuecomment-716123601


   @btashton 
   
   Oh really?
   I can build qemu-i486:nsh and qemu-i486:ostest on ubuntu18.04 x86_64.
   
   ```
   make V=1
   ...
   LD: nuttx.elf
   ld --entry=__start -m elf_i386 -T/mnt/m2ssd/opensource/RTOS/nuttx-releases/nuttx/boards/x86/qemu/qemu-i486/scripts/qemu.ld -static -L"/mnt/m2ssd/opensource/RTOS/nuttx-releases/nuttx/staging" -L"/mnt/m2ssd/opensource/RTOS/nuttx-releases/nuttx/arch/x86/src/board" -L "/usr/lib/gcc/x86_64-linux-gnu/7/32/" -L "/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib32/" \
   	-o "/mnt/m2ssd/opensource/RTOS/nuttx-releases/nuttx/nuttx.elf" qemu_head.o  \
   	--start-group -lsched -ldrivers -lboards -lc -lmm -larch -lapps -lfs -lbinfmt -lboard -lgcc -lm --end-group
   nm "/mnt/m2ssd/opensource/RTOS/nuttx-releases/nuttx/nuttx.elf" | \
   grep -v '\(compiled\)\|\(\.o$\)\|\( [aUw] \)\|\(\.\.ng$\)\|\(LASH[RL]DI\)' | \
   sort > /mnt/m2ssd/opensource/RTOS/nuttx-releases/nuttx/System.map
   make[1]: Leaving directory '/mnt/m2ssd/opensource/RTOS/nuttx-releases/nuttx/arch/x86/src'
   if [ -w /tftpboot ] ; then \
   	cp -f nuttx.elf /tftpboot/nuttx.elf.x86; \
   fi
   ```
   


----------------------------------------------------------------
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



[GitHub] [incubator-nuttx] btashton closed issue #2099: qemu-i486 build broken

Posted by GitBox <gi...@apache.org>.
btashton closed issue #2099:
URL: https://github.com/apache/incubator-nuttx/issues/2099


   


----------------------------------------------------------------
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



[GitHub] [incubator-nuttx] btashton commented on issue #2099: qemu-i486 build broken

Posted by GitBox <gi...@apache.org>.
btashton commented on issue #2099:
URL: https://github.com/apache/incubator-nuttx/issues/2099#issuecomment-716259447


   @masayuki2009 
   ```
   LD: nuttx.elf
   ld --entry=__start -m elf_i386 -g -T/home/bashton/nuttx/apache/incubator-nuttx/boards/x86/qemu/qemu-i486/scripts/qemu.ld -static -L"/home/bashton/nuttx/apache/incubator-nuttx/staging" -L"/home/bashton/nuttx/apache/incubator-nuttx/arch/x86/src/board" -L "/usr/lib/gcc/x86_64-redhat-linux/10/32/" -L "./" \
   	-o "/home/bashton/nuttx/apache/incubator-nuttx/nuttx.elf" qemu_head.o  \
   	--start-group -lsched -ldrivers -lboards -lc -lmm -larch -lapps -lfs -lbinfmt -lboard -lgcc -lm --end-group
   ld: cannot find -lm
   make[1]: *** [Makefile:135: nuttx.elf] Error 1
   make[1]: Leaving directory '/home/bashton/nuttx/apache/incubator-nuttx/arch/x86/src'
   make: *** [tools/Makefile.unix:415: nuttx.elf] Error 2
   ```
   Do we really want to be using the system math library here?  That seems wrong to me.


----------------------------------------------------------------
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



[GitHub] [incubator-nuttx] btashton commented on issue #2099: qemu-i486 build broken

Posted by GitBox <gi...@apache.org>.
btashton commented on issue #2099:
URL: https://github.com/apache/incubator-nuttx/issues/2099#issuecomment-716150668


   I'll try building it again with verbose logs, but it did not work correctly for me in either config. 


----------------------------------------------------------------
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