X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=O6tN7wDTNX9XK/QooUhlA3LSfpn1A0IBb1+UUPwZD/5igBp71mUiz yaFw6XpAxDfqMFmYg4voUaTrri72lqRigm2/0Lc5xkPvwJgmd0UgIrzFrVcRrLpR V74rqRtjsTjRlqdxLlo+MxRFamGNlk/QkXJ0E9sd27bueHeIMpDBlk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=NA0ORKmHOoOTYtSH5mnkTh2XmYs=; b=JsiwK1OKOsSjIBjM1m7aYfO7PIor 9xcE2RcXZvXsnjn4qLHg3+u2/WCAHQvPGXWwyu3e9TrvMsEs40PY0xxIZthOUT0m OleklnF/8Ewg06JLzh0jI3i8Wd7wWpK3MU7NSjcR7C7RNs31cDD6XWBcz7qzwaly at8pJk/smS5VBw0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Date: Tue, 31 Mar 2015 17:14:25 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: [64 bit] linking with gfortran: error message in w32api/libkernel32.a Message-ID: <20150331151425.GK13285@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <3DD3BBDDAE1AAC4498CCF90DBC4622DC69DFD907 AT MBX-GAR01 DOT grs DOT de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J2uG6jHjFLimDtBY" Content-Disposition: inline In-Reply-To: <3DD3BBDDAE1AAC4498CCF90DBC4622DC69DFD907@MBX-GAR01.grs.de> User-Agent: Mutt/1.5.23 (2014-03-12) --J2uG6jHjFLimDtBY Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 g= fortran (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 gfo= rtran and ifort. However while linking with Cygwin64 I get the following er= ror messages: >=20 > --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_Get= ModuleHandleA' 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_Get= ProcAddress' defined in .idata$5 section in /usr/lib/w32api/libkernel32.a(d= cxms00598.o) > XXX.o:XXX.f:(.text+0x12a): relocation truncated to fit: R_X86_64_PC32 aga= inst symbol `XXX_' defined in COMMON section in XXX.o > --ERRORS------------------ >=20 > Used fflags: gfortran -O0 -fdefault-integer-8 -fdefault-double-8 -fdef= ault-real-8 -ffixed-form -fbacktrace -fopenmp -fstack-arrays -mcmodel= =3Dlarge >=20 > If I use the -mcmodel=3Dmedium on Linux the program does not link due to = size problems. That's why I use -mcmodel=3Dlarge. Try to build without -mcmodel=3Dlarge 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.=20=20 Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --J2uG6jHjFLimDtBY Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJVGrnRAAoJEPU2Bp2uRE+gFFIP/i5zKgxEex6OMoj2IONX96UT A4u7mdae6KRsqhpy3K30AuBLl0MH4/J0Oswa3RuZgMCCpvGySOseBv95XQe1SwxS +TDzp2AnM+QjGd3uVzI34MN0GYK0/9ntYnLadXDmOXRir0ICfDnu2SzhNTs5+Q38 YGPnO1v9GuczGKPssn/ZGsIfiZ1ITXTFqzyQFzoZ3OI1Oe8fxYsUbsFU1dkDptW5 wXwfflbIM/WDeMcykx+TRCKs0+byhMg1hxomZLx8V2kuEJDhnt/ipk9TVFjljDU3 J8nT5oV0EeX6bPC+wVY0G5KoDs+DoRgU/mCVepYI2ccaF81xsDjnTHBmFqPXmBO2 uABKH/7zcYzk13clo4jxRKk68KGhCajj9/B8BfX4yflj3H0LoLrs99F9wuTmMBY8 hPOq9/y2ikxoEN3oWGoJmyYsyEls8o3ysKsllodDEIByNG6pNePdLAWQ1Sma+1X6 YheHGgJMqaKN1eORaSeqDRBjyrgnoGuLmSjJEkAOdlaETS69J3vWRVQvVV0ekxDw jMKw5AQzCPvKWOG5n5Ew4j6ON9zWI24w/sD4yOrrdPHg7pVQoiQXutbta1EDB3MU J4/TG4J2+3K9FjH8RUHo9Ty0ulfdVk7qPIcQDarpTPsLbs3sQYIwIkMxI63fQBlr 0tvXX/HNYUzRsSr6CT9i =asRZ -----END PGP SIGNATURE----- --J2uG6jHjFLimDtBY--