Skip to content

fix: strip symbols of elf files in the bundle - #180

Open
Anillc wants to merge 1 commit into
openecos-projects:mainfrom
Anillc:patch-1
Open

fix: strip symbols of elf files in the bundle#180
Anillc wants to merge 1 commit into
openecos-projects:mainfrom
Anillc:patch-1

Conversation

@Anillc

@Anillc Anillc commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

What Changed

Scope

Select the areas touched by this PR:

  • CLI - command behavior, Typer command surface, output formats, or workspace commands.
  • Flow/runtime - workspace lifecycle, EngineFlow, step execution, logs, metrics, or artifacts.
  • EDA integration - Yosys, ECC-Tools, DreamPlace, KLayout, PDKs, or native/runtime wrappers.
  • Build/package - Nix, PyInstaller, wheels, uv.lock, or release artifacts.
  • CI/release - GitHub Actions, version checks, changelog, or release automation.
  • Tests/docs only

Validation

List the commands you ran. Mark checks that are not applicable as N/A.

  • uv run pytest test/
  • Focused pytest:
  • uv run ruff check chipcompiler test
  • uv run ruff format --check chipcompiler test
  • PyInstaller smoke: ecc --help, ecc --version, ecc version --json
  • Nix smoke: nix run .#cli -- --help
  • Manual flow smoke:
  • Other:

Skipped checks and reason:

Runtime And Packaging Impact

  • No runtime or packaging impact
  • CLI output or machine-readable contract changed
  • Workspace layout, flow state, or artifact paths changed
  • Native toolchain or wrapper behavior changed
  • ecc-tools or ecc-dreamplace dependency changed
  • PyInstaller, Nix, or release artifact changed

Notes:

Checklist

  • I kept the change scoped to ECC.
  • I updated docs or user-facing CLI text where behavior changed.
  • I included lockfile or version metadata updates when dependencies changed.
  • I documented any submodule updates and why they are needed.
  • I did not include local caches, virtual environments, or generated build outputs.
  • I explained skipped validation and remaining risk.

@Emin017 Emin017 added the enhancement New feature or request label Aug 2, 2026
@Emin017 Emin017 added this to the 0.1.0-alpha.7 milestone Aug 2, 2026
@Emin017

Emin017 commented Aug 4, 2026

Copy link
Copy Markdown
Member
Traceback (most recent call last):
  File "numpy/_core/__init__.py", line 22, in <module>
  File "pyimod02_importers.py", line 457, in exec_module
  File "numpy/_core/multiarray.py", line 11, in <module>
ImportError: libscipy_openblas64_-fdde5778.so: ELF load command address/offset not page-aligned

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "run_ecc.py", line 19, in <module>
  File "chipcompiler/cli/main.py", line 16, in main
    sys.exit(run())
             ^^^^^
  File "chipcompiler/cli/main.py", line 12, in run
    return invoke_typer_app(raw)
           ^^^^^^^^^^^^^^^^^^^^^
  File "chipcompiler/cli/app.py", line 80, in invoke_typer_app
    result = command.main(
             ^^^^^^^^^^^^^
  File "typer/core.py", line 794, in main
  File "typer/core.py", line 188, in _main
  File "click/core.py", line 1873, in invoke
  File "click/core.py", line 1269, in invoke
  File "click/core.py", line 824, in invoke
  File "typer/main.py", line 1514, in wrapper
  File "chipcompiler/cli/commands/project.py", line 82, in run_cmd
    execute_command("run", command_input, project_handlers.run)
  File "chipcompiler/cli/core/invocation.py", line 84, in execute_command
    result = handler(command_input, ctx)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "chipcompiler/cli/command_handlers/project.py", line 190, in run
    from chipcompiler import rtl2gds as rtl2gds_api
  File "pyimod02_importers.py", line 457, in exec_module
  File "chipcompiler/rtl2gds/__init__.py", line 1, in <module>
    from .builder import (
  File "pyimod02_importers.py", line 457, in exec_module
  File "chipcompiler/rtl2gds/builder.py", line 4, in <module>
    from chipcompiler.data import StateEnum, StepEnum
  File "pyimod02_importers.py", line 457, in exec_module
  File "chipcompiler/data/__init__.py", line 1, in <module>
    from .candidate_capabilities import export_candidate_capabilities
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "pyimod02_importers.py", line 457, in exec_module
  File "chipcompiler/data/checklist.py", line 9, in <module>
    from chipcompiler.utility import json_read, json_write
  File "pyimod02_importers.py", line 457, in exec_module
  File "chipcompiler/utility/__init__.py", line 19, in <module>
    from .plot import plot_bar_chart, plot_csv_bar_chart, plot_csv_map, plot_csv_table, plot_metrics
  File "pyimod02_importers.py", line 457, in exec_module
  File "chipcompiler/utility/plot.py", line 4, in <module>
    import matplotlib
  File "pyimod02_importers.py", line 457, in exec_module
  File "matplotlib/__init__.py", line 161, in <module>
  File "pyimod02_importers.py", line 457, in exec_module
  File "matplotlib/cbook.py", line 24, in <module>
  File "pyimod02_importers.py", line 457, in exec_module
  File "numpy/__init__.py", line 112, in <module>
  File "pyimod02_importers.py", line 457, in exec_module
  File "numpy/__config__.py", line 4, in <module>
  File "pyimod02_importers.py", line 457, in exec_module
  File "numpy/_core/__init__.py", line 83, in <module>
ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python 3.11 from "/home/Emin/Downloads/ecc-cli-linux-x86_64/ecc/ecc"
  * The NumPy version is: "2.4.0"

and make sure that they are the versions you expect.

Please carefully study the information and documentation linked above.
This is unlikely to be a NumPy issue but will be caused by a bad install
or environment on your machine.

Original error was: libscipy_openblas64_-fdde5778.so: ELF load command address/offset not page-aligned

[PYI-602985:ERROR] Failed to execute script 'run_ecc' due to unhandled exception!

@Emin017 Emin017 modified the milestones: 0.1.0-alpha.7, 0.1.0-alpha Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants