Skip to content

Build native fix, line 87 on CMakeList.txt #469

@CristobalRR

Description

@CristobalRR

For the native build, Marian demand to be compiled with BLAS and CBLAS on the system, other wise it always will dump this error during run time:
...
Error: Marian must be compiled with a BLAS library
Error: Aborted from void sgemm(bool, b....
...
Aborted (core dumped) build-native/app/bergamot --log-level debug ...

so to make marian locate BLAS and CBLAS succesfuly, i had to check the CMakeList.txt, it took me a while to realize that
SET(USE_STATIC_LIBS ON CACHE BOOL "Link statically against non-system libs") was blocking marian but after commenting the line it run nice.

this test was done under debian and arch on wsl, i doubt it was a wsl only error. if im not the only one suffering from this bug i propose to move this line to the:
if (USE_WASM_COMPATIBLE_SOURCE)
on line 89 if it is needed for the wasm build.

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