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

Upgrade base to ubuntu 20.04 #34

Merged
merged 7 commits into from
Mar 22, 2021
Merged

Commits on Mar 20, 2021

  1. Upgrade base to ubuntu 20.04

    The noninteractive env var had to be added since tzdata would try to ask
    for a region.
    ADDs changed to COPYs as it is good practice in the docker community.
    
    Also:
    - Remove fixed GCC_VER constraint (7.2.0 is not supported anymore)
    - Use rust musl make 0.9.9 (patch level update)
    - Use openssl 1.0.2u (patch level update)
    asaaki committed Mar 20, 2021
    Configuration menu
    Copy the full SHA
    1babaad View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a5a3696 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    293c4d8 View commit details
    Browse the repository at this point in the history
  4. (TEMP) Disable HF targets

    asaaki committed Mar 20, 2021
    Configuration menu
    Copy the full SHA
    c7c431c View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2021

  1. Separate libs into their own RUNs

    Since there is clean up at each step, there is not much overhead, but it
    with debugging.
    
    Also:
    - Add LD=$TARGET-ld
      The HF targets seem to be happier with it.
    - Organize env vars and dedupe hardcoded paths
    asaaki committed Mar 21, 2021
    Configuration menu
    Copy the full SHA
    f4984d6 View commit details
    Browse the repository at this point in the history
  2. Enable HF targets again

    We need to add an CFLAGS env var for armv7-unknown-linux-musleabihf on
    docker run to make the compiler happy.
    
    Error was:
    
    ```
    warning: cc1: error: '-mfloat-abi=hard': selected processor lacks an FPU
    ```
    
    Can be fixed by using either of them:
    export CFLAGS_armv7_unknown_linux_musleabihf='-mfpu=vfpv3-d16'
    export CFLAGS_armv7_unknown_linux_musleabihf='-mfpu=neon'
    
    References:
    - influxdata/flux#3379 (comment)
    - https://wiki.debian.org/ArmHardFloatPort/VfpComparison#FPU
    
    Per documentation I use "vfpv3-d16" for the CI step. In the end the user
    this cross compiler tool needs to make the appropriate decision in their
    projects.
    asaaki committed Mar 21, 2021
    Configuration menu
    Copy the full SHA
    05c0a9d View commit details
    Browse the repository at this point in the history
  3. Use make install without -j 4 for openssl step

    On GitHub workflows this seems to be unreliable sometimes,
    it randomly fails for some targets.
    asaaki committed Mar 21, 2021
    Configuration menu
    Copy the full SHA
    50c3616 View commit details
    Browse the repository at this point in the history