Author Topic: Which GCC to run with?  (Read 330 times)

Dariusz Piatkowski

  • Sr. Member
  • ****
  • Thank You
  • -Given: 12
  • -Receive: 7
  • Posts: 307
    • View Profile
Which GCC to run with?
« on: December 04, 2017, 09:43:06 pm »
Alright...so I never thought I'd have this kind of a problem on our platform: too many versions to pick from!!!

My goal is to be able to build a CPU-family specific version of Firefox. I see that current builds are using 4.9.2 GCC. In the meantime, Paul on his Unix ports page lists a whole whack of GCC versions...right up to 7.1.

As it pertains to our platform, can anyone give me a run-down of why one should build FF with 4.9.2 where (presumably) a better version like 7.1 is available?

FYI, I reviewed the published Change Information, as per the ULRs below:

1) 4=>5 https://gcc.gnu.org/gcc-5/changes.html
2) 5=>6 https://gcc.gnu.org/gcc-6/changes.html
3) 6=>7 https://gcc.gnu.org/gcc-7/changes.html

...but really, unless you know this stuff very well (and I do not), it's hard to make sense of it all.

So does it all come down to something as simple as libstdc++ & libstdc++6 being only available in 4.x level (through official RPM/YUM)? This question only pertains to software that one might produce using GCC7 and distribute w/o the runtime libraries. But if I was to build an optimized version for my local use only, would it not make sense to build using GCC7 and utilize as many of the fixes as have been accumulated since 4.9x?

I realize FF is complex piece of work, but before I blindly jump into this, spending I'm sure a pile of time to get this working, I'd like to better understand some of the fundamental decisions and their impacts.



Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 8
  • -Receive: 91
  • Posts: 1176
    • View Profile
Re: Which GCC to run with?
« Reply #1 on: December 04, 2017, 11:58:51 pm »
Well currently 4.9.2 is the only version that will build Firefox. I did build 45.5 with 5.10 and it worked much the same as 4.9.2 but now the build dies with some unresolved symbols. Seems configure missed something but I haven't got around to tracking it down.
Newer GCC's had all kinds of errors, discussed here in one of the GCC threads, but now I can't find it, probably lost due to the crash.
Anyways you're best starting with the supported environment, getting it actually compiling and then experimenting with other versions of GCC etc.
You should also review the discussion in the how to build SeaMonkey thread (all Mozilla apps basically build the same way) as we rehashed various things I forget and/or dmik hadn't posted.
http://www.os2world.com/forum/index.php/topic,1421.0.html

Dariusz Piatkowski

  • Sr. Member
  • ****
  • Thank You
  • -Given: 12
  • -Receive: 7
  • Posts: 307
    • View Profile
Re: Which GCC to run with?
« Reply #2 on: December 05, 2017, 03:52:23 pm »
Hi Dave!

Well currently 4.9.2 is the only version that will build Firefox...

That is probably the key point, I suspect 3/4 of the challenge will be for me to re-create the whole environment to be able to just build the darn thing in the first place.

...You should also review the discussion in the how to build SeaMonkey thread (all Mozilla apps basically build the same way) as we rehashed various things I forget and/or dmik hadn't posted.
http://www.os2world.com/forum/index.php/topic,1421.0.html

Yup, I had actually bookmarked that thread when it was current given the content and the details, time to start re-reading and digesting.

Alright, thank you.

Any other final pieces of advice? My next step would be to install the RPM/YUM gcc stuff, namely the following packages:

1) gcc
2) gcc-debug
3) gcc-stdc++shared-library
4) gcc-supc++shared-library

Again, this is just regarding what's needed to have a working generic GCC 4.9.2 system.

Thanks,
 -Dariusz