Unable to install gettext package on RISC-V OS Image

49 views
Skip to first unread message

Billa Surendra

unread,
Dec 2, 2021, 7:10:23 AM12/2/21
to RISC-V SW Dev
Hi Everyone,

I am trying to install gettext-0.21 on RISC-V (RV64IMAFD) OS image which has been developed by me. I have a native compiler on it. Here I am facing a problem while installing gettext on top of it. Other than gettext package, I can able to install other packages. Can anyone please help me out?

Error message:

libtool: link: rm -fr  .libs/libtextstyle.so.0.1.1 .libs/libtextstyle.ver
libtool: link: echo "{ global:" > .libs/libtextstyle.ver
libtool: link:  cat libtextstyle.sym | sed -e "s/\(.*\)/\1;/" >> .libs/libtextstyle.ver
libtool: link:  echo "local: *; };" >> .libs/libtextstyle.ver
libtool: link:  gcc -shared  -fPIC -DPIC  .libs/gl_array_list.o .libs/basename-lgpl.o .libs/binary-io.o .libs/c-ctype.o .libs/c-strcasecmp.o .libs/c-strncasecmp.o .libs/cloexec.o .libs/concat-filename.o .libs/exitfail.o .libs/fatal-signal.o .libs/fd-hook.o .libs/fd-ostream.o .libs/file-ostream.o .libs/full-write.o .libs/get_ppid_of.o .libs/get_progname_of.o .libs/getprogname.o .libs/html-ostream.o .libs/html-styled-ostream.o .libs/iconv-ostream.o .libs/gl_list.o glthread/.libs/lock.o .libs/malloca.o .libs/math.o .libs/mem-hash-map.o .libs/memory-ostream.o .libs/noop-styled-ostream.o .libs/ostream.o .libs/printf-frexp.o .libs/printf-frexpl.o .libs/safe-read.o .libs/safe-write.o .libs/sig-handler.o .libs/sockets.o .libs/stat-time.o .libs/styled-ostream.o .libs/sys_socket.o .libs/term-ostream.o .libs/term-style-control.o .libs/term-styled-ostream.o glthread/.libs/threadlib.o .libs/unistd.o unistr/.libs/u8-mbtouc.o unistr/.libs/u8-mbtouc-aux.o .libs/xmalloc.o .libs/xstrdup.o .libs/xconcat-filename.o .libs/xgethostname.o .libs/gl_xlist.o .libs/xsize.o .libs/xvasprintf.o .libs/xasprintf.o .libs/color.o .libs/misc.o .libs/version.o .libs/asnprintf.o .libs/fcntl.o .libs/obstack.o .libs/printf-args.o .libs/printf-parse.o .libs/vasnprintf.o  -Wl,--whole-archive ./.libs/libcroco_rpl.a ./.libs/libglib_rpl.a ./.libs/libxml_rpl.a -Wl,--no-whole-archive  -lm -L/usr/lib -lncurses  -g -O2   -Wl,-soname -Wl,libtextstyle.so.0 -Wl,-version-script -Wl,.libs/libtextstyle.ver -o .libs/libtextstyle.so.0.1.1
ld[20067]: unhandled signal 11 code 0x1 at 0x0000000000000088 in ld[10000+14b000]
CPU: 1 PID: 20067 Comm: ld Not tainted 5.4.1 #1
sepc: 000000000005333c ra : 0000000000054290 sp : 0000003fffa86540
 gp : 000000000015e4d0 tp : 0000003fe083c7b0 t0 : 0000000000084cac
 t1 : 00000000000003fc t2 : 0000000000000000 s0 : 0000000000162de0
 s1 : 0000000000000000 a0 : 0000000000182b80 a1 : 0000000000000000
 a2 : 0000000000d8f0d0 a3 : 000000000000cbf4 a4 : 0000000000000003
 a5 : 0000000000149b18 a6 : 00011f0000000000 a7 : 0000000000000003
 s2 : 0000000000d8dcd0 s3 : 0000000000d86760 s4 : 00000000013a5370
 s5 : 0000000000184f20 s6 : 0000003fffa865f8 s7 : 0000000000000000
 s8 : 0000000000d980a0 s9 : 0000000000d8f0d0 s10: 0000000000d914a7
 s11: 0000000000000000 t3 : 00000000000000ff t4 : 0000000000000000
 t5 : 0000000000000001 t6 : 000000000006e1b0
sstatus: 8000000000006020 sbadaddr: 0000000000000088 scause: 000000000000000d
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o): relocation R_RISCV_HI20 against `TABSIZE' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_ti.o): relocation R_RISCV_HI20 against `cur_term' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_tparm.o): relocation R_RISCV_HI20 against `_nc_prescreen' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_tputs.o): relocation R_RISCV_HI20 against `stdout@@GLIBC_2.27' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_ttyflags.o): relocation R_RISCV_HI20 against `_nc_prescreen' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(name_match.o): relocation R_RISCV_HI20 against `_nc_globals' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(read_entry.o): relocation R_RISCV_HI20 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(alloc_ttype.o): relocation R_RISCV_HI20 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(comp_error.o): relocation R_RISCV_HI20 against `_nc_globals' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(comp_userdefs.o): relocation R_RISCV_HI20 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(db_iterator.o): relocation R_RISCV_HI20 against `_nc_globals' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(entries.o): relocation R_RISCV_HI20 against `_nc_head' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(free_ttype.o): relocation R_RISCV_HI20 against `_nc_head' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(getenv_num.o): relocation R_RISCV_HI20 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(home_terminfo.o): relocation R_RISCV_HI20 against `_nc_globals' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_baudrate.o): relocation R_RISCV_HI20 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_cur_term.o): relocation R_RISCV_HI20 against `ospeed' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_napms.o): relocation R_RISCV_HI20 against `SP' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_options.o): relocation R_RISCV_HI20 against `cur_term' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_raw.o): relocation R_RISCV_HI20 against `cur_term' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(comp_captab.o): relocation R_RISCV_HI20 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(init_keytry.o): relocation R_RISCV_HI20 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_has_cap.o): relocation R_RISCV_HI20 against `cur_term' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(key_defined.o): relocation R_RISCV_HI20 against `SP' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0x184): unresolvable R_RISCV_CALL relocation against symbol `isatty@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0x1c4): unresolvable R_RISCV_CALL relocation against symbol `ioctl@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0x554): unresolvable R_RISCV_CALL relocation against symbol `setlocale@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0x568): unresolvable R_RISCV_CALL relocation against symbol `nl_langinfo@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0x7a4): unresolvable R_RISCV_CALL relocation against symbol `sysconf@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0x838): unresolvable R_RISCV_CALL relocation against symbol `isatty@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0x8a0): unresolvable R_RISCV_HI20 relocation against symbol `stderr@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0x8a4): unresolvable R_RISCV_LO12_I relocation against symbol `stderr@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0x930): unresolvable R_RISCV_CALL relocation against symbol `isatty@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0x948): unresolvable R_RISCV_CALL relocation against symbol `sysconf@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0x95c): unresolvable R_RISCV_HI20 relocation against symbol `stderr@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0x964): unresolvable R_RISCV_LO12_I relocation against symbol `stderr@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0x98c): unresolvable R_RISCV_HI20 relocation against symbol `stderr@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0x994): unresolvable R_RISCV_LO12_I relocation against symbol `stderr@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0xa44): unresolvable R_RISCV_HI20 relocation against symbol `stderr@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0xa48): unresolvable R_RISCV_LO12_I relocation against symbol `stderr@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0xa68): unresolvable R_RISCV_HI20 relocation against symbol `stderr@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0xa6c): unresolvable R_RISCV_LO12_I relocation against symbol `stderr@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0xa90): unresolvable R_RISCV_HI20 relocation against symbol `stderr@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0xa94): unresolvable R_RISCV_LO12_I relocation against symbol `stderr@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0xab4): unresolvable R_RISCV_HI20 relocation against symbol `stderr@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0xabc): unresolvable R_RISCV_LO12_I relocation against symbol `stderr@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0xacc): unresolvable R_RISCV_HI20 relocation against symbol `stderr@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0xad4): unresolvable R_RISCV_LO12_I relocation against symbol `stderr@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0xae4): unresolvable R_RISCV_HI20 relocation against symbol `stderr@@GLIBC_2.27'
/usr/lib/gcc/riscv64-unknown-linux-gnu/7.3.1/../../../../riscv64-unknown-linux-gnu/bin/ld: /usr/lib/libncurses.a(lib_setup.o)(.text+0xae8): unresolvable R_RISCV_LO12_I relocation against symbol `stderr@@GLIBC_2.27'
make[5]: *** [Makefile:2375: libtextstyle.la] Error 1
make[5]: Leaving directory '/home/gettext-0.21/libtextstyle/lib'
make[4]: *** [Makefile:2157: all] Error 2
make[4]: Leaving directory '/home/gettext-0.21/libtextstyle/lib'
make[3]: *** [Makefile:1786: all-recursive] Error 1
make[3]: Leaving directory '/home/gettext-0.21/libtextstyle'
make[2]: *** [Makefile:1714: all] Error 2
make[2]: Leaving directory '/home/gettext-0.21/libtextstyle'
make[1]: *** [Makefile:403: all-recursive] Error 1
make[1]: Leaving directory '/home/gettext-0.21'
make: *** [Makefile:359: all] Error 2


Thanks
Billa Surendra

Tommy Murphy

unread,
Dec 2, 2021, 7:25:29 AM12/2/21
to Billa Surendra, RISC-V SW Dev

Billa Surendra

unread,
Dec 2, 2021, 7:33:43 AM12/2/21
to Tommy Murphy, RISC-V SW Dev
On Thu, Dec 2, 2021 at 5:55 PM Tommy Murphy <tommy_...@hotmail.com> wrote:

For your information, I am running my RISC-V OS Image on QEMU.

Tommy Murphy

unread,
Dec 2, 2021, 7:37:35 AM12/2/21
to Billa Surendra, RISC-V SW Dev
> For your information, I am running my RISC-V OS Image on QEMU.

I linked to the SiFive blog because it contains information about RISC-V code models. This information is not specific to SiFive targets.

Jim Wilson

unread,
Dec 2, 2021, 1:04:30 PM12/2/21
to Billa Surendra, RISC-V SW Dev
On Thu, Dec 2, 2021 at 4:10 AM Billa Surendra <billa.i...@gmail.com> wrote:
I am trying to install gettext-0.21 on RISC-V (RV64IMAFD) OS image which has been developed by me. I have a native compiler on it. Here I am facing a problem while installing gettext on top of it. Other than gettext package, I can able to install other packages. Can anyone please help me out?

This question was also asked and partly answered here

Jim

Reply all
Reply to author
Forward
0 new messages