Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
distcc different gcc versions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
erg_samowzbudnik
Apprentice
Apprentice


Joined: 09 Sep 2011
Posts: 211
Location: European sticks

PostPosted: Mon Jan 20, 2020 6:21 pm    Post subject: distcc different gcc versions Reply with quote

I'm running updates on Pi 3B+ with the help of distcc, running smoothly so far but I've noticed I have different gcc versions on the host and pi with host running aarch64-unknown-linux-gnu-9.2.0 and pi on gcc-8.3.0-r3, is that asking for troubles? gcc-9.2.0 is masked on aarch64, should I unmask it? How important would be minor revisions ie. gcc-9.2.0-r3 vs gcc-9.2.0-r3 ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54421
Location: 56N 3W

PostPosted: Mon Jan 20, 2020 7:34 pm    Post subject: Reply with quote

erg_samowzbudnik,

You need *identical* gcc versions everywhere. Anything else is taking a risk.
The more you deviate the more the risk.

arm64 is still experimental. If you want to experiment, there is little point in using stable.
I've been using gcc-9 on arm64 since about a week after it landed in the tree.
With gcc-9.2 the warts seem to have gone.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
erg_samowzbudnik
Apprentice
Apprentice


Joined: 09 Sep 2011
Posts: 211
Location: European sticks

PostPosted: Tue Jan 21, 2020 10:17 am    Post subject: Reply with quote

NeddySeagoon,

thanks, was confused regarding versions as I forgot to run eix-update. Emerging now the new version on pi, distcc is not being used to build gcc though which is pity.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Tue Jan 21, 2020 10:48 am    Post subject: Reply with quote

erg_samowzbudnik wrote:
thanks, was confused regarding versions as I forgot to run eix-update. Emerging now the new version on pi, distcc is not being used to build gcc though which is pity.

gcc build xgcc for your cpu (this way, your "old" gcc build a cpu optimized gcc version), then xgcc build the final gcc (this way xgcc with all new functionalities build a new gcc optimize by its own functionalities) ; you could easy guess the problem, it might be doable to have distcc helping to build only xgcc, but i suppose it's not worth the effort
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54421
Location: 56N 3W

PostPosted: Tue Jan 21, 2020 11:31 am    Post subject: Reply with quote

erg_samowzbudnik,

The gcc build system is somewhat puritanical but with good reason.
The first step uses your random system C/C++ compiler to build enough of gcc for it to build itself.
The second step uses the output of the first step to build enough of gcc for it to build itself.
Now you have a gcc built with gcc, regardless of the system compiler you started with.

The last step is to use the output o the previous step to build the gcc that will actually be installed on your system.
When the C/C++ bits are complete, it runs a compare with the second stage. They should be identical.
The whole idea is to make sure that nothing from the system compiler, which may not be gcc, is left in your new gcc.

It takes a while.

You might like to poke about in my binhost. Feel free to help yourself.
Its Pi3 optimised code at the moment but when I move to gcc-10, I'll swap to Pi4 too.
The code will run on both.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
erg_samowzbudnik
Apprentice
Apprentice


Joined: 09 Sep 2011
Posts: 211
Location: European sticks

PostPosted: Tue Jan 21, 2020 5:35 pm    Post subject: Reply with quote

NeddySeagoon,

thank you for thorough explanation, I do appreciate.

I'm well into the build now, this time I'll let it do it's thing. I did use your binhost in the past, thanks for setting it up.

I'm in a process of cross compiling packages for a binhost of my own, I want to get familiar with the whole process as I'm toying with the idea of trying to compile Gentoo for Pinephone ... although it seems like a challenge at the moment. I'd love to be able to pull updates for my phone from my own server though :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum