[ell-i-developers] Re: Ellduino Emulator: Fixing issues for Linux (Ubuntu 12.04 LTS)

  • From: Pekka Nikander <pekka.nikander@xxxxxx>
  • To: ell-i-developers@xxxxxxxxxxxxx
  • Date: Tue, 4 Mar 2014 21:39:04 +0200

> Hi all, when running make in tests directory, the linker got lost again 
> because the path was at a deeper level... Now it is corrected (after Pekka 
> accepts my pull request)!

Thanks, merged.

> All in all tests went well, system didn't like _exit(0) so I just commented 
> it away... 

What do you mean it "didn't like"?  Didn't compile?  Crashed?  If crashed, what 
does gdb say?

  $ gdb binary
  run
  where

> ./test_SPI_begin: NOK, got errors
> test_SPI_begin.o: In function `SPIClass::begin(unsigned char) const':
> /home/eero/sw-engineering/sulautetut/eeronomarepo/Runtime/stm32/tests/../libraries/SPI/./SPIClass.h:83:
>  undefined reference to `spi_master_begin'
> test_SPI_begin.o:(.rodata._ZL5SPI_2+0x4): undefined reference to `spimap2'
> test_SPI_begin.o:(.rodata._ZL3SPI+0x4): undefined reference to `spimap1'
> collect2: error: ld returned 1 exit status
> make[1]: *** [test_SPI_begin] Error 1
> make: *** [test_SPI_begin] Error 2

I think Ivan saw this also when compile for the real board.  I think he has 
fixed it in his copy, but just haven't been able to produce a pull request yet.

--Pekka


Other related posts: