Skip to content

An error occurred while compiling the debug version #590

Open
@hongqing1986

Description

@hongqing1986

When I try to compile a debug version, I encounter the following error. How can I resolve this issue?
The command I used for compilation is as follows
cmake -D CMAKE_BUILD_TYPE=Debug -D ENABLE_FP8=OFF && make -j

_/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crti.o: in function _init': (.init+0xb): relocation truncated to fit: R_X86_64_REX_GOTPCRELX against undefined symbol gmon_start'
/usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o: in function deregister_tm_clones': crtstuff.c:(.text+0x3): relocation truncated to fit: R_X86_64_PC32 against .tm_clone_table'
crtstuff.c:(.text+0xa): relocation truncated to fit: R_X86_64_PC32 against symbol __TMC_END__' defined in .nvFatBinSegment section in ../../lib/libtransformer-shared.so crtstuff.c:(.text+0x16): relocation truncated to fit: R_X86_64_REX_GOTPCRELX against undefined symbol _ITM_deregisterTMCloneTable'
/usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o: in function register_tm_clones': crtstuff.c:(.text+0x33): relocation truncated to fit: R_X86_64_PC32 against .tm_clone_table'
crtstuff.c:(.text+0x3a): relocation truncated to fit: R_X86_64_PC32 against symbol __TMC_END__' defined in .nvFatBinSegment section in ../../lib/libtransformer-shared.so crtstuff.c:(.text+0x57): relocation truncated to fit: R_X86_64_REX_GOTPCRELX against undefined symbol _ITM_registerTMCloneTable'
/usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o: in function __do_global_dtors_aux': crtstuff.c:(.text+0x76): relocation truncated to fit: R_X86_64_PC32 against .bss'
crtstuff.c:(.text+0x81): relocation truncated to fit: R_X86_64_GOTPCREL against symbol __cxa_finalize@@GLIBC_2.2.5' defined in .text section in /lib/x86_64-linux-gnu/libc.so.6 crtstuff.c:(.text+0x8e): relocation truncated to fit: R_X86_64_PC32 against symbol __dso_handle' defined in .data.rel.local section in /usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o
crtstuff.c:(.text+0x9e): additional relocation overflows omitted from the output
../../lib/libtransformer-shared.so: PC-relative offset overflow in PLT entry for `_ZN17fastertransformer33generic_mixed_gemm_kernelLauncherI6__halfN7cutlass15integer_subbyteILi4ELb0EEENS2_4arch4Sm80ENS_20EpilogueOpBiasFtGeluENS2_4gemm9GemmShapeILi32ELi128ELi64EEENS9_ILi32ELi32ELi64EEELi3EEEvPKT_PKT0_SE_SE_PSC_iiiNS_17CutlassGemmConfigEPcmP11CUstream_stPi'
collect2: error: ld returned 1 exit status
make[2]: *** [_deps/repo-ft-build/CMakeFiles/transformer-shared.dir/build.make:859: lib/libtransformer-shared.so] Error 1
make[2]: Leaving directory '/workspace/build/fastertransformer_backend/dbuild'
make[1]: *** [CMakeFiles/Makefile2:1760: deps/repo-ft-build/CMakeFiles/transformer-shared.dir/all] Error 2

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