On Fri, Jan 13, 2017 at 4:50 PM, niXman <[email protected]> wrote:

> Jean-Claude Beaudoin 2017-01-13 23:18:
> > Hello Mingw-w64 list,
> >
> > when I try to build my ManKai Common Lisp system (MKCL) on a recent
> > install
> > of mingw-w64 (under Msys2) here is what linker failure I get with GCC
> > 6.3.0
> > or 6.2.0:
> >
> > ;;About to build shared library mkcl_1.1.10.dll
> > build-shared-library failed: (mkcl:run-command "\"gcc\" -o
> > \"c:\\prod\\msys64\\home\\Jean-Claude\\MKCL\\src\\mkcl_1.1.10.dll\"
> >  \"-Wl,--whole-archive\"
> > \"c:\\prod\\msys64\\home\\Jean-Claude\\MKCL\\src\\MKCA3D6.o\"
> > \"c:\\prod\\msys64\\home\\Jean-Claude\\MKCL\\src\\c\\all_symbols2.o\"
> > \"c:\\prod\\msys64\\home\\Jean-Claude\\MKCL\\src\\lsp.a\"
> > \"c:\\prod\\msys64\\home\\Jean-Claude\\MKCL\\src\\mkclmin.a\"
> > \"c:\\prod\\msys64\\home\\Jean-Claude\\MKCL\\src\\mkclgc.a\"
> > \"c:\\prod\\msys64\\home\\Jean-Claude\\MKCL\\src\\libmkcc1.a\"
> > \"-Wl,--no-whole-archive\"  -shared    -lgmp -lm   -lws2_32  ")
> > returned
> > non-zero value 1
> > Command output:
> > C:/prod/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.
> 3.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
> > c:\prod\msys64\home\Jean-Claude\MKCL\src\mkcl_1.1.10.dll(.pdata):
> > relocation "+0x0 (type R_X86_64_RELATIVE)" goes out of range
> > collect2.exe: error: ld returned 1 exit status
>
> Hi,
>
> Please try to use the gcc-6.2.0 builds.
>
>
This version of gcc:

$ gcc --version
gcc.exe (x86_64-win32-sjlj-rev1, Built by MinGW-W64 project) 6.2.0
Copyright (C) 2016 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.

works properly and reaches normally the end of the MKCL build process.

But, on the other hand, this similar version of gcc:

$ /mingw64-msys2/bin/gcc --version
gcc.exe (Rev2, Built by MSYS2 project) 6.2.0
Copyright (C) 2016 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.

blows up the same way as the originally reported incident here above, like
this:

Command output:
C:/prod/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
c:\prod\msys64\home\Jean-Claude\MKCL\src\mkcl_1.1.10.dll(.pdata):
relocation "+0x0 (type R_X86_64_RELATIVE)" goes out of range
collect2.exe: error: ld returned 1 exit status

I hope that this info is of some help...

Cheers,

JCB
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to