---------- Forwarded message ----------
From: Ruben Van Boxem <[email protected]>
Date: 2010/9/13
Subject: Re: [Mingw-w64-public] building GCC myself from MSYS
To: "John E. / TDM" <[email protected]>


Hi, I'm still trying, and failing :(

M:/Development/msys/gcc-libs/lib/libmpfr.a(add1.o):add1.c:(.text+0x137):
> undefined reference to `__chkstk'
> M:/Development/msys/gcc-libs/lib/libmpfr.a(add1.o):add1.c:(.text+0x207):
> undefined reference to `__chkstk'
> M:/Development/msys/gcc-libs/lib/libmpfr.a(div.o):div.c:(.text+0x81f):
> undefined reference to `__chkstk'
> M:/Development/msys/gcc-libs/lib/libmpfr.a(div.o):div.c:(.text+0x8b0):
> undefined reference to `__chkstk'
> M:/Development/msys/gcc-libs/lib/libmpfr.a(div.o):div.c:(.text+0xb33):
> undefined reference to `__chkstk'
> M:/Development/msys/gcc-libs/lib/libmpfr.a(div.o):div.c:(.text+0xe75): more
> undefined references to `__chkstk' follow
> collect2: ld returned 1 exit status
>

How do i fix this? I'm doing a "make profiledbootstrap" in gcc, it has used
mpfr before (in stage1) and didn't complain. Now in stage profile, I get
these stupid errors... I fear it's some underscoring issue.

I prebuilt mpfr with TDM64 GCC:

../../src/mpfr/configure --prefix=/gcc-libs --build=x86_64-w64-mingw32
> --host=x86_64-w64-mingw32 --with-gmp=/gcc-libs CFLAGS="-mtune=core2 -flto"
> LFLAGS="-flto -fwhopr=3" && make -j3 -s && make install
>

and built gcc with:


> ../../src/gcc/configure --prefix=/home/ruben/mingw64/build/mingw64
> --with-sysroot=/home/ruben/mingw64/build/mingw64 --target=x86_64-w64-mingw32
> --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --with-gmp=/gcc-libs
> --with-mpfr=/gcc-libs -with-mpc=/gcc-libs --enable-languages=c,c++,lto
> --enable-fully-dynamic-string --disable-multilib --enable-lto
> --enable-libgomp --disable-werror CFLAGS="-mtune=core2" LFLAGS="-fwhopr=3"
> && make profiledbootstrap
>

I remember last time I had issues with both gmp and mpfr, but have no clue
what changed between then and now...

Thanks,

Ruben
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to