Menu

#1351 cross compile-script adaptation for gcc 4.3/4.4

OTHER
doc
Bug
out-of-date
Aged_issue
False
2017-12-26
2009-09-14
No

I have not had any luck with cross-compiling gcc 4.3.x/4.4.x using the cross-script, but fedora 11 started shipping a gcc 4.4-based compiler in April anyway, so I haven't bothered with it much any more until this weekend. Anyway, I finally found the problem after some hours - it is an assumption which x86-mingw32-build.sh makes which is no-longer true in gcc 4.3 onwards: around line 108 for building and installing stage 1,
instead of this:
ALL_GCC="all-gcc" INSTALL_GCC=install-gcc

for gcc 4.3 onwards, libgcc is splitted out, and something like this is required:
ALL_GCC="all-gcc all-target-libgcc" INSTALL_GCC="install-gcc install-target-libgcc"
otherwise crtbegin.o and friends (part of libgcc) aren't built and installed and one gets into trouble during mingwrt building.

Hope this helps

Discussion

  • Earnie Boyd

    Earnie Boyd - 2013-02-07
    • labels: --> gcc
    • status: open --> closed
    • milestone: --> OTHER
    • type: --> Bug
    • resolution: --> out-of-date
    • category: --> Unknown
    • patch_attached: --> False
     
  • Keith Marshall

    Keith Marshall - 2013-02-07
    • labels: gcc --> gcc, cross-compiler
    • status: closed --> open
    • resolution: out-of-date --> remind
     
  • Keith Marshall

    Keith Marshall - 2013-02-07

    Reopening.

    This is probably still relevant for newer GCC too, and I may follow it up with a cross-scripts update, when I find a few round tuits.

     
  • Keith Marshall

    Keith Marshall - 2013-02-07
    • assigned_to: Keith Marshall
     
  • Keith Marshall

    Keith Marshall - 2017-12-26
    • status: open --> doc
    • Resolution: remind --> out-of-date
    • Category: Unknown --> Aged_issue
     
  • Keith Marshall

    Keith Marshall - 2017-12-26

    I'm no longer maintaining the cross-scripts; they haven't really been useful, since GCC-3.4.5 fell out of favour. Furthermore, I didn't require this hack, for any of GCC-4.8.2, GCC-4.9.3, GCC-5.3.0, or GCC-6.3.0, so I guess it's no longer relevant.