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

  • From: Asif Sardar <engr.asif.sardar@xxxxxxxxxxxxxx>
  • To: ell-i-developers@xxxxxxxxxxxxx
  • Date: Tue, 4 Mar 2014 22:20:46 +0200

The same problem occured for me for _exit(0), but removing _ made it
compiled for me. Moreover, it didn't complained for me for the linker ...
in my local copy. I will check it also with fresh clone from git repository
again ...
On Mar 5, 2014 12:39 AM, "Pekka Nikander" <pekka.nikander@xxxxxx> wrote:

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