Skip to content

Build fails on Slackware LInux #5702

Closed
Closed
@next-mad-hatter

Description

@next-mad-hatter

It seems when llvm was built using clang, llvm-config --cxxflags can produce options gcc-g++ does not understand [1], hence attempting to build crystal from source fails with errors like

g++: error: unrecognized command line option '-Wcovered-switch-default'

On a related note, on multilib Slackware the 64bit libraries reside in /usr/lib64 while the prebuilt x86_64 crystal version attempts to use /usr/lib and fails with errors like

/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread

Is there a way to make --link-flags "-L/usr/lib64" default for crystal build and similar commands?

[1] See also rust-lang/rust#14663

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