Closed mentarus closed 3 years ago
need 32 bit gcc support
install by
sudo apt install build-essential gcc-multilib g++-multilib
Thanks! I wish it was that easy, the above problem bit they are all already installed, furthermore:
~/dev/libmaix$ dpkg -l libgcc-s1
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===============-=====================-============-=================================
ii libgcc-s1:amd64 10.2.0-5ubuntu1~20.04 amd64 GCC support library
ii libgcc-s1:i386 10.2.0-5ubuntu1~20.04 i386 GCC support library
I tried in docker image ubuntu:18.04, no problem ocurrs
And I update the CI: https://github.com/sipeed/libmaix/blob/master/.github/workflows/test_build.yml , it works, log here https://github.com/sipeed/libmaix/runs/2009678884?check_suite_focus=true
Your Detecting C compiler ABI info - failed
should be Detecting C compiler ABI info - done
, maybe cmake version error?
Hello,
i got the same problem on ubuntu 20.04. The problem is that it tries to use the main ubuntu libgcc_s.so in /usr/lib which it shouldn't (it should take the one from the toolchain in /opt)
i solved it by removing my /usr/lib/libgcc_s.so.1. it seems that nowadays this file is not supposed to be in /usr/lib but somewhere else (see https://packages.ubuntu.com/search?suite=trusty&arch=amd64&mode=exactfilename&searchon=contents&keywords=libgcc_s.so.1)
so i guess my libgcc_s is a leftover from an older installation of something ?
@kervel @mentarus fixed in 04e6b63a9300a62d6a9bdfbc872623307d8691e9 , for some reason, the gcc not use the gcc's libgcc_s but used the system's, just add link flag resolved this issue.
if problem remain exists, just reopen
Tried to get the hello_world example to compile on Ubuntu 20.04 (x64) but am getting an error at linking time:
/usr/lib/libgcc_s.so.1: file not recognized: File format not recognized
On closer inspection it happens with every example. My libgcc-s1 version is 10.2.0
Thanks for looking into this!
Full output below: