Menu

#2209 error in cross compiling with mingw

OTHER
pending
nobody
None
Support
invalid
Waiting_User_Response
False
2015-02-01
2014-04-21
atvreddy
No

hi....
i am compiling gcc-4.2.1 with mingw gcc [-i586-mingw32msvc-gcc(gcc version 4.2.1-sjlj (mingw32-2))and GNU ld (GNU Binutils for Ubuntu) 2.22] to get cross tool chain for cortex_m4.

i got the following error please help me to resolve it. thank u...

make[1]: Entering directory `/home/think77/windows_cortexm4_tools/gcc-4.2.1/objdir/build-i686-pc-linux-gnu/fixincludes'
i586-mingw32msvc-gcc -g -O2  -o fixincl.exe fixincl.o fixtests.o fixfixes.o server.o procopen.o fixlib.o fixopts.o ../libiberty/libiberty.a
../libiberty/libiberty.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
make[1]: *** [full-stamp] Error 1
make[1]: Leaving directory `/home/think77/windows_cortexm4_tools/gcc-4.2.1/objdir/build-i686-pc-linux-gnu/fixincludes'
make: *** [all-build-fixincludes] Error 2

Related

Issues: #2211
Issues: #2212

Discussion

  • Keith Marshall

    Keith Marshall - 2014-04-21

    Is this mere coincidence? Isn't this a duplicate of [#2210]? If so, then I will close it, for the reasons stated there.

     

    Related

    Issues: #2210

    • atvreddy

      atvreddy - 2014-04-22

      thanks for the reply .....! kartheek and i are colleagues,working on same project.we posted this issue one after the other unknowingly. any way thanks for the support....

       
  • Keith Marshall

    Keith Marshall - 2014-04-21
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,7 +4,7 @@
    
     i got the following error please help me to resolve it. thank u...
    
    - 
    +~~~~ 
     make[1]: Entering directory `/home/think77/windows_cortexm4_tools/gcc-4.2.1/objdir/build-i686-pc-linux-gnu/fixincludes'
     i586-mingw32msvc-gcc -g -O2  -o fixincl.exe fixincl.o fixtests.o fixfixes.o server.o procopen.o fixlib.o fixopts.o ../libiberty/libiberty.a
     ../libiberty/libiberty.a: could not read symbols: Archive has no index; run ranlib to add one
    @@ -12,3 +12,4 @@
     make[1]: *** [full-stamp] Error 1
     make[1]: Leaving directory `/home/think77/windows_cortexm4_tools/gcc-4.2.1/objdir/build-i686-pc-linux-gnu/fixincludes'
     make: *** [all-build-fixincludes] Error 2
    +~~~~
    
    • status: unread --> pending
    • Resolution: none --> invalid
    • Category: Unknown --> Waiting_User_Response