OS/2, eCS & ArcaOS - Technical > Programming

Which GCC to run with?

(1/3) > >>

Dariusz Piatkowski:
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:
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:
Hi Dave!


--- Quote from: Dave Yeo on December 04, 2017, 11:58:51 pm ---Well currently 4.9.2 is the only version that will build Firefox...
--- End quote ---

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.


--- Quote from: Dave Yeo on December 04, 2017, 11:58:51 pm ---...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

--- End quote ---

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

Paul Smedley:
FWIW - a build of GCC 7.2.0 is available - http://smedley.id.au/tmp/gcc-7.2.0-os2-20171216.zip

TeLLie:

--- Quote from: Paul Smedley on December 18, 2017, 09:08:38 am ---FWIW - a build of GCC 7.2.0 is available - http://smedley.id.au/tmp/gcc-7.2.0-os2-20171216.zip

--- End quote ---

Hi Paul,
As always thank you for the new build...

Navigation

[0] Message Index

[#] Next page

Go to full version