Skip to content
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

refs #17325 linux 32 #17359

Closed
wants to merge 28 commits into from

Conversation

timotheecour
Copy link
Member

@timotheecour timotheecour commented Mar 13, 2021

refs #17325
goal: fix it

links

timotheecour#654

@timotheecour
Copy link
Member Author

        echo_run echo "v2"
        echo_run sudo dpkg --add-architecture i386
        # Downgrade llvm:
        # - llvm has to be downgraded to have 32bit version installed for sfml.

        # cat << EOF | sudo tee /etc/apt/preferences.d/pin-to-rel
        # Package: libllvm6.0
        # Pin: origin "azure.archive.ubuntu.com"
        #Pin-Priority: 1001
        # EOF

        # echo_run sudo apt-fast update -qq
        echo_run sudo apt-get update
        # `:i386` (e.g. in `libffi-dev:i386`) is needed otherwise you may get:
        # `could not load: libffi.so` during dynamic loading.
        DEBIAN_FRONTEND='noninteractive' \
          echo_run sudo apt-get install -y gcc-multilib

        # echo_run sudo apt-get install --no-install-recommends --allow-downgrades -yq

        DEBIAN_FRONTEND='noninteractive' \
          echo_run sudo apt-get install -yq \
            g++-multilib gcc-multilib libgc-dev:i386 \
            libsdl1.2-dev:i386 libsfml-dev:i386 libglib2.0-dev:i386 libffi-dev:i386
        # libcurl4-openssl-dev:i386 

        echo_run which gcc
        echo_run which -a gcc

        cat << EOF > bin/gcc
        #!/bin/bash

        exec $(which gcc) -m32 "\$@"
        EOF

        echo_run which g++

        cat << EOF > bin/g++
        #!/bin/bash

        exec $(which g++) -m32 "\$@"
        EOF

        echo_run chmod 755 bin/gcc
        echo_run chmod 755 bin/g++

Starting: Run CI
==============================================================================
Task         : Bash
Description  : Run a Bash script on macOS, Linux, or Windows
Version      : 3.182.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash
==============================================================================
Generating script.
========================== Starting Command Output ===========================
/bin/bash --noprofile --norc /home/vsts/work/_temp/2932b80a-1a12-48c1-9316-476dacaf5d02.sh
runCI: 
hostOS: linux, hostCPU: i386, int: 4, float: 8, cpuEndian: littleEndian, cwd: /home/vsts/work/1/s
Boot in release mode
Build Nimble
Compile nimsuggest
Compile nimgrep
Compile nimpretty
Compile nimfind
Compile testament
nimble install -y --nimbleDir:build/deps zip
nimble install -y --nimbleDir:build/deps zip
could not load: libcrypto.so(.1.1|.1.0.2|.1.0.1|.1.0.0|.0.9.9|.0.9.8|.48|.47|.46|.45|.44|.43|.41|.39|.38|.10|)
(compile with -d:nimDebugDlOpen for more information)
FAILURE
Finishing: Run CI

@timotheecour
Copy link
Member Author

sudo apt-get install -y --allow-downgrades libssl-dev
Reading package lists...
Building dependency tree...
Reading state information...
libssl-dev is already the newest version (1.1.1j-1+ubuntu18.04.1+deb.sury.org+3).
0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.

sudo apt-get install -y --allow-downgrades libssl-dev:i386
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libssl-dev:i386 : Depends: libssl1.1:i386 (= 1.1.1-1ubuntu2.1~18.04.8) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
##[error]Bash exited with code '100'.
Finishing: Install dependencies (i386 Linux)

@timotheecour
Copy link
Member Author

timotheecour commented Mar 13, 2021

progress: https://dev.azure.com/nim-lang/255dfe86-e590-40bb-a8a2-3c0295ebdeb1/_apis/build/builds/14243/logs/15

2021-03-13T03:02:32.4347469Z �[1m�[31mFAIL: �[36mtests/niminaction/Chapter7/Tweeter/src/createDatabase.nim c�[0m
could not load: libsqlite3.so(|.0)

2021-03-13T03:02:32.4365492Z �[1m�[31mFAIL: �[36mtests/niminaction/Chapter8/sfml/sfml_test.nim cpp�[0m

fatal error: SFML/Graphics.hpp: No such file or directory

2021-03-13T03:05:46.1161982Z �[32mPASS: �[36mtests/async/tasyncsend4757.nim c                            �[34m ( 3.22 sec)�[0m
2021-03-13T03:05:46.1162797Z �[1m�[31mFAIL: �[36mtests/async/tasyncssl.nim c�[0m
2021-03-13T03:05:46.1163569Z �[1m�[36mTest "tests/async/tasyncssl.nim" in category "async"�[0m
2021-03-13T03:05:46.1164277Z �[1m�[31mFailure: reExitcodesDiffer�[0m
2021-03-13T03:05:46.1164908Z �[33mExpected:�[0m
2021-03-13T03:05:46.1165493Z �[1mexitcode: 0
2021-03-13T03:05:46.1166032Z �[0m
2021-03-13T03:05:46.1166583Z �[33mGotten:�[0m
2021-03-13T03:05:46.1167166Z �[1mexitcode: 1
2021-03-13T03:05:46.1167427Z 
2021-03-13T03:05:46.1167804Z Output:
2021-03-13T03:05:46.1168224Z tasyncssl.nim(59)        tasyncssl
2021-03-13T03:05:46.1168691Z asyncmacro.nim(262)      createServer
2021-03-13T03:05:46.1169179Z asyncmacro.nim(29)       createServerNimAsyncContinue
2021-03-13T03:05:46.1169686Z tasyncssl.nim(45)        createServerIter
2021-03-13T03:05:46.1170192Z net.nim(639)             newContext
2021-03-13T03:05:46.1170674Z net.nim(553)             loadCertificates
2021-03-13T03:05:46.1171139Z net.nim(518)             raiseSSLError
2021-03-13T03:05:46.1171588Z [[reraised from:
2021-03-13T03:05:46.1172031Z tasyncssl.nim(59)        tasyncssl
2021-03-13T03:05:46.1172497Z asyncfutures.nim(424)    asyncCheck
2021-03-13T03:05:46.1172947Z asyncfutures.nim(274)    callback=
2021-03-13T03:05:46.1173450Z asyncfutures.nim(253)    addCallback
2021-03-13T03:05:46.1173906Z asyncfutures.nim(104)    callSoon
2021-03-13T03:05:46.1174391Z asyncfutures.nim(423)    asyncCheckCallback
2021-03-13T03:06:01.9386199Z �[32mPASS: �[36mtests/views/tcan_compile_nim.nim c                          �[34m ( 9.22 sec)�[0m


2021-03-13T03:15:18.2256326Z �[1m�[31mFAIL: �[36mtests/stdlib/tssl.nim c�[0m
2021-03-13T03:15:18.2256943Z �[1m�[36mTest "tests/stdlib/tssl.nim" in category "stdlib"�[0m
2021-03-13T03:15:18.2257515Z �[1m�[31mFailure: reExitcodesDiffer�[0m
2021-03-13T03:15:18.2258008Z �[33mExpected:�[0m
2021-03-13T03:15:18.2258454Z �[1mexitcode: 0
2021-03-13T03:15:18.2258852Z �[0m
2021-03-13T03:15:18.2259250Z �[33mGotten:�[0m
2021-03-13T03:15:18.2259690Z �[1mexitcode: 1
2021-03-13T03:15:18.2259833Z 
2021-03-13T03:15:18.2260089Z Output:
2021-03-13T03:15:18.2260391Z tssl.nim(136)            tssl
2021-03-13T03:15:18.2260710Z tssl.nim(47)             main
2021-03-13T03:15:18.2261056Z net.nim(639)             newContext
2021-03-13T03:15:18.2261420Z net.nim(553)             loadCertificates
2021-03-13T03:15:18.2261773Z net.nim(518)             raiseSSLError
2021-03-13T03:15:18.2262294Z Error: unhandled exception: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small [SslError]
2021-03-13T03:15:18.2262628Z 
2021-03-13T03:15:18.2262996Z �[0m
2021-03-13T03:15:18.2263532Z �[2m�[33mJOINED: �[1m�[36mtests/stdlib/tstackframes.nim c�[0m

@timotheecour
Copy link
Member Author

more progress:

2021-03-13T05:43:33.7867767Z �[1m�[31mFAIL: �[36mtests/async/tasyncssl.nim c�[0m
2021-03-13T05:43:33.7868661Z �[1m�[36mTest "tests/async/tasyncssl.nim" in category "async"�[0m
2021-03-13T05:43:33.7869497Z �[1m�[31mFailure: reExitcodesDiffer�[0m
2021-03-13T05:43:33.7870659Z �[33mExpected:�[0m
2021-03-13T05:43:33.7871382Z �[1mexitcode: 0
2021-03-13T05:43:33.7872043Z �[0m
2021-03-13T05:43:33.7872987Z �[33mGotten:�[0m
2021-03-13T05:43:33.7873709Z �[1mexitcode: 1
2021-03-13T05:43:33.7873987Z 
2021-03-13T05:43:33.7874493Z Output:
2021-03-13T05:43:33.7874879Z tasyncssl.nim(59)        tasyncssl
2021-03-13T05:43:33.7875314Z asyncmacro.nim(262)      createServer
2021-03-13T05:43:33.7875934Z asyncmacro.nim(29)       createServerNimAsyncContinue
2021-03-13T05:43:33.7877045Z tasyncssl.nim(45)        createServerIter
2021-03-13T05:43:33.7877644Z net.nim(639)             newContext
2021-03-13T05:43:33.7878580Z net.nim(553)             loadCertificates
2021-03-13T05:43:33.7881192Z net.nim(518)             raiseSSLError
2021-03-13T05:43:33.7881524Z [[reraised from:
2021-03-13T05:43:33.7881979Z tasyncssl.nim(59)        tasyncssl
2021-03-13T05:43:33.7882435Z asyncfutures.nim(424)    asyncCheck
2021-03-13T05:43:33.7882738Z asyncfutures.nim(274)    callback=
2021-03-13T05:43:33.7883050Z asyncfutures.nim(253)    addCallback
2021-03-13T05:43:33.7883337Z asyncfutures.nim(104)    callSoon
2021-03-13T05:43:33.7883804Z asyncfutures.nim(423)    asyncCheckCallback
2021-03-13T05:52:36.1514064Z �[1m�[31mFAIL: �[36mtests/stdlib/tssl.nim c�[0m
2021-03-13T05:52:36.1514740Z �[1m�[36mTest "tests/stdlib/tssl.nim" in category "stdlib"�[0m
2021-03-13T05:52:36.1515391Z �[1m�[31mFailure: reExitcodesDiffer�[0m
2021-03-13T05:52:36.1516099Z �[33mExpected:�[0m
2021-03-13T05:52:36.1516898Z �[1mexitcode: 0
2021-03-13T05:52:36.1517397Z �[0m
2021-03-13T05:52:36.1518939Z �[33mGotten:�[0m
2021-03-13T05:52:36.1519317Z �[1mexitcode: 1
2021-03-13T05:52:36.1519462Z 
2021-03-13T05:52:36.1519666Z Output:
2021-03-13T05:52:36.1519915Z tssl.nim(136)            tssl
2021-03-13T05:52:36.1520351Z tssl.nim(47)             main
2021-03-13T05:52:36.1520611Z net.nim(639)             newContext
2021-03-13T05:52:36.1521082Z net.nim(553)             loadCertificates
2021-03-13T05:52:36.1521387Z net.nim(518)             raiseSSLError
2021-03-13T05:52:36.1521809Z Error: unhandled exception: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small [SslError]
2021-03-13T05:52:36.1522103Z 
2021-03-13T05:52:36.1522414Z �[0m
2021-03-13T05:40:30.1344447Z �[1m�[31mFAIL: �[36mtests/niminaction/Chapter8/sfml/sfml_test.nim cpp�[0m
2021-03-13T05:40:30.1345023Z �[1m�[36mTest "tests/niminaction/Chapter8/sfml/sfml_test.nim" in category "niminaction"�[0m
2021-03-13T05:40:30.1345504Z �[1m�[31mFailure: reNimcCrash�[0m
2021-03-13T05:40:30.1346519Z $ /home/vsts/work/1/s/bin/nim cpp --hints:on -d:testing --clearNimblePath --nimblePath:build/deps/pkgs --nimCache:nimcache/tests/niminaction/Chapter8/sfml/sfml_test.nim_2c5f2cba9af7f92986d3de1e753f3faa --stdout '--hint[Path]:off' '--hint[Processing]:off' tests/niminaction/Chapter8/sfml/sfml_test.nim
2021-03-13T05:40:30.1347401Z Hint: used config file '/home/vsts/work/1/s/config/nim.cfg' [Conf]
2021-03-13T05:40:30.1347903Z Hint: used config file '/home/vsts/work/1/s/config/config.nims' [Conf]
2021-03-13T05:40:30.1348416Z Hint: used config file '/home/vsts/work/1/s/tests/config.nims' [Conf]
2021-03-13T05:40:30.1348729Z CC: stdlib_system.nim
2021-03-13T05:40:30.1348971Z CC: stdlib_times.nim
2021-03-13T05:40:30.1349190Z CC: stdlib_os.nim
2021-03-13T05:40:30.1349590Z CC: sfml_test.nim
2021-03-13T05:40:30.1350064Z /home/vsts/work/1/s/nimcache/tests/niminaction/Chapter8/sfml/sfml_test.nim_2c5f2cba9af7f92986d3de1e753f3faa/@msfml_test.nim.cpp:10:10: fatal error: SFML/Graphics.hpp: No such file or directory
2021-03-13T05:40:30.1350559Z    10 | #include <SFML/Graphics.hpp>
2021-03-13T05:40:30.1352632Z       |          ^~~~~~~~~~~~~~~~~~~
2021-03-13T05:40:30.1353124Z compilation terminated.
2021-03-13T05:40:30.1354709Z Error: execution of an external compiler program 'g++ -c -std=gnu++14 -funsigned-char  -w -fmax-errors=3 -fpermissive   -I/home/vsts/work/1/s/lib -I/home/vsts/work/1/s/tests/niminaction/Chapter8/sfml -o /home/vsts/work/1/s/nimcache/tests/niminaction/Chapter8/sfml/sfml_test.nim_2c5f2cba9af7f92986d3de1e753f3faa/@msfml_test.nim.cpp.o /home/vsts/work/1/s/nimcache/tests/niminaction/Chapter8/sfml/sfml_test.nim_2c5f2cba9af7f92986d3de1e753f3faa/@msfml_test.nim.cpp' failed with exit code: 1
2021-03-13T05:40:30.1355835Z 
2021-03-13T05:40:30.1356104Z 
2021-03-13T05:40:30.1356339Z 
2021-03-13T05:40:30.1356789Z FAILURE! total: 24 passed: 23 skipped: 0 failed: 1

@timotheecour
Copy link
Member Author

sudo apt-get install --no-install-recommends --allow-downgrades -y libssl1.1 libssl1.1:i386

sudo apt-get install --no-install-recommends --allow-downgrades -y libssl1.1 libssl1.1:i386
Reading package lists...
Building dependency tree...
Reading state information...
libssl1.1 is already the newest version (1.1.1j-1+ubuntu18.04.1+deb.sury.org+3).
libssl1.1 set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libssl1.1 : Breaks: libssl1.1:i386 (!= 1.1.1j-1+ubuntu18.04.1+deb.sury.org+3) but 1.1.1-1ubuntu2.1~18.04.8 is to be installed
 libssl1.1:i386 : Breaks: libssl1.1 (!= 1.1.1-1ubuntu2.1~18.04.8) but 1.1.1j-1+ubuntu18.04.1+deb.sury.org+3 is to be installed
E: Unable to correct problems, you have held broken packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant