This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Mar 31 12:57, Seher, Holger Dr. wrote: > Dear Cygwin community, > I'm trying to compile and link some software we recently acquired using gfortran (4.9.2) under Cygwin64 (1.7.35-1) on Windows 7 (see attachment for installed packages). On Linux the program is linked correctly with both gfortran and ifort. However while linking with Cygwin64 I get the following error messages: > > --ERRORS------------------ > /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/crtbegin.o:cygming-crtbegin.c:(.text+0x2b): relocation truncated to fit: R_X86_64_PC32 against symbol `__imp_GetModuleHandleA' defined in .idata$5 section in /usr/lib/w32api/libkernel32.a(dcxms00548.o) > /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/crtbegin.o:cygming-crtbegin.c:(.text+0x47): relocation truncated to fit: R_X86_64_PC32 against symbol `__imp_GetProcAddress' defined in .idata$5 section in /usr/lib/w32api/libkernel32.a(dcxms00598.o) > XXX.o:XXX.f:(.text+0x12a): relocation truncated to fit: R_X86_64_PC32 against symbol `XXX_' defined in COMMON section in XXX.o > --ERRORS------------------ > > Used fflags: gfortran -O0 -fdefault-integer-8 -fdefault-double-8 -fdefault-real-8 -ffixed-form -fbacktrace -fopenmp -fstack-arrays -mcmodel=large > > If I use the -mcmodel=medium on Linux the program does not link due to size problems. That's why I use -mcmodel=large. Try to build without -mcmodel=large on Cygwin. It might be a problem with crtbegin.o being built for the medium code model used for Cygwin applications by default. If that doesn't work, you'd probably need another set of gcc CRT files built for the large code model. > As far as I understand the error message and as stated by Corinna in > https://sourceware.org/ml/cygwin-developers/2013-04/msg00011.html This is about compiler intrinsics and has nothing to do with your problem, sorry. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat
Attachment:
pgpsKf80k4O_g.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |