Skip to content

Instantly share code, notes, and snippets.

@X7md
Created February 27, 2025 02:42
Show Gist options
  • Save X7md/cac8f5a83b947452175de35491a12987 to your computer and use it in GitHub Desktop.
Save X7md/cac8f5a83b947452175de35491a12987 to your computer and use it in GitHub Desktop.
Untitled3.ipynb
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": [],
"authorship_tag": "ABX9TyNc4r0US4/qfjA9/oi+XNIO",
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/gist/X7md/cac8f5a83b947452175de35491a12987/untitled3.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "HGT7ufzUNUbl",
"outputId": "4d75cd24-0ecb-4c41-c31f-2a92bc46cf26"
},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Reading package lists...\n",
"Building dependency tree...\n",
"Reading state information...\n",
"autoconf is already the newest version (2.71-2).\n",
"autoconf set to manually installed.\n",
"build-essential is already the newest version (12.9ubuntu3).\n",
"libltdl-dev is already the newest version (2.4.6-15build2).\n",
"libltdl-dev set to manually installed.\n",
"cmake is already the newest version (3.22.1-1ubuntu1.22.04.2).\n",
"libcurl4-openssl-dev is already the newest version (7.81.0-1ubuntu1.20).\n",
"The following additional packages will be installed:\n",
" libauthen-sasl-perl libclone-perl libdata-dump-perl libencode-locale-perl\n",
" libfile-listing-perl libfont-afm-perl libhtml-form-perl libhtml-format-perl\n",
" libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl\n",
" libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl\n",
" libhttp-message-perl libhttp-negotiate-perl libio-html-perl\n",
" libio-socket-ssl-perl liblwp-mediatypes-perl liblwp-protocol-https-perl\n",
" libmailtools-perl libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl\n",
" libtext-unidecode-perl libtry-tiny-perl liburi-perl libwww-perl\n",
" libwww-robotrules-perl libxml-libxml-perl libxml-namespacesupport-perl\n",
" libxml-parser-perl libxml-sax-base-perl libxml-sax-expat-perl\n",
" libxml-sax-perl netbase perl-openssl-defaults tex-common\n",
"Suggested packages:\n",
" libdigest-hmac-perl libgssapi-perl libcrypt-ssleay-perl libtool-doc gcj-jdk\n",
" libsub-name-perl libbusiness-isbn-perl libauthen-ntlm-perl\n",
" libxml-sax-expatxs-perl debhelper texlive-base texlive-latex-base\n",
" texlive-plain-generic texlive-fonts-recommended\n",
"The following NEW packages will be installed:\n",
" libauthen-sasl-perl libclone-perl libdata-dump-perl libencode-locale-perl\n",
" libfile-listing-perl libfont-afm-perl libhtml-form-perl libhtml-format-perl\n",
" libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl\n",
" libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl\n",
" libhttp-message-perl libhttp-negotiate-perl libio-html-perl\n",
" libio-socket-ssl-perl liblwp-mediatypes-perl liblwp-protocol-https-perl\n",
" libmailtools-perl libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl\n",
" libtext-unidecode-perl libtool libtry-tiny-perl liburi-perl libwww-perl\n",
" libwww-robotrules-perl libxml-libxml-perl libxml-namespacesupport-perl\n",
" libxml-parser-perl libxml-sax-base-perl libxml-sax-expat-perl\n",
" libxml-sax-perl netbase perl-openssl-defaults tex-common texinfo\n",
"0 upgraded, 40 newly installed, 0 to remove and 23 not upgraded.\n",
"Need to get 3,927 kB of archives.\n",
"After this operation, 20.7 MB of additional disk space will be used.\n",
"Get:1 http://archive.ubuntu.com/ubuntu jammy/universe amd64 tex-common all 6.17 [33.7 kB]\n",
"Get:2 http://archive.ubuntu.com/ubuntu jammy/main amd64 netbase all 6.3 [12.9 kB]\n",
"Get:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 libclone-perl amd64 0.45-1build3 [11.0 kB]\n",
"Get:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 libdata-dump-perl all 1.25-1 [25.9 kB]\n",
"Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 libencode-locale-perl all 1.05-1.1 [11.8 kB]\n",
"Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 libhttp-date-perl all 6.05-1 [9,920 B]\n",
"Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 libfile-listing-perl all 6.14-1 [11.2 kB]\n",
"Get:8 http://archive.ubuntu.com/ubuntu jammy/main amd64 libfont-afm-perl all 1.20-3 [13.6 kB]\n",
"Get:9 http://archive.ubuntu.com/ubuntu jammy/main amd64 libhtml-tagset-perl all 3.20-4 [12.5 kB]\n",
"Get:10 http://archive.ubuntu.com/ubuntu jammy/main amd64 liburi-perl all 5.10-1 [78.8 kB]\n",
"Get:11 http://archive.ubuntu.com/ubuntu jammy/main amd64 libhtml-parser-perl amd64 3.76-1build2 [88.4 kB]\n",
"Get:12 http://archive.ubuntu.com/ubuntu jammy/main amd64 libio-html-perl all 1.004-2 [15.4 kB]\n",
"Get:13 http://archive.ubuntu.com/ubuntu jammy/main amd64 liblwp-mediatypes-perl all 6.04-1 [19.5 kB]\n",
"Get:14 http://archive.ubuntu.com/ubuntu jammy/main amd64 libhttp-message-perl all 6.36-1 [76.8 kB]\n",
"Get:15 http://archive.ubuntu.com/ubuntu jammy/main amd64 libhtml-form-perl all 6.07-1 [22.2 kB]\n",
"Get:16 http://archive.ubuntu.com/ubuntu jammy/main amd64 libhtml-tree-perl all 5.07-2 [200 kB]\n",
"Get:17 http://archive.ubuntu.com/ubuntu jammy/main amd64 libhtml-format-perl all 2.12-1.1 [41.3 kB]\n",
"Get:18 http://archive.ubuntu.com/ubuntu jammy/main amd64 libhttp-cookies-perl all 6.10-1 [18.4 kB]\n",
"Get:19 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libhttp-daemon-perl all 6.13-1ubuntu0.1 [22.9 kB]\n",
"Get:20 http://archive.ubuntu.com/ubuntu jammy/main amd64 libhttp-negotiate-perl all 6.01-1 [12.5 kB]\n",
"Get:21 http://archive.ubuntu.com/ubuntu jammy/main amd64 perl-openssl-defaults amd64 5build2 [7,542 B]\n",
"Get:22 http://archive.ubuntu.com/ubuntu jammy/main amd64 libnet-ssleay-perl amd64 1.92-1build2 [327 kB]\n",
"Get:23 http://archive.ubuntu.com/ubuntu jammy/main amd64 libio-socket-ssl-perl all 2.074-2 [192 kB]\n",
"Get:24 http://archive.ubuntu.com/ubuntu jammy/main amd64 libnet-http-perl all 6.22-1 [23.2 kB]\n",
"Get:25 http://archive.ubuntu.com/ubuntu jammy/main amd64 libtry-tiny-perl all 0.31-1 [21.8 kB]\n",
"Get:26 http://archive.ubuntu.com/ubuntu jammy/main amd64 libwww-robotrules-perl all 6.02-1 [12.6 kB]\n",
"Get:27 http://archive.ubuntu.com/ubuntu jammy/main amd64 libwww-perl all 6.61-1 [141 kB]\n",
"Get:28 http://archive.ubuntu.com/ubuntu jammy/main amd64 liblwp-protocol-https-perl all 6.10-1 [10.9 kB]\n",
"Get:29 http://archive.ubuntu.com/ubuntu jammy/main amd64 libnet-smtp-ssl-perl all 1.04-1 [5,948 B]\n",
"Get:30 http://archive.ubuntu.com/ubuntu jammy/main amd64 libmailtools-perl all 2.21-1 [80.7 kB]\n",
"Get:31 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libtext-unidecode-perl all 1.30-1 [99.0 kB]\n",
"Get:32 http://archive.ubuntu.com/ubuntu jammy/main amd64 libtool all 2.4.6-15build2 [164 kB]\n",
"Get:33 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxml-namespacesupport-perl all 1.12-1.1 [13.2 kB]\n",
"Get:34 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxml-sax-base-perl all 1.09-1.1 [19.0 kB]\n",
"Get:35 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxml-sax-perl all 1.02+dfsg-3 [57.0 kB]\n",
"Get:36 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxml-libxml-perl amd64 2.0207+dfsg+really+2.0134-1 [325 kB]\n",
"Get:37 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxml-parser-perl amd64 2.46-3build1 [212 kB]\n",
"Get:38 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxml-sax-expat-perl all 0.51-1 [10.5 kB]\n",
"Get:39 http://archive.ubuntu.com/ubuntu jammy/universe amd64 texinfo amd64 6.8-4build1 [1,423 kB]\n",
"Get:40 http://archive.ubuntu.com/ubuntu jammy/main amd64 libauthen-sasl-perl all 2.1600-1.1 [43.1 kB]\n",
"Fetched 3,927 kB in 2s (2,422 kB/s)\n",
"Selecting previously unselected package tex-common.\r\n",
"(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 124947 files and directories currently installed.)\r\n",
"Preparing to unpack .../00-tex-common_6.17_all.deb ...\r\n",
"Unpacking tex-common (6.17) ...\r\n",
"Selecting previously unselected package netbase.\r\n",
"Preparing to unpack .../01-netbase_6.3_all.deb ...\r\n",
"Unpacking netbase (6.3) ...\r\n",
"Selecting previously unselected package libclone-perl.\r\n",
"Preparing to unpack .../02-libclone-perl_0.45-1build3_amd64.deb ...\r\n",
"Unpacking libclone-perl (0.45-1build3) ...\r\n",
"Selecting previously unselected package libdata-dump-perl.\r\n",
"Preparing to unpack .../03-libdata-dump-perl_1.25-1_all.deb ...\r\n",
"Unpacking libdata-dump-perl (1.25-1) ...\r\n",
"Selecting previously unselected package libencode-locale-perl.\r\n",
"Preparing to unpack .../04-libencode-locale-perl_1.05-1.1_all.deb ...\r\n",
"Unpacking libencode-locale-perl (1.05-1.1) ...\r\n",
"Selecting previously unselected package libhttp-date-perl.\r\n",
"Preparing to unpack .../05-libhttp-date-perl_6.05-1_all.deb ...\r\n",
"Unpacking libhttp-date-perl (6.05-1) ...\r\n",
"Selecting previously unselected package libfile-listing-perl.\r\n",
"Preparing to unpack .../06-libfile-listing-perl_6.14-1_all.deb ...\r\n",
"Unpacking libfile-listing-perl (6.14-1) ...\r\n",
"Selecting previously unselected package libfont-afm-perl.\r\n",
"Preparing to unpack .../07-libfont-afm-perl_1.20-3_all.deb ...\r\n",
"Unpacking libfont-afm-perl (1.20-3) ...\r\n",
"Selecting previously unselected package libhtml-tagset-perl.\r\n",
"Preparing to unpack .../08-libhtml-tagset-perl_3.20-4_all.deb ...\r\n",
"Unpacking libhtml-tagset-perl (3.20-4) ...\r\n",
"Selecting previously unselected package liburi-perl.\r\n",
"Preparing to unpack .../09-liburi-perl_5.10-1_all.deb ...\r\n",
"Unpacking liburi-perl (5.10-1) ...\r\n",
"Selecting previously unselected package libhtml-parser-perl:amd64.\r\n",
"Preparing to unpack .../10-libhtml-parser-perl_3.76-1build2_amd64.deb ...\r\n",
"Unpacking libhtml-parser-perl:amd64 (3.76-1build2) ...\r\n",
"Selecting previously unselected package libio-html-perl.\r\n",
"Preparing to unpack .../11-libio-html-perl_1.004-2_all.deb ...\r\n",
"Unpacking libio-html-perl (1.004-2) ...\r\n",
"Selecting previously unselected package liblwp-mediatypes-perl.\r\n",
"Preparing to unpack .../12-liblwp-mediatypes-perl_6.04-1_all.deb ...\r\n",
"Unpacking liblwp-mediatypes-perl (6.04-1) ...\r\n",
"Selecting previously unselected package libhttp-message-perl.\r\n",
"Preparing to unpack .../13-libhttp-message-perl_6.36-1_all.deb ...\r\n",
"Unpacking libhttp-message-perl (6.36-1) ...\r\n",
"Selecting previously unselected package libhtml-form-perl.\r\n",
"Preparing to unpack .../14-libhtml-form-perl_6.07-1_all.deb ...\r\n",
"Unpacking libhtml-form-perl (6.07-1) ...\r\n",
"Selecting previously unselected package libhtml-tree-perl.\r\n",
"Preparing to unpack .../15-libhtml-tree-perl_5.07-2_all.deb ...\r\n",
"Unpacking libhtml-tree-perl (5.07-2) ...\r\n",
"Selecting previously unselected package libhtml-format-perl.\r\n",
"Preparing to unpack .../16-libhtml-format-perl_2.12-1.1_all.deb ...\r\n",
"Unpacking libhtml-format-perl (2.12-1.1) ...\r\n",
"Selecting previously unselected package libhttp-cookies-perl.\r\n",
"Preparing to unpack .../17-libhttp-cookies-perl_6.10-1_all.deb ...\r\n",
"Unpacking libhttp-cookies-perl (6.10-1) ...\r\n",
"Selecting previously unselected package libhttp-daemon-perl.\r\n",
"Preparing to unpack .../18-libhttp-daemon-perl_6.13-1ubuntu0.1_all.deb ...\r\n",
"Unpacking libhttp-daemon-perl (6.13-1ubuntu0.1) ...\r\n",
"Selecting previously unselected package libhttp-negotiate-perl.\r\n",
"Preparing to unpack .../19-libhttp-negotiate-perl_6.01-1_all.deb ...\r\n",
"Unpacking libhttp-negotiate-perl (6.01-1) ...\r\n",
"Selecting previously unselected package perl-openssl-defaults:amd64.\r\n",
"Preparing to unpack .../20-perl-openssl-defaults_5build2_amd64.deb ...\r\n",
"Unpacking perl-openssl-defaults:amd64 (5build2) ...\r\n",
"Selecting previously unselected package libnet-ssleay-perl:amd64.\r\n",
"Preparing to unpack .../21-libnet-ssleay-perl_1.92-1build2_amd64.deb ...\r\n",
"Unpacking libnet-ssleay-perl:amd64 (1.92-1build2) ...\r\n",
"Selecting previously unselected package libio-socket-ssl-perl.\r\n",
"Preparing to unpack .../22-libio-socket-ssl-perl_2.074-2_all.deb ...\r\n",
"Unpacking libio-socket-ssl-perl (2.074-2) ...\r\n",
"Selecting previously unselected package libnet-http-perl.\r\n",
"Preparing to unpack .../23-libnet-http-perl_6.22-1_all.deb ...\r\n",
"Unpacking libnet-http-perl (6.22-1) ...\r\n",
"Selecting previously unselected package libtry-tiny-perl.\r\n",
"Preparing to unpack .../24-libtry-tiny-perl_0.31-1_all.deb ...\r\n",
"Unpacking libtry-tiny-perl (0.31-1) ...\r\n",
"Selecting previously unselected package libwww-robotrules-perl.\r\n",
"Preparing to unpack .../25-libwww-robotrules-perl_6.02-1_all.deb ...\r\n",
"Unpacking libwww-robotrules-perl (6.02-1) ...\r\n",
"Selecting previously unselected package libwww-perl.\r\n",
"Preparing to unpack .../26-libwww-perl_6.61-1_all.deb ...\r\n",
"Unpacking libwww-perl (6.61-1) ...\r\n",
"Selecting previously unselected package liblwp-protocol-https-perl.\r\n",
"Preparing to unpack .../27-liblwp-protocol-https-perl_6.10-1_all.deb ...\r\n",
"Unpacking liblwp-protocol-https-perl (6.10-1) ...\r\n",
"Selecting previously unselected package libnet-smtp-ssl-perl.\r\n",
"Preparing to unpack .../28-libnet-smtp-ssl-perl_1.04-1_all.deb ...\r\n",
"Unpacking libnet-smtp-ssl-perl (1.04-1) ...\r\n",
"Selecting previously unselected package libmailtools-perl.\r\n",
"Preparing to unpack .../29-libmailtools-perl_2.21-1_all.deb ...\r\n",
"Unpacking libmailtools-perl (2.21-1) ...\r\n",
"Selecting previously unselected package libtext-unidecode-perl.\r\n",
"Preparing to unpack .../30-libtext-unidecode-perl_1.30-1_all.deb ...\r\n",
"Unpacking libtext-unidecode-perl (1.30-1) ...\r\n",
"Selecting previously unselected package libtool.\r\n",
"Preparing to unpack .../31-libtool_2.4.6-15build2_all.deb ...\r\n",
"Unpacking libtool (2.4.6-15build2) ...\r\n",
"Selecting previously unselected package libxml-namespacesupport-perl.\r\n",
"Preparing to unpack .../32-libxml-namespacesupport-perl_1.12-1.1_all.deb ...\r\n",
"Unpacking libxml-namespacesupport-perl (1.12-1.1) ...\r\n",
"Selecting previously unselected package libxml-sax-base-perl.\r\n",
"Preparing to unpack .../33-libxml-sax-base-perl_1.09-1.1_all.deb ...\r\n",
"Unpacking libxml-sax-base-perl (1.09-1.1) ...\r\n",
"Selecting previously unselected package libxml-sax-perl.\r\n",
"Preparing to unpack .../34-libxml-sax-perl_1.02+dfsg-3_all.deb ...\r\n",
"Unpacking libxml-sax-perl (1.02+dfsg-3) ...\r\n",
"Selecting previously unselected package libxml-libxml-perl.\r\n",
"Preparing to unpack .../35-libxml-libxml-perl_2.0207+dfsg+really+2.0134-1_amd64.deb ...\r\n",
"Unpacking libxml-libxml-perl (2.0207+dfsg+really+2.0134-1) ...\r\n",
"Selecting previously unselected package libxml-parser-perl:amd64.\r\n",
"Preparing to unpack .../36-libxml-parser-perl_2.46-3build1_amd64.deb ...\r\n",
"Unpacking libxml-parser-perl:amd64 (2.46-3build1) ...\r\n",
"Selecting previously unselected package libxml-sax-expat-perl.\r\n",
"Preparing to unpack .../37-libxml-sax-expat-perl_0.51-1_all.deb ...\r\n",
"Unpacking libxml-sax-expat-perl (0.51-1) ...\r\n",
"Selecting previously unselected package texinfo.\r\n",
"Preparing to unpack .../38-texinfo_6.8-4build1_amd64.deb ...\r\n",
"Unpacking texinfo (6.8-4build1) ...\r\n",
"Selecting previously unselected package libauthen-sasl-perl.\r\n",
"Preparing to unpack .../39-libauthen-sasl-perl_2.1600-1.1_all.deb ...\r\n",
"Unpacking libauthen-sasl-perl (2.1600-1.1) ...\r\n",
"Setting up libhttp-date-perl (6.05-1) ...\r\n",
"Setting up libfile-listing-perl (6.14-1) ...\r\n",
"Setting up libfont-afm-perl (1.20-3) ...\r\n",
"Setting up libtool (2.4.6-15build2) ...\r\n",
"Setting up libclone-perl (0.45-1build3) ...\r\n",
"Setting up libhtml-tagset-perl (3.20-4) ...\r\n",
"Setting up libauthen-sasl-perl (2.1600-1.1) ...\r\n",
"Setting up liblwp-mediatypes-perl (6.04-1) ...\r\n",
"Setting up libtry-tiny-perl (0.31-1) ...\r\n",
"Setting up perl-openssl-defaults:amd64 (5build2) ...\r\n",
"Setting up libxml-namespacesupport-perl (1.12-1.1) ...\r\n",
"Setting up libencode-locale-perl (1.05-1.1) ...\r\n",
"Setting up tex-common (6.17) ...\r\n",
"debconf: unable to initialize frontend: Dialog\r\n",
"debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)\r\n",
"debconf: falling back to frontend: Readline\r\n",
"update-language: texlive-base not installed and configured, doing nothing!\r\n",
"Setting up libxml-sax-base-perl (1.09-1.1) ...\r\n",
"Setting up libdata-dump-perl (1.25-1) ...\r\n",
"Setting up libio-html-perl (1.004-2) ...\r\n",
"Setting up netbase (6.3) ...\r\n",
"Setting up libtext-unidecode-perl (1.30-1) ...\r\n",
"Setting up liburi-perl (5.10-1) ...\r\n",
"Setting up libhttp-message-perl (6.36-1) ...\r\n",
"Setting up libnet-ssleay-perl:amd64 (1.92-1build2) ...\r\n",
"Setting up libhttp-negotiate-perl (6.01-1) ...\r\n",
"Setting up libhttp-cookies-perl (6.10-1) ...\r\n",
"Setting up libnet-http-perl (6.22-1) ...\r\n",
"Setting up libxml-sax-perl (1.02+dfsg-3) ...\r\n",
"update-perl-sax-parsers: Registering Perl SAX parser XML::SAX::PurePerl with priority 10...\r\n",
"update-perl-sax-parsers: Updating overall Perl SAX parser modules info file...\r\n",
"debconf: unable to initialize frontend: Dialog\r\n",
"debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)\r\n",
"debconf: falling back to frontend: Readline\r\n",
"\r\n",
"Creating config file /etc/perl/XML/SAX/ParserDetails.ini with new version\r\n",
"Setting up libxml-libxml-perl (2.0207+dfsg+really+2.0134-1) ...\r\n",
"update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX::Parser with priority 50...\r\n",
"update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX with priority 50...\r\n",
"update-perl-sax-parsers: Updating overall Perl SAX parser modules info file...\r\n",
"debconf: unable to initialize frontend: Dialog\r\n",
"debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)\r\n",
"debconf: falling back to frontend: Readline\r\n",
"Replacing config file /etc/perl/XML/SAX/ParserDetails.ini with new version\r\n",
"Setting up libwww-robotrules-perl (6.02-1) ...\r\n",
"Setting up libhttp-daemon-perl (6.13-1ubuntu0.1) ...\r\n",
"Setting up libhtml-parser-perl:amd64 (3.76-1build2) ...\r\n",
"Setting up libio-socket-ssl-perl (2.074-2) ...\r\n",
"Setting up libhtml-form-perl (6.07-1) ...\r\n",
"Setting up libhtml-tree-perl (5.07-2) ...\r\n",
"Setting up libhtml-format-perl (2.12-1.1) ...\r\n",
"Setting up libnet-smtp-ssl-perl (1.04-1) ...\r\n",
"Setting up libmailtools-perl (2.21-1) ...\r\n",
"Setting up texinfo (6.8-4build1) ...\r\n",
"Setting up liblwp-protocol-https-perl (6.10-1) ...\r\n",
"Setting up libwww-perl (6.61-1) ...\r\n",
"Setting up libxml-parser-perl:amd64 (2.46-3build1) ...\r\n",
"Setting up libxml-sax-expat-perl (0.51-1) ...\r\n",
"update-perl-sax-parsers: Registering Perl SAX parser XML::SAX::Expat with priority 50...\r\n",
"update-perl-sax-parsers: Updating overall Perl SAX parser modules info file...\r\n",
"debconf: unable to initialize frontend: Dialog\r\n",
"debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)\r\n",
"debconf: falling back to frontend: Readline\r\n",
"Replacing config file /etc/perl/XML/SAX/ParserDetails.ini with new version\r\n",
"Processing triggers for man-db (2.10.2-1) ...\r\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
"\n",
"WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n",
"\n",
"debconf: unable to initialize frontend: Dialog\n",
"debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78, <> line 40.)\n",
"debconf: falling back to frontend: Readline\n",
"debconf: unable to initialize frontend: Readline\n",
"debconf: (This frontend requires a controlling tty.)\n",
"debconf: falling back to frontend: Teletype\n",
"dpkg-preconfigure: unable to re-open stdin: \n"
]
}
],
"source": [
"%%sh\n",
"sudo apt install libcurl4-openssl-dev build-essential cmake autoconf texinfo libtool libltdl-dev"
]
},
{
"cell_type": "code",
"source": [
"%%sh\n",
"# On Debian / Ubuntu\n",
"sudo apt install libcurl4-openssl-dev build-essential cmake autoconf texinfo libtool libltdl-dev"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "2ebfD3fxOVLu",
"outputId": "98aadc32-3e43-4f17-c098-598702cbd351"
},
"execution_count": 7,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Reading package lists...\n",
"Building dependency tree...\n",
"Reading state information...\n",
"autoconf is already the newest version (2.71-2).\n",
"build-essential is already the newest version (12.9ubuntu3).\n",
"libltdl-dev is already the newest version (2.4.6-15build2).\n",
"libtool is already the newest version (2.4.6-15build2).\n",
"texinfo is already the newest version (6.8-4build1).\n",
"cmake is already the newest version (3.22.1-1ubuntu1.22.04.2).\n",
"libcurl4-openssl-dev is already the newest version (7.81.0-1ubuntu1.20).\n",
"0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
"\n",
"WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n",
"\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"%%sh\n",
"git clone --recursive https://github.com/saghul/txiki.js --shallow-submodules && cd txiki.js\n",
"git submodule update --init"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "Tg1LB0M0NcEb",
"outputId": "05fee3b0-3506-48ac-f1a3-96e2908ad4c3"
},
"execution_count": 2,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Submodule path 'deps/libffi': checked out '3d0ce1e6fcf19f853894862abcbac0ae78a7be60'\n",
"Submodule path 'deps/libuv': checked out '8fb9cb919489a48880680a56efecff6a7dfb4504'\n",
"Submodule path 'deps/mimalloc': checked out '43ce4bd7fd34bcc730c1c7471c99995597415488'\n",
"Submodule path 'deps/quickjs': checked out 'f45e4f050a93a0c027949bd11902808f8dbc0826'\n",
"Submodule path 'deps/wasm3': checked out 'e695c822535ddb9b459fd163d0c8791c615ef93e'\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
"Cloning into 'txiki.js'...\n",
"Submodule 'deps/libffi' (https://github.com/libffi/libffi) registered for path 'deps/libffi'\n",
"Submodule 'deps/libuv' (https://github.com/libuv/libuv) registered for path 'deps/libuv'\n",
"Submodule 'deps/mimalloc' (https://github.com/microsoft/mimalloc) registered for path 'deps/mimalloc'\n",
"Submodule 'deps/quickjs' (https://github.com/quickjs-ng/quickjs.git) registered for path 'deps/quickjs'\n",
"Submodule 'deps/wasm3' (https://github.com/saghul/wasm3.git) registered for path 'deps/wasm3'\n",
"Cloning into '/content/txiki.js/deps/libffi'...\n",
"Cloning into '/content/txiki.js/deps/libuv'...\n",
"Cloning into '/content/txiki.js/deps/mimalloc'...\n",
"Cloning into '/content/txiki.js/deps/quickjs'...\n",
"Cloning into '/content/txiki.js/deps/wasm3'...\n",
"From https://github.com/quickjs-ng/quickjs\n",
" * branch f45e4f050a93a0c027949bd11902808f8dbc0826 -> FETCH_HEAD\n",
"Submodule 'test262' (https://github.com/tc39/test262) registered for path 'deps/quickjs/test262'\n",
"Skipping submodule '../deps/quickjs/'\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"%%sh\n",
"sudo apt update\n",
"sudo apt install gcc-multilib g++-multilib"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "h0txVJbcPFv0",
"outputId": "6c337d91-ae27-409c-aa93-7b32a7943162"
},
"execution_count": 10,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]\n",
"Get:2 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 InRelease [1,581 B]\n",
"Get:3 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ InRelease [3,632 B]\n",
"Hit:4 http://archive.ubuntu.com/ubuntu jammy InRelease\n",
"Get:5 https://r2u.stat.illinois.edu/ubuntu jammy InRelease [6,555 B]\n",
"Get:6 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]\n",
"Get:7 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 Packages [1,319 kB]\n",
"Get:8 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]\n",
"Get:9 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [2,639 kB]\n",
"Hit:10 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease\n",
"Hit:11 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy InRelease\n",
"Get:12 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [3,664 kB]\n",
"Get:13 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1,235 kB]\n",
"Hit:14 https://ppa.launchpadcontent.net/ubuntugis/ppa/ubuntu jammy InRelease\n",
"Get:15 https://r2u.stat.illinois.edu/ubuntu jammy/main all Packages [8,704 kB]\n",
"Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [2,950 kB]\n",
"Get:17 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1,532 kB]\n",
"Get:18 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [3,813 kB]\n",
"Get:19 https://r2u.stat.illinois.edu/ubuntu jammy/main amd64 Packages [2,661 kB]\n",
"Fetched 28.9 MB in 3s (9,831 kB/s)\n",
"Reading package lists...\n",
"Building dependency tree...\n",
"Reading state information...\n",
"32 packages can be upgraded. Run 'apt list --upgradable' to see them.\n",
"Reading package lists...\n",
"Building dependency tree...\n",
"Reading state information...\n",
"The following additional packages will be installed:\n",
" g++-11-multilib gcc-11-multilib lib32asan6 lib32atomic1 lib32gcc-11-dev\n",
" lib32gomp1 lib32itm1 lib32quadmath0 lib32stdc++-11-dev lib32ubsan1\n",
" libc6-dev-i386 libc6-dev-x32 libc6-x32 libx32asan6 libx32atomic1\n",
" libx32gcc-11-dev libx32gcc-s1 libx32gomp1 libx32itm1 libx32quadmath0\n",
" libx32stdc++-11-dev libx32stdc++6 libx32ubsan1\n",
"Suggested packages:\n",
" lib32stdc++6-11-dbg libx32stdc++6-11-dbg\n",
"The following NEW packages will be installed:\n",
" g++-11-multilib g++-multilib gcc-11-multilib gcc-multilib lib32asan6\n",
" lib32atomic1 lib32gcc-11-dev lib32gomp1 lib32itm1 lib32quadmath0\n",
" lib32stdc++-11-dev lib32ubsan1 libc6-dev-i386 libc6-dev-x32 libc6-x32\n",
" libx32asan6 libx32atomic1 libx32gcc-11-dev libx32gcc-s1 libx32gomp1\n",
" libx32itm1 libx32quadmath0 libx32stdc++-11-dev libx32stdc++6 libx32ubsan1\n",
"0 upgraded, 25 newly installed, 0 to remove and 32 not upgraded.\n",
"Need to get 20.1 MB of archives.\n",
"After this operation, 89.2 MB of additional disk space will be used.\n",
"Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libc6-dev-i386 amd64 2.35-0ubuntu3.9 [1,445 kB]\n",
"Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libc6-x32 amd64 2.35-0ubuntu3.9 [2,978 kB]\n",
"Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libc6-dev-x32 amd64 2.35-0ubuntu3.9 [1,632 kB]\n",
"Get:4 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libx32gcc-s1 amd64 12.3.0-1ubuntu1~22.04 [54.0 kB]\n",
"Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 lib32gomp1 amd64 12.3.0-1ubuntu1~22.04 [133 kB]\n",
"Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libx32gomp1 amd64 12.3.0-1ubuntu1~22.04 [127 kB]\n",
"Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 lib32itm1 amd64 12.3.0-1ubuntu1~22.04 [32.0 kB]\n",
"Get:8 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libx32itm1 amd64 12.3.0-1ubuntu1~22.04 [30.2 kB]\n",
"Get:9 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 lib32atomic1 amd64 12.3.0-1ubuntu1~22.04 [8,500 B]\n",
"Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libx32atomic1 amd64 12.3.0-1ubuntu1~22.04 [10.2 kB]\n",
"Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 lib32asan6 amd64 11.4.0-1ubuntu1~22.04 [2,154 kB]\n",
"Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libx32asan6 amd64 11.4.0-1ubuntu1~22.04 [2,128 kB]\n",
"Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 lib32ubsan1 amd64 12.3.0-1ubuntu1~22.04 [959 kB]\n",
"Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libx32stdc++6 amd64 12.3.0-1ubuntu1~22.04 [682 kB]\n",
"Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libx32ubsan1 amd64 12.3.0-1ubuntu1~22.04 [963 kB]\n",
"Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 lib32quadmath0 amd64 12.3.0-1ubuntu1~22.04 [244 kB]\n",
"Get:17 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libx32quadmath0 amd64 12.3.0-1ubuntu1~22.04 [156 kB]\n",
"Get:18 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 lib32gcc-11-dev amd64 11.4.0-1ubuntu1~22.04 [2,339 kB]\n",
"Get:19 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libx32gcc-11-dev amd64 11.4.0-1ubuntu1~22.04 [2,107 kB]\n",
"Get:20 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 gcc-11-multilib amd64 11.4.0-1ubuntu1~22.04 [876 B]\n",
"Get:21 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 lib32stdc++-11-dev amd64 11.4.0-1ubuntu1~22.04 [989 kB]\n",
"Get:22 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libx32stdc++-11-dev amd64 11.4.0-1ubuntu1~22.04 [906 kB]\n",
"Get:23 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 g++-11-multilib amd64 11.4.0-1ubuntu1~22.04 [890 B]\n",
"Get:24 http://archive.ubuntu.com/ubuntu jammy/main amd64 gcc-multilib amd64 4:11.2.0-1ubuntu1 [1,382 B]\n",
"Get:25 http://archive.ubuntu.com/ubuntu jammy/main amd64 g++-multilib amd64 4:11.2.0-1ubuntu1 [854 B]\n",
"Fetched 20.1 MB in 1s (31.8 MB/s)\n",
"Selecting previously unselected package libc6-dev-i386.\r\n",
"(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 126951 files and directories currently installed.)\r\n",
"Preparing to unpack .../00-libc6-dev-i386_2.35-0ubuntu3.9_amd64.deb ...\r\n",
"Unpacking libc6-dev-i386 (2.35-0ubuntu3.9) ...\r\n",
"Selecting previously unselected package libc6-x32.\r\n",
"Preparing to unpack .../01-libc6-x32_2.35-0ubuntu3.9_amd64.deb ...\r\n",
"Unpacking libc6-x32 (2.35-0ubuntu3.9) ...\r\n",
"Selecting previously unselected package libc6-dev-x32.\r\n",
"Preparing to unpack .../02-libc6-dev-x32_2.35-0ubuntu3.9_amd64.deb ...\r\n",
"Unpacking libc6-dev-x32 (2.35-0ubuntu3.9) ...\r\n",
"Selecting previously unselected package libx32gcc-s1.\r\n",
"Preparing to unpack .../03-libx32gcc-s1_12.3.0-1ubuntu1~22.04_amd64.deb ...\r\n",
"Unpacking libx32gcc-s1 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Selecting previously unselected package lib32gomp1.\r\n",
"Preparing to unpack .../04-lib32gomp1_12.3.0-1ubuntu1~22.04_amd64.deb ...\r\n",
"Unpacking lib32gomp1 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Selecting previously unselected package libx32gomp1.\r\n",
"Preparing to unpack .../05-libx32gomp1_12.3.0-1ubuntu1~22.04_amd64.deb ...\r\n",
"Unpacking libx32gomp1 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Selecting previously unselected package lib32itm1.\r\n",
"Preparing to unpack .../06-lib32itm1_12.3.0-1ubuntu1~22.04_amd64.deb ...\r\n",
"Unpacking lib32itm1 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Selecting previously unselected package libx32itm1.\r\n",
"Preparing to unpack .../07-libx32itm1_12.3.0-1ubuntu1~22.04_amd64.deb ...\r\n",
"Unpacking libx32itm1 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Selecting previously unselected package lib32atomic1.\r\n",
"Preparing to unpack .../08-lib32atomic1_12.3.0-1ubuntu1~22.04_amd64.deb ...\r\n",
"Unpacking lib32atomic1 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Selecting previously unselected package libx32atomic1.\r\n",
"Preparing to unpack .../09-libx32atomic1_12.3.0-1ubuntu1~22.04_amd64.deb ...\r\n",
"Unpacking libx32atomic1 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Selecting previously unselected package lib32asan6.\r\n",
"Preparing to unpack .../10-lib32asan6_11.4.0-1ubuntu1~22.04_amd64.deb ...\r\n",
"Unpacking lib32asan6 (11.4.0-1ubuntu1~22.04) ...\r\n",
"Selecting previously unselected package libx32asan6.\r\n",
"Preparing to unpack .../11-libx32asan6_11.4.0-1ubuntu1~22.04_amd64.deb ...\r\n",
"Unpacking libx32asan6 (11.4.0-1ubuntu1~22.04) ...\r\n",
"Selecting previously unselected package lib32ubsan1.\r\n",
"Preparing to unpack .../12-lib32ubsan1_12.3.0-1ubuntu1~22.04_amd64.deb ...\r\n",
"Unpacking lib32ubsan1 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Selecting previously unselected package libx32stdc++6.\r\n",
"Preparing to unpack .../13-libx32stdc++6_12.3.0-1ubuntu1~22.04_amd64.deb ...\r\n",
"Unpacking libx32stdc++6 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Selecting previously unselected package libx32ubsan1.\r\n",
"Preparing to unpack .../14-libx32ubsan1_12.3.0-1ubuntu1~22.04_amd64.deb ...\r\n",
"Unpacking libx32ubsan1 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Selecting previously unselected package lib32quadmath0.\r\n",
"Preparing to unpack .../15-lib32quadmath0_12.3.0-1ubuntu1~22.04_amd64.deb ...\r\n",
"Unpacking lib32quadmath0 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Selecting previously unselected package libx32quadmath0.\r\n",
"Preparing to unpack .../16-libx32quadmath0_12.3.0-1ubuntu1~22.04_amd64.deb ...\r\n",
"Unpacking libx32quadmath0 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Selecting previously unselected package lib32gcc-11-dev.\r\n",
"Preparing to unpack .../17-lib32gcc-11-dev_11.4.0-1ubuntu1~22.04_amd64.deb ...\r\n",
"Unpacking lib32gcc-11-dev (11.4.0-1ubuntu1~22.04) ...\r\n",
"Selecting previously unselected package libx32gcc-11-dev.\r\n",
"Preparing to unpack .../18-libx32gcc-11-dev_11.4.0-1ubuntu1~22.04_amd64.deb ...\r\n",
"Unpacking libx32gcc-11-dev (11.4.0-1ubuntu1~22.04) ...\r\n",
"Selecting previously unselected package gcc-11-multilib.\r\n",
"Preparing to unpack .../19-gcc-11-multilib_11.4.0-1ubuntu1~22.04_amd64.deb ...\r\n",
"Unpacking gcc-11-multilib (11.4.0-1ubuntu1~22.04) ...\r\n",
"Selecting previously unselected package lib32stdc++-11-dev.\r\n",
"Preparing to unpack .../20-lib32stdc++-11-dev_11.4.0-1ubuntu1~22.04_amd64.deb ...\r\n",
"Unpacking lib32stdc++-11-dev (11.4.0-1ubuntu1~22.04) ...\r\n",
"Selecting previously unselected package libx32stdc++-11-dev.\r\n",
"Preparing to unpack .../21-libx32stdc++-11-dev_11.4.0-1ubuntu1~22.04_amd64.deb ...\r\n",
"Unpacking libx32stdc++-11-dev (11.4.0-1ubuntu1~22.04) ...\r\n",
"Selecting previously unselected package g++-11-multilib.\r\n",
"Preparing to unpack .../22-g++-11-multilib_11.4.0-1ubuntu1~22.04_amd64.deb ...\r\n",
"Unpacking g++-11-multilib (11.4.0-1ubuntu1~22.04) ...\r\n",
"Selecting previously unselected package gcc-multilib.\r\n",
"Preparing to unpack .../23-gcc-multilib_4%3a11.2.0-1ubuntu1_amd64.deb ...\r\n",
"Unpacking gcc-multilib (4:11.2.0-1ubuntu1) ...\r\n",
"Selecting previously unselected package g++-multilib.\r\n",
"Preparing to unpack .../24-g++-multilib_4%3a11.2.0-1ubuntu1_amd64.deb ...\r\n",
"Unpacking g++-multilib (4:11.2.0-1ubuntu1) ...\r\n",
"Setting up libc6-dev-i386 (2.35-0ubuntu3.9) ...\r\n",
"Setting up lib32itm1 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Setting up lib32ubsan1 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Setting up libc6-x32 (2.35-0ubuntu3.9) ...\r\n",
"Setting up libc6-dev-x32 (2.35-0ubuntu3.9) ...\r\n",
"Setting up lib32gomp1 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Setting up libx32gomp1 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Setting up lib32asan6 (11.4.0-1ubuntu1~22.04) ...\r\n",
"Setting up lib32quadmath0 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Setting up libx32quadmath0 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Setting up lib32atomic1 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Setting up libx32atomic1 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Setting up libx32gcc-s1 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Setting up libx32itm1 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Setting up libx32asan6 (11.4.0-1ubuntu1~22.04) ...\r\n",
"Setting up libx32stdc++6 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Setting up libx32ubsan1 (12.3.0-1ubuntu1~22.04) ...\r\n",
"Setting up libx32gcc-11-dev (11.4.0-1ubuntu1~22.04) ...\r\n",
"Setting up libx32stdc++-11-dev (11.4.0-1ubuntu1~22.04) ...\r\n",
"Setting up lib32gcc-11-dev (11.4.0-1ubuntu1~22.04) ...\r\n",
"Setting up lib32stdc++-11-dev (11.4.0-1ubuntu1~22.04) ...\r\n",
"Setting up gcc-11-multilib (11.4.0-1ubuntu1~22.04) ...\r\n",
"Setting up gcc-multilib (4:11.2.0-1ubuntu1) ...\r\n",
"Setting up g++-11-multilib (11.4.0-1ubuntu1~22.04) ...\r\n",
"Setting up g++-multilib (4:11.2.0-1ubuntu1) ...\r\n",
"Processing triggers for libc-bin (2.35-0ubuntu3.8) ...\r\n",
"/sbin/ldconfig.real: /usr/local/lib/libtbbmalloc.so.2 is not a symbolic link\r\n",
"\r\n",
"/sbin/ldconfig.real: /usr/local/lib/libtbb.so.12 is not a symbolic link\r\n",
"\r\n",
"/sbin/ldconfig.real: /usr/local/lib/libumf.so.0 is not a symbolic link\r\n",
"\r\n",
"/sbin/ldconfig.real: /usr/local/lib/libtbbbind_2_5.so.3 is not a symbolic link\r\n",
"\r\n",
"/sbin/ldconfig.real: /usr/local/lib/libtcm_debug.so.1 is not a symbolic link\r\n",
"\r\n",
"/sbin/ldconfig.real: /usr/local/lib/libur_adapter_level_zero.so.0 is not a symbolic link\r\n",
"\r\n",
"/sbin/ldconfig.real: /usr/local/lib/libhwloc.so.15 is not a symbolic link\r\n",
"\r\n",
"/sbin/ldconfig.real: /usr/local/lib/libtcm.so.1 is not a symbolic link\r\n",
"\r\n",
"/sbin/ldconfig.real: /usr/local/lib/libur_loader.so.0 is not a symbolic link\r\n",
"\r\n",
"/sbin/ldconfig.real: /usr/local/lib/libtbbbind.so.3 is not a symbolic link\r\n",
"\r\n",
"/sbin/ldconfig.real: /usr/local/lib/libtbbmalloc_proxy.so.2 is not a symbolic link\r\n",
"\r\n",
"/sbin/ldconfig.real: /usr/local/lib/libur_adapter_opencl.so.0 is not a symbolic link\r\n",
"\r\n",
"/sbin/ldconfig.real: /usr/local/lib/libtbbbind_2_0.so.3 is not a symbolic link\r\n",
"\r\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
"\n",
"WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n",
"\n",
"W: Skipping acquire of configured file 'main/source/Sources' as repository 'https://r2u.stat.illinois.edu/ubuntu jammy InRelease' does not seem to provide it (sources.list entry misspelt?)\n",
"\n",
"WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n",
"\n",
"debconf: unable to initialize frontend: Dialog\n",
"debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78, <> line 25.)\n",
"debconf: falling back to frontend: Readline\n",
"debconf: unable to initialize frontend: Readline\n",
"debconf: (This frontend requires a controlling tty.)\n",
"debconf: falling back to frontend: Teletype\n",
"dpkg-preconfigure: unable to re-open stdin: \n"
]
}
]
},
{
"cell_type": "code",
"source": [
"%%sh\n",
"cd txiki.js\n",
"sudo cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=\"-m32\" -DCMAKE_CXX_FLAGS=\"-m32\"\n",
"sudo cmake --build build -j$(nproc)"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 1000
},
"id": "l0y_3RIsNgiY",
"outputId": "2f1d0568-ebc6-4e12-939e-1c4d0b6eefa9"
},
"execution_count": 11,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"-- The C compiler identification is GNU 11.4.0\n",
"-- Detecting C compiler ABI info\n",
"-- Detecting C compiler ABI info - done\n",
"-- Check for working C compiler: /usr/bin/cc - skipped\n",
"-- Detecting C compile features\n",
"-- Detecting C compile features - done\n",
"-- Building in Release mode\n",
"-- Building with GNU 11.4.0 on Linux-6.1.85+\n",
"-- BUILD_WITH_MIMALLOC: ON\n",
"-- USE_EXTERNAL_FFI: OFF\n",
"-- Building in Release mode\n",
"-- Building with GNU 11.4.0 on Linux-6.1.85+\n",
"-- Performing Test COMPILER_SUPPORTS_Wall\n",
"-- Performing Test COMPILER_SUPPORTS_Wall - Success\n",
"-- Performing Test COMPILER_SUPPORTS_Werror\n",
"-- Performing Test COMPILER_SUPPORTS_Werror - Success\n",
"-- Performing Test COMPILER_SUPPORTS_Wextra\n",
"-- Performing Test COMPILER_SUPPORTS_Wextra - Success\n",
"-- Performing Test COMPILER_SUPPORTS_Wnoimplicitfallthrough\n",
"-- Performing Test COMPILER_SUPPORTS_Wnoimplicitfallthrough - Success\n",
"-- Performing Test COMPILER_SUPPORTS_Wnosigncompare\n",
"-- Performing Test COMPILER_SUPPORTS_Wnosigncompare - Success\n",
"-- Performing Test COMPILER_SUPPORTS_Wnomissingfieldinitializers\n",
"-- Performing Test COMPILER_SUPPORTS_Wnomissingfieldinitializers - Success\n",
"-- Performing Test COMPILER_SUPPORTS_Wnounusedparameter\n",
"-- Performing Test COMPILER_SUPPORTS_Wnounusedparameter - Success\n",
"-- Performing Test COMPILER_SUPPORTS_Wnounusedbutsetvariable\n",
"-- Performing Test COMPILER_SUPPORTS_Wnounusedbutsetvariable - Success\n",
"-- Performing Test COMPILER_SUPPORTS_Wnoarraybounds\n",
"-- Performing Test COMPILER_SUPPORTS_Wnoarraybounds - Success\n",
"-- Performing Test COMPILER_SUPPORTS_Wnoformattruncation\n",
"-- Performing Test COMPILER_SUPPORTS_Wnoformattruncation - Success\n",
"-- Performing Test COMPILER_SUPPORTS_funsignedchar\n",
"-- Performing Test COMPILER_SUPPORTS_funsignedchar - Success\n",
"-- BUILD_SHARED_LIBS: OFF\n",
"-- BUILD_EXAMPLES: OFF\n",
"-- BUILD_STATIC_QJS_EXE: OFF\n",
"-- BUILD_CLI_WITH_MIMALLOC: OFF\n",
"-- BUILD_CLI_WITH_STATIC_MIMALLOC: OFF\n",
"-- CONFIG_ASAN: OFF\n",
"-- CONFIG_MSAN: OFF\n",
"-- CONFIG_TSAN: OFF\n",
"-- CONFIG_UBSAN: OFF\n",
"-- BUILD_QJS_LIBC: OFF\n",
"-- Performing Test CMAKE_HAVE_LIBC_PTHREAD\n",
"-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success\n",
"-- Found Threads: TRUE\n",
"-- Performing Test UV_LINT_W4\n",
"-- Performing Test UV_LINT_W4 - Failed\n",
"-- Performing Test UV_LINT_NO_UNUSED_PARAMETER_MSVC\n",
"-- Performing Test UV_LINT_NO_UNUSED_PARAMETER_MSVC - Failed\n",
"-- Performing Test UV_LINT_NO_CONDITIONAL_CONSTANT_MSVC\n",
"-- Performing Test UV_LINT_NO_CONDITIONAL_CONSTANT_MSVC - Failed\n",
"-- Performing Test UV_LINT_NO_NONSTANDARD_MSVC\n",
"-- Performing Test UV_LINT_NO_NONSTANDARD_MSVC - Failed\n",
"-- Performing Test UV_LINT_NO_NONSTANDARD_EMPTY_TU_MSVC\n",
"-- Performing Test UV_LINT_NO_NONSTANDARD_EMPTY_TU_MSVC - Failed\n",
"-- Performing Test UV_LINT_NO_NONSTANDARD_FILE_SCOPE_MSVC\n",
"-- Performing Test UV_LINT_NO_NONSTANDARD_FILE_SCOPE_MSVC - Failed\n",
"-- Performing Test UV_LINT_NO_NONSTANDARD_NONSTATIC_DLIMPORT_MSVC\n",
"-- Performing Test UV_LINT_NO_NONSTANDARD_NONSTATIC_DLIMPORT_MSVC - Failed\n",
"-- Performing Test UV_LINT_NO_HIDES_LOCAL\n",
"-- Performing Test UV_LINT_NO_HIDES_LOCAL - Failed\n",
"-- Performing Test UV_LINT_NO_HIDES_PARAM\n",
"-- Performing Test UV_LINT_NO_HIDES_PARAM - Failed\n",
"-- Performing Test UV_LINT_NO_HIDES_GLOBAL\n",
"-- Performing Test UV_LINT_NO_HIDES_GLOBAL - Failed\n",
"-- Performing Test UV_LINT_NO_CONDITIONAL_ASSIGNMENT_MSVC\n",
"-- Performing Test UV_LINT_NO_CONDITIONAL_ASSIGNMENT_MSVC - Failed\n",
"-- Performing Test UV_LINT_NO_UNSAFE_MSVC\n",
"-- Performing Test UV_LINT_NO_UNSAFE_MSVC - Failed\n",
"-- Performing Test UV_LINT_WALL\n",
"-- Performing Test UV_LINT_WALL - Success\n",
"-- Performing Test UV_LINT_NO_UNUSED_PARAMETER\n",
"-- Performing Test UV_LINT_NO_UNUSED_PARAMETER - Success\n",
"-- Performing Test UV_LINT_STRICT_PROTOTYPES\n",
"-- Performing Test UV_LINT_STRICT_PROTOTYPES - Success\n",
"-- Performing Test UV_LINT_EXTRA\n",
"-- Performing Test UV_LINT_EXTRA - Success\n",
"-- Performing Test UV_LINT_UTF8_MSVC\n",
"-- Performing Test UV_LINT_UTF8_MSVC - Failed\n",
"-- Performing Test UV_F_STRICT_ALIASING\n",
"-- Performing Test UV_F_STRICT_ALIASING - Success\n",
"-- summary of build options:\n",
" Install prefix: /usr/local\n",
" Target system: Linux\n",
" Compiler:\n",
" C compiler: /usr/bin/cc (GNU)\n",
" CFLAGS: -m32\n",
"\n",
"-- The CXX compiler identification is GNU 11.4.0\n",
"-- Detecting CXX compiler ABI info\n",
"-- Detecting CXX compiler ABI info - done\n",
"-- Check for working CXX compiler: /usr/bin/c++ - skipped\n",
"-- Detecting CXX compile features\n",
"-- Detecting CXX compile features - done\n",
"-- \n",
"-- \n",
"-- Library base name: mimalloc\n",
"-- Version : 2.1\n",
"-- Build type : release\n",
"-- C Compiler : /usr/bin/cc\n",
"-- Compiler flags : -Wall;-Wextra;-Wno-unknown-pragmas;-fvisibility=hidden;-Wstrict-prototypes;-ftls-model=initial-exec\n",
"-- Compiler defines : \n",
"-- Link libraries : \n",
"-- Build targets : static\n",
"-- \n",
"-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version \"7.81.0\")\n",
"-- Configuring done (3.6s)\n",
"-- Generating done (0.1s)\n",
"-- Build files have been written to: /content/txiki.js/build\n",
"[ 0%] Creating directories for 'libffi'\n",
"[ 1%] Building C object deps/mimalloc/CMakeFiles/mimalloc-static.dir/src/alloc.c.o\n",
"[ 1%] No download step for 'libffi'\n",
"[ 2%] No update step for 'libffi'\n",
"[ 4%] No patch step for 'libffi'\n",
"[ 5%] Performing configure step for 'libffi'\n",
"[ 5%] Building C object deps/mimalloc/CMakeFiles/mimalloc-static.dir/src/alloc-aligned.c.o\n",
"[ 7%] Building C object deps/mimalloc/CMakeFiles/mimalloc-static.dir/src/alloc-posix.c.o\n",
"[ 7%] Building C object deps/mimalloc/CMakeFiles/mimalloc-static.dir/src/arena.c.o\n",
"[ 8%] Building C object deps/mimalloc/CMakeFiles/mimalloc-static.dir/src/bitmap.c.o\n",
"[ 8%] Building C object deps/mimalloc/CMakeFiles/mimalloc-static.dir/src/heap.c.o\n",
"[ 10%] Building C object deps/mimalloc/CMakeFiles/mimalloc-static.dir/src/init.c.o\n",
"[ 10%] Building C object deps/mimalloc/CMakeFiles/mimalloc-static.dir/src/options.c.o\n",
"[ 11%] Building C object deps/mimalloc/CMakeFiles/mimalloc-static.dir/src/os.c.o\n",
"[ 11%] Building C object deps/mimalloc/CMakeFiles/mimalloc-static.dir/src/page.c.o\n",
"[ 13%] Building C object deps/mimalloc/CMakeFiles/mimalloc-static.dir/src/random.c.o\n",
"[ 13%] Building C object deps/mimalloc/CMakeFiles/mimalloc-static.dir/src/segment.c.o\n",
"libtoolize: putting auxiliary files in '.'.\n",
"libtoolize: copying file './ltmain.sh'\n",
"libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.\n",
"libtoolize: copying file 'm4/libtool.m4'\n",
"libtoolize: copying file 'm4/ltoptions.m4'\n",
"libtoolize: copying file 'm4/ltsugar.m4'\n",
"libtoolize: copying file 'm4/ltversion.m4'\n",
"libtoolize: copying file 'm4/lt~obsolete.m4'\n",
"[ 14%] Building C object deps/mimalloc/CMakeFiles/mimalloc-static.dir/src/segment-map.c.o\n",
"[ 16%] Building C object deps/mimalloc/CMakeFiles/mimalloc-static.dir/src/stats.c.o\n",
"[ 16%] Building C object deps/mimalloc/CMakeFiles/mimalloc-static.dir/src/prim/prim.c.o\n",
"[ 17%] Linking C static library libmimalloc.a\n",
"[ 17%] Built target mimalloc-static\n",
"[ 17%] Building C object deps/quickjs/CMakeFiles/qjs.dir/cutils.c.o\n",
"[ 19%] Building C object deps/quickjs/CMakeFiles/qjs.dir/libbf.c.o\n",
"checking build system type... x86_64-pc-linux-gnu\n",
"checking host system type... x86_64-pc-linux-gnu\n",
"checking target system type... x86_64-pc-linux-gnu\n",
"continue configure in default builddir \"./x86_64-pc-linux-gnu\"\n",
"....exec /bin/bash .././configure \"--srcdir=..\" \"--enable-builddir=x86_64-pc-linux-gnu\" \"linux\n",
"gnu\"\n",
"checking build system type... x86_64-pc-linux-gnu\n",
"checking host system type... x86_64-pc-linux-gnu\n",
"checking target system type... x86_64-pc-linux-gnu\n",
"checking for gsed... sed\n",
"checking for a BSD-compatible install... /usr/bin/install -c\n",
"checking whether build environment is sane... yes\n",
"checking for a race-free mkdir -p... /usr/bin/mkdir -p\n",
"checking for gawk... no\n",
"checking for mawk... mawk\n",
"checking whether make sets $(MAKE)... yes\n",
"checking whether make supports nested variables... yes\n",
"checking for gcc... gcc\n",
"checking whether the C compiler works... yes\n",
"checking for C compiler default output file name... a.out\n",
"checking for suffix of executables... \n",
"checking whether we are cross compiling... no\n",
"checking for suffix of object files... o\n",
"checking whether the compiler supports GNU C... yes\n",
"checking whether gcc accepts -g... yes\n",
"checking for gcc option to enable C11 features... none needed\n",
"checking whether gcc understands -c and -o together... yes\n",
"checking whether make supports the include directive... yes (GNU style)\n",
"checking dependency style of gcc... gcc3\n",
"checking for g++... g++\n",
"checking whether the compiler supports GNU C++... yes\n",
"checking whether g++ accepts -g... yes\n",
"checking for g++ option to enable C++11 features... none needed\n",
"checking dependency style of g++... gcc3\n",
"checking dependency style of gcc... gcc3\n",
"checking for grep that handles long lines and -e... /usr/bin/grep\n",
"checking for egrep... /usr/bin/grep -E\n",
"checking how to print strings... printf\n",
"checking for a sed that does not truncate output... /usr/bin/sed\n",
"checking for fgrep... /usr/bin/grep -F\n",
"checking for ld used by gcc... /usr/bin/ld\n",
"checking if the linker (/usr/bin/ld) is GNU ld... yes\n",
"checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B\n",
"checking the name lister (/usr/bin/nm -B) interface... BSD nm\n",
"checking whether ln -s works... yes\n",
"checking the maximum length of command line arguments... 1572864\n",
"checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop\n",
"checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop\n",
"checking for /usr/bin/ld option to reload object files... -r\n",
"checking for objdump... objdump\n",
"checking how to recognize dependent libraries... pass_all\n",
"checking for dlltool... no\n",
"checking how to associate runtime and link libraries... printf %s\\n\n",
"checking for ar... ar\n",
"checking for archiver @FILE support... @\n",
"checking for strip... strip\n",
"checking for ranlib... ranlib\n",
"checking command to parse /usr/bin/nm -B output from gcc object... ok\n",
"checking for sysroot... no\n",
"checking for a working dd... /usr/bin/dd\n",
"checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1\n",
"checking for mt... no\n",
"checking if : is a manifest tool... no\n",
"checking for stdio.h... yes\n",
"checking for stdlib.h... yes\n",
"checking for string.h... yes\n",
"checking for inttypes.h... yes\n",
"checking for stdint.h... yes\n",
"checking for strings.h... yes\n",
"checking for sys/stat.h... yes\n",
"checking for sys/types.h... yes\n",
"checking for unistd.h... yes\n",
"checking for dlfcn.h... yes\n",
"checking for objdir... .libs\n",
"checking if gcc supports -fno-rtti -fno-exceptions... no\n",
"checking for gcc option to produce PIC... -fPIC -DPIC\n",
"checking if gcc PIC flag -fPIC -DPIC works... yes\n",
"checking if gcc static flag -static works... yes\n",
"checking if gcc supports -c -o file.o... yes\n",
"checking if gcc supports -c -o file.o... (cached) yes\n",
"checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes\n",
"checking dynamic linker characteristics... GNU/Linux ld.so\n",
"checking how to hardcode library paths into programs... immediate\n",
"checking whether stripping libraries is possible... yes\n",
"checking if libtool supports shared libraries... yes\n",
"checking whether to build shared libraries... no\n",
"checking whether to build static libraries... yes\n",
"checking how to run the C++ preprocessor... g++ -E\n",
"checking for ld used by g++... /usr/bin/ld -m elf_x86_64\n",
"checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes\n",
"checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes\n",
"checking for g++ option to produce PIC... -fPIC -DPIC\n",
"checking if g++ PIC flag -fPIC -DPIC works... yes\n",
"checking if g++ static flag -static works... yes\n",
"checking if g++ supports -c -o file.o... yes\n",
"checking if g++ supports -c -o file.o... (cached) yes\n",
"checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes\n",
"checking dynamic linker characteristics... (cached) GNU/Linux ld.so\n",
"checking how to hardcode library paths into programs... immediate\n",
"checking for readelf... readelf\n",
"checking size of size_t... 8\n",
"checking for C compiler vendor... [ 19%] Building C object deps/quickjs/CMakeFiles/qjs.dir/libregexp.c.o\n",
"gnu\n",
"checking whether C compiler accepts -fstrict-aliasing... yes\n",
"checking whether C compiler accepts -ffast-math... yes\n",
"checking for gcc architecture flag... \n",
"checking for x86 cpuid 0 output... d:756e6547:6c65746e:49656e69\n",
"checking for x86 cpuid 1 output... 406f0:20800:fefa3203:1f8bfbff\n",
"checking whether C compiler accepts -march=broadwell... yes\n",
"checking for gcc architecture flag... -march=broadwell\n",
"checking whether C compiler accepts -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -march=broadwell... yes\n",
"checking CFLAGS for most reasonable warnings... -Wall\n",
"checking whether to enable maintainer-specific portions of Makefiles... no\n",
"checking for sys/memfd.h... no\n",
"checking for memfd_create... yes\n",
"checking for egrep... (cached) /usr/bin/grep -E\n",
"checking for memcpy... yes\n",
"checking for alloca.h... yes\n",
"checking size of double... 8\n",
"checking size of long double... 16\n",
"checking whether byte ordering is bigendian... [ 20%] Building C object deps/quickjs/CMakeFiles/qjs.dir/libunicode.c.o\n",
"no\n",
"checking assembler .cfi pseudo-op support... yes\n",
"checking assembler supports pc related relocs... yes\n",
"checking whether compiler supports pointer authentication... no\n",
"checking for _ prefix in compiled symbols... no\n",
"checking toolchain supports unwind section type... yes\n",
"checking whether C compiler accepts -fno-lto... yes\n",
"checking whether .eh_frame section should be read-only... yes\n",
"checking for __attribute__((visibility(\"hidden\")))... yes\n",
"configure: versioning on shared library symbols is no\n",
"checking that generated files are newer than configure... done\n",
"configure: creating ./config.status\n",
"[ 20%] Building C object deps/quickjs/CMakeFiles/qjs.dir/quickjs.c.o\n",
"config.status: creating include/Makefile\n",
"config.status: creating include/ffi.h\n",
"config.status: creating Makefile\n",
"config.status: creating testsuite/Makefile\n",
"config.status: creating man/Makefile\n",
"config.status: creating doc/Makefile\n",
"config.status: creating libffi.pc\n",
"config.status: creating fficonfig.h\n",
"config.status: executing buildir commands\n",
"config.status: create top_srcdir/Makefile guessed from local Makefile\n",
"config.status: build in x86_64-pc-linux-gnu (HOST=)\n",
"config.status: executing depfiles commands\n",
"config.status: executing libtool commands\n",
"config.status: executing include commands\n",
"config.status: executing src commands\n",
"[ 20%] Performing build step for 'libffi'\n",
"MAKE x86_64-pc-linux-gnu : 0 * all-all\n",
"Making all in include\n",
"Making all in testsuite\n",
"Making all in man\n",
"Making all in doc\n",
"libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -Wall -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -march=broadwell -fexceptions -MT src/prep_cif.lo -MD -MP -MF src/.deps/prep_cif.Tpo -c ../src/prep_cif.c -o src/prep_cif.o\n",
"libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -Wall -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -march=broadwell -fexceptions -MT src/types.lo -MD -MP -MF src/.deps/types.Tpo -c ../src/types.c -o src/types.o\n",
"libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -Wall -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -march=broadwell -fexceptions -MT src/raw_api.lo -MD -MP -MF src/.deps/raw_api.Tpo -c ../src/raw_api.c -o src/raw_api.o\n",
"libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -Wall -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -march=broadwell -fexceptions -MT src/java_raw_api.lo -MD -MP -MF src/.deps/java_raw_api.Tpo -c ../src/java_raw_api.c -o src/java_raw_api.o\n",
"libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -Wall -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -march=broadwell -fexceptions -MT src/closures.lo -MD -MP -MF src/.deps/closures.Tpo -c ../src/closures.c -o src/closures.o\n",
"libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -Wall -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -march=broadwell -fexceptions -MT src/tramp.lo -MD -MP -MF src/.deps/tramp.Tpo -c ../src/tramp.c -o src/tramp.o\n",
"libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -Wall -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -march=broadwell -fexceptions -MT src/x86/ffi64.lo -MD -MP -MF src/x86/.deps/ffi64.Tpo -c ../src/x86/ffi64.c -o src/x86/ffi64.o\n",
"libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -I. -I../include -Iinclude -I../src -MT src/x86/unix64.lo -MD -MP -MF src/x86/.deps/unix64.Tpo -c ../src/x86/unix64.S -o src/x86/unix64.o\n",
"libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -Wall -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -march=broadwell -fexceptions -MT src/x86/ffiw64.lo -MD -MP -MF src/x86/.deps/ffiw64.Tpo -c ../src/x86/ffiw64.c -o src/x86/ffiw64.o\n",
"libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -I. -I../include -Iinclude -I../src -MT src/x86/win64.lo -MD -MP -MF src/x86/.deps/win64.Tpo -c ../src/x86/win64.S -o src/x86/win64.o\n",
"libtool: link: ar cr .libs/libffi_convenience.a src/prep_cif.o src/types.o src/raw_api.o src/java_raw_api.o src/closures.o src/tramp.o src/x86/ffi64.o src/x86/unix64.o src/x86/ffiw64.o src/x86/win64.o\n",
"libtool: link: ranlib .libs/libffi_convenience.a\n",
"libtool: link: ( cd \".libs\" && rm -f \"libffi_convenience.la\" && ln -s \"../libffi_convenience.la\" \"libffi_convenience.la\" )\n",
"libtool: link: ar cr .libs/libffi.a src/prep_cif.o src/types.o src/raw_api.o src/java_raw_api.o src/closures.o src/tramp.o src/x86/ffi64.o src/x86/unix64.o src/x86/ffiw64.o src/x86/win64.o\n",
"libtool: link: ranlib .libs/libffi.a\n",
"libtool: link: ( cd \".libs\" && rm -f \"libffi.la\" && ln -s \"../libffi.la\" \"libffi.la\" )\n",
"[ 22%] Performing install step for 'libffi'\n",
"MAKE x86_64-pc-linux-gnu : 0 * install\n",
"Making install in include\n",
" /usr/bin/mkdir -p '/content/txiki.js/build/ffi_root/usr/local/include'\n",
" /usr/bin/install -c -m 644 ffi.h ffitarget.h '/content/txiki.js/build/ffi_root/usr/local/include'\n",
"Making install in testsuite\n",
"Making install in man\n",
" /usr/bin/mkdir -p '/content/txiki.js/build/ffi_root/usr/local/share/man/man3'\n",
" /usr/bin/install -c -m 644 ../../man/ffi.3 ../../man/ffi_call.3 ../../man/ffi_prep_cif.3 ../../man/ffi_prep_cif_var.3 '/content/txiki.js/build/ffi_root/usr/local/share/man/man3'\n",
"Making install in doc\n",
" /usr/bin/mkdir -p '/content/txiki.js/build/ffi_root/usr/local/share/info'\n",
" /usr/bin/install -c -m 644 ../../doc/libffi.info '/content/txiki.js/build/ffi_root/usr/local/share/info'\n",
" /usr/bin/mkdir -p '/content/txiki.js/build/ffi_root/usr/local/lib'\n",
" /bin/bash ./libtool --mode=install /usr/bin/install -c libffi.la '/content/txiki.js/build/ffi_root/usr/local/lib'\n",
"libtool: install: /usr/bin/install -c .libs/libffi.lai /content/txiki.js/build/ffi_root/usr/local/lib/libffi.la\n",
"libtool: install: /usr/bin/install -c .libs/libffi.a /content/txiki.js/build/ffi_root/usr/local/lib/libffi.a\n",
"libtool: install: chmod 644 /content/txiki.js/build/ffi_root/usr/local/lib/libffi.a\n",
"libtool: install: ranlib /content/txiki.js/build/ffi_root/usr/local/lib/libffi.a\n",
" /usr/bin/mkdir -p '/content/txiki.js/build/ffi_root/usr/local/lib/pkgconfig'\n",
" /usr/bin/install -c -m 644 libffi.pc '/content/txiki.js/build/ffi_root/usr/local/lib/pkgconfig'\n",
"[ 23%] Completed 'libffi'\n",
"[ 23%] Built target libffi\n",
"[ 25%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/fs-poll.c.o\n",
"[ 25%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/idna.c.o\n",
"[ 26%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/inet.c.o\n",
"[ 26%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/random.c.o\n",
"[ 27%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/strscpy.c.o\n",
"[ 27%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/strtok.c.o\n",
"[ 29%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/thread-common.c.o\n",
"[ 29%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/threadpool.c.o\n",
"[ 30%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/timer.c.o\n",
"[ 32%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/uv-common.c.o\n",
"[ 32%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/uv-data-getter-setters.c.o\n",
"[ 33%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/version.c.o\n",
"[ 33%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/async.c.o\n",
"[ 35%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/core.c.o\n",
"[ 35%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/dl.c.o\n",
"[ 36%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/fs.c.o\n",
"[ 36%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/getaddrinfo.c.o\n",
"[ 38%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/getnameinfo.c.o\n",
"[ 38%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/loop-watcher.c.o\n",
"[ 39%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/loop.c.o\n",
"[ 39%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/pipe.c.o\n",
"[ 41%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/poll.c.o\n",
"[ 41%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/process.c.o\n",
"[ 42%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/random-devurandom.c.o\n",
"[ 44%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/signal.c.o\n",
"[ 44%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/stream.c.o\n",
"[ 45%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/tcp.c.o\n",
"[ 45%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/thread.c.o\n",
"[ 47%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/tty.c.o\n",
"[ 47%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/udp.c.o\n",
"[ 48%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/proctitle.c.o\n",
"[ 48%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/linux.c.o\n",
"[ 50%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/procfs-exepath.c.o\n",
"[ 50%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/random-getrandom.c.o\n",
"[ 51%] Building C object deps/libuv/CMakeFiles/uv_a.dir/src/unix/random-sysctl-linux.c.o\n",
"[ 51%] Linking C static library libuv.a\n",
"[ 51%] Built target uv_a\n",
"[ 51%] Building C object deps/sqlite3/CMakeFiles/sqlite3.dir/sqlite3.c.o\n",
"[ 52%] Linking C static library libqjs.a\n",
"[ 52%] Built target qjs\n",
"[ 52%] Building C object deps/wasm3/source/CMakeFiles/m3.dir/m3_api_libc.c.o\n",
"[ 54%] Building C object deps/wasm3/source/CMakeFiles/m3.dir/m3_api_wasi.c.o\n",
"[ 55%] Linking C static library libsqlite3.a\n",
"[ 55%] Built target sqlite3\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
"CMake Deprecation Warning at deps/sqlite3/CMakeLists.txt:1 (cmake_minimum_required):\n",
" Compatibility with CMake < 3.10 will be removed from a future version of\n",
" CMake.\n",
"\n",
" Update the VERSION argument <min> value. Or, use the <min>...<max> syntax\n",
" to tell CMake that the project requires at least <min> but has been updated\n",
" to work with policies introduced by <max> or earlier.\n",
"\n",
"\n",
"----\n",
"Generator: Unix Makefiles\n",
"Compiler: GNU\n",
"Build Type: Release\n",
"LTO: ON\n",
"Flags: -m32 -Dd_m3HasTracer -Wall -Wextra -Wparentheses -Wundef -Wpointer-arith -Wstrict-aliasing=2 -Werror=implicit-function-declaration -Wno-unused-function -Wno-unused-variable -Wno-unused-parameter -Wno-missing-field-initializers -Wjump-misses-init -Dd_m3HasWASI\n",
"Debug flags: -g -ggdb -O0\n",
"Release flags: -O3 -Wfatal-errors -fomit-frame-pointer -fno-stack-check -fno-stack-protector -march=native\n",
"----\n",
"autoreconf: export WARNINGS=\n",
"autoreconf: Entering directory '.'\n",
"autoreconf: configure.ac: not using Gettext\n",
"/content/txiki.js/deps/mimalloc/src/arena.c:59:1: note: the alignment of ‘_Atomic long long int’ fields changed in GCC 11.1\n",
" 59 | } mi_arena_t;\n",
" | ^\n",
"autoreconf: running: aclocal -I m4\n",
"autoreconf: configure.ac: tracing\n",
"autoreconf: running: libtoolize --copy\n",
"autoreconf: configure.ac: not using Intltool\n",
"autoreconf: configure.ac: not using Gtkdoc\n",
"autoreconf: running: aclocal -I m4\n",
"autoreconf: running: /usr/bin/autoconf\n",
"configure.ac:88: warning: The preprocessor macro `STDC_HEADERS' is obsolete.\n",
"configure.ac:88: Except in unusual embedded environments, you can safely include all\n",
"configure.ac:88: ISO C90 headers unconditionally.\n",
"configure.ac:123: warning: The macro `AC_TRY_COMPILE' is obsolete.\n",
"configure.ac:123: You should run autoupdate.\n",
"./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...\n",
"lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...\n",
"lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...\n",
"./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...\n",
"./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...\n",
"m4/asmcfi.m4:1: GCC_AS_CFI_PSEUDO_OP is expanded from...\n",
"configure.ac:123: the top level\n",
"autoreconf: running: /usr/bin/autoheader\n",
"autoreconf: running: automake --add-missing --copy --no-force\n",
"configure.ac:31: installing './compile'\n",
"configure.ac:19: installing './install-sh'\n",
"configure.ac:19: installing './missing'\n",
"Makefile.am: installing './depcomp'\n",
"doc/Makefile.am:3: installing 'doc/mdate-sh'\n",
"doc/Makefile.am:3: installing 'doc/texinfo.tex'\n",
"autoreconf: Leaving directory '.'\n",
"make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.\n",
"../src/java_raw_api.c: In function ‘ffi_java_raw_call’:\n",
"../src/java_raw_api.c:317:3: warning: ‘ffi_java_raw_to_ptrarray’ is deprecated [-Wdeprecated-declarations]\n",
" 317 | ffi_java_raw_to_ptrarray (cif, raw, avalue);\n",
" | ^~~~~~~~~~~~~~~~~~~~~~~~\n",
"../src/java_raw_api.c:76:1: note: declared here\n",
" 76 | ffi_java_raw_to_ptrarray (ffi_cif *cif, ffi_java_raw *raw, void **args)\n",
" | ^~~~~~~~~~~~~~~~~~~~~~~~\n",
"../src/java_raw_api.c: In function ‘ffi_java_translate_args’:\n",
"../src/java_raw_api.c:328:3: warning: ‘ffi_java_raw_size’ is deprecated [-Wdeprecated-declarations]\n",
" 328 | ffi_java_raw *raw = (ffi_java_raw*)alloca (ffi_java_raw_size (cif));\n",
" | ^~~~~~~~~~~~\n",
"../src/java_raw_api.c:45:1: note: declared here\n",
" 45 | ffi_java_raw_size (ffi_cif *cif)\n",
" | ^~~~~~~~~~~~~~~~~\n",
"../src/java_raw_api.c:331:3: warning: ‘ffi_java_ptrarray_to_raw’ is deprecated [-Wdeprecated-declarations]\n",
" 331 | ffi_java_ptrarray_to_raw (cif, avalue, raw);\n",
" | ^~~~~~~~~~~~~~~~~~~~~~~~\n",
"../src/java_raw_api.c:157:1: note: declared here\n",
" 157 | ffi_java_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_java_raw *raw)\n",
" | ^~~~~~~~~~~~~~~~~~~~~~~~\n",
"../src/java_raw_api.c: In function ‘ffi_prep_java_raw_closure’:\n",
"../src/java_raw_api.c:369:3: warning: ‘ffi_prep_java_raw_closure_loc’ is deprecated [-Wdeprecated-declarations]\n",
" 369 | return ffi_prep_java_raw_closure_loc (cl, cif, fun, user_data, cl);\n",
" | ^~~~~~\n",
"../src/java_raw_api.c:337:1: note: declared here\n",
" 337 | ffi_prep_java_raw_closure_loc (ffi_java_raw_closure* cl,\n",
" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n",
"make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.\n",
"libtool: warning: remember to run 'libtool --finish /usr/local/lib'\n",
"In file included from /usr/include/features.h:486,\n",
" from /usr/include/bits/libc-header-start.h:33,\n",
" from /usr/include/stdio.h:27,\n",
" from /content/txiki.js/deps/wasm3/source/m3_core.h:11,\n",
" from /content/txiki.js/deps/wasm3/source/m3_api_wasi.h:11,\n",
" from /content/txiki.js/deps/wasm3/source/m3_api_wasi.c:10:\n",
"/content/txiki.js/deps/wasm3/source/extra/wasi_core.h:46:1: error: negative width in bit-field ‘__error_if_negative’\n",
" 46 | _Static_assert(_Alignof(int64_t) == 8, \"non-wasi data layout\");\n",
" | ^~~~~~~~~~~~~~\n",
"compilation terminated due to -Wfatal-errors.\n",
"gmake[2]: *** [deps/wasm3/source/CMakeFiles/m3.dir/build.make:93: deps/wasm3/source/CMakeFiles/m3.dir/m3_api_wasi.c.o] Error 1\n",
"gmake[1]: *** [CMakeFiles/Makefile2:1717: deps/wasm3/source/CMakeFiles/m3.dir/all] Error 2\n",
"gmake[1]: *** Waiting for unfinished jobs....\n",
"gmake: *** [Makefile:136: all] Error 2\n"
]
},
{
"output_type": "error",
"ename": "CalledProcessError",
"evalue": "Command 'b'cd txiki.js\\nsudo cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=\"-m32\" -DCMAKE_CXX_FLAGS=\"-m32\"\\nsudo cmake --build build -j$(nproc)\\n'' returned non-zero exit status 2.",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mCalledProcessError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-11-ca5dbb3fb293>\u001b[0m in \u001b[0;36m<cell line: 0>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mget_ipython\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrun_cell_magic\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'sh'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m''\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'cd txiki.js\\nsudo cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=\"-m32\" -DCMAKE_CXX_FLAGS=\"-m32\"\\nsudo cmake --build build -j$(nproc)\\n'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;32m/usr/local/lib/python3.11/dist-packages/google/colab/_shell.py\u001b[0m in \u001b[0;36mrun_cell_magic\u001b[0;34m(self, magic_name, line, cell)\u001b[0m\n\u001b[1;32m 356\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mline\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 357\u001b[0m \u001b[0mcell\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m' '\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 358\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0msuper\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrun_cell_magic\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mmagic_name\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mline\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 359\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 360\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;32m/usr/local/lib/python3.11/dist-packages/IPython/core/interactiveshell.py\u001b[0m in \u001b[0;36mrun_cell_magic\u001b[0;34m(self, magic_name, line, cell)\u001b[0m\n\u001b[1;32m 2471\u001b[0m \u001b[0;32mwith\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mbuiltin_trap\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2472\u001b[0m \u001b[0margs\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0mmagic_arg_s\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 2473\u001b[0;31m \u001b[0mresult\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mfn\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2474\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mresult\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2475\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;32m/usr/local/lib/python3.11/dist-packages/IPython/core/magics/script.py\u001b[0m in \u001b[0;36mnamed_script_magic\u001b[0;34m(line, cell)\u001b[0m\n\u001b[1;32m 140\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 141\u001b[0m \u001b[0mline\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mscript\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 142\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mshebang\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mline\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 143\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 144\u001b[0m \u001b[0;31m# write a basic docstring:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;32m<decorator-gen-103>\u001b[0m in \u001b[0;36mshebang\u001b[0;34m(self, line, cell)\u001b[0m\n",
"\u001b[0;32m/usr/local/lib/python3.11/dist-packages/IPython/core/magic.py\u001b[0m in \u001b[0;36m<lambda>\u001b[0;34m(f, *a, **k)\u001b[0m\n\u001b[1;32m 185\u001b[0m \u001b[0;31m# but it's overkill for just that one bit of state.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 186\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mmagic_deco\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0marg\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 187\u001b[0;31m \u001b[0mcall\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mlambda\u001b[0m \u001b[0mf\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0ma\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mk\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mf\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0ma\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mk\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 188\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 189\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mcallable\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0marg\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;32m/usr/local/lib/python3.11/dist-packages/IPython/core/magics/script.py\u001b[0m in \u001b[0;36mshebang\u001b[0;34m(self, line, cell)\u001b[0m\n\u001b[1;32m 243\u001b[0m \u001b[0msys\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstderr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mflush\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 244\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0margs\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mraise_error\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0mp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mreturncode\u001b[0m\u001b[0;34m!=\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 245\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mCalledProcessError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mreturncode\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0moutput\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mout\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstderr\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0merr\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 246\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 247\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m_run_script\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mp\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mto_close\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mCalledProcessError\u001b[0m: Command 'b'cd txiki.js\\nsudo cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=\"-m32\" -DCMAKE_CXX_FLAGS=\"-m32\"\\nsudo cmake --build build -j$(nproc)\\n'' returned non-zero exit status 2."
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment