Fedora Linux Support Community & Resources Center
  #1  
Old 30th June 2012, 10:46 AM
bogdanul2003 Offline
Registered User
 
Join Date: Jun 2012
Location: romania
Posts: 1
linuxfirefox
ARM linker fail

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.

/opt/rtems-4.11/bin/ld/linkcmds.armv7m
/opt/rtems-4.11/arm-rtemseabi4.11/lib/linkcmds.armv7m
find: `/home/boil/.gvfs': Permission denied
/home/boil/Documents/b-rtems/arm-rtemseabi4.11/gumstix/lib/linkcmds.armv
7m
/home/boil/Documents/arm-work/rtos/c/src/lib/libbsp/arm/shared/startup/l
inkcmds.armv7m
/home/boil/Documents/arm-work/base_sp2/linkcmds.armv7m
/home/boil/Documents/arm-work/lib/linkcmds.armv7m
/home/boil/Documents/arm-work/bin/arm-rtemseabi4.11/stm32f4/lib/linkcmds
.armv7m
/home/boil/Documents/rtems/c/src/lib/libbsp/arm/shared/startup/linkcmds.
armv7m


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
-fno-common -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_CSTDIO=1
-DHAVE_CSTDLIB=1 -DHAVE_IOSTREAM=1
-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
/opt/rtems-4.11/lib/gcc/arm-rtemseabi4.11/4.7.1/../../../../arm-rtemseab
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?
Reply With Quote
  #2  
Old 1st July 2012, 10:09 PM
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,845
linuxfirefox
Re: ARM linker fail

The linker script is 'linkcmds.armv7' not listed on the command line.
Wheerever is IS mentioned seems to have a bad path, but be aware your source tree may use multiple different linker scripts w/ the same name.

Look in the spec file .. 'bsp_specs'.
It the file path isn't there or somethere where it refers then the 'hard way' to find out is to yun that bihg ugly gcc comment from the proper directory under strace and look for attempts to open the file like ....

strace 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-co .... 2>&1 | grep linkcmds.armv7

First make sure the command w/o strace fails the same way. Then w/ the strace additions you'll
likely get 'lstat' or 'open' system calls against script showing the path.
.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
Reply

Tags
arm, fail, linker

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
linker problems kbriggs Using Fedora 1 19th May 2008 03:48 PM
g++ incremental linker broken? sleeping Programming & Packaging 0 23rd February 2007 09:59 PM
ld - gnu linker needed [S|G] Using Fedora 2 30th November 2005 03:20 AM
gcc 4.0 Linker Problem fatal_error Programming & Packaging 3 6th July 2005 09:11 PM


Current GMT-time: 14:14 (Monday, 22-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat