Skip to content

Creating sysimage for BFloat16s.jl fails on Windows #1016

@abhro

Description

@abhro

This issue is a duplicate of JuliaMath/BFloat16s.jl#88. I'm unsure which package is causing this issue however, so I'm essentially cross-posting here. A copy of the transcript is presented below:

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

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