我正在通过自龙芯github(https://github.com/loongson/build-tools/)上获取到的交叉编译工具进行编译,途中遇到了如下的问题:
Dump relocate record:
stack top relocation name symbol
at compiler/stage2/build/GHC/Rename/Expr.dyn_o(.text+0xcf4b8):
...
0x000000000000481d R_LARCH_SOP_POP_32_S_5_20 `<nameless>'
at compiler/stage2/build/GHC/Rename/Expr.dyn_o(.text+0xcf4bc):
0x000000000006b4f8 R_LARCH_SOP_PUSH_PCREL `_GLOBAL_OFFSET_TABLE_' + 4(0x4)
0x00000000047b1848 R_LARCH_SOP_PUSH_GPREL `MainCapability'
0x000000000006b4f8 R_LARCH_SOP_ADD `<nameless>'
0x000000000481cd40 R_LARCH_SOP_PUSH_PCREL `_GLOBAL_OFFSET_TABLE_' + 2052(0x804)
0x00000000047b2048 R_LARCH_SOP_PUSH_GPREL `MainCapability'
0x000000000006b4f8 R_LARCH_SOP_ADD `<nameless>'
0x000000000481d540 R_LARCH_SOP_PUSH_ABSOLUTE `<nameless>' + 12(0xc)
0x000000000000000c R_LARCH_SOP_SR `<nameless>'
0x000000000000481d R_LARCH_SOP_PUSH_ABSOLUTE `<nameless>' + 12(0xc)
0x000000000000000c R_LARCH_SOP_SL `<nameless>'
0x000000000481d000 R_LARCH_SOP_SUB `<nameless>'
0xfffffffffffffd40 R_LARCH_SOP_POP_32_S_10_12 `<nameless>'
at compiler/stage2/build/GHC/Rename/Expr.dyn_o(.text+0xcf530):
0x000000000004b470 R_LARCH_SOP_PUSH_PCREL `_GLOBAL_OFFSET_TABLE_' + 2048(0x800)
0x00000000047b1fd0 R_LARCH_SOP_PUSH_GPREL `MainCapability'
0x000000000006b4f8 R_LARCH_SOP_ADD `<nameless>'
0x000000000481d4c8 R_LARCH_SOP_PUSH_ABSOLUTE `<nameless>' + 12(0xc)
0x000000000000000c R_LARCH_SOP_SR `<nameless>'
0x000000000000481d R_LARCH_SOP_POP_32_S_5_20 `<nameless>'
at compiler/stage2/build/GHC/Rename/Expr.dyn_o(.text+0xcf534):
0x000000000004b470 R_LARCH_SOP_PUSH_PCREL `_GLOBAL_OFFSET_TABLE_' + 4(0x4)
0x00000000047b17d0 R_LARCH_SOP_PUSH_GPREL `MainCapability'
0x000000000006b4f8 R_LARCH_SOP_ADD `<nameless>'
0x000000000481ccc8 R_LARCH_SOP_PUSH_PCREL `_GLOBAL_OFFSET_TABLE_' + 2052(0x804)
0x00000000047b1fd0 R_LARCH_SOP_PUSH_GPREL `MainCapability'
0x000000000006b4f8 R_LARCH_SOP_ADD `<nameless>'
0x000000000481d4c8 R_LARCH_SOP_PUSH_ABSOLUTE `<nameless>' + 12(0xc)
0x000000000000000c R_LARCH_SOP_SR `<nameless>'
0x000000000000481d R_LARCH_SOP_PUSH_ABSOLUTE `<nameless>' + 12(0xc)
0x000000000000000c R_LARCH_SOP_SL `<nameless>'
0x000000000481d000 R_LARCH_SOP_SUB `<nameless>'
0xfffffffffffffcc8 R_LARCH_SOP_POP_32_S_10_12 `<nameless>'
at compiler/stage2/build/GHC/Rename/Expr.dyn_o(.text+0xcf544):
0x0000000000072eb0 R_LARCH_SOP_PUSH_PCREL `.L12063'
0x0000000000000014 R_LARCH_SOP_POP_32_S_10_16_S2 `<nameless>'
at compiler/stage2/build/GHC/Rename/Expr.dyn_o(.text+0xcf548):
0x000000000006b4f8 R_LARCH_SOP_PUSH_PCREL `_GLOBAL_OFFSET_TABLE_' + 2048(0x800)
0x00000000047b1fb8 R_LARCH_SOP_PUSH_GPREL `MainCapability'
0x000000000006b4f8 R_LARCH_SOP_ADD `<nameless>'
0x000000000481d4b0 R_LARCH_SOP_PUSH_ABSOLUTE `<nameless>' + 12(0xc)
0x000000000000000c R_LARCH_SOP_SR `<nameless>'
0x000000000000481d R_LARCH_SOP_POP_32_S_5_20 `<nameless>'
at compiler/stage2/build/GHC/Rename/Expr.dyn_o(.text+0xcf54c):
0x000000000006b4f8 R_LARCH_SOP_PUSH_PCREL `_GLOBAL_OFFSET_TABLE_' + 4(0x4)
0x00000000047b17b8 R_LARCH_SOP_PUSH_GPREL `MainCapability'
0x000000000006b4f8 R_LARCH_SOP_ADD `<nameless>'
0x000000000481ccb0 R_LARCH_SOP_PUSH_PCREL `_GLOBAL_OFFSET_TABLE_' + 2052(0x804)
0x00000000047b1fb8 R_LARCH_SOP_PUSH_GPREL `MainCapability'
0x000000000006b4f8 R_LARCH_SOP_ADD `<nameless>'
0x000000000481d4b0 R_LARCH_SOP_PUSH_ABSOLUTE `<nameless>' + 12(0xc)
0x000000000000000c R_LARCH_SOP_SR `<nameless>'
0x000000000000481d R_LARCH_SOP_PUSH_ABSOLUTE `<nameless>' + 12(0xc)
0x000000000000000c R_LARCH_SOP_SL `<nameless>'
0x000000000481d000 R_LARCH_SOP_SUB `<nameless>'
0xfffffffffffffcb0 R_LARCH_SOP_POP_32_S_10_12 `<nameless>'
at compiler/stage2/build/GHC/Rename/Expr.dyn_o(.text+0xcf564):
0x000000000006b4f8 R_LARCH_SOP_PUSH_PCREL `_GLOBAL_OFFSET_TABLE_' + 2048(0x800)
0x00000000047b1f9c R_LARCH_SOP_PUSH_GPREL `MainCapability'
0x000000000006b4f8 R_LARCH_SOP_ADD `<nameless>'
0x000000000481d494 R_LARCH_SOP_PUSH_ABSOLUTE `<nameless>' + 12(0xc)
0x000000000000000c R_LARCH_SOP_SR `<nameless>'
0x000000000000481d R_LARCH_SOP_POP_32_S_5_20 `<nameless>'
at compiler/stage2/build/GHC/Rename/Expr.dyn_o(.text+0xcf568):
0x000000000006b4f8 R_LARCH_SOP_PUSH_PCREL `_GLOBAL_OFFSET_TABLE_' + 4(0x4)
0x00000000047b179c R_LARCH_SOP_PUSH_GPREL `MainCapability'
0x000000000006b4f8 R_LARCH_SOP_ADD `<nameless>'
0x000000000481cc94 R_LARCH_SOP_PUSH_PCREL `_GLOBAL_OFFSET_TABLE_' + 2052(0x804)
0x00000000047b1f9c R_LARCH_SOP_PUSH_GPREL `MainCapability'
0x000000000006b4f8 R_LARCH_SOP_ADD `<nameless>'
0x000000000481d494 R_LARCH_SOP_PUSH_ABSOLUTE `<nameless>' + 12(0xc)
0x000000000000000c R_LARCH_SOP_SR `<nameless>'
0x000000000000481d R_LARCH_SOP_PUSH_ABSOLUTE `<nameless>' + 12(0xc)
0x000000000000000c R_LARCH_SOP_SL `<nameless>'
0x000000000481d000 R_LARCH_SOP_SUB `<nameless>'
0xfffffffffffffc94 R_LARCH_SOP_POP_32_S_10_12 `<nameless>'
at compiler/stage2/build/GHC/Rename/Expr.dyn_o(.text+0xcf578):
0x000000000006b4f8 R_LARCH_SOP_PUSH_PLT_PCREL `newCAF'
0xfffffffff7f357e8 R_LARCH_SOP_POP_32_S_0_10_10_16_S2 `<nameless>'
/home/hiropoi/Desktop/GHCtime/CrossCPS/cross-tools/bin/ld: compiler/stage2/build/GHC/Rename/Expr.dyn_o: in function `.L12063':
(.text+0xcf578): relocation truncated to fit: R_LARCH_SOP_POP_32_S_0_10_10_16_S2 against `<nameless>'
/home/hiropoi/Desktop/GHCtime/CrossCPS/cross-tools/bin/ld: final link failed: symbol needs debug section which does not exist
collect2: error: ld returned 1 exit status
-- Record dump end --
该问题从何而来?我该如何解决?万望各位大神不吝赐教