-
Notifications
You must be signed in to change notification settings - Fork 24
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
gdb TUI? #17
Comments
There is no reason on my side (; However please note that gdb's TUI actually IS enabled automatically when your system has suitable libraries available (I would say that this would be at least
As GDB is built at the very end, a failure there is very painful, especially for people with slower machines, where the script can take several hours to complete (I've had reports that it takes up to 3 hours for some people). Do you think this behaviour should be changed? Or maybe this should just be documented in the |
I was just curious, as -tui prints not supported on Windows. Guess it's more complicated to get curses working in this cross-compilation scenario. |
Well, for Windows you would need some
On Windows I guess, right? This may be a problem that on Windows |
Yeah it did pick up some python2 dll from my path but crashed deep in the call stack after returning to the exe. |
So nothing changed and you still cannot build GDB for Windows with Python 3.
Could you please try to use exactly the same version that was used to compile the toolchain (python-2.7.16)? |
Tell me about it, finally tried the script myself. I wish it were more "incremental-friendly", skipping downloads, extract, cleanup and build steps that have already succeeded. Especially because I keep getting weird errors about missing headers files etc that go away when running it again, probably make parallelism related. So far I help myself with some + if [ ! -f "${1}" ]; then
curl -L -o ${1} -C - --connect-timeout 30 -Y 1024 -y 30 ${2} || ret=$? |
Seems like a good fix, but imagine what happens if your download is broken, for example it got stuck in the middle, the server disconnected and now you have half of that file on your disk? (; The real fix would be to verify the downloads with a checksum or with a signature, but this was not done yet. Actually in here the re-downloads take almost no time compared to the rest of the script, maybe 10 seconds?
This is more complicated than it appears on the first sight. Mostly because it's hard to tell that the step was completed successfully when running the script again and because when one step fails there is a need to actually "roll-back" to the last successful checkpoint. Once you get over all of the initial hurdles, the script runs successfully 99% of times you try it, so the incentive to implement something like that is much lower then...
Post them here or in a separate bug report. I have a machine with 8 logical threads and never saw anything like that (the build is obviously parallel where possible). BTW - even if you skip documentation, GDB now seems to require makeinfo anyway, so make sure you actually have it installed. BTW 2 - if you're using ubuntu, the BTW 3 - to try a faster build, you can run the script like this |
Well the extract should fail then.
Try that in Asia.
Yep I would simply add a few more skip parameters to the script.
Yes, I saw the fix: nolange@72e08a3
An actual apt-get commandline would be more helpful. I installed
I've been building |
It will, but this whole discussion started about errors which are reported later instead of as early as possible (;
It says Germany in your profile, sorry for wrong assumptions (; How long does the re-download of everything take for you?
Some of them were incorporated. Others can be provided as pull-requests (;
Like I've said - once the script works without nano libraries, you can then enable them with no issues. The build of nano libraries almost doubles the time it takes for the script to finish, so it's a good thing to skip for a start, while you're sorting out the issues.
If I would be using Ubuntu, I would surely post it, but I'm using Arch so I really have no idea what is required on Ubuntu apart from the info in |
It's not that complicated in the end. Download from http://ftp.gnu.org/pub/gnu/ncurses/ and build. But I had to set the build triple explicitly or it wouldn't properly detect the cross-compilation scenario, very weird: Then amend CPPFLAGS and LDFLAGS in |
btw why do you have to build gcc again for nano, just for the |
I don't have a definitive answer. I did it exactly the same way as ARM does their original toolchain. Note that "nano" libraries is not only the gcc build - its all of gcc libraries (including libstdc++) and also whole newlib. I guess the time to build gcc itself is not that significant here - most of the time is taken by building the libraries anyway - there are 20 variants of them (; |
Yeah I've been using |
Any reason for not enabling the text UI with
--enable-tui
? :)The text was updated successfully, but these errors were encountered: