Forum: ARM programming with GCC/GNU tools ARM linker fail

Author: bogdanul2003 (Guest)
Posted on:

Rate this post
0 useful
not useful
I'm trying to compile RTEMS for a STM32F4DISCOVERY board. Everything 
goes well until the linker tries to find the linker script 
linkcmds.armv7m. I searched for the file on my system and I found it 
some places.

find: `/home/boil/.gvfs': Permission denied

And this is the last output when trying to comppile RTEMS

arm-rtemseabi4.11-gcc -Os -B ./../bin/arm-rtemseabi4.11/stm32f4/lib/ 
-specs bsp_specs -qrtems -mstructure-size-boundary=8 -march=armv7-m 
-mthumb -fno-schedule-insns2 -fno-common -O0 -g3 -ggdb -g -Wall 
-Wmissing-prototypes -Wimplicit-function-declaration 
-mstructure-size-boundary=8 -march=armv7-m -mthumb -fno-schedule-insns2 
-I./../bin/arm-rtemseabi4.11/stm32f4/lib/include -I./inc  -g 
-Wstrict-prototypes -Wnested-externs ./obj/stm32f4_discovery.o 
./obj/stm32f4xx_exti.o ./obj/init.o ./obj/stm32f4xx_rcc.o ./obj/misc.o 
./obj/stm32f4xx_syscfg.o ./obj/apptask.o -o elf/base_sp.elf
i4.11/bin/ld:  cannot open linker script file linkcmds.armv7: No such 
file or directory
collect2: error: ld returned 1 exit status
make: *** [elf/base_sp.elf] Error 1

Can you tell how to fix this?

Author: Jörg Wunsch (dl8dtl) (Moderator)
Posted on:

Rate this post
0 useful
not useful
Try running the compiler with -v, then it ought to tell you in which
directories it is looking for the various files.

My guess is that it's the -specs bsp_specs option which might cause
it to look in a non-standard location.

Author: bogdanul2003 (Guest)
Posted on:

Rate this post
0 useful
not useful
Found the mistake ... the linker file used by ld included another linker 
file but with the wrong name


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.