Re: [fpc-devel] moved project from CentOS to a new install of CentOS...

2019-07-28 Thread Ozz Nixon
Out of experimentation ...

WORKS:
Free Pascal Compiler version 2.6.4 [2014/03/07] for x86_64
Copyright (c) 1993-2014 by Florian Klaempfl and others

BREAKS LD:
Free Pascal Compiler version 3.0.4 [2017/10/02] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others

So I am back in business at least. And I can try installing 3.x again and
try things if needed

On Sun, Jul 28, 2019 at 2:24 PM Jonas Maebe  wrote:

> On 28/07/2019 21:02, Ozz Nixon wrote:
> > Arg, did that (Thank you for the suggestion) and now I am back to:
> >
> > /usr/bin/ld: warning: link.res contains output sections; did you forget
> -T?
> > /usr/bin/ld: BFD version 2.20.51.0.2-5.42.el6 20100205 internal error,
> > aborting at reloc.c line 443 in bfd_get_reloc_size
> > /usr/bin/ld: Please report this bug.
> >
> > From this point forward, nothing I do will fix ld. I had ran into this 2
> > weeks ago - thought it was from a yum update, but, obviously its binutil
> > and glibc-2.12 are not compatible.
>
> That would seem unlikely for a commercial product like RHEL. It seems
> more likely it's choking on a relocation from an FPC object file.
>
> > Any ideas how to resolve this?
>
> Manually compile/install more recent binutils.
>
>
> Jonas
> ___
> fpc-devel maillist  -  fpc-devel@lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] moved project from CentOS to a new install of CentOS...

2019-07-28 Thread Nikolai Zhubr

Hi Ozz,

28.07.2019 22:02, Ozz Nixon:

/usr/bin/ld: BFD version 2.20.51.0.2-5.42.el6 20100205 internal error,


This binutils version is likely too old, and because C6 is getting close 
to EOL, I'd not count on someone fixing this ld bug. I recently had to 
update 2.24 to 2.30 (on opensuse) to get rid of (another) ld error. And 
as Centos7 now uses binutils 2.27, maybe consider trying it? (I do 
compile on C7 with no issue, but still using FPC 2.6.4 there, so no 
promices w.r.t. your specific issue)


HTH,

Regards,
Nikolai


aborting at reloc.c line 443 in bfd_get_reloc_size
/usr/bin/ld: Please report this bug.

 From this point forward, nothing I do will fix ld. I had ran into this
2 weeks ago - thought it was from a yum update, but, obviously its
binutil and glibc-2.12 are not compatible. Any ideas how to resolve
this? Researching this for 2 weeks, everything always results in
reinstall the OS. :-(

On Sun, Jul 28, 2019 at 5:40 AM Jonas Maebe mailto:jo...@freepascal.org>> wrote:

On 28/07/2019 04:08, Ozz Nixon wrote:
 > ld is complaining it cannot -ldl
 >
 > I have read on reddit, this is a glibc update... is that all I
need to
 > yum so FPC can compile my project?

You have to install the glibc-devel package.


Jonas
___
fpc-devel maillist  - fpc-devel@lists.freepascal.org

https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel



___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] moved project from CentOS to a new install of CentOS...

2019-07-28 Thread Jonas Maebe
On 28/07/2019 21:02, Ozz Nixon wrote:
> Arg, did that (Thank you for the suggestion) and now I am back to:
> 
> /usr/bin/ld: warning: link.res contains output sections; did you forget -T?
> /usr/bin/ld: BFD version 2.20.51.0.2-5.42.el6 20100205 internal error,
> aborting at reloc.c line 443 in bfd_get_reloc_size
> /usr/bin/ld: Please report this bug.
> 
> From this point forward, nothing I do will fix ld. I had ran into this 2
> weeks ago - thought it was from a yum update, but, obviously its binutil
> and glibc-2.12 are not compatible.

That would seem unlikely for a commercial product like RHEL. It seems
more likely it's choking on a relocation from an FPC object file.

> Any ideas how to resolve this?

Manually compile/install more recent binutils.


Jonas
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] moved project from CentOS to a new install of CentOS...

2019-07-28 Thread Ozz Nixon
Arg, did that (Thank you for the suggestion) and now I am back to:

/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
/usr/bin/ld: BFD version 2.20.51.0.2-5.42.el6 20100205 internal error,
aborting at reloc.c line 443 in bfd_get_reloc_size
/usr/bin/ld: Please report this bug.

>From this point forward, nothing I do will fix ld. I had ran into this 2
weeks ago - thought it was from a yum update, but, obviously its binutil
and glibc-2.12 are not compatible. Any ideas how to resolve this?
Researching this for 2 weeks, everything always results in reinstall the
OS. :-(

On Sun, Jul 28, 2019 at 5:40 AM Jonas Maebe  wrote:

> On 28/07/2019 04:08, Ozz Nixon wrote:
> > ld is complaining it cannot -ldl
> >
> > I have read on reddit, this is a glibc update... is that all I need to
> > yum so FPC can compile my project?
>
> You have to install the glibc-devel package.
>
>
> Jonas
> ___
> fpc-devel maillist  -  fpc-devel@lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Cannot build fpc trunk on MacOS

2019-07-28 Thread Ondrej Pokorny

On 28.07.2019 13:15, Jonas Maebe wrote:

On 28/07/2019 10:41, Ondrej Pokorny wrote:

I wanted to try the latest FPC/Lazarus on Mac OS and I got the following
error when building trunk with FPC 3.0.4:

Sorry, fixed.


I can build FPC trunk on MacOS now, thank you!

Ondrej

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Cannot build fpc trunk on MacOS

2019-07-28 Thread Jonas Maebe
On 28/07/2019 10:41, Ondrej Pokorny wrote:
> I wanted to try the latest FPC/Lazarus on Mac OS and I got the following
> error when building trunk with FPC 3.0.4:
> 
> Installing package chm
> Installation package chm for target x86_64-darwin succeeded
> Start compiling package cocoaint for target x86_64-darwin.
>    Compiling cocoaint/BuildUnit_cocoaint.pp
> Compiled package cocoaint
> Installing package cocoaint
> The installer encountered the following error:
> Unable to open file "cocoaint/units/x86_64-darwin/CoreGraphics.ppu"

Sorry, fixed.


Jonas
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] moved project from CentOS to a new install of CentOS...

2019-07-28 Thread Jonas Maebe
On 28/07/2019 04:08, Ozz Nixon wrote:
> ld is complaining it cannot -ldl
> 
> I have read on reddit, this is a glibc update... is that all I need to
> yum so FPC can compile my project?

You have to install the glibc-devel package.


Jonas
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


[fpc-devel] Cannot build fpc trunk on MacOS

2019-07-28 Thread Ondrej Pokorny

Hello,

I wanted to try the latest FPC/Lazarus on Mac OS and I got the following 
error when building trunk with FPC 3.0.4:


Installing package chm
Installation package chm for target x86_64-darwin succeeded
Start compiling package cocoaint for target x86_64-darwin.
   Compiling cocoaint/BuildUnit_cocoaint.pp
Compiled package cocoaint
Installing package cocoaint
The installer encountered the following error:
Unable to open file "cocoaint/units/x86_64-darwin/CoreGraphics.ppu"
make[3]: *** [distinstall] Error 1
make[2]: *** [packages_distinstall] Error 2
make[1]: *** [installother] Error 2
make: *** [installall] Error 2

I compile with this script:

make clean all OPT="-gl -O-"
make install INSTALL_PREFIX=~/software/fpc/trunk_exp PP=/usr/local/bin/fpc

I downloaded and installed FPC 3.0.4 from 
https://www.freepascal.org/download.html. The version is as follows:


Free Pascal Compiler version 3.0.4 [2018/09/30] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others


Anybody knows what's going on?

Thanks
Ondrej

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


[fpc-devel] x86-64 Optimizer Overhaul Testing

2019-07-28 Thread J. Gareth Moreton

Hi everyone,

So for the x86-64 optimizer overhaul 
(https://bugs.freepascal.org/view.php?id=34628), I do my best to ensure 
that the patches are up-to-date and merge successfully with the current 
branch.


Last week, the user Akira1364 reported that they were able to trigger 
internal error 2013102801 (raised in MatchOperand if the operand types 
match but are neither top_const, top_reg or top_ref) with the patches 
under x86_64-win64, but I have been unable to reproduce the error, 
whether from my working branch or by applying the patches to the trunk.  
I'm not sure if I'm missing a step, but everything compiles and links 
fine with the example given.  Is anyone else able to produce the issue 
as listed under https://bugs.freepascal.org/view.php?id=34628#c117339?


If that's all okay, are there still any glaring issues with coding 
standards in regards to the units used, Florian?


Gareth aka. Kit

P.S. Despite the reported error, Akira1364 mentions that there is a 
marked improvement in compilation time.



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel