libpostal
libpostal copied to clipboard
RISC-V 64-bit build failure
At Alpine Linux we're currently porting the system to RISC-V 64-bit. This is happening using cross-compiling from x86_64 machines, if that matters.
libpostal currently fails to compile on that architecture:
./.libs/libscanner.a(libscanner_la-scanner.o): in function `scan_token':
/home/buildozer/aports/community/libpostal/src/libpostal-1.1-alpha/src/scanner.c:307068:(.text+0x59884): relocation truncated to fit: R_RISCV_JAL against `.L163525'
./.libs/libscanner.a(libscanner_la-scanner.o): in function `scan_token':
/home/buildozer/aports/community/libpostal/src/libpostal-1.1-alpha/src/scanner.c:307068:(.text+0x59884): relocation truncated to fit: R_RISCV_JAL against `.L163525'
./.libs/libscanner.a(libscanner_la-scanner.o): in function `scan_token':
/home/buildozer/aports/community/libpostal/src/libpostal-1.1-alpha/src/scanner.c:307068:(.text+0x59884): relocation truncated to fit: R_RISCV_JAL against `.L163525'
./.libs/libscanner.a(libscanner_la-scanner.o): in function `scan_token':
/home/buildozer/aports/community/libpostal/src/libpostal-1.1-alpha/src/scanner.c:307068:(.text+0x59884): relocation truncated to fit: R_RISCV_JAL against `.L163525'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1083: language_classifier] Error 1
make[2]: *** Waiting for unfinished jobs....
./.libs/libscanner.a(libscanner_la-scanner.o): in function `scan_token':
/home/buildozer/aports/community/libpostal/src/libpostal-1.1-alpha/src/scanner.c:307068:(.text+0x59884): relocation truncated to fit: R_RISCV_JAL against `.L163525'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1089: language_classifier_test] Error 1
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1049: address_parser_test] Error 1
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1095: language_classifier_train] Error 1
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1055: address_parser_train] Error 1
./.libs/libscanner.a(libscanner_la-scanner.o): in function `scan_token':
/home/buildozer/aports/community/libpostal/src/libpostal-1.1-alpha/src/scanner.c:307068:(.text+0x59884): relocation truncated to fit: R_RISCV_JAL against `.L163525'
This is happening with libpostal 1.1-alpha (when will a new release be out?). The build script used can be seen here.