Skip to content

Linking problems on Windows (msys2+ucrt64) #532

Description

@Febbe

I stumbled over linking issues while building the bscompiler:

First of all, the target name for Mingw64/UCRT64 in config.guess should be most likely ${UNAME_MACHINE}-w64-mingw32 instead of:

    *:MINGW64*:*)
	echo ${UNAME_MACHINE}-pc-mingw64

Second, when linking to lyices, I get the following linker warning:

[149 of 149] Linking bluetcl.exe [Objects changed]
ld.lld: warning: runtime pseudo relocation in C:/Users/Febbe/Desktop/ws/bsc-2024.07/bsc/src/comp/../../build/comp\Yices.o against symbol yices_build_arch is too narrow (only 32 bits wide); this can fail at runtime depending on memory layout
ld.lld: warning: runtime pseudo relocation in C:/Users/Febbe/Desktop/ws/bsc-2024.07/bsc/src/comp/../../build/comp\Yices.o against symbol yices_version is too narrow (only 32 bits wide); this can fail at runtime depending on memory layout
ld.lld: warning: runtime pseudo relocation in C:/Users/Febbe/Desktop/ws/bsc-2024.07/bsc/src/comp/../../build/comp\Yices.o against symbol yices_version is too narrow (only 32 bits wide); this can fail at runtime depending on memory layout

The application crashes with:

Mingw-w64 runtime failure:
32 bit pseudo relocation at 00007FF60C9531A4 out of range, targeting 00007FFF1DE00880, yielding the value 00000009114AD6D8.

It looks like, yices is build as 32 bit library.

Activity

  1. ahmed-irfan commented on Oct 11, 2024

    @ahmed-irfan
    Member

    Can you please share your compilation script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions