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

Segmentation Fault when trying to build on Mac #1144

Closed
JamesTimothyMeech opened this issue Apr 20, 2023 · 5 comments
Closed

Segmentation Fault when trying to build on Mac #1144

JamesTimothyMeech opened this issue Apr 20, 2023 · 5 comments

Comments

@JamesTimothyMeech
Copy link

JamesTimothyMeech commented Apr 20, 2023

Followed the instructions to install project trellis then
cmake . -DARCH=ecp5 -DTRELLIS_INSTALL_PREFIX=/usr/local
make -j$(nproc)
sudo make install
but failed on "make -j$(nproc)" with this error:
jamesmeech@Jamess-MacBook-Pro-10 nextpnr % make -j 4 [ 3%] Generating chipdb/chipdb-25k.bba [ 3%] Building CXX object bba/CMakeFiles/bbasm.dir/main.cc.o /bin/sh: line 1: 16752 Segmentation fault: 11 /opt/local/bin/python3.11 /Users/jamesmeech/Desktop/nextpnr/ecp5/trellis_import.py -L /usr/local/lib/trellis -L /usr/local/share/trellis/util/common -L /usr/local/share/trellis/timing/util -p /Users/jamesmeech/Desktop/nextpnr/ecp5/constids.inc -g /Users/jamesmeech/Desktop/nextpnr/ecp5/gfx.h 25k > chipdb/chipdb-25k.bba.new make[2]: *** [ecp5/chipdb/chipdb-25k.bba] Error 139 make[1]: *** [ecp5/CMakeFiles/chipdb-ecp5-bbas.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs....

@rowanG077
Copy link
Contributor

rowanG077 commented Apr 20, 2023

I expect this is a duplicate of: YosysHQ/prjtrellis#185

You can try to apply the workaround and see if that fixes it.

@JamesTimothyMeech
Copy link
Author

Thanks for the tip. Removing libpython3.11.dylib from prjtrellis/libtrellis/CMakeFiles/pytrellis.dir/link.txt did not help for me

@rowanG077
Copy link
Contributor

rowanG077 commented Apr 20, 2023

The comment did not say but I believe you have remove it prior to rebuilding prjtrellis. Did you do this:

  1. Run cmake
  2. Delete the libpython3.11.dylib from link.txt
  3. Run make and install

And then try to build nextpnr.

@JamesTimothyMeech
Copy link
Author

I did as you said and I unfortunately still have the same error.

@JamesTimothyMeech
Copy link
Author

JamesTimothyMeech commented Apr 27, 2023

Seems to be fixed by using the newest nextpnr version

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

2 participants