Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./smartdns: can't load library 'libgcc_s.so.1' #31

Closed
ohmyjcc opened this issue Sep 25, 2018 · 3 comments
Closed

./smartdns: can't load library 'libgcc_s.so.1' #31

ohmyjcc opened this issue Sep 25, 2018 · 3 comments

Comments

@ohmyjcc
Copy link

ohmyjcc commented Sep 25, 2018

[HC5861 /tmp]# ldd smartdns
libdl.so.0 => /lib/libdl.so.0 (0x77503000)
libpthread.so.0 => /lib/libpthread.so.0 (0x774dd000)
libgcc_s.so.1 => not found
libc.so.0 => /lib/libc.so.0 (0x77461000)
ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x77517000)

木有这个libgcc_s 也

@ohmyjcc
Copy link
Author

ohmyjcc commented Sep 25, 2018

能不能编个静态的版本叻?
-static -libgcc -s
uClibc-0.9.33.2
system type : MediaTek MT7620 SoC
processor : 0
cpu model : MIPS 24KEc V5.0
BogoMIPS : 385.02
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
ASEs implemented : mips16 dsp
shadow register sets : 1
kscratch registers : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available

@pymumu
Copy link
Owner

pymumu commented Sep 26, 2018

你用的是什么固件?openwrt的话,都应该是uclibc的。取用正确版本应该就没有问题了

静态编译涉及到开源版权问题,暂时不会静态编译。

@ohmyjcc
Copy link
Author

ohmyjcc commented Sep 26, 2018

用的是padavan 来着。
然后 我看了下,如果需要在padavan里面增加这个库,是需要在工具链的时候就增加参数么?
这是我的padavan工具链中关于gcc的参数 不论是在工具链中 还是ROM中 都没有libgcc_s.so.1
mkdir -p build-gcc-bootstrap-cpp && cd build-gcc-bootstrap-cpp
(../$ID_GCC/configure
--target=$TARGET --prefix="$PREFIX"
--with-gnu-ld --with-gnu-as
--disable-shared --disable-multilib
$TLS_OPT --disable-libmudflap --disable-libssp $EXT_OPT
--disable-libgomp --disable-nls
--with-sysroot="$PREFIX"
--enable-languages=c++ &&
make -j${HOST_NCPU} all-host all-target-libgcc all-target-libstdc++-v3 &&
make install-host install-target-libgcc install-target-libstdc++-v3) || exit 1
cd ..

@ohmyjcc ohmyjcc closed this as completed Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants