Hello!
I tried to install dlgo under Debian:
go install github.com/computerex/dlgo/cmd/dlgo@latest
But GCC compiler complains about
undefined reference to `expf'
Here's the error messages:
# github.com/computerex/dlgo/cmd/dlgo
/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/gcc -m64 -Wl,--build-id=0x1415801be254d2896f216d26fb4d4e539a73cb00 -o $WORK/b001/exe/a.out -Wl,--export-dynamic-symbol=_cgo_panic -Wl,--export-dynamic-symbol=_cgo_topofstack -Wl,--export-dynamic-symbol=crosscall2 -Wl,--compress-debug-sections=zlib /tmp/go-link-3956609130/go.o /tmp/go-link-3956609130/000000.o /tmp/go-link-3956609130/000001.o /tmp/go-link-3956609130/000002.o /tmp/go-link-3956609130/000003.o /tmp/go-link-3956609130/000004.o /tmp/go-link-3956609130/000005.o /tmp/go-link-3956609130/000006.o /tmp/go-link-3956609130/000007.o /tmp/go-link-3956609130/000008.o /tmp/go-link-3956609130/000009.o /tmp/go-link-3956609130/000010.o /tmp/go-link-3956609130/000011.o /tmp/go-link-3956609130/000012.o /tmp/go-link-3956609130/000013.o /tmp/go-link-3956609130/000014.o /tmp/go-link-3956609130/000015.o /tmp/go-link-3956609130/000016.o /tmp/go-link-3956609130/000017.o /tmp/go-link-3956609130/000018.o /tmp/go-link-3956609130/000019.o /tmp/go-link-3956609130/000020.o /tmp/go-link-3956609130/000021.o /tmp/go-link-3956609130/000022.o /tmp/go-link-3956609130/000023.o /tmp/go-link-3956609130/000024.o /tmp/go-link-3956609130/000025.o /tmp/go-link-3956609130/000026.o /tmp/go-link-3956609130/000027.o -O2 -g -O2 -g -lresolv -O2 -g -lpthread -no-pie
/usr/bin/ld: /tmp/go-link-3956609130/000005.o: in function vec_swiglu': /home/t4503/go/pkg/mod/github.com/computerex/dlgo@v0.0.0-20260313054938-e12ff9daf958/quant/simd_dot.c:1770:(.text+0x5d04): undefined reference to expf'
/usr/bin/ld: /tmp/go-link-3956609130/000005.o: in function vec_softmax': /home/t4503/go/pkg/mod/github.com/computerex/dlgo@v0.0.0-20260313054938-e12ff9daf958/quant/simd_dot.c:1810:(.text+0x5faf): undefined reference to expf'
/usr/bin/ld: /tmp/go-link-3956609130/000005.o: in function causal_attn_head': /home/t4503/go/pkg/mod/github.com/computerex/dlgo@v0.0.0-20260313054938-e12ff9daf958/quant/simd_dot.c:2056:(.text+0x7383): undefined reference to expf'
collect2: error: ld returned 1 exit status
Which dependency should I install so that expf() can be found?
Hello!
I tried to install dlgo under Debian:
go install github.com/computerex/dlgo/cmd/dlgo@latest
But GCC compiler complains about
undefined reference to `expf'
Here's the error messages:
# github.com/computerex/dlgo/cmd/dlgo
/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/gcc -m64 -Wl,--build-id=0x1415801be254d2896f216d26fb4d4e539a73cb00 -o $WORK/b001/exe/a.out -Wl,--export-dynamic-symbol=_cgo_panic -Wl,--export-dynamic-symbol=_cgo_topofstack -Wl,--export-dynamic-symbol=crosscall2 -Wl,--compress-debug-sections=zlib /tmp/go-link-3956609130/go.o /tmp/go-link-3956609130/000000.o /tmp/go-link-3956609130/000001.o /tmp/go-link-3956609130/000002.o /tmp/go-link-3956609130/000003.o /tmp/go-link-3956609130/000004.o /tmp/go-link-3956609130/000005.o /tmp/go-link-3956609130/000006.o /tmp/go-link-3956609130/000007.o /tmp/go-link-3956609130/000008.o /tmp/go-link-3956609130/000009.o /tmp/go-link-3956609130/000010.o /tmp/go-link-3956609130/000011.o /tmp/go-link-3956609130/000012.o /tmp/go-link-3956609130/000013.o /tmp/go-link-3956609130/000014.o /tmp/go-link-3956609130/000015.o /tmp/go-link-3956609130/000016.o /tmp/go-link-3956609130/000017.o /tmp/go-link-3956609130/000018.o /tmp/go-link-3956609130/000019.o /tmp/go-link-3956609130/000020.o /tmp/go-link-3956609130/000021.o /tmp/go-link-3956609130/000022.o /tmp/go-link-3956609130/000023.o /tmp/go-link-3956609130/000024.o /tmp/go-link-3956609130/000025.o /tmp/go-link-3956609130/000026.o /tmp/go-link-3956609130/000027.o -O2 -g -O2 -g -lresolv -O2 -g -lpthread -no-pie
/usr/bin/ld: /tmp/go-link-3956609130/000005.o: in function
vec_swiglu': /home/t4503/go/pkg/mod/github.com/computerex/dlgo@v0.0.0-20260313054938-e12ff9daf958/quant/simd_dot.c:1770:(.text+0x5d04): undefined reference toexpf'/usr/bin/ld: /tmp/go-link-3956609130/000005.o: in function
vec_softmax': /home/t4503/go/pkg/mod/github.com/computerex/dlgo@v0.0.0-20260313054938-e12ff9daf958/quant/simd_dot.c:1810:(.text+0x5faf): undefined reference toexpf'/usr/bin/ld: /tmp/go-link-3956609130/000005.o: in function
causal_attn_head': /home/t4503/go/pkg/mod/github.com/computerex/dlgo@v0.0.0-20260313054938-e12ff9daf958/quant/simd_dot.c:2056:(.text+0x7383): undefined reference toexpf'collect2: error: ld returned 1 exit status
Which dependency should I install so that expf() can be found?