Tiny Core Extensions > TCE Bugs

readline undefined symbol

<< < (2/3) > >>

Juanito:
I've checked readline in both tc-12.x x86 and x86_64 and both give this:
--- Code: ---$ ldd /usr/local/lib/libreadline.so.8
        linux-vdso.so.1 (0x00007fffe78aa000)
        libncursesw.so.6 => /usr/local/lib/libncursesw.so.6 (0x00007f3eabd3e000)
        libc.so.6 => /lib/libc.so.6 (0x00007f3eabbb1000)
        /lib/ld-linux-x86-64.so.2 (0x00007f3eabde5000)
--- End code ---


--- Code: ---$ nm /usr/local/lib/libreadline.so.8 | grep UP
nm: /usr/local/lib/libreadline.so.8: no symbols

--- End code ---


--- Code: ---$ printf '\tTAB' | /use/local/bin/awk '/\t/'
sh: /use/local/bin/awk: not found
--- End code ---

Are you working with a locally compiled version of readline?

polikuo:

--- Quote from: Juanito on April 05, 2021, 02:04:29 AM ---Are you working with a locally compiled version of readline?

--- End quote ---

Oops  :-[

Sorry for the noise, I totally forgot about that I haven't reboot yet.

I was trying to build gcc and all the deps natively to see the difference in performance.


--- Code: ---CXXFLAGS='-march=native -mtune=native -Ofast -pipe -fuse-linker-plugin -flto -fno-exceptions -fno-rtti'
tce-load -fi tool-ncursesw
../configure --with-curses
--- End code ---

I guess simply overwriting the current ncursesw with "-fi" is not the way to go.

Juanito:
You might want to explicitly state your cpu (-march=haswell in my case) - I'm not convinced that all source code will use it otherwise.

You can check by running ./configure in the gmp source code, or:
--- Code: ---$ gcc -mcpu=native -march=native -Q --help=target
--- End code ---

Rich:
Hi Juanito

--- Quote from: Juanito on April 05, 2021, 02:04:29 AM --- ...
--- Code: ---$ nm /usr/local/lib/libreadline.so.8 | grep UP
nm: /usr/local/lib/libreadline.so.8: no symbols
--- End code ---
...
--- End quote ---
Thank you for posting that. I was getting that result with every library I tried under TC10 x86 even though midnight commander
showed that symbols were present. I don't know why  nm  couldn't list symbols, but  readelf  could:

--- Code: ---tc@E310:~$ readelf -s /usr/local/lib/libreadline.so.7 | grep UP
   274: 00000000     0 OBJECT  GLOBAL DEFAULT  UND UP
tc@E310:~$ readelf -s /usr/local/lib/libncursesw.so.6 | grep UP
   329: 00043d04     4 OBJECT  GLOBAL DEFAULT   22 UP
tc@E310:~$
--- End code ---

curaga:
nm lists static symbols by default, which we usually strip. Use "nm -D" on dynamic libraries.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version