jurplel / install-qt-action

Install Qt on your Github Actions workflows with just one simple action
MIT License
455 stars 78 forks source link

Ubuntu 18.04 - `GLIBC_2.34' not found #175

Closed shkpk closed 1 year ago

shkpk commented 1 year ago

Hello

I'm trying to use QT on ubuntu:18.04 docker container and getting following error

/__t/Python/3.11.1/x64/bin/python3 -m pip install setuptools wheel py7zr==0.19.* aqtinstall==2.1.*
/__t/Python/3.11.1/x64/bin/python3: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /__t/Python/3.11.1/x64/bin/python3)
/__t/Python/3.11.1/x64/bin/python3: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.35' not found (required by /__t/Python/3.11.1/x64/lib/libpython3.11.so.1.0)
/__t/Python/3.11.1/x64/bin/python3: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /__t/Python/3.11.1/x64/lib/libpython3.11.so.1.0)
/__t/Python/3.11.1/x64/bin/python3: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /__t/Python/3.11.1/x64/lib/libpython3.11.so.1.0)
/__t/Python/3.11.1/x64/bin/python3: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /__t/Python/3.11.1/x64/lib/libpython3.11.so.1.0)
/__t/Python/3.11.1/x64/bin/python3: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /__t/Python/3.11.1/x64/lib/libpython3.11.so.1.0)
/__t/Python/3.11.1/x64/bin/python3: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /__t/Python/3.11.1/x64/lib/libpython3.11.so.1.0)
Error: Error: The process '/__t/Python/3.11.1/x64/bin/python3' failed with exit code 1

I compiled glibc 2.34 in /opt/glibc but not sure how to give its path to QT to use it

My pipeline code is

name: CI
on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]
  workflow_dispatch:
jobs:
  build:
    name: Build on Ubuntu 18.04 container
    runs-on: ubuntu-latest
    container: ubuntu:18.04
    steps:
      - name: Running on Ubuntu 18
        run: |
          set -x
          cat /etc/*release*
          apt-get -y update
          apt-get -y install sudo libc6 gcc g++ build-essential glibc-source subversion upx chrpath \
          diffstat cvs quilt cmake build-essential libssl-dev libpcsclite1 libpcsclite-dev dialog \
          libusb-1.0-0-dev mercurial libncurses-dev libcurl4-openssl-dev sshpass dos2unix libccid \
          lib32z1 python3 python3-pip python3-setuptools wget
          apt-get -y upgrade gawk bison
          wget https://ftp.gnu.org/gnu/glibc/glibc-2.34.tar.gz
          tar xzvf glibc-2.34.tar.gz
          cd glibc-2.34
          GLIBC_DIR=$(pwd)
          mkdir -p /opt/glibc
          cd /opt/glibc
          $GLIBC_DIR/configure --prefix=/opt/glibc
          make
          make install
          cd
          pip3 install -U setuptools
          ldd --version
      - name: Download Qt
        uses: jurplel/install-qt-action@v3
        with:
          aqtversion: ==2.1.*
          version: ${{ env.QT_VERSION }}
          target: desktop

Can someone help me please?

ddalcino commented 1 year ago

I'm not sure how much I can help here, other than to ask a few questions to clarify this issue:

  1. Have you seen the note here about install-deps and docker: https://github.com/jurplel/install-qt-action#install-deps
  2. Why are you trying to build GLIBC manually, instead of just using the one provided by apt? Is there a specific goal you're trying to accomplish? Often, but not always, it's a bad idea to replace core system libraries in this way.
  3. Ubuntu 18 containers are currently deprecated, and Ubuntu 18 is very near EOL if not already past it. Can you use Ubuntu 20 or 22?
shkpk commented 1 year ago
  1. Have you seen the note here about install-deps and docker: https://github.com/jurplel/install-qt-action#install-deps A) yes, that still fails with GLIBC error

  2. Why are you trying to build GLIBC manually, instead of just using the one provided by apt? Is there a specific goal you're trying to accomplish? Often, but not always, it's a bad idea to replace core system libraries in this way. A) how can I install GLIBC 2.34 using apt? I cant find a way.

  3. Ubuntu 18 containers are currently deprecated, and Ubuntu 18 is very near EOL if not already past it. Can you use Ubuntu 20 or 22? A) application I'm trying to compile is only supported on ubutnu 18.04 so far. hence I'm forced to use it rather then 20 or 22

jurplel commented 1 year ago

closing due to inactivity

dimast111 commented 6 months ago

Hello. Was it possible to install glib 2.34 on ubuntu 18???