#2210 MinGw with ARM Cross Compiler toolchain Error (Linux)

OTHER
closed
nobody
Bug
invalid
Unknown
False
2014-10-23
2014-04-21
Kartheek
No

Hi,
When i compile Cross compiler toolchain with MinGw i got this error.(gcc-4.2.1)

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/think38/Cortex_M4/gcc-4.2.1/objdir/build-i686-pc-linux-gnu/fixincludes'
make: *** [all-build-fixincludes] Error 2

Please resolve this problem and update ASP.
Thanks advance.

Related

Issues: #2209
Issues: #2211
Issues: #2212

Discussion

  • Keith Marshall
    Keith Marshall
    2014-04-21

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,13 +1,14 @@
     Hi,
         When i compile Cross compiler toolchain with MinGw i got this error.(gcc-4.2.1)
    
    +~~~~
     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/think38/Cortex_M4/gcc-4.2.1/objdir/build-i686-pc-linux-gnu/fixincludes'
     make: *** [all-build-fixincludes] Error 2
    -
    +~~~~
    
     Please resolve this problem and update ASP.
     Thanks advance.
    
    • status: unread --> closed
    • Resolution: none --> invalid
     
  • Keith Marshall
    Keith Marshall
    2014-04-21

    Looks to me like you are using the Ubuntu-supplied -- and improperly named -- cross compiler. We do not support that; you'll need to refer your issue to an appropriate Ubuntu support forum. I will offer some comments, however:

    1. MinGW is a a build of GCC targetting MS-Windows x86 or x86_64 hosts; there is no such thing as MinGW targetting ARM.

    2. MinGW.org does not support SJLJ for GCC-4.x builds; for better or for worse, our maintainer elected to move to Dwarf-2, exclusively, from GCC-4.0 onwards.

    3. GCC-4.2.1 is rather ancient, and we would no longer offer updates for it anyway. FWIW, I recently built GCC-4.8.2 as a Linux hosted mingw32 cross, which I then subsequently used to cross-build a Win32 hosted native GCC-4.8.2, with the only issues being that I was unable to successfully build either Ada (gnat) or java.

    4. The error related to library symbols suggests that you may be trying to utilize a libiberty.a, (and perhaps even an entire binutils tool chain), which has been built for a different host architecture than your cross-compiler target.

     
  • Kartheek
    Kartheek
    2014-04-22

    Thanks for your reply Mr. keith Marshall..Me and Mr.Atvreddy both are working on same project..

     
  • Kartheek
    Kartheek
    2014-04-22

    Sorry for the improper named. Yeah we are using Ubuntu-12.04 (Linux), As your guidelines we will try both of Latest versions of Gcc-4.8.2 and mingw-w32-bin_i686-linux_20130523.tar.bz2.

     
    • Keith Marshall
      Keith Marshall
      2014-04-22

      Sorry for the improper named.

      Why? It's hardly your fault that Debian, and thus Ubuntu by derivation, named their cross-compiler improperly...

      As your guidelines we will try both of Latest versions of Gcc-4.8.2 and mingw-w32-bin_i686-linux_20130523.tar.bz2.

      ...but here, you are missing the point entirely! These products do not originate from MinGW.org, and we certainly do not support them; if you use them, then you must seek support from the suppliers ... Ubuntu, in your case.

      FWIW, although I have used Ubuntu in the past, and now use Linux Mint Debian Edition, I have never used their MinGW cross-compilers; I have always built my own, directly from unadulterated FSF sources. If you wish to do likewise, then I can offer guidance; if you insist on using Ubuntu's prepackaged binaries, then I cannot help you.