Closed JCash closed 2 years ago
Ok I have built the Linux lib with clang 10 on Ubuntu 20.04. Will that cause problems?
Ok. Yes, then the signatures of those functions will look different and you'll get "undefined reference" errors, as the libraries on the Ubuntu 16 doesn't have those symbols.
Ok thanks, I have a look at using Docker to get the correct environment set up and then rebuild the linux lib
@JCash do you have a guide to get clang 10 installed on to ubuntu 16.04? I can only find a guide for clang 10 for ubuntu 18.04
I'm not sure you need clang 10. You can probably use something older.
However, here's how we install clang 10
on Ubuntu 16.04
.
We download the package from https://releases.llvm.org/download.html, (and store it on our own S3 bucket), then extract it to the /usr/local folder.
After that it's ready to use.
RUN wget -q -O - ${DM_PACKAGES_URL}/clang%2Bllvm-10.0.1-x86_64-linux-gnu-ubuntu-16.04.tar.xz | tar xJ -C /usr/local --strip-components=1
It's from our Dockerfile at https://github.com/defold/extender/blob/dev/server/docker-base/Dockerfile#L87-L89. (In case you need additional setup of packages)
Thanks @JCash. I got docker working with parts from your dockerfile. I have tested again in 4.1.4 and Linux looks to work again.
I suspect the library
libGameAnalytics.a
library has been rebuilt with a too new linux version? We (unfortunately) still use a Ubuntu 16.04 Docker container, together with Clang 10.Here's the full log with the errors.