Thread: I want to compile GCC on my own on my own architecture and with my own quirks.

  1. #1
    Registered User
    Join Date
    Nov 2015
    Posts
    119

    I want to compile GCC on my own on my own architecture and with my own quirks.

    Good day! In the new year, happily long.

    I can't figure out what the root of the errors is, for example, maybe it's probably the MSYS curve? Or is it my MinGW curve? Or is my script crooked, poorly written? Where to look?


    Code:
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: cc: command not found
    configure:5823: $? = 127
    failed program was:
    
    int main () { return 0; }
    configure:6909: result: no
    configure:5749: gcc 2>&1 | grep xlc >/dev/null
    configure:5752: $? = 1
    configure:5806: checking compiler gcc -O2 -pedantic -fomit-frame-pointer -mx32 
    Test compile: 
    configure:5820: gcc -O2 -pedantic -fomit-frame-pointer -mx32  conftest.c >&5
    conftest.c:1:0: sorry, unimplemented: 64-bit mode not compiled in
     
     ^
    configure:5823: $? = 1
    failed program was:
    
    int main () { return 0; }
    configure:6909: result: no
    configure:5727: cc -c conftest.c >&5
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: cc: command not found
    configure:5730: $? = 127
    configure:5749: cc 2>&1 | grep xlc >/dev/null
    configure:5752: $? = 1
    configure:5806: checking compiler cc  
    Test compile: 
    configure:5820: cc   conftest.c >&5
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: cc: command not found
    configure:5823: $? = 127
    failed program was:
    
    int main () { return 0; }
    configure:6909: result: no
    configure:5749: gcc 2>&1 | grep xlc >/dev/null
    configure:5752: $? = 1
    configure:5806: checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer 
    Test compile: 
    configure:5820: gcc -m32 -O2 -pedantic -fomit-frame-pointer  conftest.c >&5
    configure:5823: $? = 0
    configure:5828: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: ./a.out: No such file or directory
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: ./b.out: No such file or directory
    configure:5831: $? = 0
    Test compile: function pointer return
    configure:5874: gcc -m32 -O2 -pedantic -fomit-frame-pointer  conftest.c >&5
    configure:5877: $? = 0
    configure:5882: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: ./a.out: No such file or directory
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: ./b.out: No such file or directory
    configure:5885: $? = 0
    Test compile: cmov instruction
    configure:5930: gcc -m32 -O2 -pedantic -fomit-frame-pointer  conftest.c >&5
    configure:5933: $? = 0
    configure:5938: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: ./a.out: No such file or directory
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: ./b.out: No such file or directory
    configure:5941: $? = 0
    Test compile: double -> ulong conversion
    configure:5987: gcc -m32 -O2 -pedantic -fomit-frame-pointer  conftest.c >&5
    configure:5990: $? = 0
    configure:5995: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: ./a.out: No such file or directory
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: ./b.out: No such file or directory
    configure:5998: $? = 0
    Test compile: double negation
    configure:6042: gcc -m32 -O2 -pedantic -fomit-frame-pointer  conftest.c >&5
    configure:6045: $? = 0
    configure:6050: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: ./a.out: No such file or directory
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: ./b.out: No such file or directory
    configure:6053: $? = 0
    Test compile: double -> float conversion
    configure:6098: gcc -m32 -O2 -pedantic -fomit-frame-pointer  conftest.c >&5
    configure:6101: $? = 0
    configure:6106: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: ./a.out: No such file or directory
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: ./b.out: No such file or directory
    configure:6109: $? = 0
    Test compile: gnupro alpha ev6 char spilling
    configure:6183: gcc -m32 -O2 -pedantic -fomit-frame-pointer  conftest.c >&5
    configure:6186: $? = 0
    configure:6191: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: ./a.out: No such file or directory
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: ./b.out: No such file or directory
    configure:6194: $? = 0
    Test compile: __builtin_alloca availability
    configure:6234: gcc -m32 -O2 -pedantic -fomit-frame-pointer  conftest.c >&5
    c:/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/5.1.0/../../../../mingw32/bin/ld.exe: cannot open output file a.exe: Permission denied
    collect2.exe: error: ld returned 1 exit status
    configure:6237: $? = 1
    failed program was:
    int k; int foo () { __builtin_alloca (k); }
    Test compile: abs int -> double conversion
    configure:6358: gcc -m32 -O2 -pedantic -fomit-frame-pointer  conftest.c >&5
    c:/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/5.1.0/../../../../mingw32/bin/ld.exe: cannot open output file a.exe: Permission denied
    collect2.exe: error: ld returned 1 exit status
    configure:6361: $? = 1
    failed program was:
    /* The following provokes an internal error from the assembler on
       power2-ibm-aix4.3.1.0.  gcc -mrios2 compiles to nabs+fcirz, and this
       results in "Internal error related to the source program domain".
    
       For reference it seems to be the combination of nabs+fcirz which is bad,
       not either alone.  This sort of thing occurs in mpz/get_str.c with the
       way double chars_per_bit_exactly is applied in MPN_SIZEINBASE.  Perhaps
       if that code changes to a scaled-integer style then we won't need this
       test.  */
    
    double fp[1];
    int x;
    int f ()
    {
      int a;
      a = (x >= 0 ? x : -x);
      return a * fp[0];
    }
    
    int main () { return 0; }
    configure:6909: result: no, abs int -> double conversion
    configure:5806: checking compiler gcc -O2 -pedantic -fomit-frame-pointer 
    Test compile: 
    configure:5820: gcc -O2 -pedantic -fomit-frame-pointer  conftest.c >&5
    c:/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/5.1.0/../../../../mingw32/bin/ld.exe: cannot open output file a.exe: Permission denied
    collect2.exe: error: ld returned 1 exit status
    configure:5823: $? = 1
    failed program was:
    
    int main () { return 0; }
    configure:6909: result: no
    configure:5727: icc -c conftest.c >&5
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: icc: command not found
    configure:5730: $? = 127
    configure:5749: icc 2>&1 | grep xlc >/dev/null
    configure:5752: $? = 1
    configure:5806: checking compiler icc -no-gcc 
    Test compile: 
    configure:5820: icc -no-gcc  conftest.c >&5
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: icc: command not found
    configure:5823: $? = 127
    failed program was:
    
    int main () { return 0; }
    configure:6909: result: no
    configure:5727: cc -c conftest.c >&5
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: cc: command not found
    configure:5730: $? = 127
    configure:5749: cc 2>&1 | grep xlc >/dev/null
    configure:5752: $? = 1
    configure:5806: checking compiler cc -O 
    Test compile: 
    configure:5820: cc -O  conftest.c >&5
    D:/src/gcc-11.1.0/gmp-6.1.0/configure: cc: command not found
    configure:5823: $? = 127
    failed program was:
    
    int main () { return 0; }
    configure:6909: result: no
    configure:7147: error: could not find a working compiler, see config.log for details
    
    ## ---------------- ##
    ## Cache variables. ##
    ## ---------------- ##
    Windows 7 32-bit system.
    I am a member of the MSYS label on the desktop, then CD D: / SRC
    and run a script that is called compile.bat

    Code:
    #rem D:/MinGW/msys/1.0/msys.bat    cd /D D:/src
    
    #pause
    
    
    cd D:/src/gcc-11.1.0/gmp
    
    D:/src/gcc-11.1.0/gmp-6.1.0/configure --prefix='D:/src/gcc-11.1.0/gmp' --enable-assert --enable-alloca=malloc-reentrant
    make -j4 &>make.my.log
    makegmp1
    make check &>check.my.log
    checkgmp1
    make install &>install.my.log
    installgmp1
    #make clean &>clean.my.log
    #cleangmp1
    
    D:/src/gcc-11.1.0/gmp-6.1.0/configure --prefix='D:/src/gcc-11.1.0/gmp' --enable-cxx --enable-assert --enable-alloca=malloc-reentrant --disable-static --enable-shared  &>config.my.log
    make -j4 &>make.my.log
    makegmp2
    make check &>check.my.log
    checkgmp2
    make install &>install.my.log
    installgmp2
    
    pause
    gmp
    
    
    cd D:/src/gcc-11.1.0/ppl
    D:/src/gcc-11.1.0/ppl-1.2/configure --prefix='D:/src/gcc-11.1.0/ppl'  --enable-threads --enable-nls --with-gmp-prefix=D:/src/gcc-11.1.0/gmp --enable-cxx --enable-debugging  --enable-profiling  --enable-coverage  --enable-assertions --enable-ppl_lcdd    --enable-ppl_lpsol    --enable-ppl_pips   --enable-documentation   --enable-interfaces=c cxx --enable-debugging   --with-gmp-build=D:/src/gcc-11.1.0/gmp  --with-gmp=D:/src/gcc-11.1.0/gmp  --with-gmp-lib=D:/src/gcc-11.1.0/gmp/.libs &>config.my.log
    make -j4 &>make.my.log
    make check &>check.my.log
    make install &>install.my.log
    #make clean &>clean.my.log
    
    D:/src/gcc-11.1.0/ppl-1.2/configure --prefix='D:/src/gcc-11.1.0/ppl' --disable-static --enable-shared --enable-threads --enable-nls  --with-gmp-prefix=D:/src/gcc-11.1.0/gmp --enable-cxx --enable-debugging  --enable-profiling  --enable-coverage  --enable-assertions --enable-ppl_lcdd    --enable-ppl_lpsol    --enable-ppl_pips   --enable-documentation   --enable-interfaces=c cxx  --enable-debugging  --with-gmp-build=D:/src/gcc-11.1.0/gmp  --with-gmp=D:/src/gcc-11.1.0/gmp --with-gmp-lib=D:/src/gcc-11.1.0/gmp/.libs  &>config.my.log
    make -j4 &>make.my.log
    make check &>check.my.log
    make install &>install.my.log
    
    pause
    ppl
    
    cd D:/src/gcc-11.1.0/cloog-ppl
    D:/src/gcc-11.1.0/cloog-ppl-0.15.11/configure --prefix='D:/src/gcc-11.1.0/cloog-ppl'  --with-ppl=D:/src/gcc-11.1.0/ppl --with-gmp=D:/src/gcc-11.1.0/gmp  &>config.my.log
    make &>make.my.log
    make check &>check.my.log
    make install &>install.my.log
    #make clean &>clean.my.log
    
    D:/src/gcc-11.1.0/cloog-ppl-0.15.11/configure --prefix='D:/src/gcc-11.1.0/cloog-ppl' --disable-static --enable-shared --with-ppl=D:/src/gcc-11.1.0/ppl --with-gmp=D:/src/gcc-11.1.0/gmp  &>config.my.log
    make &>make.my.log
    make check &>check.my.log
    make install &>install.my.log
    
    
    pause
    cloog-ppl
    
    
    
        cd D:/src/gcc-11.1.0/mpfr
        D:/src/gcc-11.1.0/mpfr-3.1.4/configure --prefix='D:/src/gcc-11.1.0/mpfr'  --enable-thread-safe --with-gmp=D:/src/gcc-11.1.0/gmp  &>config.my.log
        make -j4 &>make.my.log
        make check &>check.my.log
        make install &>install.my.log
        #make clean &>clean.my.log
    
    
        D:/src/gcc-11.1.0/mpfr-3.1.4/configure --prefix='D:/src/gcc-11.1.0/mpfr' --disable-static --enable-shared --enable-thread-safe --with-gmp=D:/src/gcc-11.1.0/gmp  &>config.my.log
        make -j4 &>make.my.log
        make check &>check.my.log
        make install &>install.my.log
    
    pause
    mpfr
    
    
    
    cd D:/src/gcc-11.1.0/mpc
    D:/src/gcc-11.1.0/mpc-1.0.3/configure --prefix=D:/src/gcc-11.1.0/mpc  --with-gmp=D:/src/gcc-11.1.0/gmp --with-mpfr=D:/src/gcc-11.1.0/mpfr  &>config.my.log
    make -j4 &>make.my.log
    make check &>check.my.log
    make install &>install.my.log
    #make clean &>clean.my.log
    
    D:/src/gcc-11.1.0/mpc-1.0.3/configure --prefix=D:/src/gcc-11.1.0/mpc --disable-static --enable-shared --with-gmp=D:/src/gcc-11.1.0/gmp --with-mpfr=D:/src/gcc-11.1.0/mpfr  &>config.my.log
    make -j4 &>make.my.log
    make check &>check.my.log
    make install &>install.my.log
    
    
    pause
    mpc
    
    
    cd D:/src/gcc-11.1.0/libiconv
    D:/src/gcc-11.1.0/libiconv-1.16/configure --prefix=D:/src/gcc-11.1.0/libiconv   --enable-nls  &>confgi.my.log
    make -j4 &>make.my.log
    make check &>check.my.log
    make install &>install.my.log
    #make clean &>clean.my.log
    
    D:/src/gcc-11.1.0/libiconv-1.16/configure --prefix=D:/src/gcc-11.1.0/libiconv --enable-shared --disable-static --enable-nls   &>confgi.my.log
    make -j4 &>make.my.log
    make check &>check.my.log
    make install &>install.my.log
    
    
    
    pause
    libiconv
    
    cd D:/src/gcc-11.1.0/binutils
    D:/src/gcc-11.1.0/binutils-2.37/configure --prefix=D:/src/gcc-11.1.0/binutils  --enable-threads --enable-nls --with-gmp=D:/src/gcc-11.1.0/gmp --with-mpc=D:/src/gcc-11.1.0/mpc --with-mpfr=D:/src/gcc-11.1.0/mpfr --with-ppl=D:/src/gcc-11.1.0/ppl  --with-cloog=D:/src/gcc-11.1.0/cloog-ppl   &>config.my.log
    make -j4 &>make.my.log
    make check &>check.my.log
    make install &>install.my.log
    #make clean &>clean.my.log
    
    D:/src/gcc-11.1.0/binutils-2.37/configure --prefix=D:/src/gcc-11.1.0/binutils  --disable-static --enable-shared --enable-threads --enable-nls --with-gmp=D:/src/gcc-11.1.0/gmp --with-mpc=D:/src/gcc-11.1.0/mpc --with-mpfr=D:/src/gcc-11.1.0/mpfr --with-ppl=D:/src/gcc-11.1.0/ppl  --with-cloog=D:/src/gcc-11.1.0/cloog-ppl   &>config.my.log
    make -j4 &>make.my.log
    make check &>check.my.log
    make install &>install.my.log
    
    
    pause
    binutils
    
    
    cd D:/src/gcc-11.1.0
    cp -r D:/src/gcc-11.1.0/w32api/include D:/src/gcc-build
    cp -r D:/src/gcc-11.1.0/mingwrt-3.16/include  D:/src/gcc-build
    
    pause
    w32api
    
    cd D:/src/gcc-build
    D:/src/gcc-11.1.0/configure --prefix=D:/src/gcc-build --enable-shared=libstdc++ --enable-threads --enable-version-specific-runtime-libs --enable-languages=c,c++,fortran --enable-host-shared --enable-nls --with-system-zlib  --disable-werror   --with-gmp=D:/src/gcc-11.1.0/gmp --with-ppl=D:/src/gcc-11.1.0/ppl  --with-cloog=D:/src/gcc-11.1.0/cloog-ppl  --with-mpfr=D:/src/gcc-11.1.0/mpfr --with-mpc=D:/src/gcc-11.1.0/mpc --enable-libgomp --with-libiconv-prefix=D:/src/gcc-11.1.0/libiconv --with-binutils=D:/src/gcc-11.1.0/binutils --enable-libstdcxx-debug  &>config.my.log
    make -j4  &>make.my.log
    
    pause
    
    gcc-build
    
    
    pause
    Last edited by Dmy; 01-02-2022 at 02:11 PM.

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Package MinGW.org Compiler Collection (GCC) - MinGW - Minimalist GNU for Windows - OSDN

    Do you have reason to think the MSYS build system can build GCC version 11?

    Edit2: What compiler are you using? GCC Version? And, download URL for compiler? Or method of installing compiler?

    Tim S.
    Last edited by stahta01; 01-02-2022 at 04:14 PM.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    First you likely should not be using a batch file to build under MSYS.
    I would use an script file; I use the extension ".sh" and call it from the MSYS system prompt.

    Example when script is in current directory.
    Code:
    ./script.sh
    I am willing to try to duplicate your error; but, I would need the link to download the GCC compiler you are using.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  4. #4
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Could not duplicate the problem using msys 1.0.19 and GCC 9.2.0 and these commands.

    Code:
    cd "C:\src\gcc-source"
    mkdir -p gmp-build && cd gmp-build
    ../gmp-6.1.0/configure
    I am using "C:\src\gcc-source" instead of your "D:/src/gcc-11.1.0".

    Code:
    $ uname -a
    MINGW32_NT-6.1 LAPTOP2-TIM 1.0.19(0.48/3/2) 2016-07-13 17:45 i686 Msys
    
    stahta01@Laptop2-tim /c/src/gcc-source/gmp-build
    $ gcc --version
    gcc.exe (MinGW.org GCC Build-2) 9.2.0
    Copyright (C) 2019 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    ls inside /c/src/gcc-source
    Code:
    $ ls
    gmp-6.1.0  gmp-build
    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  5. #5
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    FYI: If you just wish to learn how to build your own custom GCC then building under Linux would likely be easier.

    If you are stuck using Windows 7 32 bit; then msys might be the best way.

    If you are only stuck using Windows; then, windows 10 64 bit using either the windows Linux sub-system or MSys2 MinGW64 build environment would be easier and likely better.
    Note: MSys2 are already talking about dropping Window7 and 32 bit support.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  6. #6
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    A git repo where I am trying to do what the OP is trying with a few changes in my approach.
    GitHub - stahta01/msys_mingw_gcc_build_scripts: Scripts to build 32 bit mingw.org toolchain using msys build enviroment

    1. Building static gmp,mpfr, and mpc libraries
    2. Building older version of binutils and GCC before trying newer versions
    3. Using script files instead of batch files to do build

    Edit: I am having issues that might be caused by my lack of sleep.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  7. #7
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    I have decided that "MSYS" from mingw.org is not able to build mingw.org GCC.
    I am trying "MSYS2" now.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  8. #8
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    I am getting about the same GCC build errors using MSys2 as I got using MSYS; but, the binutils check test no longer crashes.
    Plan is to continue using MSys2 till I reach a road block and then switch back to MSYS from mingw.org.
    I am still making slow progress in building the mingw.org GCC toolchain; maybe I need to look for directions.
    But, the new mingw.org Welcome to MinGW.OSDN has too many issues for that to be easy.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  9. #9
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Found some directions; seems both complex and simple.
    GitHub - jmeubank/tdm-gcc: TDM-GCC is a cleverly disguised GCC compiler for Windows!

    Going to stop work on this the OP seems to be not responding.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  10. #10
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Questions a person building MinGW GCC needs to think about.

    1. Dwarf or SJLJ (or SEH under 64 bit) exceptions
    2. pthread or win32 threads
    3. libgomp support (seems to need pthread) yes/no
    4. Ada language support (very hard to add) yes/no
    5. LTO (Link Time Optimization) yes/no
    6. Build toolchain versions of GCC and Binutils
    7. Which build enviroment (MSYS/MSYS2/Cygwin/Linux)
    8. mingw.org or mingw64 based
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  11. #11
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    I am trying to make MSys2 cross-GCC and GCC packages in this repo GitHub - stahta01/mingw-org-packages: mingw.org GCC toolchain with msys2 packages

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  12. #12
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Important mingw.org patch that was needed is "16-gratuitous-vista-usage.patch" I added "08" to number prefix.

    mingw-org-packages/0816-gratuitous-vista-usage.patch at staging * stahta01/mingw-org-packages * GitHub

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  13. #13
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Report on progress on non-cross (native) GCC build:

    Currently fails in building i686-pc-mingw32/libstdc++-v3 with header related "error: 'operation_not_supported' is not a member of 'std::errc'".

    Removed configure option "enable-libstdcxx-filesystem-ts" and building once more and in a few hours will get results on current try.
    I am making it a little farther about every three tries at building; so, it is a very slow progress since each attempt takes about 2 hours.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  14. #14
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Wow, I got GCC 9.2.0 to build see Release GCC9_alpha_1 * stahta01/mingw-org-packages * GitHub

    Now, I need to see if it can be used to build itself.

    And, I need to apply more mingw-org patch files

    Edit: And, I should remove the mingw64 patch files and some of the msys2 patch files.

    Still a long way to go; but, I can see light at the end of the tunnel.
    I hope it is not a train.

    Tim S.
    Last edited by stahta01; 01-21-2022 at 11:09 AM.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  15. #15
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Release GCC 10.3.0 with FORTRAN * stahta01/mingw-org-packages * GitHub

    It can build itself; and, I have most of the none JIT mingw.org patch files applied along with a few TDM mingw.org patch files.

    I am going to hold a while on GCC version 10.3.0; will be doing minor changes to make the packages more like the mingw.org and TDM 32 bit builds.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. IRC Bot architecture
    By czar in forum C Programming
    Replies: 5
    Last Post: 08-15-2011, 08:35 AM
  2. PC architecture
    By Shotgun in forum C Programming
    Replies: 8
    Last Post: 04-28-2006, 12:53 AM
  3. need help--data mining from file (some quirks)
    By jayrobers in forum C Programming
    Replies: 5
    Last Post: 10-12-2005, 03:51 PM
  4. COM Architecture and Inside COM
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 04-09-2003, 03:53 PM
  5. Changes: CPU Architecture
    By zahid in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 01-10-2002, 07:54 AM

Tags for this Thread