Results 101 comments of jwt27

I think the main problem here is that rustc generates PE-COFF objects. I'm quite surprised this even links at all, and that both djgpp's and mingw's objdump recognize the files...

> > > > Try searching the exe for the "Hello, DJGPP" string... it's not there :) > > That is indeed very strange considering that it has no problem...

The only real solution I think, is to add support for the coff-go32 target in LLVM. A workaround might be to have a binutils compiled with `--enable-targets=all`, then you can...

> Can you use objcopy to convert it into the correct format ? I tried this, and the relocations are still wrong. So the object format may not be the...

I hadn't really considered this to be an issue. There is already a check in place to test if you have write access to the installation directory: https://github.com/andrewwutw/build-djgpp/blob/4180d9298bf2a78b9eed0be545a25931e2ee91e6/script/7.2.0#L134-L146 https://github.com/jwt27/build-gcc/blob/a8b3e194289c4f29dc820a30c0b5a4bd52de30d9/script/download.sh#L127-L139 I...

> Maybe the build scripts should run sudo > themselves before doing the install things, > and the user will have to type the password > from time to time?...

See branch `sudo` on my fork: https://github.com/jwt27/build-gcc/tree/sudo I am unable to test this myself, being on mingw64 (where sudo doesn't even exist)

> First problem: bash (at least on ubuntu) > doesn't seem to like DOSish line endings. > Had to do dos2unix on scripts before they > could be started. That's...

> Maybe, but now I restarted the script, and it did the same thing again! That makes sense since it runs `sudo mkdir -p ${PREFIX}`. I'll have to add a...

> I wonder how to give the user a confidence > that he isn't working as root most of the time. > Maybe after you ended the sudo operation, >...