Skip to content

Unable to compile cpython-3.x with optimizations on Ubuntu #46

Open
@jwarner112

Description

@jwarner112

Summary

I've tried to build Python on both of the Ubuntu platforms listed below, and the process always fails on cpython. Over several iterations on the Ubuntu server VM:

  • Tried to compile with flags --python=cypthon-3.8 and --optimizations=pgo+lto, but failed (gist).
  • Tried to compile with flags --python=cypthon-3.7 and --optimizations=pgo+lto, but failed (gist).
  • Tried to compile with flags --python=cypthon-3.7 and --optimizations=pgo, but failed (gist).
  • Tried to compile with the --python=cpython-3.7 flag but no optimizations and succeeded! (download and slice off the .zip from the end, sha256 is f994d12161adcf3ced5ad2daf964cab6e8f70913cc90534ee3ac1feb41420404).
  • Tried to compile with the --python=cpython-3.8 flag but no optimizations and succeeded! (download and slice off the .zip from the end, sha256 is 9743d8927e82503bd464bf645014ade886a01f29a8d20999081d4acb95050f41)

With this evidence, I'd have to say that @indygreg is probably right about musl not liking optimization.

Host Information

Platform Laptop
Notes Default development machine
System Model Purism Librem 15v3 w/ TPM
Operating System Ubuntu 18.04 LTS x86_64
Kernel 5.3.0-51-generic #44~18.04.2-Ubuntu SMP Thu Apr 23 14:27:18 UTC 2020
CPU Intel Core i7-6500U @ 2.5GHz (x4)
RAM 8GB
Platform Tower PC
Notes Used only to host the Ubuntu server VM, via VirtualBox v6.1.6 r137129 (Qt5.6.2); not used for building itself!
System Model Beefy (custom) build
Operating System Windows 10 Pro 64-bit, v1909 (build 18363.836)
CPU AMD Ryzen 9 3900X (x12)
RAM 32GB
Platform Ubuntu server (virtualized)
Notes AMD-V hypervisor, Nested paging, PAE/NX, and KVM paravirtualization are all enabled
Operating System Ubuntu Server 20.04 LTS x86_64
Kervel 5.4.0-29-generic #33-Ubuntu SMP Wed Apr 29 14:32:27 UTC 2020
CPU AMD Ryzen 9 3900X (x12)
RAM 16GB

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions