Re: 10.5 and gcc8 x86-64 ok but ppc bails with dlerror

2024-03-28 Thread Ken Cunningham
supporting all the gcc versions between gcc 8 and 12 on older systems will be 
quite a bit of work and require a lot of build time for poor users of these 
systems.

To have libgcc7, the way it is now, you need to build libgcc13, 12, 11, 10, 9, 
8, and then 7.

That is -- a lot of gcc building for a questionable benefit.

If we could agree to use what we have (up to gcc7) and then skip to gcc13 it 
would be much easier.

That would likely take no more than a few hours of work for some one to do, 
once there was consensus on it.


Ken


On 2024-03-28, at 8:57 AM, Riccardo Mottola wrote:

> Hi,
> 
> after all the talk about gcc versions, I tried to build gcc 8 here.
> Officially it says "gcc8 is known to fail".
> 
> I first did just "build" on Intel 64bit and PPC 32bit - Intel 32bit
> later, I fear my MacBook has fan issues.
> 
> Intel 64bit finished build! Took several hours. I thus tried to install
> it... and it says again
> "libgcc8 is known to fail. Try to install anyway?" and yes, it just built!
> 
> However then it asks about libgcc9 but I want to stay on libgcc8,
> that was the point... am Inheriting that it will go up to gcc13?
> 
> 
> On PowerPC instead build fails (and ultimate goal is to enable newer
> gccs on PPC too, where it is needed)
> 
> :info:build cc1plus: warning: '-mdynamic-no-pic' overrides '-fpic',
> '-fPIC', '-fpie' or '-fPIE'
> :info:build
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/jit/jit-playback.c:
> In member function 'gcc::jit::result*
> gcc::jit::playback::context::dlopen_built_dso()':
> :info:build
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/jit/jit-playback.c:2599:3:
> error: 'dlerror' was not declared in this scope
> :info:builddlerror ();
> :info:build^~~
> 
> 
> Already seen this? Full build log is 6.7MB
> Should I open a ticket on this or is there already one for gcc8 efforts?
> didn't find it.
> 
> Riccardo



Re: 10.5 and gcc8 x86-64 ok but ppc bails with dlerror

2024-03-28 Thread Ken Cunningham
I was not aware that supporting the bootleg crippled 10.6 PPC pre-beta had 
anything to do with why nobody had gotten around to updating the gcc version 
used on older systems.

At least, it was not anywhere on my radar.

Just -- nobody did the legwork.

Ken


On 2024-03-28, at 11:47 AM, Sergio Had wrote:

> Let me make another, final attempt to sort this out once for all and for 
> everyone on old systems.
> 
> I got an idea how to satisfy Ken’s preference of not supporting ppc builds on 
> 10.6 in gcc ports and my need to support those.
> 
> That was the stopper so far, not allowing an agreement to merge.
> 
> I may do this today itself: I have everything working for months, just need 
> to sort commits to make it readable and implement a solution for what I want.
> 
> As a bonus, you will get IEEE intrinsics in Fortran – something that never 
> existed on ppc.
> On Mar 29, 2024 at 02:36 +0800, Sergio Had , wrote:
>> You should not need gcc8. I had gcc11 working on 10.5 ppc (and ppc64 too). I 
>> have seen people using gcc13 on 10.5 ppc following my instructions from the 
>> PR.
>> 
>> What is the point of gcc8?
>> 
>> You build gcc10-bootstrap and then use it to build gcc13. Nothing else 
>> needed in between.
>> On Mar 28, 2024 at 23:58 +0800, Riccardo Mottola via macports-dev 
>> , wrote:
>>> Hi,
>>> 
>>> after all the talk about gcc versions, I tried to build gcc 8 here.
>>> Officially it says "gcc8 is known to fail".
>>> 
>>> I first did just "build" on Intel 64bit and PPC 32bit - Intel 32bit
>>> later, I fear my MacBook has fan issues.
>>> 
>>> Intel 64bit finished build! Took several hours. I thus tried to install
>>> it... and it says again
>>> "libgcc8 is known to fail. Try to install anyway?" and yes, it just built!
>>> 
>>> However then it asks about libgcc9 but I want to stay on libgcc8,
>>> that was the point... am Inheriting that it will go up to gcc13?
>>> 
>>> 
>>> On PowerPC instead build fails (and ultimate goal is to enable newer
>>> gccs on PPC too, where it is needed)
>>> 
>>> :info:build cc1plus: warning: '-mdynamic-no-pic' overrides '-fpic',
>>> '-fPIC', '-fpie' or '-fPIE'
>>> :info:build
>>> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/jit/jit-playback.c:
>>> In member function 'gcc::jit::result*
>>> gcc::jit::playback::context::dlopen_built_dso()':
>>> :info:build
>>> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/jit/jit-playback.c:2599:3:
>>> error: 'dlerror' was not declared in this scope
>>> :info:build dlerror ();
>>> :info:build ^~~
>>> 
>>> 
>>> Already seen this? Full build log is 6.7MB
>>> Should I open a ticket on this or is there already one for gcc8 efforts?
>>> didn't find it.
>>> 
>>> Riccardo



Re: 10.5 and gcc8 x86-64 ok but ppc bails with dlerror

2024-03-28 Thread Sergio Had
Let me make another, final attempt to sort this out once for all and for 
everyone on old systems.

I got an idea how to satisfy Ken’s preference of not supporting ppc builds on 
10.6 in gcc ports and my need to support those.

That was the stopper so far, not allowing an agreement to merge.

I may do this today itself: I have everything working for months, just need to 
sort commits to make it readable and implement a solution for what I want.

As a bonus, you will get IEEE intrinsics in Fortran – something that never 
existed on ppc.
On Mar 29, 2024 at 02:36 +0800, Sergio Had , wrote:
> You should not need gcc8. I had gcc11 working on 10.5 ppc (and ppc64 too). I 
> have seen people using gcc13 on 10.5 ppc following my instructions from the 
> PR.
>
> What is the point of gcc8?
>
> You build gcc10-bootstrap and then use it to build gcc13. Nothing else needed 
> in between.
> On Mar 28, 2024 at 23:58 +0800, Riccardo Mottola via macports-dev 
> , wrote:
> > Hi,
> >
> > after all the talk about gcc versions, I tried to build gcc 8 here.
> > Officially it says "gcc8 is known to fail".
> >
> > I first did just "build" on Intel 64bit and PPC 32bit - Intel 32bit
> > later, I fear my MacBook has fan issues.
> >
> > Intel 64bit finished build! Took several hours. I thus tried to install
> > it... and it says again
> > "libgcc8 is known to fail. Try to install anyway?" and yes, it just built!
> >
> > However then it asks about libgcc9 but I want to stay on libgcc8,
> > that was the point... am Inheriting that it will go up to gcc13?
> >
> >
> > On PowerPC instead build fails (and ultimate goal is to enable newer
> > gccs on PPC too, where it is needed)
> >
> > :info:build cc1plus: warning: '-mdynamic-no-pic' overrides '-fpic',
> > '-fPIC', '-fpie' or '-fPIE'
> > :info:build
> > /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/jit/jit-playback.c:
> > In member function 'gcc::jit::result*
> > gcc::jit::playback::context::dlopen_built_dso()':
> > :info:build
> > /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/jit/jit-playback.c:2599:3:
> > error: 'dlerror' was not declared in this scope
> > :info:build dlerror ();
> > :info:build ^~~
> >
> >
> > Already seen this? Full build log is 6.7MB
> > Should I open a ticket on this or is there already one for gcc8 efforts?
> > didn't find it.
> >
> > Riccardo


Re: 10.5 and gcc8 x86-64 ok but ppc bails with dlerror

2024-03-28 Thread Sergio Had
You should not need gcc8. I had gcc11 working on 10.5 ppc (and ppc64 too). I 
have seen people using gcc13 on 10.5 ppc following my instructions from the PR.

What is the point of gcc8?

You build gcc10-bootstrap and then use it to build gcc13. Nothing else needed 
in between.
On Mar 28, 2024 at 23:58 +0800, Riccardo Mottola via macports-dev 
, wrote:
> Hi,
>
> after all the talk about gcc versions, I tried to build gcc 8 here.
> Officially it says "gcc8 is known to fail".
>
> I first did just "build" on Intel 64bit and PPC 32bit - Intel 32bit
> later, I fear my MacBook has fan issues.
>
> Intel 64bit finished build! Took several hours. I thus tried to install
> it... and it says again
> "libgcc8 is known to fail. Try to install anyway?" and yes, it just built!
>
> However then it asks about libgcc9 but I want to stay on libgcc8,
> that was the point... am Inheriting that it will go up to gcc13?
>
>
> On PowerPC instead build fails (and ultimate goal is to enable newer
> gccs on PPC too, where it is needed)
>
> :info:build cc1plus: warning: '-mdynamic-no-pic' overrides '-fpic',
> '-fPIC', '-fpie' or '-fPIE'
> :info:build
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/jit/jit-playback.c:
> In member function 'gcc::jit::result*
> gcc::jit::playback::context::dlopen_built_dso()':
> :info:build
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/jit/jit-playback.c:2599:3:
> error: 'dlerror' was not declared in this scope
> :info:build dlerror ();
> :info:build ^~~
>
>
> Already seen this? Full build log is 6.7MB
> Should I open a ticket on this or is there already one for gcc8 efforts?
> didn't find it.
>
> Riccardo


10.5 and gcc8 x86-64 ok but ppc bails with dlerror

2024-03-28 Thread Riccardo Mottola via macports-dev
Hi,

after all the talk about gcc versions, I tried to build gcc 8 here.
Officially it says "gcc8 is known to fail".

I first did just "build" on Intel 64bit and PPC 32bit - Intel 32bit
later, I fear my MacBook has fan issues.

Intel 64bit finished build! Took several hours. I thus tried to install
it... and it says again
"libgcc8 is known to fail. Try to install anyway?" and yes, it just built!

However then it asks about libgcc9 but I want to stay on libgcc8,
that was the point... am Inheriting that it will go up to gcc13?


On PowerPC instead build fails (and ultimate goal is to enable newer
gccs on PPC too, where it is needed)

:info:build cc1plus: warning: '-mdynamic-no-pic' overrides '-fpic',
'-fPIC', '-fpie' or '-fPIE'
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/jit/jit-playback.c:
In member function 'gcc::jit::result*
gcc::jit::playback::context::dlopen_built_dso()':
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc8/gcc8/work/gcc-8.5.0/gcc/jit/jit-playback.c:2599:3:
error: 'dlerror' was not declared in this scope
:info:builddlerror ();
:info:build^~~


Already seen this? Full build log is 6.7MB
Should I open a ticket on this or is there already one for gcc8 efforts?
didn't find it.

Riccardo