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

Compilation of gcc takes 4 hours #43

Closed
vaskark opened this issue Apr 25, 2022 · 16 comments
Closed

Compilation of gcc takes 4 hours #43

vaskark opened this issue Apr 25, 2022 · 16 comments

Comments

@vaskark
Copy link

vaskark commented Apr 25, 2022

I recently started using this repo and the compilation of gcc itself is taking over 4 hours, compared to the main repo version which took about 40 minutes. Am I doing something wrong? This is in a VM, but still seems odd.

Make flags:

export CFLAGS="-O3 -pipe -march=native"
export CXXFLAGS="$CFLAGS"
export MAKEFLAGS="-j2"

Any advice would be greatly appreciated.
Thanks.

@echawk
Copy link
Owner

echawk commented Apr 26, 2022

That is really odd. I'm not aware of any software in this repo that would cause GCC to take that long. Do you have logs? And does GCC have any new dependencies after it's built?

@vaskark
Copy link
Author

vaskark commented Apr 26, 2022

It is odd, isn't it? It took almost 6 hours last night. Ugh.
Unfortunately I only had logs turned on for compilation failures. But if I change it I'm going to have to go through the whole mess again.
I'll post it if I decide to proceed.
Many thanks.

@echawk
Copy link
Owner

echawk commented Apr 26, 2022

Is it getting longer? Also what order are the repositories in your KISS_PATH?

kiss should automatically store logs in $HOME/.cache/kiss/logs so it might be worth checking there.

@vaskark
Copy link
Author

vaskark commented Apr 26, 2022

Yeah, it is getting longer.
These repos are placed ahead of the main ones, as per instructions.
Logs are set to only be created on compilation failure. Since it was successful there was no log file created. I did check in the expected folder.
Not sure what I'm going to do at this point. Might try the build again just to produce a log file to submit.
Thanks.

@echawk
Copy link
Owner

echawk commented Apr 27, 2022

Hmm. I'm honestly not sure what could be causing this, as none of the packages in this repo should interact in any way with the gcc package. Does disabling these repos fixes the issue or does the issue persist after disabling the repo?

@vaskark
Copy link
Author

vaskark commented Apr 27, 2022

I'm not sure if that would affect anything at this point. The best thing might be to make a new VM from scratch (without this xorg repo) and see if gcc takes the same insane amount of time. Don't know when I'll get around to it, though.

Edit: Oh. I see what you mean. Disable the xorg repos and then kiss b gcc to test. I'll try it and report back with a log file.

@vaskark
Copy link
Author

vaskark commented May 7, 2022

Here is the log for gcc 12.1 compile. It took about 6 hours.

link

@echawk
Copy link
Owner

echawk commented May 16, 2022

The gcc12 release also took a bit longer than usual for me too since it has to bootstrap itself. I haven't had a chance to give a good look at the logs yet.

@kyx0r
Copy link
Contributor

kyx0r commented Jun 12, 2022

Yes, I felt that too. I don't like it. Why does it need bootstrap when I already have 11.2 installed?
Is that too old for it now? Absurd. A good indication may be if they changed some configure options.
I will check the kiss size diff later, I have a feeling the package is a lot more bloated now.

@kyx0r
Copy link
Contributor

kyx0r commented Jun 12, 2022

Oh yes, gcc now has a lot more fat, 167MB VS 190MB
Look at the diff:
https://0x0.st/ouzy.txt

@kyx0r
Copy link
Contributor

kyx0r commented Jun 12, 2022

Ok definitely when compiling from gcc 12.1 to gcc 11.2 the time is around 16-18 minutes
and same is true vise versa.
timed:
3m 52.34s (gcc11 to compiling gcc 11)
18m 13.54s (gcc11 to compiling gcc 12)
4m 19.31s (gcc 12 compiling gcc 12)

As a one time thing I guess it's not super worrysome but best fix it if possible

@vaskark
Copy link
Author

vaskark commented Jun 13, 2022

Not worrisome? Mine is taking 6 hours! I know it’s a VM and I only have 2 cores dedicated… but this is ridiculous.

@kyx0r
Copy link
Contributor

kyx0r commented Jun 13, 2022

Well, it's easy to say but not so easy to convince the maintainer. Anyways you just have to keep this in mind for gcc, you can comment out the check in the script.

@vaskark
Copy link
Author

vaskark commented Jun 22, 2022

Well, it's easy to say but not so easy to convince the maintainer. Anyways you just have to keep this in mind for gcc, you can comment out the check in the script.

Comment out the check in the script? Could you be more explicit? Kind of a noob at this.

@kyx0r
Copy link
Contributor

kyx0r commented Jun 22, 2022

https://0x0.st/oSiY.patch

apply it

@kyx0r
Copy link
Contributor

kyx0r commented Aug 10, 2022

@ehawkvu Close this issue?

@vaskark vaskark closed this as completed Aug 10, 2022
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

3 participants