gcompat issueshttps://git.adelielinux.org/adelie/gcompat/-/issues2022-06-14T03:34:01Zhttps://git.adelielinux.org/adelie/gcompat/-/issues/352Implementations for __mbstowcs_chk, __vwprintf_chk, __wcsncpy_chk and __wcsnc...2022-06-14T03:34:01ZChad WilsonImplementations for __mbstowcs_chk, __vwprintf_chk, __wcsncpy_chk and __wcsncat_chkHi - thanks for all the great work here!
Since there are now official Java builds linked aginst musl libc for Alpine, I'd love to get the Tanuki Java Service Wrapper working with gcompat support. It's a long story as to why this is usef...Hi - thanks for all the great work here!
Since there are now official Java builds linked aginst musl libc for Alpine, I'd love to get the Tanuki Java Service Wrapper working with gcompat support. It's a long story as to why this is useful and at this point the developers don't seem to be keen to produce versions linked against (or compatible with musl). In any case, currently with gcompat it doesn't seem to be too far away - just more of these `_chk` variants.
```
Error relocating /wrapper/wrapper-linux-x86-64: __mbstowcs_chk: symbol not found
Error relocating /wrapper/wrapper-linux-x86-64: __vwprintf_chk: symbol not found
Error relocating /wrapper/wrapper-linux-x86-64: __wcsncpy_chk: symbol not found
Error relocating /wrapper/wrapper-linux-x86-64: __wcsncat_chk: symbol not found
```
https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/libc.html#TBL-LIBC-WIDE-INTS
* https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib---mbstowcs-chk-1.html
* https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib---vwprintf-chk-1.html
* https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib---wcsncpy-chk-1.html
* https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib---wcsncat-chk-1.html
I'm guessing perhaps in
* mbstowcs_chk: https://git.adelielinux.org/adelie/gcompat/-/blob/current/libgcompat/stdlib.c
* last 3: https://git.adelielinux.org/adelie/gcompat/-/blob/current/libgcompat/wchar.chttps://git.adelielinux.org/adelie/gcompat/-/issues/361fcntl maps to what glibc would consider fcntl642023-12-16T05:49:25ZA. Wilcoxfcntl maps to what glibc would consider fcntl64I'm not sure if musl's fcntl will work with old binaries using the 32-bit (non-LFS64) flock structures. Needs testing at least, and probably a wrapper to translate them to 64-bit flock structures.I'm not sure if musl's fcntl will work with old binaries using the 32-bit (non-LFS64) flock structures. Needs testing at least, and probably a wrapper to translate them to 64-bit flock structures.https://git.adelielinux.org/adelie/gcompat/-/issues/360__fdelt_chk is not found2023-12-14T19:31:02ZKhem Raj__fdelt_chk is not foundWhile running with nvidia binary drivers its not able to map `__fdelt_chk`
```
weston[463]: [11:23:28.908] Failed to load module: Error relocating /usr/lib/libdrm.so.2: __fdelt_chk: symbol not found
```While running with nvidia binary drivers its not able to map `__fdelt_chk`
```
weston[463]: [11:23:28.908] Failed to load module: Error relocating /usr/lib/libdrm.so.2: __fdelt_chk: symbol not found
```https://git.adelielinux.org/adelie/gcompat/-/issues/359pthread_attr_setaffinity_np: symbol not found2023-03-14T03:38:18ZB. Seguipthread_attr_setaffinity_np: symbol not foundAfter install _gcompat_, all the issues were revolved excepted that one:
```
Error relocating /opt/...: pthread_attr_setaffinity_np: symbol not found
```
Is there any possibility add support to it?After install _gcompat_, all the issues were revolved excepted that one:
```
Error relocating /opt/...: pthread_attr_setaffinity_np: symbol not found
```
Is there any possibility add support to it?https://git.adelielinux.org/adelie/gcompat/-/issues/35732-bit stat implementation2022-12-18T14:04:12ZA. Wilcox32-bit stat implementation32-bit Spotify client requires `__xstat` and `__fxstat`. Implementing these will require translating the `struct stat` between glibc's 32-bit representation and musl's which I believe is 64-bit at all times.
There will also need to be ...32-bit Spotify client requires `__xstat` and `__fxstat`. Implementing these will require translating the `struct stat` between glibc's 32-bit representation and musl's which I believe is 64-bit at all times.
There will also need to be some consideration on time64 since st_{a|m|c}tim are 64-bit timespecs and I believe the glibc apps will be expecting __st_{a|m|c}tim32 to be valid.A. WilcoxA. Wilcoxhttps://git.adelielinux.org/adelie/gcompat/-/issues/356Segmentation fault when running glibc programs on arm2024-02-04T05:39:47ZJocelyn Le SageSegmentation fault when running glibc programs on armExecuting a glibc program with `gcompat` under Alpine crashes (`Segmentation fault`) on arm.
I'm using a Raspberry Pi 4B, running the Raspberry Pi OS Lite (32bits).
Here are the steps to reproduce:
1. Compile a hello world program:
``...Executing a glibc program with `gcompat` under Alpine crashes (`Segmentation fault`) on arm.
I'm using a Raspberry Pi 4B, running the Raspberry Pi OS Lite (32bits).
Here are the steps to reproduce:
1. Compile a hello world program:
```
gcc /tmp/hello.c -o /tmp/hello
```
Content of `/tmp/hello.c` is:
```
#include <stdio.h>
int main()
{
printf("Hello!\n");
return 0;
}
```
2. Create and login to an Alpine (edge) Docker container:
```
docker run --rm -ti -v /tmp/hello:/hello --privileged alpine:edge sh
```
3. Install `gcompat`:
```
apk add gcompat
```
3. Run the hello world program. At this point, the program crashes:
```
/ # /hello
Segmentation fault (core dumped)
```Zach van RijnZach van Rijnhttps://git.adelielinux.org/adelie/gcompat/-/issues/353How to send patches?2022-06-26T21:00:39ZGaël PORTAYHow to send patches?Hello,
The [README.rst](https://git.adelielinux.org/adelie/gcompat/-/blob/current/README.rst#L230-L231) says:
> For general discussion, questions, or to submit a patch, please use the [gcompat mailing list](https://lists.adelielinux.or...Hello,
The [README.rst](https://git.adelielinux.org/adelie/gcompat/-/blob/current/README.rst#L230-L231) says:
> For general discussion, questions, or to submit a patch, please use the [gcompat mailing list](https://lists.adelielinux.org/postorius/lists/gcompat.lists.adelielinux.org/).
Is it still true?
The recent history shows the patches are applied via the Gitlab Merge Requests. Does the `README.rst` need an update?
Regards,
Gaëlhttps://git.adelielinux.org/adelie/gcompat/-/issues/351Spins when starting signal.org desktop app (Electron)2022-05-31T19:21:52ZMark HillsSpins when starting signal.org desktop app (Electron)Thanks for this clever piece of software which has been useful for me (on Alpine Linux 3.15.4)
An application I still cannot run is the signal.org desktop client. It spins a single CPU thread in a tight loop. It seems to almost immediat...Thanks for this clever piece of software which has been useful for me (on Alpine Linux 3.15.4)
An application I still cannot run is the signal.org desktop client. It spins a single CPU thread in a tight loop. It seems to almost immediately get stuck in a tight loop shortly after startup and before any other threads are running.
I'm unsure why the total lack of any stack information in gdb. Linux "perf" gives a little more insight, showing the spin in some kind of malloc operation on thread start.
On the understanding it's an Electron app (based on Chrome) I tried Google's official Chrome download. On the surface, the behaviour is the same except: stack is shallower; and the name reported in perf is different (maybe Google compiled in a different malloc implementation)
There's really not a lot of information to go on here. Any suggestion on the next step for debugging/info? Thanks. Also has anyone tried other Electron apps? Because of course it could be the first of very many issues.
This is based on gcompat Git "current". I also tried merging all of the pending merge requests, with identical results.
```
$ cd signal-desktop-5.44.1
$ gdb --args ./signal-desktop
GNU gdb (GDB) 11.1
[...]
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./signal-desktop...
(No debugging symbols found in ./signal-desktop)
(gdb) run
Starting program: /opt/whisper/signal-desktop-5.44.1/signal-desktop
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
process 6472 is executing new program: /lib/ld-musl-x86_64.so.1
^C
Program received signal SIGINT, Interrupt.
0x00007ffff3ea7c63 in ?? ()
(gdb) thread apply all bt
Thread 1 (process 6472 "ld-musl-x86_64."):
#0 0x00007ffff3ea7c63 in ?? ()
#1 0x00007fffffffe400 in ?? ()
#2 0x00007ffff3eb2433 in ?? ()
#3 0x59e4d2c200000000 in ?? ()
#4 0x00007ffff7e8e180 in ?? ()
#5 0xfffffffe00000000 in ?? ()
#6 0x00007ffff7c7a710 in ?? ()
#7 0x00007ffff3eb1bb0 in ?? ()
#8 0x00007ffff3eb1a90 in ?? ()
#9 0x0000000000000028 in ?? ()
#10 0x0000000000000000 in ?? ()
(gdb)
```
```
$ LD_PRELOAD=/lib/libgcompat.so.0 ldd ./signal-desktop
/lib64/ld-linux-x86-64.so.2 (0x7fd7d2a11000)
/lib/libgcompat.so.0 => /lib/libgcompat.so.0 (0x7fd7c9b7b000)
libffmpeg.so => ./libffmpeg.so (0x7fd7c96a2000)
libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7fd7d2a11000)
libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7fd7d2a11000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x7fd7c9655000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x7fd7c954a000)
libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0x7fd7c939c000)
libnss3.so => /usr/lib/libnss3.so (0x7fd7c928d000)
libnssutil3.so => /usr/lib/libnssutil3.so (0x7fd7c925e000)
libsmime3.so => /usr/lib/libsmime3.so (0x7fd7c9238000)
libnspr4.so => /usr/lib/libnspr4.so (0x7fd7c91f5000)
libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x7fd7c91cf000)
libatk-bridge-2.0.so.0 => /usr/lib/libatk-bridge-2.0.so.0 (0x7fd7c919b000)
libcups.so.2 => /usr/lib/libcups.so.2 (0x7fd7c9114000)
libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x7fd7c90ca000)
libdrm.so.2 => /usr/lib/libdrm.so.2 (0x7fd7c90b6000)
libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x7fd7c908d000)
libgtk-3.so.0 => /usr/lib/libgtk-3.so.0 (0x7fd7c892b000)
libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x7fd7c88e5000)
libcairo.so.2 => /usr/lib/libcairo.so.2 (0x7fd7c87f5000)
libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7fd7d2a11000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x7fd7c86d3000)
libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0x7fd7c86ce000)
libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x7fd7c86c9000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x7fd7c86b6000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x7fd7c86ae000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x7fd7c86a2000)
libgbm.so.1 => /usr/lib/libgbm.so.1 (0x7fd7c8692000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0x7fd7c866d000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x7fd7c8646000)
libxkbcommon.so.0 => /usr/lib/libxkbcommon.so.0 (0x7fd7c8607000)
libasound.so.2 => /usr/lib/libasound.so.2 (0x7fd7c851c000)
libatspi.so.0 => /usr/lib/libatspi.so.0 (0x7fd7c84e5000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7fd7c84cb000)
libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7fd7d2a11000)
ld-linux-x86-64.so.2 => /lib/ld-linux-x86-64.so.2 (0x7fd7c84c4000)
libffi.so.8 => /usr/lib/libffi.so.8 (0x7fd7c84b7000)
libpcre.so.1 => /usr/lib/libpcre.so.1 (0x7fd7c845b000)
libintl.so.8 => /usr/lib/libintl.so.8 (0x7fd7c844e000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x7fd7c8449000)
libz.so.1 => /lib/libz.so.1 (0x7fd7c842f000)
libmount.so.1 => /lib/libmount.so.1 (0x7fd7c83dc000)
libplc4.so => /usr/lib/libplc4.so (0x7fd7c83d5000)
libplds4.so => /usr/lib/libplds4.so (0x7fd7c83d0000)
libavahi-common.so.3 => /usr/lib/libavahi-common.so.3 (0x7fd7c83c3000)
libavahi-client.so.3 => /usr/lib/libavahi-client.so.3 (0x7fd7c83b1000)
libgnutls.so.30 => /usr/lib/libgnutls.so.30 (0x7fd7c81e4000)
libpng16.so.16 => /usr/lib/libpng16.so.16 (0x7fd7c81b3000)
libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0x7fd7c812c000)
libgdk-3.so.0 => /usr/lib/libgdk-3.so.0 (0x7fd7c8040000)
libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0x7fd7c8030000)
libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0x7fd7c7f87000)
libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x7fd7c7f70000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x7fd7c7f33000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x7fd7c7e7a000)
libfribidi.so.0 => /usr/lib/libfribidi.so.0 (0x7fd7c7e5b000)
libcairo-gobject.so.2 => /usr/lib/libcairo-gobject.so.2 (0x7fd7c7e50000)
libepoxy.so.0 => /usr/lib/libepoxy.so.0 (0x7fd7c7d40000)
libXi.so.6 => /usr/lib/libXi.so.6 (0x7fd7c7d2f000)
libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0x7fd7c7c99000)
libxcb-shm.so.0 => /usr/lib/libxcb-shm.so.0 (0x7fd7c7c94000)
libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0x7fd7c7c85000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0x7fd7c7c79000)
libwayland-server.so.0 => /usr/lib/libwayland-server.so.0 (0x7fd7c7c64000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x7fd7c7c5f000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x7fd7c7c57000)
libblkid.so.1 => /lib/libblkid.so.1 (0x7fd7c7c0d000)
libp11-kit.so.0 => /usr/lib/libp11-kit.so.0 (0x7fd7c7afe000)
libunistring.so.2 => /usr/lib/libunistring.so.2 (0x7fd7c7987000)
libtasn1.so.6 => /usr/lib/libtasn1.so.6 (0x7fd7c7974000)
libnettle.so.8 => /usr/lib/libnettle.so.8 (0x7fd7c792f000)
libhogweed.so.6 => /usr/lib/libhogweed.so.6 (0x7fd7c78e8000)
libgmp.so.10 => /usr/lib/libgmp.so.10 (0x7fd7c7881000)
libwayland-client.so.0 => /usr/lib/libwayland-client.so.0 (0x7fd7c7871000)
libwayland-cursor.so.0 => /usr/lib/libwayland-cursor.so.0 (0x7fd7c7868000)
libwayland-egl.so.1 => /usr/lib/libwayland-egl.so.1 (0x7fd7c7863000)
libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x7fd7c7857000)
libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x7fd7c7852000)
libgraphite2.so.3 => /usr/lib/libgraphite2.so.3 (0x7fd7c7832000)
libuuid.so.1 => /lib/libuuid.so.1 (0x7fd7c7829000)
libbz2.so.1 => /usr/lib/libbz2.so.1 (0x7fd7c781a000)
libbrotlidec.so.1 => /usr/lib/libbrotlidec.so.1 (0x7fd7c780c000)
libbsd.so.0 => /usr/lib/libbsd.so.0 (0x7fd7c77f9000)
libbrotlicommon.so.1 => /usr/lib/libbrotlicommon.so.1 (0x7fd7c77d6000)
libmd.so.0 => /usr/lib/libmd.so.0 (0x7fd7c77ca000)
```
```
$ perf record -gT -p 6629
$ perf report
#
# Total Lost Samples: 0
#
# Samples: 9K of event 'cycles'
# Event count (approx.): 7946235843
#
# Children Self Command Shared Object Symbol
# ........ ........ ............... ................... ......................................
#
100.00% 0.00% ld-musl-x86_64. [unknown] [k] 0xbde8c789480000cf
|
---0xbde8c789480000cf
pthread_atfork
malloc
malloc_size
100.00% 0.00% ld-musl-x86_64. ld-musl-x86_64.so.1 [.] pthread_atfork
|
---pthread_atfork
malloc
malloc_size
100.00% 0.00% ld-musl-x86_64. signal-desktop [.] malloc
|
---malloc
malloc_size
100.00% 100.00% ld-musl-x86_64. signal-desktop [.] malloc_size
|
--100.00%--0xbde8c789480000cf
pthread_atfork
malloc
malloc_size
0.00% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] native_write_msr
0.00% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] asm_sysvec_reschedule_ipi
0.00% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] irqentry_exit_to_user_mode
0.00% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] exit_to_user_mode_prepare
0.00% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] schedule
0.00% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] __schedule
0.00% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] finish_task_switch.isra.0
0.00% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] __perf_event_task_sched_in
0.00% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] __intel_pmu_enable_all.constprop.0
0.00% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] end_repeat_nmi
```
```
$ gdb --args ./chrome
GNU gdb (GDB) 11.1
[...]
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./chrome...
(No debugging symbols found in ./chrome)
(gdb) run
Starting program: /home/mark/tmp/ux/opt/google/chrome/chrome
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
process 6542 is executing new program: /lib/ld-musl-x86_64.so.1
^C
Program received signal SIGINT, Interrupt.
0x00007fffee925aaa in ?? ()
(gdb) bt
#0 0x00007fffee925aaa in ?? ()
#1 0x0000000000000000 in ?? ()
(gdb)
```
```
$ LD_PRELOAD=/lib/libgcompat.so.0 ldd ./chrome | less -S
/lib64/ld-linux-x86-64.so.2 (0x7fde5cef8000)
/lib/libgcompat.so.0 => /lib/libgcompat.so.0 (0x7fde5149d000)
libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7fde5cef8000)
libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7fde5cef8000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x7fde51450000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x7fde51345000)
libnss3.so => /usr/lib/libnss3.so (0x7fde51236000)
libnssutil3.so => /usr/lib/libnssutil3.so (0x7fde51207000)
libsmime3.so => /usr/lib/libsmime3.so (0x7fde511e1000)
libnspr4.so => /usr/lib/libnspr4.so (0x7fde5119e000)
libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x7fde51178000)
libatk-bridge-2.0.so.0 => /usr/lib/libatk-bridge-2.0.so.0 (0x7fde51144000)
libcups.so.2 => /usr/lib/libcups.so.2 (0x7fde510bd000)
libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0x7fde50f0f000)
libdrm.so.2 => /usr/lib/libdrm.so.2 (0x7fde50efb000)
libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x7fde50eb1000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0x7fde50e8c000)
libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7fde5cef8000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x7fde50d6a000)
libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0x7fde50d65000)
libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x7fde50d60000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x7fde50d4d000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x7fde50d45000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x7fde50d39000)
libgbm.so.1 => /usr/lib/libgbm.so.1 (0x7fde50d29000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x7fde50d02000)
libxkbcommon.so.0 => /usr/lib/libxkbcommon.so.0 (0x7fde50cc3000)
libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x7fde50c7d000)
libcairo.so.2 => /usr/lib/libcairo.so.2 (0x7fde50b8d000)
libasound.so.2 => /usr/lib/libasound.so.2 (0x7fde50aa2000)
libatspi.so.0 => /usr/lib/libatspi.so.0 (0x7fde50a6b000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7fde50a51000)
libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7fde5cef8000)
ld-linux-x86-64.so.2 => /lib/ld-linux-x86-64.so.2 (0x7fde50a4a000)
libffi.so.8 => /usr/lib/libffi.so.8 (0x7fde50a3d000)
libpcre.so.1 => /usr/lib/libpcre.so.1 (0x7fde509e1000)
libintl.so.8 => /usr/lib/libintl.so.8 (0x7fde509d4000)
libplc4.so => /usr/lib/libplc4.so (0x7fde509cd000)
libplds4.so => /usr/lib/libplds4.so (0x7fde509c8000)
libavahi-common.so.3 => /usr/lib/libavahi-common.so.3 (0x7fde509bb000)
libavahi-client.so.3 => /usr/lib/libavahi-client.so.3 (0x7fde509a9000)
libgnutls.so.30 => /usr/lib/libgnutls.so.30 (0x7fde507dc000)
libz.so.1 => /lib/libz.so.1 (0x7fde507c2000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x7fde507bd000)
libmount.so.1 => /lib/libmount.so.1 (0x7fde5076a000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0x7fde5075e000)
libwayland-server.so.0 => /usr/lib/libwayland-server.so.0 (0x7fde50749000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x7fde50744000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x7fde5073c000)
libfribidi.so.0 => /usr/lib/libfribidi.so.0 (0x7fde5071d000)
libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0x7fde50674000)
libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0x7fde505de000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x7fde505a1000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x7fde504e8000)
libpng16.so.16 => /usr/lib/libpng16.so.16 (0x7fde504b7000)
libxcb-shm.so.0 => /usr/lib/libxcb-shm.so.0 (0x7fde504b2000)
libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0x7fde504a3000)
libXi.so.6 => /usr/lib/libXi.so.6 (0x7fde50492000)
libp11-kit.so.0 => /usr/lib/libp11-kit.so.0 (0x7fde50383000)
libunistring.so.2 => /usr/lib/libunistring.so.2 (0x7fde5020d000)
libtasn1.so.6 => /usr/lib/libtasn1.so.6 (0x7fde501fa000)
libnettle.so.8 => /usr/lib/libnettle.so.8 (0x7fde501b5000)
libhogweed.so.6 => /usr/lib/libhogweed.so.6 (0x7fde5016e000)
libgmp.so.10 => /usr/lib/libgmp.so.10 (0x7fde50107000)
libblkid.so.1 => /lib/libblkid.so.1 (0x7fde500bd000)
libbsd.so.0 => /usr/lib/libbsd.so.0 (0x7fde500aa000)
libgraphite2.so.3 => /usr/lib/libgraphite2.so.3 (0x7fde5008a000)
libuuid.so.1 => /lib/libuuid.so.1 (0x7fde50081000)
libbz2.so.1 => /usr/lib/libbz2.so.1 (0x7fde50072000)
libbrotlidec.so.1 => /usr/lib/libbrotlidec.so.1 (0x7fde50065000)
libmd.so.0 => /usr/lib/libmd.so.0 (0x7fde50059000)
libbrotlicommon.so.1 => /usr/lib/libbrotlicommon.so.1 (0x7fde50036000)
```
```
$ perf record -gT -p 6629
$ perf report
#
# Total Lost Samples: 0
#
# Samples: 8K of event 'cycles'
# Event count (approx.): 7122767261
#
# Children Self Command Shared Object Symbol
# ........ ........ ............... ................... ......................................
#
100.00% 0.00% ld-musl-x86_64. ld-musl-x86_64.so.1 [.] pthread_atfork
|
---pthread_atfork
_ZnwmSt11align_val_tRKSt9nothrow_t
mallopt
100.00% 0.00% ld-musl-x86_64. chrome [.] _ZnwmSt11align_val_tRKSt9nothrow_t
|
---_ZnwmSt11align_val_tRKSt9nothrow_t
mallopt
100.00% 99.99% ld-musl-x86_64. chrome [.] mallopt
|
--99.99%--pthread_atfork
_ZnwmSt11align_val_tRKSt9nothrow_t
mallopt
0.01% 0.01% ld-musl-x86_64. [kernel.kallsyms] [k] do_sync_core
0.01% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] asm_sysvec_call_function
0.01% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] sysvec_call_function
0.01% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] __sysvec_call_function
0.01% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] flush_smp_call_function_queue
0.00% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] __perf_event_task_sched_in
0.00% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] asm_sysvec_reschedule_ipi
0.00% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] irqentry_exit_to_user_mode
0.00% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] exit_to_user_mode_prepare
0.00% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] schedule
0.00% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] __schedule
0.00% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] finish_task_switch.isra.0
0.00% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] native_write_msr
0.00% 0.00% ld-musl-x86_64. [kernel.kallsyms] [k] __intel_pmu_enable_all.constprop.0
```A. WilcoxA. Wilcoxhttps://git.adelielinux.org/adelie/gcompat/-/issues/350deno, __mbrlen and __res_init not found2022-04-12T15:22:43ZLiam Stanleydeno, __mbrlen and __res_init not foundTrying to get [denoland/deno](https://github.com/denoland/deno) running inside of Alpine 3.15. With gcompat, I'm able to resolve most missing symbols. I'm left with the following:
```
Error relocating /root/deno.test: __mbrlen: symbol n...Trying to get [denoland/deno](https://github.com/denoland/deno) running inside of Alpine 3.15. With gcompat, I'm able to resolve most missing symbols. I'm left with the following:
```
Error relocating /root/deno.test: __mbrlen: symbol not found
Error relocating /root/deno.test: __res_init: symbol not found
```
It looks like `__mbrlen` may have already been added, however a new release/tag hasn't been pushed since that was added, possibly?
As far as `__res_init`, I [see some comments](https://git.adelielinux.org/adelie/gcompat/-/blob/current/libgcompat/resolv.c) that `res_init()` may be deprecated, but I'm not familiar enough with C/glibc to know if `__res_init` and `res_init` are the same, and if `__res_init` should be implemented.
Additional details (running this test on wsl, in docker, but I don't think that matters?):
```
# LD_PRELOAD=/lib/libgcompat.so.0 ldd deno.test
/lib64/ld-linux-x86-64.so.2 (0x7f191f6ef000)
/lib/libgcompat.so.0 => /lib/libgcompat.so.0 (0x7f191bb60000)
libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7f191f6ef000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7f191bb46000)
libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f191f6ef000)
libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f191f6ef000)
libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f191f6ef000)
ld-linux-x86-64.so.2 => /lib/ld-linux-x86-64.so.2 (0x7f191bb40000)
libucontext.so.1 => /lib/libucontext.so.1 (0x7f191bb3b000)
libobstack.so.1 => /usr/lib/libobstack.so.1 (0x7f191bb36000)
Error relocating deno.test: __mbrlen: symbol not found
Error relocating deno.test: __res_init: symbol not found
```
Tried patchelf to remove libm/libdl in the case that those were related, but didn't seem to make a difference (sorry if it didn't make sense to do that, not super familiar with glibc :sweat_smile: )
```
# uname -a
Linux 2610eb41fc3e 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 GNU/Linux
```
```
# apk info gcompat
gcompat-1.0.0-r4 description:
The GNU C Library compatibility layer for musl
gcompat-1.0.0-r4 webpage:
https://git.adelielinux.org/adelie/gcompat
gcompat-1.0.0-r4 installed size:
96 KiB
```
Not sure if there is anything else I can provide to help assist/troubleshoot.https://git.adelielinux.org/adelie/gcompat/-/issues/348mips32 (mipsel) support2022-02-15T14:03:40ZAlexander Tomokhovmips32 (mipsel) supportIs mips32 (mipsel, little-endian) supported?
Is [`__powerpc__`](https://git.adelielinux.org/adelie/gcompat/-/blob/8af2ff25620082c5fe275f1fd0d20b0a52dca0c0/libgcompat/internal.c#L5) related to mips32?Is mips32 (mipsel, little-endian) supported?
Is [`__powerpc__`](https://git.adelielinux.org/adelie/gcompat/-/blob/8af2ff25620082c5fe275f1fd0d20b0a52dca0c0/libgcompat/internal.c#L5) related to mips32?https://git.adelielinux.org/adelie/gcompat/-/issues/347Question: Running Discord2022-02-01T15:21:26ZBo-Ru JuQuestion: Running Discord# Description
I tried running the official binary from Discord today with gcompat installed on musl Void Linux, but the output of the Discord binary was simply `Segmentation fault`. There seems to be no issues similar to this on glibc di...# Description
I tried running the official binary from Discord today with gcompat installed on musl Void Linux, but the output of the Discord binary was simply `Segmentation fault`. There seems to be no issues similar to this on glibc distributions, and I have all the required dependencies installed. Therefore, I tried running `ldd <path to Discord>`, and the following is the output:
```
/lib64/ld-linux-x86-64.so.2 (0x7f29cf68b000)
libffmpeg.so => ./Discord/libffmpeg.so (0x7f29c6ad5000)
libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7f29cf68b000)
libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f29cf68b000)
libgobject-2.0.so.0 => /lib/libgobject-2.0.so.0 (0x7f29c6a7b000)
libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x7f29c6947000)
libxshmfence.so.1 => /lib/libxshmfence.so.1 (0x7f29c6744000)
libgio-2.0.so.0 => /lib/libgio-2.0.so.0 (0x7f29c655e000)
libnss3.so => /lib/libnss3.so (0x7f29c6423000)
libnssutil3.so => /lib/libnssutil3.so (0x7f29c63f0000)
libsmime3.so => /lib/libsmime3.so (0x7f29c63c5000)
libnspr4.so => /lib/libnspr4.so (0x7f29c637b000)
libatk-1.0.so.0 => /lib/libatk-1.0.so.0 (0x7f29c6352000)
libatk-bridge-2.0.so.0 => /lib/libatk-bridge-2.0.so.0 (0x7f29c631c000)
libdbus-1.so.3 => /lib/libdbus-1.so.3 (0x7f29c62c9000)
libdrm.so.2 => /lib/libdrm.so.2 (0x7f29c62b3000)
libgdk_pixbuf-2.0.so.0 => /lib/libgdk_pixbuf-2.0.so.0 (0x7f29c6285000)
libgtk-3.so.0 => /lib/libgtk-3.so.0 (0x7f29c5a8a000)
libgdk-3.so.0 => /lib/libgdk-3.so.0 (0x7f29c5989000)
libpango-1.0.so.0 => /lib/libpango-1.0.so.0 (0x7f29c5923000)
libcairo.so.2 => /lib/libcairo.so.2 (0x7f29c57ed000)
libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f29cf68b000)
libX11.so.6 => /lib/libX11.so.6 (0x7f29c56aa000)
libXcomposite.so.1 => /lib/libXcomposite.so.1 (0x7f29c56a5000)
libXdamage.so.1 => /lib/libXdamage.so.1 (0x7f29c56a0000)
libXext.so.6 => /lib/libXext.so.6 (0x7f29c568b000)
libXfixes.so.3 => /lib/libXfixes.so.3 (0x7f29c5682000)
libXrandr.so.2 => /lib/libXrandr.so.2 (0x7f29c5675000)
libexpat.so.1 => /lib/libexpat.so.1 (0x7f29c5644000)
libxcb.so.1 => /lib/libxcb.so.1 (0x7f29c561a000)
libxkbcommon.so.0 => /lib/libxkbcommon.so.0 (0x7f29c55d2000)
libgbm.so.1 => /lib/libgbm.so.1 (0x7f29c55c2000)
libasound.so.2 => /lib/libasound.so.2 (0x7f29c54bb000)
libatspi.so.0 => /lib/libatspi.so.0 (0x7f29c5480000)
libcups.so.2 => /lib/libcups.so.2 (0x7f29c53e5000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7f29c53cb000)
libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f29cf68b000)
ld-linux-x86-64.so.2 => /lib/ld-linux-x86-64.so.2 (0x7f29c53c4000)
libffi.so.7 => /lib/libffi.so.7 (0x7f29c53b8000)
libpcre.so.1 => /lib/libpcre.so.1 (0x7f29c533c000)
libgmodule-2.0.so.0 => /lib/libgmodule-2.0.so.0 (0x7f29c5336000)
libz.so.1 => /lib/libz.so.1 (0x7f29c531c000)
libmount.so.1 => /lib/libmount.so.1 (0x7f29c52be000)
libplc4.so => /lib/libplc4.so (0x7f29c52b7000)
libplds4.so => /lib/libplds4.so (0x7f29c52b1000)
libintl.so.8 => /lib/libintl.so.8 (0x7f29c52a3000)
libpng16.so.16 => /lib/libpng16.so.16 (0x7f29c526e000)
libjpeg.so.8 => /lib/libjpeg.so.8 (0x7f29c51dc000)
libpangocairo-1.0.so.0 => /lib/libpangocairo-1.0.so.0 (0x7f29c51cb000)
libharfbuzz.so.0 => /lib/libharfbuzz.so.0 (0x7f29c50f3000)
libpangoft2-1.0.so.0 => /lib/libpangoft2-1.0.so.0 (0x7f29c50d9000)
libfontconfig.so.1 => /lib/libfontconfig.so.1 (0x7f29c5093000)
libfribidi.so.0 => /lib/libfribidi.so.0 (0x7f29c5073000)
libcairo-gobject.so.2 => /lib/libcairo-gobject.so.2 (0x7f29c5067000)
libepoxy.so.0 => /lib/libepoxy.so.0 (0x7f29c4f36000)
libXi.so.6 => /lib/libXi.so.6 (0x7f29c4f24000)
libwayland-client.so.0 => /lib/libwayland-client.so.0 (0x7f29c4f14000)
libwayland-cursor.so.0 => /lib/libwayland-cursor.so.0 (0x7f29c4f0b000)
libwayland-egl.so.1 => /lib/libwayland-egl.so.1 (0x7f29c4f06000)
libXcursor.so.1 => /lib/libXcursor.so.1 (0x7f29c4ef9000)
libXinerama.so.1 => /lib/libXinerama.so.1 (0x7f29c4cf6000)
libthai.so.0 => /lib/libthai.so.0 (0x7f29c4ceb000)
libpixman-1.so.0 => /lib/libpixman-1.so.0 (0x7f29c4c44000)
libfreetype.so.6 => /lib/libfreetype.so.6 (0x7f29c4b92000)
libEGL.so.1 => /lib/libEGL.so.1 (0x7f29c4b80000)
libxcb-shm.so.0 => /lib/libxcb-shm.so.0 (0x7f29c4b7b000)
libxcb-render.so.0 => /lib/libxcb-render.so.0 (0x7f29c4b6c000)
libXrender.so.1 => /lib/libXrender.so.1 (0x7f29c4962000)
libGL.so.1 => /lib/libGL.so.1 (0x7f29c4886000)
libXau.so.6 => /lib/libXau.so.6 (0x7f29c4881000)
libXdmcp.so.6 => /lib/libXdmcp.so.6 (0x7f29c4879000)
libwayland-server.so.0 => /lib/libwayland-server.so.0 (0x7f29c4863000)
libstdc++.so.6 => /lib/libstdc++.so.6 (0x7f29c45d5000)
libavahi-common.so.3 => /lib/libavahi-common.so.3 (0x7f29c45c7000)
libavahi-client.so.3 => /lib/libavahi-client.so.3 (0x7f29c45b3000)
libgnutls.so.30 => /lib/libgnutls.so.30 (0x7f29c43ac000)
libblkid.so.1 => /lib/libblkid.so.1 (0x7f29c4358000)
libgraphite2.so.3 => /lib/libgraphite2.so.3 (0x7f29c432e000)
libuuid.so.1 => /lib/libuuid.so.1 (0x7f29c4325000)
libdatrie.so.1 => /lib/libdatrie.so.1 (0x7f29c431b000)
libbz2.so.1 => /lib/libbz2.so.1 (0x7f29c4308000)
libGLdispatch.so.0 => /lib/libGLdispatch.so.0 (0x7f29c4219000)
libGLX.so.0 => /lib/libGLX.so.0 (0x7f29c4207000)
libp11-kit.so.0 => /lib/libp11-kit.so.0 (0x7f29c40dc000)
libidn2.so.0 => /lib/libidn2.so.0 (0x7f29c40b8000)
libunistring.so.2 => /lib/libunistring.so.2 (0x7f29c3d36000)
libtasn1.so.6 => /lib/libtasn1.so.6 (0x7f29c3d20000)
libnettle.so.8 => /lib/libnettle.so.8 (0x7f29c3cd8000)
libhogweed.so.6 => /lib/libhogweed.so.6 (0x7f29c3c8f000)
libgmp.so.10 => /lib/libgmp.so.10 (0x7f29c3c12000)
Error relocating ./Discord/libffmpeg.so: __mbrlen: symbol not found
Error relocating ./Discord/libffmpeg.so: strtoll_l: symbol not found
Error relocating ./Discord/libffmpeg.so: strtoull_l: symbol not found
Error relocating ./Discord/Discord: __register_atfork: symbol not found
Error relocating ./Discord/Discord: __memset_chk: symbol not found
Error relocating ./Discord/Discord: __snprintf_chk: symbol not found
Error relocating ./Discord/Discord: __sprintf_chk: symbol not found
Error relocating ./Discord/Discord: __memcpy_chk: symbol not found
Error relocating ./Discord/Discord: __fprintf_chk: symbol not found
Error relocating ./Discord/Discord: __memmove_chk: symbol not found
Error relocating ./Discord/Discord: gnu_get_libc_version: symbol not found
Error relocating ./Discord/Discord: __fdelt_chk: symbol not found
Error relocating ./Discord/Discord: __vsnprintf_chk: symbol not found
Error relocating ./Discord/Discord: __sbrk: symbol not found
Error relocating ./Discord/Discord: __res_nclose: symbol not found
Error relocating ./Discord/Discord: __res_ninit: symbol not found
Error relocating ./Discord/Discord: __vfprintf_chk: symbol not found
Error relocating ./Discord/Discord: __longjmp_chk: symbol not found
Error relocating ./Discord/Discord: backtrace: symbol not found
Error relocating ./Discord/Discord: __strncat_chk: symbol not found
Error relocating ./Discord/Discord: __sched_cpualloc: symbol not found
Error relocating ./Discord/Discord: __sched_cpufree: symbol not found
Error relocating ./Discord/Discord: random_r: symbol not found
Error relocating ./Discord/Discord: initstate_r: symbol not found
Error relocating ./Discord/Discord: __mbrlen: symbol not found
Error relocating ./Discord/Discord: strtoll_l: symbol not found
Error relocating ./Discord/Discord: strtoull_l: symbol not found
Error relocating ./Discord/Discord: __longjmp_chk: symbol not found
Error relocating ./Discord/Discord: __libc_stack_end: symbol not found
```
The part of errors contains glibc related errors, so I guessed that the issue might be caused by gcompat.
The `gnu_get_libc_version: symbol not found` error message seems strange to me because there's this in the README:
> The value of `GLIBC_FAKE_VERSION` will be returned as the result of `gnu_get_libc_version`. The current default is "2.8".
Is this something related to broken installation or is it that the functionalities are not yet implemented?
# Additional Information
## `uname -a`:
```
Linux voidlinux 5.15.16_1 #1 SMP Thu Jan 20 17:19:29 UTC 2022 x86_64 GNU/Linux
```
## `xbps-query gcompat`:
```
architecture: x86_64-musl
build-options: libucontext
changelog: https://code.foxkit.us/adelie/gcompat/-/raw/current/CHANGELOG.rst
filename-sha256: f9c14671fa23b3bc3d12bfbcffb84a047011a87370e955d5f8f8c87bed626ebb
filename-size: 33KB
homepage: https://code.foxkit.us/adelie/gcompat
install-date: 2022-01-26 16:40 CST
installed_size: 90KB
license: ISC
maintainer: Érico Nogueira <ericonr@disroot.org>
metafile-sha256: e82fc6861807621eb1f793004e3e989cf978bc0d186b2590c7c155b75393ddcd
pkgname: gcompat
pkgver: gcompat-1.0.0_2
repository: https://alpha.de.repo.voidlinux.org/current/musl
run_depends:
libucontext>=1.0_1
musl-obstack>=1.2.1_1
musl>=1.1.21_1
shlib-provides:
libgcompat.so.0
shlib-requires:
libucontext.so.1
libobstack.so.1
libc.so
short_desc: Compatibility layer to allow running glibc binaries on musl systems
source-revisions: gcompat:25f75fa302
state: installed
```https://git.adelielinux.org/adelie/gcompat/-/issues/342Alpine&Dotnet&Grpc: __strftime_l and __strdup : symbols not found2021-06-08T13:09:47ZPavel BotovAlpine&Dotnet&Grpc: __strftime_l and __strdup : symbols not foundI have to build docker container based on Alpine to run dotnet microservice with gRPC network framework.
For previous versions of Alpine (3.6...3.12) I've used various workarounds like: libc6-compat from Alpine repository and custom glib...I have to build docker container based on Alpine to run dotnet microservice with gRPC network framework.
For previous versions of Alpine (3.6...3.12) I've used various workarounds like: libc6-compat from Alpine repository and custom glibc from sgerrand.
But current Alpine 3.13 uses musl 1.2.2, witch is not compatible with last workaround. So, I'm trying gcompat...
`# apk add --no-cache gcompat`
...
`# ldd /root/.nuget/packages/grpc.core/2.38.0/runtimes/linux-x64/native/libgrpc_csharp_ext.x64.so`
`/lib/ld-musl-x86_64.so.1 (0x7fc6bbc74000)
libdl.so.2 => /lib/ld-musl-x86_64.so.1 (0x7fc6bbc74000)
librt.so.1 => /lib/ld-musl-x86_64.so.1 (0x7fc6bbc74000)
libpthread.so.0 => /lib/ld-musl-x86_64.so.1 (0x7fc6bbc74000)
libm.so.6 => /lib/ld-musl-x86_64.so.1 (0x7fc6bbc74000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7fc6bb281000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7fc6bb267000)
libc.so.6 => /lib/ld-musl-x86_64.so.1 (0x7fc6bbc74000)
ld-linux-x86-64.so.2 => /lib/ld-linux-x86-64.so.2 (0x7fc6bb261000)
Error relocating /root/.nuget/packages/grpc.core/2.38.0/runtimes/linux-x64/native/libgrpc_csharp_ext.x64.so: __strdup: symbol not found`
...
`# ldd /root/.nuget/packages/grpc.tools/2.38.0/tools/linux_x64/protoc`
`/lib64/ld-linux-x86-64.so.2 (0x7f8947a3d000)
libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f8947a3d000)
libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f8947a3d000)
libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f8947a3d000)
ld-linux-x86-64.so.2 => /lib/ld-linux-x86-64.so.2 (0x7f8947a37000)
Error relocating /root/.nuget/packages/grpc.tools/2.38.0/tools/linux_x64/protoc: __strftime_l: symbol not found`
Is it a bug of gcompat?https://git.adelielinux.org/adelie/gcompat/-/issues/44More _chk functions and getdirentries64 required by icaclient2023-05-03T16:18:50ZEmilyMore _chk functions and getdirentries64 required by icaclient| | |
| --- | --- |
| Bugzilla ID | 44 |
| Reporter | Max Rees (sroracle) |
| Assignee | A. Wilcox (awilfox) |
| Reported | 2018-01-05 20:06:50 -0600 |
| Modified | 2018-11-12 01:01:49 -0600 |
| Status | RESOLVED INVALID |
| Version | ...| | |
| --- | --- |
| Bugzilla ID | 44 |
| Reporter | Max Rees (sroracle) |
| Assignee | A. Wilcox (awilfox) |
| Reported | 2018-01-05 20:06:50 -0600 |
| Modified | 2018-11-12 01:01:49 -0600 |
| Status | RESOLVED INVALID |
| Version | 0.1.0 |
| Hardware | Adélie Linux / Other |
| Importance | Normal / normal |
## Description
Error relocating wfica: __stpcpy_chk: symbol not found
Error relocating wfica: __vsyslog_chk: symbol not found
Error relocating wfica: __memmove_chk: symbol not found
Error relocating wfica: __memset_chk: symbol not found
Error relocating wfica: __read_chk: symbol not found
Error relocating wfica: getdirentries64: symbol not found1.0-RELEASEhttps://git.adelielinux.org/adelie/gcompat/-/issues/38qfcvt_r and __wcstol_internal required for Xilinx ISE2021-05-12T03:50:18ZEmilyqfcvt_r and __wcstol_internal required for Xilinx ISE| | |
| --- | --- |
| Bugzilla ID | 38 |
| Reporter | A. Wilcox (awilfox) |
| Assignee | A. Wilcox (awilfox) |
| Reported | 2017-12-05 17:49:59 -0600 |
| Modified | 2018-11-12 01:44:19 -0600 |
| Status | IN_PROGRESS |
| Version | 0.1....| | |
| --- | --- |
| Bugzilla ID | 38 |
| Reporter | A. Wilcox (awilfox) |
| Assignee | A. Wilcox (awilfox) |
| Reported | 2017-12-05 17:49:59 -0600 |
| Modified | 2018-11-12 01:44:19 -0600 |
| Status | IN_PROGRESS |
| Version | 0.1.0 |
| Hardware | Adélie Linux / All |
| Importance | Normal / enhancement |
## Description
The Xilinx HDL software suite need qfcvt_r and __wcstol_internal implemented in gcompat to run the setup routines.
Reported on IRC by Shiz.0.9.0 (1.0-RC1)https://git.adelielinux.org/adelie/gcompat/-/issues/302Cannot build gcompat in Ubuntu 18.042021-05-12T03:50:15ZEmilyCannot build gcompat in Ubuntu 18.04| | |
| --- | --- |
| Bugzilla ID | 302 |
| Reporter | Nikos Dragazis |
| Assignee | A. Wilcox (awilfox) |
| Reported | 2020-06-11 06:19:10 -0500 |
| Modified | 2020-06-23 11:28:42 -0500 |
| Status | CONFIRMED |
| Version | 0.2.0 |
| ...| | |
| --- | --- |
| Bugzilla ID | 302 |
| Reporter | Nikos Dragazis |
| Assignee | A. Wilcox (awilfox) |
| Reported | 2020-06-11 06:19:10 -0500 |
| Modified | 2020-06-23 11:28:42 -0500 |
| Status | CONFIRMED |
| Version | 0.2.0 |
| Hardware | Other Linux / Intel x86 (64-bit) |
| Importance | --- / blocker |
## Description
OS: Ubuntu 18.04 (bionic)
kernel: 5.3.0-53-generic
arch: x86_64
gcompat version: https://github.com/AdelieLinux/gcompat
Steps to reproduce:
$ cd gcompat
$ make
Actual output:
cc -c -D_BSD_SOURCE \
-DLIBGCOMPAT='"/lib/libgcompat.so.0"' \
-DLINKER='""' -DLOADER='"ld-linux.so.2"' \
-fPIC -Ilibgcompat -std=c99 \
-Wall -Wextra -Wno-frame-address -Wno-unused-parameter \
-o libgcompat/ctype.o libgcompat/ctype.c
cc -c -D_BSD_SOURCE \
-DLIBGCOMPAT='"/lib/libgcompat.so.0"' \
-DLINKER='""' -DLOADER='"ld-linux.so.2"' \
-fPIC -Ilibgcompat -std=c99 \
-Wall -Wextra -Wno-frame-address -Wno-unused-parameter \
-o libgcompat/cxx_thread.o libgcompat/cxx_thread.c
In file included from /usr/include/pthread.h:21:0,
from libgcompat/cxx_thread.c:1:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
cc -c -D_BSD_SOURCE \
-DLIBGCOMPAT='"/lib/libgcompat.so.0"' \
-DLINKER='""' -DLOADER='"ld-linux.so.2"' \
-fPIC -Ilibgcompat -std=c99 \
-Wall -Wextra -Wno-frame-address -Wno-unused-parameter \
-o libgcompat/dlfcn.o libgcompat/dlfcn.c
In file included from /usr/include/dlfcn.h:22:0,
from libgcompat/dlfcn.c:1:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
cc -c -D_BSD_SOURCE \
-DLIBGCOMPAT='"/lib/libgcompat.so.0"' \
-DLINKER='""' -DLOADER='"ld-linux.so.2"' \
-fPIC -Ilibgcompat -std=c99 \
-Wall -Wextra -Wno-frame-address -Wno-unused-parameter \
-o libgcompat/error.o libgcompat/error.c
In file included from /usr/include/errno.h:25:0,
from libgcompat/error.c:2:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
cc -c -D_BSD_SOURCE \
-DLIBGCOMPAT='"/lib/libgcompat.so.0"' \
-DLINKER='""' -DLOADER='"ld-linux.so.2"' \
-fPIC -Ilibgcompat -std=c99 \
-Wall -Wextra -Wno-frame-address -Wno-unused-parameter \
-o libgcompat/execinfo.o libgcompat/execinfo.c
In file included from /usr/include/dlfcn.h:22:0,
from libgcompat/execinfo.c:1:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^~~~~~~
libgcompat/execinfo.c: In function ‘backtrace_symbols’:
libgcompat/execinfo.c:53:3: error: unknown type name ‘Dl_info’
Dl_info info;
^~~~~~~
libgcompat/execinfo.c:55:7: warning: implicit declaration of function ‘dladdr’ [-Wimplicit-function-declaration]
if (dladdr(array[i], &info) && info.dli_sname != NULL) {
^~~~~~
libgcompat/execinfo.c:55:38: error: request for member ‘dli_sname’ in something not a structure or union
if (dladdr(array[i], &info) && info.dli_sname != NULL) {
^
libgcompat/execinfo.c:56:20: error: request for member ‘dli_sname’ in something not a structure or union
result[i] = info.dli_sname;
^
libgcompat/execinfo.c: In function ‘backtrace_symbols_fd’:
libgcompat/execinfo.c:73:3: error: unknown type name ‘Dl_info’
Dl_info info;
^~~~~~~
libgcompat/execinfo.c:77:38: error: request for member ‘dli_sname’ in something not a structure or union
if (dladdr(array[i], &info) && info.dli_sname != NULL) {
^
libgcompat/execinfo.c:78:15: error: request for member ‘dli_sname’ in something not a structure or union
line = info.dli_sname;
^
Makefile:79: recipe for target 'libgcompat/execinfo.o' failed
make: *** [libgcompat/execinfo.o] Error 1
Expected output:
It should be compiling successfully.1.0-RELEASE