-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Only support 64bit? #842
Comments
Could you elaborate on the build options, command line log and environment? |
Hi, For the complie steps, what I did is: Once I have done above steps, and then I tried the command line: However, when I compile the testing code, which is: ######################################## #include int main() { ####################### arm-none-linux-gnueabihf-g++ -std=c++17 -march=armv8-a -o myapp main.cpp -lsentencepiece -I./2-sentencepiece/include -L./2-sentencepiece/lib -Wl,-rpath-link,./2-sentencepiece/lib which shows an error: And then I used same complier to complied another c++ code, which does not dependent on sentencepiece, and I tried: and it shows it is a 32 bit file. So, the error might be the test code and the sentencepiece are different bit files. Then I want to transfer the sentencepiece to 32bit manually, which used: cmake -DCMAKE_INSTALL_PREFIX=/mnt/fileroot/tingting.dong/cpp_test/2-sentencepiece -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 .. Then I checked the file is it compiled to 32bit, then I tried to compile the test code again, and it shows the error: /opt/gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/10.2.1/../../../../arm-none-linux-gnueabihf/bin/ld: skipping incompatible ./2-sentencepiece/lib/libsentencepiece.so when searching for -lsentencepiece Plese give me any hint how this can work? Thank you. |
Hi,
I'm trying to compile to 32 bit binary code, which used arm-none-linux-gnueabihf.
However, it seems not work on 32 bits.
The error shows:
/opt/gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/10.2.1/../../../../arm-none-linux-gnueabihf/bin/ld: skipping incompatible ./2-sentencepiece/lib/libsentencepiece.so when searching for -lsentencepiece
/opt/gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/10.2.1/../../../../arm-none-linux-gnueabihf/bin/ld: skipping incompatible ./2-sentencepiece/lib/libsentencepiece.a when searching for -lsentencepiece
/opt/gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/10.2.1/../../../../arm-none-linux-gnueabihf/bin/ld: cannot find -lsentencepiece
/opt/gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/10.2.1/../../../../arm-none-linux-gnueabihf/bin/ld: skipping incompatible ./2-sentencepiece/lib/libsentencepiece.so when searching for -lsentencepiece
collect2: error: ld returned 1 exit status
Could you please explain why this happen? Or if I just compile this to 64 bit binary code, dose it work?
Does Sentencepiece support to work on any hard devices?
The text was updated successfully, but these errors were encountered: