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

Unsolved issues: a call for assistance #58

Open
skeeto opened this issue May 1, 2023 · 6 comments
Open

Unsolved issues: a call for assistance #58

skeeto opened this issue May 1, 2023 · 6 comments

Comments

@skeeto
Copy link
Owner

skeeto commented May 1, 2023

Recent GCC and GDB updates have led to issues that currently have no solutions. I'm also stumped and have run out of avenues to search.

GCC 13.1 does not work on Windows XP (SOLVED)

As of 7256915, GCC no longer runs on Windows XP. Every other program works, just not cc1.exe. When attempting to run this program, (x86) Windows XP reports "The system cannot execute the specified program." with no further details. The same binary works fine on Windows 7 and later. To build your own test:

$ ./multibuild.sh -4q

advzip-compressed GDB 13.1 cannot be decompressed on x64 Windows

The problems began with fdac8e3. I normally advzip -z4 releases to shave about 5% off their size, but after I do this x64 Windows fails to decompress gdb.exe with error 0x80004005. No further information is provided by Windows. It still works on x86 Windows, and so I believe this is an old x64 Windows bug. It dates back at least as far as Windows 7. Until this is solved releases will be a few MiB larger.

More details, including a reduced sample file (advzip.sample) in 2cf762a. To reproduce: Place advzip.sample in a zip file, advzip -z4 that file, then try to decompress using x64 Windows's built-in ZIP support.

It is not feasible to compile GCC 13.1 on a Raspberry Pi 4

As of 13.1, GCC has become so large and complex that it runs out of memory during the bootstrap. So far I've built all the releases on this Raspi4. Not a big deal, but it is sad.

@Peter0x44
Copy link
Contributor

Peter0x44 commented May 2, 2023

Could the GCC issue possibly be related to the following commit?
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=d11e088210a551235d3937f867ee1c8b19d02290
https://gcc.gnu.org/PR108865
I doubt it, but it's worth a further look anyway, I think.

Edit: on second look, this is apparently affecting both the "driver and compiler proper", so I think it would affect more than just cc1.exe if it did cause a problem

@skeeto
Copy link
Owner Author

skeeto commented May 2, 2023 via email

@Peter0x44
Copy link
Contributor

Peter0x44 commented May 2, 2023

Great! Glad I could help
Perhaps it's an issue worth reporting upstream? or leaving as a comment on the bug tracker?
As far as I can tell, there's no configure option to disable this, and clearly it causes issues on some windows versions
Would using a "side by side" XML manifest file not fix the issue without compromising utf-8 on windows 10?

skeeto added a commit that referenced this issue May 2, 2023
The manifest is incompatible with Windows XP and prevents GCC's
executables from starting on that platform.
@skeeto
Copy link
Owner Author

skeeto commented May 3, 2023 via email

@xparq
Copy link

xparq commented Aug 30, 2023

Came here to express my most sincere condolences about the loss of the RPi build. :-/

@MagicalDrizzle
Copy link

For the second problem (which I can reproduce), you might want to try ECT instead?
FOSS (Apache), achieves superior compression compared to advzip, and does not trigger the bug on Windows.

C:\Users\X\Downloads\adv>dir /on
09/09/23  03:56 PM           180,000 advzip.sample
09/09/23  04:08 PM           165,029 advzip.zip
09/09/23  04:08 PM           165,029 advzip-ect.zip

C:\Users\X\Downloads\adv>advzip -z4 advzip.zip
      165029      159906  96% advzip.zip
      165029      159906  96%

C:\Users\X\Downloads\adv>ect -9 -zip advzip-ect.zip
Processed 1 file
Saved 18.23KB out of 161.16KB (11.3089%)

C:\Users\X\Downloads\adv>dir /on
09/09/23  03:56 PM           180,000 advzip.sample
09/09/23  04:10 PM           159,906 advzip.zip
09/09/23  04:10 PM           146,366 advzip-ect.zip
               3 File(s)        486,272 bytes
               2 Dir(s)  248,945,229,824 bytes free

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

4 participants