Skip to content

Failure to build 1.0.8744 : IGC/VectorCompiler/CMCL/tools/Translator/Main.cpp:46: undefined reference to `cmcl::translateBuiltins(llvm::Module&)' unless '-z,undefs' specified as LD flag #212

Closed
@frantisekz

Description

@frantisekz

Hi,

I am experimenting a bit with packaging bunch of Intel packages into Fedora (with ultimate goal of getting the media-driver there, including the kernels compilation). I need to use system llvm (13) for this instead of bundled llvm.

I am currently stuck with:

/usr/bin/ld: /tmp/ccc4Kh4i.ltrans0.ltrans.o: in function `main':
/builddir/build/BUILD/intel-graphics-compiler-igc-1.0.8744/IGC/VectorCompiler/CMCL/tools/Translator/Main.cpp:46: undefined reference to `cmcl::translateBuiltins(llvm::Module&)'
collect2: error: ld returned 1 exit status
gmake[2]: *** [IGC/VectorCompiler/CMCL/tools/Translator/CMakeFiles/CMCLTranslatorTool.dir/build.make:103: IGC/Release/CMCLTranslatorTool] Error 1
gmake[2]: Leaving directory '/builddir/build/BUILD/intel-graphics-compiler-igc-1.0.8744/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:2775: IGC/VectorCompiler/CMCL/tools/Translator/CMakeFiles/CMCLTranslatorTool.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....

The entire buildlog could be viewed here:
build-igc.log

I've had to add bunch of other fixes (namely some -Wno-error and a fix around clang-opencl soname not being parsed correctly). I'll create issues for these later if that's desired.

I can upload the entire src.rpm set if that's necessary.

Thanks in advance!

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