Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating sysimage fails on Windows #88

Open
abhro opened this issue Nov 26, 2024 · 0 comments
Open

Creating sysimage fails on Windows #88

abhro opened this issue Nov 26, 2024 · 0 comments

Comments

@abhro
Copy link

abhro commented Nov 26, 2024

Creation of a sysimage fails because g++ cannot find the required symbols (linking error). Minimal working example is to write a script bfloat16s-sysimage-creator.jl:

import Pkg

Pkg.activate(temp = true)

Pkg.add(["BFloat16s", "PackageCompiler"])

using PackageCompiler

create_sysimage(["BFloat16s"], sysimage_path = "bfloat16s-sysimage.dll")

The output of which is piped into a text file (see attachment bfloat16s-packagecompiler-log.txt)

The file is mostly warnings about unrecognized drectives, which also happens on other sysimage creation. The relevant lines are

$HOME\AppData\Local\Temp\jl_tyfKvKlihE-o.a(text#1.o): In function `BFloat16':
$HOME\.julia\packages\BFloat16s\u3WQc\src/bfloat16.jl:158: undefined reference to `__truncdfbf2'
$HOME\AppData\Local\Temp\jl_tyfKvKlihE-o.a(text#15.o): In function `BFloat16':
$HOME\.julia\packages\BFloat16s\u3WQc\src/bfloat16.jl:158: undefined reference to `__truncdfbf2'
collect2.exe: error: ld returned 1 exit status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant