public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Invalid relocation
@ 2022-07-01  5:39 Marco Atzeri
  2022-07-01  8:35 ` Mark Geisert
  0 siblings, 1 reply; 4+ messages in thread
From: Marco Atzeri @ 2022-07-01  5:39 UTC (permalink / raw)
  To: cygwin

Hi,

Building latest flint package
all tests fail with

$ PATH="$(pwd)/bin:${PATH}" bin/ulong_extras-test-t-xgcd.exe
Cygwin runtime failure: 
/pub/devel/flint/flint-2.9.0-1.x86_64/build/bin/ulong_extras-test-t-xgcd.exe: 
Invalid relocation.  Offset 0x3913a070c at address 0x100401740 doesn't 
fit into 32 bits

Any suggestion on what to look for ?


$ uname -svr
CYGWIN_NT-10.0-19043 3.3.5-341.x86_64 2022-05-13 12:27 UTC

$ gcc --version
gcc (GCC) 11.3.0

Regards
Marco

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Invalid relocation
  2022-07-01  5:39 Invalid relocation Marco Atzeri
@ 2022-07-01  8:35 ` Mark Geisert
  2022-07-01  9:19   ` Mark Geisert
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Geisert @ 2022-07-01  8:35 UTC (permalink / raw)
  To: cygwin

Hi Marco,

Marco Atzeri wrote:
> Hi,
> 
> Building latest flint package
> all tests fail with
> 
> $ PATH="$(pwd)/bin:${PATH}" bin/ulong_extras-test-t-xgcd.exe
> Cygwin runtime failure: 
> /pub/devel/flint/flint-2.9.0-1.x86_64/build/bin/ulong_extras-test-t-xgcd.exe: 
> Invalid relocation.  Offset 0x3913a070c at address 0x100401740 doesn't fit into 32 
> bits
> 
> Any suggestion on what to look for ?

The common reason for this failure is a required DLL being rebased too high to be 
reachable from the location where the relocation is being updated.  Check the .exe 
with ldd: is the correct libflint*.dll being referred to?  (I.e., watch out for 
stale DLLs in /usr/local/bin and such.  Been there.)

..mark

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Invalid relocation
  2022-07-01  8:35 ` Mark Geisert
@ 2022-07-01  9:19   ` Mark Geisert
  2022-07-01 19:51     ` Marco Atzeri
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Geisert @ 2022-07-01  9:19 UTC (permalink / raw)
  To: cygwin

Mark Geisert wrote:
> Hi Marco,
> 
> Marco Atzeri wrote:
>> Hi,
>>
>> Building latest flint package
>> all tests fail with
>>
>> $ PATH="$(pwd)/bin:${PATH}" bin/ulong_extras-test-t-xgcd.exe
>> Cygwin runtime failure: 
>> /pub/devel/flint/flint-2.9.0-1.x86_64/build/bin/ulong_extras-test-t-xgcd.exe: 
>> Invalid relocation.  Offset 0x3913a070c at address 0x100401740 doesn't fit into 
>> 32 bits
>>
>> Any suggestion on what to look for ?
> 
> The common reason for this failure is a required DLL being rebased too high to be 
> reachable from the location where the relocation is being updated.  Check the .exe 
> with ldd: is the correct libflint*.dll being referred to?  (I.e., watch out for 
> stale DLLs in /usr/local/bin and such.  Been there.)

Forgot to add: you ./configure'd with --disable-static, right?

..mark

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Invalid relocation
  2022-07-01  9:19   ` Mark Geisert
@ 2022-07-01 19:51     ` Marco Atzeri
  0 siblings, 0 replies; 4+ messages in thread
From: Marco Atzeri @ 2022-07-01 19:51 UTC (permalink / raw)
  To: cygwin



On 01.07.2022 11:19, Mark Geisert wrote:
> Mark Geisert wrote:
>> Hi Marco,
>>
>> Marco Atzeri wrote:
>>> Hi,
>>>
>>> Building latest flint package
>>> all tests fail with
>>>
>>> $ PATH="$(pwd)/bin:${PATH}" bin/ulong_extras-test-t-xgcd.exe
>>> Cygwin runtime failure: 
>>> /pub/devel/flint/flint-2.9.0-1.x86_64/build/bin/ulong_extras-test-t-xgcd.exe: 
>>> Invalid relocation.  Offset 0x3913a070c at address 0x100401740 
>>> doesn't fit into 32 bits
>>>
>>> Any suggestion on what to look for ?
>>
>> The common reason for this failure is a required DLL being rebased too 
>> high to be reachable from the location where the relocation is being 
>> updated.  Check the .exe with ldd: is the correct libflint*.dll being 
>> referred to?  (I.e., watch out for stale DLLs in /usr/local/bin and 
>> such.  Been there.)

it is the first of its kind due to API bump

$ ldd bin/ulong_extras-test-t-xgcd.exe
         ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll 
(0x7ffcd3810000)
         KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL 
(0x7ffcd2070000)
         KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll 
(0x7ffcd12c0000)
         cygflint-17.dll => 
/pub/devel/flint/test/flint-2.9.0-1.x86_64/build/bin/cygflint-17.dll 
(0x37af20000)
         cyggmp-10.dll => /usr/bin/cyggmp-10.dll (0x3da8b0000)
         cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
         cygwin1.dll => /usr/bin/cygwin1.dll (0xcd0000)
         cyggcc_s-seh-1.dll => /usr/bin/cyggcc_s-seh-1.dll (0x3df7a0000)
         cygstdc++-6.dll => /usr/bin/cygstdc++-6.dll (0x3b6f10000)
         cygblas-0.dll => /usr/bin/cygblas-0.dll (0x38cc80000)
         cygmpfr-6.dll => /usr/bin/cygmpfr-6.dll (0x3c3e70000)
         cygntl-44.dll => /usr/bin/cygntl-44.dll (0x3e8fc0000)

$ bin/ulong_extras-test-t-xgcd.exe
Cygwin runtime failure: 
/pub/devel/flint/test/flint-2.9.0-1.x86_64/build/bin/ulong_extras-test-t-xgcd.exe: 
Invalid relocation.  Offset 0x27ab2070c at address 0x100401740 doesn't 
fit into 32 bits

> 
> Forgot to add: you ./configure'd with --disable-static, right?

$ find . -name "*.a"
./CMakeFiles/_CMakeLTOTest-C/bin/libfoo.a
./lib/libflint.dll.a
./libtest_helpers.a

May be the libtest ?


> ..mark

Regards
Marco

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-07-01 19:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-01  5:39 Invalid relocation Marco Atzeri
2022-07-01  8:35 ` Mark Geisert
2022-07-01  9:19   ` Mark Geisert
2022-07-01 19:51     ` Marco Atzeri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).