GCC 7.1, cygwin, undefined reference to ___divmoddi4

Thomas Plank tplank@gmx.at
Mon May 8 11:49:00 GMT 2017


On 08.05.2017, 07:22, Xi Ruoyao wrote:

> According to Liu Hao's new thread, the symbol __divmoddi4 was introduced
> in GCC 7.0.  However it seems the building system used an old GCC version
> to link the code generated by (stage 2) GCC 7.1.  The code would be linked
> to old libgcc without __divmoddi4.
>
> Either this is a bootstrap bug, or Thomas did something wrong building
> GCC.

I'm not sure that I did something wrong, since it's working under 
cygwin64 with the same config options.

Also I'm building gcc since version 3; more or less the same way.

Also "make" worked, just "make install" gave the undefined references 
which leads me to believe there's a bug in bootstrapping.

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-cygwin/7.1.0/lto-wrapper.exe

Target: x86_64-unknown-cygwin

Configured with: ../gcc-7.1.0/configure --enable-threads 
--enable-languages=c,c++,fortran,lto,objc,obj-c++ 
--disable-sjlj-exceptions --with-mpc=/usr/local

Thread model: posix
gcc version 7.1.0 (GCC)

(Sorry for the line wraps, I don't know how to avoid them with TB 
without completely disabling it.)



More information about the Gcc-help mailing list