This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Trouble with building multilib GCC (MinGW)


To successfully compile multilib with mingw-w64, you should follow procedure described as in

the main points are:
1- build and install binutils
2- install headers
2b- link <install path>/x86_64-w64-mingw32/include to <install path>/mingw/include
3- build and install gmp, mpfr and mpc (or make sure to copy them sources respectively in <src-dir>/gmp <src-dir>/mpfr and <src-dir>/mpc )
4- build and install gcc ( make all-gcc && make install-gcc)
5- build and install mingw-w64 crt
5b- link <install path>/x86_64-w64-mingw32/lib to <install path>/x86_64-w64-mingw32/lib64
5c- link <install path>/x86_64-64-mingw32 to <install path>/mingw (this is only needed for stage 2 and stage 3 building, this directory may be erased once installation has finished ;) )
Don't forget to verify that content of <install path>/mingw/lib and <install path>/mingw/lib64 correspond exactly to <install path>/x86_64-w64-mingw32/lib (and to <install path>/x86_64-w64-mingw32/lib64)
6- build and install libgcc (make all-target-libgcc && make install-target-libgcc )
7- check that there are no missplaced library into <install-path>/lib/gcc/x86_64-w64-mingw32/lib or <install-path>/lib/gcc/x86_64-w64-mingw32/lib32 (they should be in respectively <install-path>/lib/gcc/x86_64-w64-mingw32/4.7.0 or <install-path>/lib/gcc/x86_64-w64-mingw32/4.7.0/32 )
8- complete build process (3 stages ;)) and install script (make && make install)
9- Once build and install is finished, consider to get 2 distinct directories, added to PATH variable for the dll:
one where to find 64 bit dll version and one where to find 32 bit dll version

Pay attention to the fact that the install script can mix different versions of the dll in the folder <install-path> / bin. I personnaly recommand to copy manually one version (32 bit or 64 bit) into this path .

I just still have problem to compile ada with multilib support :-S

Hope it helps

PS Excuse me for my bad english, my natural speaking is french :-)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]