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