*** tpb has joined #tomu | 00:00 | |
*** awe00 has joined #tomu | 00:09 | |
*** NoGodDamnIdea has quit IRC | 00:35 | |
xobs | MadHacker: sorry, I should add a check for "git" to lxbuildenv. | 01:09 |
---|---|---|
xobs | It largely does two things: (1) set up PYTHONPATH, and (2) ensure you have everything checked out. | 01:09 |
xobs | ovf: Two issues: (1) python/lib/libpython3.7m.a doesn't exist on OS X (it's not in https://homebrew.bintray.com/bottles/python-3.7.4.high_sierra.bottle.tar.gz), and (2) I'm not sure how to pass that information to cmake. | 01:10 |
xobs | I might be able to solve (1) by manually compiling both it and libboost, and (2) by passing the .a file as an additional argument in cmake. My current issue is that builds take ~40 minutes because my only current mac is TravisCI. | 01:11 |
ovf | xobs: for (1), it doesn't exist on my system either, that's why the script downloads it from anaconda (and mentions the second option of building it, e.g. with pyenv which worked for me) | 01:12 |
ovf | i checked that anaconda' macos distribution also comes with the library | 01:13 |
xobs | Oh, sorry. This is why I shouldn't do this so early in the morning. That ought to work, thanks! Let me give that a try. Do you know what version of macos it's built for? | 01:13 |
xobs | For example, I was building the wishbone-tool with the latest version of macos, so it would only run on the latest version, whereas if you build it with an earlier version you get better compatibility. | 01:14 |
*** whatnick has joined #tomu | 01:15 | |
whatnick | mithro: Any luck with VexRiscv on TinyFPGA ? | 01:16 |
whatnick | Please also link to a Fomu VexRiscv how-to | 01:16 |
ovf | xobs: sorry, no hard facts but they hint at 10.10+ here: https://docs.anaconda.com/anaconda/install/ | 01:18 |
tpb | Title: Installation Anaconda 2.0 documentation (at docs.anaconda.com) | 01:18 |
ovf | xobs: for (2), i'm useless at cmake, but if https://cmake.org/cmake/help/latest/module/FindPythonInterp.html somehow ends up calling FindPython, these might help: https://cmake.org/cmake/help/latest/module/FindPython.html#hints | 01:23 |
tpb | Title: FindPythonInterp CMake 3.15.2 Documentation (at cmake.org) | 01:23 |
xobs | ovf: thanks, that's very very useful information. That should be enough to go on, and hopefully I have enough time Monday and Tuesday with the Mac in the office to do some tests. | 01:27 |
*** whatnick has quit IRC | 01:32 | |
ovf | xobs: ok, from a brief test (http://vpaste.net/u2dNk?raw) it looks like cmake is happy enough with just passing it -DPYTHON_EXECUTABLE=path/to/anacondas/python/bin/python | 01:32 |
ovf | mac is a huge pain, both because of the version incompatibilities and effectively dropping support for gcc. i actively avoid being anywhere near a mac at work lest i become responsible for producing builds. | 01:37 |
*** whatnick has joined #tomu | 01:37 | |
whatnick | xobs: I have used CMake a lot, can I help ? Issues with Conda python ? | 01:39 |
whatnick | Usually it looks for the "python" executable and then infers stuff | 01:39 |
whatnick | so you make need to activate conda before running cmake ... | 01:39 |
*** whatnick has quit IRC | 01:50 | |
ovf | xobs: i can build nextpnr statically linked to python (and boost, for good measure, also downloaded off anaconda, libboost+py-boost) with this: cmake -DARCH=generic -DBOOST_ROOT=/tmp/boost -DBoost_USE_STATIC_LIBS=ON -DPYTHON_EXECUTABLE=/tmp/python/bin/python -DPYTHON_LIBRARY=/tmp/python/lib/libpython3.7m.a -DCMAKE_EXE_LINKER_FLAGS='-fno-lto -ldl -lutil' .. | 02:25 |
ovf | the last bit is a bit unfortunate. yet after i also copy lib/python3.7 over to build dir, i seem to be able to do nextpnr-generic --run script.py | 02:27 |
xobs | ovf: thank you so much for the direction to look into -- grabbing packages from anaconda is so much faster and more reliable than homebrew. Builds start in just a few minutes now, rather than after 20 minutes. | 05:39 |
*** notthetup has joined #tomu | 07:40 | |
*** notthetup has left #tomu | 07:41 | |
xobs | ovf: thanks again -- this also answers the question of what to tell Mac users where to find Python. I can just bundle the conda version with it. | 11:22 |
xobs | It's also much, much faster to build with the anaconda packages than homebrew | 11:23 |
xobs | Okay, I finally ought to have everything you'd ever need bundled up at https://github.com/im-tomu/fomu-toolchain/releases/latest | 15:26 |
tpb | Title: Release v0.0-rc4: travis: try new token · im-tomu/fomu-toolchain · GitHub (at github.com) | 15:26 |
xobs | Well, I should probably add in "make" on macos. And I don't bundle Python on Linux since I assume you have both it and "make". Or a terminal emulator for Linux or Mac. | 15:27 |
auscompgeek | I think a terminal emulator is a safe assumption across the board, given there's usually one built-in | 15:35 |
ovf | xobs: cool! anaconda is useful because depending on how much you want to invest into it, it could provide a complete build environment (including the compiler etc.) that would behave mostly similarly on all platforms. | 15:36 |
*** emeb has joined #tomu | 15:36 | |
auscompgeek | I've found that conda is the only thing that has given me a reasonable build env on Windows with OpenCV without a large amount of effort | 15:38 |
auscompgeek | Computer vision on Windows is super not fun, I gotta say. | 15:39 |
xobs | It does seem promising. Though for nextpnr I could only get it to work when using MSVC and not staticly linking or building debug. | 15:45 |
ovf | xobs: as you're linking against python3.5 on linux, i don't think your build is going to work e.g. in ubuntu 18.04? | 15:48 |
ovf | (this is not a prompt for you to waste even more time statically linking python) | 15:49 |
ovf | python's insistence on minor version abi incompatibility is a bit bothersome. i think we support any 3.5+ from a single build (and that's just because 3.4 is missing some minor convenience function i didn't feel like writing a line of code to replace), though we have to load libpython by hand | 15:52 |
xobs | Well, let's find out. Let me start Ubuntu 18.04 LTS in WSL and see what happens. | 15:53 |
xobs | Hmm... Yes, it looks like BUILD_STATIC=ON doesn't cause nextpnr-ice40 to do a static build. | 15:57 |
ovf | what did you expect to have been statically linked into nextpnr? | 15:59 |
ovf | frankly, don't worry about linux. it's much easier to build for oneself there. i'd rather nudge the relevant people to do point releases for nextpnr and friends, then they'll get packaged for all the distros. | 16:07 |
xobs | Hmm... Somehow DSTATIC_BUILD=ON wasn't added. Though "-static-libpython3.5m" is added. Hmm... | 16:11 |
*** shapr has joined #tomu | 16:25 | |
*** cedric has joined #tomu | 17:00 | |
xobs | I can manually construct a gcc command to produce something that works... except it needs a Python site-modules distribution, which is actually what we do for the other platforms already. | 17:24 |
xobs | Well, I think this is a problem for tomorrow. | 17:26 |
tnt | xobs: btw the led alternative pn in the repo is not 100% pin compatible. | 17:48 |
tnt | colors are not in the same spot :p | 17:48 |
*** NoGodDamnIdea has joined #tomu | 18:33 | |
shapr | mithro: howdy! | 19:16 |
mithro | shapr: hi, not really around at the moment but plenty of other people might be | 19:18 |
tnt | mithro: btw, any usefulness in me bringing the fomu hacker board sheet at camp ? or maybe a flashing fixture ? (If you have one, I won't bother but ...) | 19:18 |
mithro | Both would be good | 19:18 |
shapr | mithro: thanks for making cool stuff! | 19:19 |
tnt | ack | 19:22 |
*** NoGodDamnIdea has quit IRC | 19:37 | |
*** acathla has quit IRC | 19:38 | |
*** acathla has joined #tomu | 19:51 | |
*** acathla has quit IRC | 19:51 | |
*** acathla has joined #tomu | 19:51 | |
*** rohitksingh has joined #tomu | 21:33 | |
*** mifune has quit IRC | 21:52 | |
*** snarkhunter has joined #tomu | 22:33 | |
*** snarkhunter has quit IRC | 22:43 | |
*** emeb has quit IRC | 23:58 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!