Skip to content

Broken on Ubuntu 22.04 LTS (and all derivatives) #13

@NathanaelA

Description

@NathanaelA

FYI, building on 24.04 causes the GLIBC which is linked in to be too new to allow qode run on Ubuntu 22.04.

However, the reason it can't be built on 22.04 is the version of GCC shipped with 22.04 is too old for this version of node; so I can understand why you moved to 24.04 as the builder. 🤷‍♂️

For those who might want to run qode on Ubuntu 22.04 you need to do the following:

sudo apt install build-essential
sudo apt install libmpfr-dev libgmp3-dev libmpc-dev -y

wget https://ftp.gnu.org/gnu/gcc/gcc-14.3.0/gcc-14.3.0.tar.gz
tar -xf gcc-14.3.0.tar.gz
cd gcc-14.3.0
./configure -v --build=$(uname -m)-linux-gnu --host=$(uname -m)-linux-gnu --target=$(uname -m)-linux-gnu --prefix=/usr/local/gcc-14.3.0 --enable-checking=release --enable-languages=c,c++ --disable-multilib --program-suffix=-14.3.0
make
sudo make install

I also then set 14.3 to be the default compiler:

sudo update-alternatives --install /usr/bin/g++ g++ /usr/local/gcc-14.3.0/bin/g++-14.3.0 14
sudo update-alternatives --install /usr/bin/gcc gcc /usr/local/gcc-14.3.0/bin/gcc-14.3.0 14

Finally I needed to update ldconfig configuration; using your own favorite editor create the file as root:
/etc/ld.so.conf.d/gcc14.conf and paste in /usr/local/gcc-14.3.0/lib64 and then run sudo ldconfig to update your ldconfig...

Then you can build this version of qode on Ubuntu 22.04 LTS using the node ./qode/build.js command from the root of this repo.

This might also be fixable to build on 24.04 and run qode on 22.04 if qode is built to be fully static, but I didn't test that path... 😀

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions