Invalid relocation

Marco Atzeri marco.atzeri@gmail.com
Fri Jul 1 19:51:46 GMT 2022



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


More information about the Cygwin mailing list