[riot-devel] devel Digest, Vol 7, Issue 7

Francisco Javier Acosta Padilla francisco.acosta at inria.fr
Fri Sep 20 14:28:44 CEST 2013


I have already cloned all git repos, projects, RIOT thirdparty_boards 
and thirdparty_cpu, with the same results.

I copied the Makefile.include from /RIOT/cpu/ and now I have this result 
while compiling the "hello-world" example:

/home/user/RIOT/projects/hello-world/../../thirdparty_boards/stm32f4discovery/bin/stm32f4discovery_base.a(board_init.o): 
In function `SystemInit':
/home/user/RIOT/thirdparty_boards/stm32f4discovery/board_init.c:263: 
undefined reference to `RCC_APB1PeriphClockCmd'
/home/user/RIOT/thirdparty_boards/stm32f4discovery/board_init.c:267: 
undefined reference to `RCC_AHB1PeriphClockCmd'
/home/user/RIOT/thirdparty_boards/stm32f4discovery/board_init.c:275: 
undefined reference to `GPIO_Init'
/home/user/RIOT/thirdparty_boards/stm32f4discovery/board_init.c:279: 
undefined reference to `GPIO_PinAFConfig'
/home/user/RIOT/thirdparty_boards/stm32f4discovery/board_init.c:286: 
undefined reference to `GPIO_Init'
/home/user/RIOT/thirdparty_boards/stm32f4discovery/board_init.c:290: 
undefined reference to `GPIO_PinAFConfig'
/home/user/RIOT/thirdparty_boards/stm32f4discovery/board_init.c:298: 
undefined reference to `USART_Init'
/home/user/RIOT/thirdparty_boards/stm32f4discovery/board_init.c:300: 
undefined reference to `USART_Cmd'
/usr/local/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv7e-m/libg.a(lib_a-sbrkr.o): 
In function `_sbrk_r':
sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk'
/usr/local/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv7e-m/libg.a(lib_a-writer.o): 
In function `_write_r':
writer.c:(.text._write_r+0x10): undefined reference to `_write'
/usr/local/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv7e-m/libg.a(lib_a-closer.o): 
In function `_close_r':
closer.c:(.text._close_r+0xc): undefined reference to `_close'
/usr/local/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv7e-m/libg.a(lib_a-fstatr.o): 
In function `_fstat_r':
fstatr.c:(.text._fstat_r+0xe): undefined reference to `_fstat'
/usr/local/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv7e-m/libg.a(lib_a-isattyr.o): 
In function `_isatty_r':
isattyr.c:(.text._isatty_r+0xc): undefined reference to `_isatty'
/usr/local/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv7e-m/libg.a(lib_a-lseekr.o): 
In function `_lseek_r':
lseekr.c:(.text._lseek_r+0x10): undefined reference to `_lseek'
/usr/local/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv7e-m/libg.a(lib_a-readr.o): 
In function `_read_r':
readr.c:(.text._read_r+0x10): undefined reference to `_read'
collect2: error: ld returned 1 exit status
make: *** [all] Error 1

I'm using this compiler:

$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.7.4 20130613 
(release) [ARM/embedded-4_7-branch revision 200083]
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

which is recomended by Stefan in a precedent mail.

Thanks!

Francisco

On 20/09/13 12:00, devel-request at riot-os.org wrote:
> Send devel mailing list submissions to
> 	devel at riot-os.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.riot-os.org/mailman/listinfo/devel
> or, via email, send a message with subject or body 'help' to
> 	devel-request at riot-os.org
>
> You can reach the person managing the list at
> 	devel-owner at riot-os.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of devel digest..."
>
>
> Today's Topics:
>
>     1. Issues in stm32f4discovery (Francisco Javier Acosta Padilla)
>     2. Re: Issues in stm32f4discovery (Milan Babel)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 19 Sep 2013 18:56:32 +0200
> From: Francisco Javier Acosta Padilla<francisco.acosta at inria.fr>
> To: devel at riot-os.org
> Subject: [riot-devel] Issues in stm32f4discovery
> Message-ID:<523B2CC0.2050803 at inria.fr>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hello!
>
> I'm trying to build the sixlowpan example for the stm32f4discovery
> board, and the first compilation issue is:
>
> ~/RIOT/projects/sixlowpan$ make BOARD=stm32f4discovery all
> Makefile:27: Makefile.stm32f4discovery: No such file or directory
> /home/user/RIOT/projects/sixlowpan/../RIOT/Makefile.include:16:
> /home/user/RIOT/projects/sixlowpan/../../boards/stm32f4discovery/Makefile.include:
> No such file or directory
> make: *** No rule to make target
> `/home/user/RIOT/projects/sixlowpan/../../boards/stm32f4discovery/Makefile.include'.
> Stop.
>
> once I copy Makefile.stm32f4discovery from the "hello-world" example, I
> got the next error:
>
> ~/RIOT/projects/sixlowpan$ make BOARD=stm32f4discovery all
> /home/user/RIOT/projects/sixlowpan/../RIOT/Makefile.include:17:
> /home/user/RIOT/projects/sixlowpan/../../thirdparty_cpu/Makefile.include: No
> such file or directory
> make: *** No rule to make target
> `/home/user/RIOT/projects/sixlowpan/../../thirdparty_cpu/Makefile.include'.
> Stop.
>
> I'm not able to locate that file, do you know the contents of it?
> Because there are lots of Makefile.include everywhere, so I'm not sure
> which one could fit for the stm32f4discovery board
>
> Thanks!
>


More information about the devel mailing list