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

[Issue] Mosquitto #28

Open
gtrabanco opened this issue Nov 16, 2024 · 5 comments
Open

[Issue] Mosquitto #28

gtrabanco opened this issue Nov 16, 2024 · 5 comments

Comments

@gtrabanco
Copy link
Contributor

gtrabanco commented Nov 16, 2024

As a suggestion, I think would be nice add a requirements (x86_64 env) in documentation and specify you need Docker to build mosquitto.

I haven't seen it until I read the building code 😅. And I could not find anything in the doc but maybe it is there. Sorry if it is.

The x86_64 it's mandatory but I don't know which image it is that causes the issue:

exec /usr/bin/make: exec format error

It is produced while building mosquitto and dropbear.

@gtrabanco gtrabanco changed the title [Issue] [Documentation] Mosquitto [Issue] Mosquitto Nov 16, 2024
@gtrabanco
Copy link
Contributor Author

It is the wibox-crosstool image, Could it be available for arm too?

@gtrabanco
Copy link
Contributor Author

I tried to build the crosstool for arm which sound pretty.... I would say strange because this is public...

And I received an error, of course:

sudo docker build -t ghcr.io/duhow/wibox-crosstool:latest .

[+] Building 335.3s (11/12)                                                                                docker:default
 => [internal] load build definition from Dockerfile                                                                 0.0s
 => => transferring dockerfile: 1.47kB                                                                               0.0s
 => [internal] load metadata for docker.io/library/ubuntu:18.04                                                      1.0s
 => [internal] load .dockerignore                                                                                    0.0s
 => => transferring context: 2B                                                                                      0.0s
 => [build 1/6] FROM docker.io/library/ubuntu:18.04@sha256:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2b  1.4s
 => => resolve docker.io/library/ubuntu:18.04@sha256:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e43c  0.0s
 => => sha256:f97a5103cca28097326814718e711c9c41b54853c26959d73495e40b1dd608f2 424B / 424B                           0.0s
 => => sha256:d1a528908992e9b5bcff8329a22de1749007d0eeeccb93ab85dd5a822b8d46a0 2.31kB / 2.31kB                       0.0s
 => => sha256:064a9bb4736de1b2446f528e4eb37335378392cf9b95043d3e9970e253861702 22.71MB / 22.71MB                     0.9s
 => => sha256:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e43c98 1.33kB / 1.33kB                       0.0s
 => => extracting sha256:064a9bb4736de1b2446f528e4eb37335378392cf9b95043d3e9970e253861702                            0.4s
 => [internal] load build context                                                                                    0.0s
 => => transferring context: 25.79kB                                                                                 0.0s
 => [build 2/6] COPY src /ct-ng-arm-goke-linux-uclibcgnueabi/src/                                                    0.0s
 => [stage-1 2/3] RUN apt update &&     apt install -y sudo tar xz-utils unzip bzip2 build-essential bison       f  52.9s
 => [build 3/6] RUN apt update &&     apt install -y sudo tar xz-utils unzip bzip2 build-essential bison       fle  55.1s
 => [build 4/6] COPY .config /ct-ng-arm-goke-linux-uclibcgnueabi/                                                    0.0s
 => [build 5/6] WORKDIR /ct-ng-arm-goke-linux-uclibcgnueabi                                                          0.0s
 => ERROR [build 6/6] RUN ct-ng build                                                                              277.6s
------                                                                                                                    
 > [build 6/6] RUN ct-ng build:                                                                                           
[INFO ]  Performing some trivial sanity checks                                                                            
[INFO ]  Build started 20241117.143953                                                                                    
[INFO ]  Building environment variables                                                                                   
[EXTRA]  Preparing working directories                                                                                    
[EXTRA]  Installing user-supplied crosstool-NG configuration                                                              
[EXTRA]  =================================================================                                                
[EXTRA]  Dumping internal crosstool-NG configuration                                                                      
[EXTRA]    Building a toolchain for:
[EXTRA]      build  = aarch64-unknown-linux-gnu
[EXTRA]      host   = aarch64-unknown-linux-gnu
[EXTRA]      target = arm-goke-linux-uclibcgnueabi
[EXTRA]  Dumping internal crosstool-NG configuration: done in 0.02s (at 00:00)
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[EXTRA]    Retrieving 'autoconf-2.69'
[EXTRA]    Verifying SHA512 checksum for 'autoconf-2.69.tar.xz'
[EXTRA]    Saving 'autoconf-2.69.tar.xz' to local storage
[EXTRA]    Retrieving 'automake-1.16.1'
[EXTRA]    Verifying SHA512 checksum for 'automake-1.16.1.tar.xz'
[EXTRA]    Saving 'automake-1.16.1.tar.xz' to local storage
[EXTRA]    Retrieving 'linux-3.4.113'
[EXTRA]    Verifying SHA512 checksum for 'linux-3.4.113.tar.xz'
[EXTRA]    Saving 'linux-3.4.113.tar.xz' to local storage
[EXTRA]    Retrieving 'zlib-1.2.11'
[EXTRA]    Verifying SHA512 checksum for 'zlib-1.2.11.tar.xz'
[EXTRA]    Saving 'zlib-1.2.11.tar.xz' to local storage
[EXTRA]    Retrieving 'gmp-6.1.2'
[EXTRA]    Verifying SHA512 checksum for 'gmp-6.1.2.tar.xz'
[EXTRA]    Saving 'gmp-6.1.2.tar.xz' to local storage
[EXTRA]    Retrieving 'mpfr-4.0.2'
[EXTRA]    Verifying SHA512 checksum for 'mpfr-4.0.2.tar.xz'
[EXTRA]    Saving 'mpfr-4.0.2.tar.xz' to local storage
[EXTRA]    Retrieving 'isl-0.15'
[EXTRA]    Verifying SHA512 checksum for 'isl-0.15.tar.xz'
[EXTRA]    Saving 'isl-0.15.tar.xz' to local storage
[EXTRA]    Retrieving 'cloog-0.18.4'
[EXTRA]    Verifying SHA512 checksum for 'cloog-0.18.4.tar.gz'
[EXTRA]    Saving 'cloog-0.18.4.tar.gz' to local storage
[EXTRA]    Retrieving 'mpc-1.1.0'
[EXTRA]    Verifying SHA512 checksum for 'mpc-1.1.0.tar.gz'
[EXTRA]    Saving 'mpc-1.1.0.tar.gz' to local storage
[EXTRA]    Retrieving 'libelf-0.8.13'
[EXTRA]    Verifying SHA512 checksum for 'libelf-0.8.13.tar.gz'
[EXTRA]    Saving 'libelf-0.8.13.tar.gz' to local storage
[EXTRA]    Retrieving 'expat-2.2.6'
[EXTRA]    Verifying SHA512 checksum for 'expat-2.2.6.tar.bz2'
[EXTRA]    Saving 'expat-2.2.6.tar.bz2' to local storage
[EXTRA]    Retrieving 'ncurses-6.1'
[EXTRA]    Verifying SHA512 checksum for 'ncurses-6.1.tar.gz'
[EXTRA]    Saving 'ncurses-6.1.tar.gz' to local storage
[EXTRA]    Retrieving 'binutils-2.32'
[EXTRA]    Verifying SHA512 checksum for 'binutils-2.32.tar.xz'
[EXTRA]    Saving 'binutils-2.32.tar.xz' to local storage
[EXTRA]    Retrieving 'gcc-4.9.4'
[EXTRA]    Verifying SHA512 checksum for 'gcc-4.9.4.tar.bz2'
[EXTRA]    Saving 'gcc-4.9.4.tar.bz2' to local storage
[EXTRA]    Retrieving 'uClibc-0.9.33.2'
[EXTRA]    Verifying SHA512 checksum for 'uClibc-0.9.33.2.tar.xz'
[EXTRA]    Saving 'uClibc-0.9.33.2.tar.xz' to local storage
[EXTRA]    Retrieving 'duma_2_5_15'
[EXTRA]    Verifying SHA512 checksum for 'duma_2_5_15.tar.gz'
[EXTRA]    Saving 'duma_2_5_15.tar.gz' to local storage
[EXTRA]    Retrieving 'ltrace_0.7.3.orig'
[EXTRA]    Verifying SHA512 checksum for 'ltrace_0.7.3.orig.tar.bz2'
[EXTRA]    Saving 'ltrace_0.7.3.orig.tar.bz2' to local storage
[EXTRA]    Retrieving 'strace-4.26'
[EXTRA]    Verifying SHA512 checksum for 'strace-4.26.tar.xz'
[EXTRA]    Saving 'strace-4.26.tar.xz' to local storage
[INFO ]  Retrieving needed toolchain components' tarballs: done in 73.75s (at 01:14)
[INFO ]  =================================================================
[INFO ]  Extracting and patching toolchain components
[EXTRA]    Extracting autoconf-2.69
[EXTRA]    Patching autoconf-2.69
[EXTRA]    Extracting automake-1.16.1
[EXTRA]    Patching automake-1.16.1
[EXTRA]    Extracting linux-3.4.113
[EXTRA]    Patching linux-3.4.113
[EXTRA]    Extracting zlib-1.2.11
[EXTRA]    Patching zlib-1.2.11
[EXTRA]    Extracting gmp-6.1.2
[EXTRA]    Patching gmp-6.1.2
[EXTRA]    Extracting mpfr-4.0.2
[EXTRA]    Patching mpfr-4.0.2
[EXTRA]    Extracting isl-0.15
[EXTRA]    Patching isl-0.15
[EXTRA]    Extracting cloog-0.18.4
[EXTRA]    Patching cloog-0.18.4
[EXTRA]    Extracting mpc-1.1.0
[EXTRA]    Patching mpc-1.1.0
[EXTRA]    Extracting libelf-0.8.13
[EXTRA]    Patching libelf-0.8.13
[EXTRA]    Extracting expat-2.2.6
[EXTRA]    Patching expat-2.2.6
[EXTRA]    Extracting ncurses-6.1
[EXTRA]    Patching ncurses-6.1
[EXTRA]    Extracting binutils-2.32
[EXTRA]    Patching binutils-2.32
[EXTRA]    Extracting gcc-4.9.4
[EXTRA]    Patching gcc-4.9.4
[EXTRA]    Extracting uClibc-0.9.33.2
[EXTRA]    Patching uClibc-0.9.33.2
[EXTRA]    Extracting duma_2_5_15
[EXTRA]    Patching duma_2_5_15
[EXTRA]    Extracting ltrace-0.7.3
[EXTRA]    Patching ltrace-0.7.3
[EXTRA]    Extracting strace-4.26
[EXTRA]    Patching strace-4.26
[INFO ]  Extracting and patching toolchain components: done in 17.41s (at 01:32)
[INFO ]  =================================================================
[INFO ]  Installing autoconf for build
[EXTRA]    Configuring autoconf
[EXTRA]    Building autoconf
[EXTRA]    Installing autoconf
[INFO ]  Installing autoconf for build: done in 2.57s (at 01:34)
[INFO ]  =================================================================
[INFO ]  Installing automake for build
[EXTRA]    Configuring automake
[EXTRA]    Building automake
[EXTRA]    Installing automake
[INFO ]  Installing automake for build: done in 1.51s (at 01:36)
[INFO ]  =================================================================
[INFO ]  Installing ncurses for build
[EXTRA]    Configuring ncurses
[EXTRA]    Building ncurses
[EXTRA]    Installing ncurses
[INFO ]  Installing ncurses for build: done in 7.93s (at 01:44)
[INFO ]  =================================================================
[INFO ]  Installing zlib for host
[EXTRA]    Configuring zlib
[EXTRA]    Building zlib
[EXTRA]    Installing zlib
[INFO ]  Installing zlib for host: done in 0.69s (at 01:44)
[INFO ]  =================================================================
[INFO ]  Installing GMP for host
[EXTRA]    Configuring GMP
[EXTRA]    Building GMP
[EXTRA]    Installing GMP
[INFO ]  Installing GMP for host: done in 15.93s (at 02:00)
[INFO ]  =================================================================
[INFO ]  Installing MPFR for host
[EXTRA]    Configuring MPFR
[EXTRA]    Building MPFR
[EXTRA]    Installing MPFR
[INFO ]  Installing MPFR for host: done in 11.19s (at 02:11)
[INFO ]  =================================================================
[INFO ]  Installing ISL for host
[EXTRA]    Configuring ISL
[EXTRA]    Building ISL
[EXTRA]    Installing ISL
[INFO ]  Installing ISL for host: done in 11.80s (at 02:23)
[INFO ]  =================================================================
[INFO ]  Installing CLooG for host
[EXTRA]    Configuring CLooG
[EXTRA]    Building CLooG
[EXTRA]    Installing CLooG
[INFO ]  Installing CLooG for host: done in 2.38s (at 02:26)
[INFO ]  =================================================================
[INFO ]  Installing MPC for host
[EXTRA]    Configuring MPC
[EXTRA]    Building MPC
[EXTRA]    Installing MPC
[INFO ]  Installing MPC for host: done in 3.15s (at 02:29)
[INFO ]  =================================================================
[INFO ]  Installing expat for host
[EXTRA]    Configuring expat
[EXTRA]    Building expat
[EXTRA]    Installing expat
[INFO ]  Installing expat for host: done in 3.05s (at 02:32)
[INFO ]  =================================================================
[INFO ]  Installing ncurses for host
[EXTRA]    Configuring ncurses
[EXTRA]    Building ncurses
[EXTRA]    Installing ncurses
[INFO ]  Installing ncurses for host: done in 7.75s (at 02:40)
[INFO ]  =================================================================
[INFO ]  Installing binutils for host
[EXTRA]    Configuring binutils
[EXTRA]    Building binutils
[EXTRA]    Installing binutils
[ERROR]    make[5]: *** [install-info-am] Error 1
[ERROR]    make[4]: *** [install-recursive] Error 1
[ERROR]    make[3]: *** [install] Error 2
[ERROR]    make[2]: *** [install-bfd] Error 2
[ERROR]    make[1]: *** [install] Error 2
[ERROR]  
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing binutils for host'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@376]
[ERROR]  >>        called from: do_binutils_backend[scripts/build/binutils/binutils.sh@209]
[ERROR]  >>        called from: do_binutils_for_host[scripts/build/binutils/binutils.sh@70]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@696]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      https://crosstool-ng.github.io/docs/known-issues/
[ERROR]  >>
[ERROR]  >>  If you feel this is a bug in crosstool-NG, report it at:
[ERROR]  >>      https://github.com/crosstool-ng/crosstool-ng/issues/
[ERROR]  >>
[ERROR]  >>  Make sure your report includes all the information pertinent to this issue.
[ERROR]  >>  Read the bug reporting guidelines here:
[ERROR]  >>      http://crosstool-ng.github.io/support/
[ERROR]  
[ERROR]  (elapsed: 4:37.40)
277.6 /usr/local/bin/ct-ng:261: recipe for target 'build' failed
277.6 make: *** [build] Error 2
------
Dockerfile:28
--------------------
  26 |     WORKDIR /ct-ng-${CROSS_BUILD}
  27 |     USER build
  28 | >>> RUN ct-ng build
  29 |     
  30 |     # ------
--------------------
ERROR: failed to solve: process "/bin/sh -c ct-ng build" did not complete successfully: exit code: 2

Could it would be builded without the crosstool on ARM macs? Sadly, compile it is a task I am not usually do 😥

@gtrabanco
Copy link
Contributor Author

Due my lack of x86 systems availability right now I builded by using GitHub Action creating a private repository with my wi-box files:

name: Build wi-box image

on:
  workflow_dispatch:

jobs:
  build:
    name: "Building wi-box"
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: "Clean"
        run: |
          sudo make clean

      # Build cramfs-tools
      - name: Install dependencies
        run: |
          sudo apt-get update
          sudo apt-get install -y build-essential
      - name: Checkout cramfs-tools
        uses: actions/checkout@v4
        with:
          repository: npitre/cramfs-tools
          path: cramfs-tools
      - name: Build cramfs-tools
        run: |
          cd cramfs-tools
          make
      - name: Install cramfs-tools
        run: |
          sudo mv cramfs-tools/mkcramfs /usr/bin/
          sudo mv cramfs-tools/cramfsck /usr/bin/

      # Wi-Box Build
      - name: "Build"
        run: |
          sudo make all
      - name: "Show the logs"
        run: |
          cat patch.log
      - name: Archive production artifacts
        uses: actions/upload-artifact@v4
        with:
          name: "image"
          path: release

No errors during the process by the moment.

@gtrabanco
Copy link
Contributor Author

gtrabanco commented Nov 17, 2024

Even this way, no mosquitto... Is it supposed to upload it separately?

Edit: The issue is with Docker the input device is not a TTY

@gtrabanco
Copy link
Contributor Author

Finally I solved by renting 1 € VPS on Ionos and compiling on them without any issues. Anyway I'll keep it open because maybe it is useful to add some prerequisites section in the docs.

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

No branches or pull requests

1 participant