conda-forge / gdb-feedstock

A conda-smithy repository for gdb.
BSD 3-Clause "New" or "Revised" License
17 stars 62 forks source link

Cross-platform support #6

Open hameerabbasi opened 6 years ago

hameerabbasi commented 6 years ago

I find that I need this a lot to debug (for example) Cython. Is this within scope?

gqmelo commented 6 years ago

Hi @hameerabbasi . I never debugged Cython code, but I guess you could use gdb for that.

When I was adding gdb to conda-forge I tried to build for MacOS too, but faced some problems. As I don't have a Mac and there was nobody else interested, so we just published the Linux build. I know gdb is also buildable on Windows but not sure how useful would be.

If you would like to submit a PR I'm glad to help with any issues you find, but I'm afraid I cannot do much more than that.

jakirkham commented 6 years ago

Yeah there are lots of options for using gdb with Cython. Maybe you have already seen this, but this doc page from Cython is pretty helpful.

This would be better still if we had debug builds of Python. That is an open issue ( https://github.com/conda-forge/python-feedstock/issues/73 ), but may be easier to solve with conda-build 3.

Opened issue ( https://github.com/conda-forge/gdb-feedstock/issues/7 ) on macOS builds. If you have any details from your last attempt @gqmelo, can look into doing this.

bilderbuchi commented 3 years ago

Would offering a Windows build of gdb be easily possible?

I have just managed to successfully assembled the toolchain for building a mixed C++/Fortran cmake project using only conda-forge! This needs basically only to m2w64-toolchain cmake doxygen 🍾
I like the conda environment for offering these outside-Python tools. Unfortunately, I just realised that I lack a debugger, so that kinda put a damper on my ambitions. Surprisingly, the m2w64 tools include a load of compilers, but no gdb, as opposed to installing vanilla mingw from their website. :-(

jakirkham commented 3 years ago

Would you be willing to make a PR?

bilderbuchi commented 3 years ago

I can certainly try. However, a cursory examination shows that you seem to need libcxx pinned to v10 (64201c95e1e120be8e7b07fa38c509b3c1fedd53) for building, but its Windows version seems stuck on v7.0 -- I don't know how much I can do about this. (Apparently you yourself were involved in getting the Windows builds off the ground in the first place)

jakirkham commented 3 years ago

The first link doesn't work for me. In any event we typically use libcxx on macOS (not Windows). So wouldn't worry about that

bilderbuchi commented 3 years ago

ah, GH mangled that in a wrong way, link fixed. OK, so I'll investigate how to exclude this build required based on platform, let's see how far I get...