Tiny Core Base > Alpha Releases

Tiny Core 15.0 Alpha 1 Testing

<< < (9/12) > >>

CardealRusso:

--- Quote from: andyj on January 10, 2024, 06:21:38 PM ---3) I get this with urxvt: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
Strange it doesn't happen on 64 bit.

--- End quote ---
I tried to compile urxtv to try to apply transparency and got exactly the same error. It's strange that you don't have the error, since google results indicate that it's a problem related to the version of GCC.
In my case, I couldn't even try to compile URXVT, since the same error comes from libptytty.

Could you share the buildscript?


--- Code: ---make install
[ 75%] Built target ptytty
[ 87%] Linking C executable c-sample
/usr/local/bin/ld: libptytty.so.0: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/c-sample.dir/build.make:98: c-sample] Error 1
make[1]: *** [CMakeFiles/Makefile2:114: CMakeFiles/c-sample.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

--- End code ---

CardealRusso:

--- Quote from: CardealRusso on January 10, 2024, 06:39:24 PM ---
--- End quote ---

nvm
i got it with rxvt-dev but no trans

Rich:
Hi andyj

--- Quote from: andyj on January 10, 2024, 06:21:38 PM ---I'm seeing these on 32 bit. 64 bit is OK.

...  undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)' ...
--- End quote ---
I don't know if this helps, but it appears that function may be in libstdc++.so.6.
This is from the 32 bit TC15 rootfs.gz:

--- Code: ---tc@E310:~/core15/tmp$ strings /usr/lib/libstdc\+\+.so.6 | grep throw_out_of_range_fmt
_ZSt24__throw_out_of_range_fmtPKcz
tc@E310:~/core15/tmp$
--- End code ---

andyj:
So, going into the weeds, yes, I'm getting the same error in libptytty in the same place, but I called it rxvt because it's part of the whole extension. Once upon a time it was part of the urxvt source, now it has been separated into it's own directory but is still required so I'm compiling them both then bundling them so rxvt won't have yet another dependency with one file that nothing else needs.

Looking through all the logs it apparently does also fail on 64-bit in TC 15, but it did not in TC 14, it works as expected. @CardealRusso if you want to experiment with transparency work in TC 14, at least it compiles there. FWIW I also experimented with 24 bit color (it worked) and sixel (crashed as often as worked). Arch Linux seems to have the most flavors of urxvt patches to try out.

Juanito:
Building libptytty from git on tc15.x x86_64 fails with:
--- Code: ---[100%] Linking C executable c-sample
/tmp/tcloop/cmake/usr/local/bin/cmake -E cmake_link_script CMakeFiles/c-sample.dir/link.txt --verbose=1
/usr/local/bin/cc -flto -mtune=generic -Os -pipe "CMakeFiles/c-sample.dir/eg/c-sample.c.o" -o c-sample  -Wl,-rpath,/usr/src/libptytty/build libptytty.so.0
/usr/local/bin/ld: libptytty.so.0: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
--- End code ---

..but if you do this:
--- Code: ---cc -flto -mtune=generic -Os -pipe "CMakeFiles/c-sample.dir/eg/c-sample.c.o" -o c-sample  -Wl,-rpath,/usr/src/libptytty/build libptytty.so.0 -lstdc++
--- End code ---

..the build succeeds and libptytty installs:
--- Code: ---ldd /usr/local/lib/libptytty.so
        linux-vdso.so.1 (0x00007fff15948000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f744428d000)
        libc.so.6 => /lib/libc.so.6 (0x00007f744409a000)
        /lib/ld-linux-x86-64.so.2 (0x00007f74442e2000)
--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version