Re: [Lazarus] ll 1.8.0 compiles fail with "Error while linking"

2018-02-11 Thread zeljko via Lazarus

On 11.02.2018 23:36, Tom Lisjac via Lazarus wrote:


Thanks Zeljke, Péter and Mattias.

Plenty of space on all three OS'es and I installed all the dependencies 
that the rpm's (from sourceforge) required.


I've upgraded the Fedora 19 install many times without issues. This is 
the error after upgrading to 1.8.0 when compiling a blank form or the 
IDE from the ide:


Build IDE: Exit code 512, Errors: 1
[lazarus] Error 1
[idepkg] Error 2
make: *** [idepkg] Error 2
lazarus.pp(161,1) Error: Error while linking

It was originally the same on a new Fedora 23, but booted the VM up 
again today and now see this with a blank form compile:


Compile Project, Target: /home/user/tmp/project1: Exit code 256, Errors: 
1, Warnings: 2
project1.lpr(20,1) Warning: "crtbeginS.o" not found, this will probably 
cause a linking failure
project1.lpr(20,1) Warning: "crtendS.o" not found, this will probably 
cause a linking failure

project1.lpr(20,1) Error: Error while linking

A forum search search suggested checking the path in /etc/fpc.cfg:

# path to the gcclib
#ifdef cpui386
-Fl/usr/lib/gcc/x86_64-redhat-linux/4.8.3/32
#endif
#ifdef cpux86_64
-Fl/usr/lib/gcc/x86_64-redhat-linux/4.8.3
#endif


eg. my current Fedora 26 have
/usr/lib/gcc/x86_64-redhat-linux/7
/usr/lib/gcc/x86_64-redhat-linux/7/32
so just change fpc.cfg according to your gcc dir.
In any case warning about crtbeginS.o and crtendS.o won't break linking 
stage, something else is missing.


--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] ll 1.8.0 compiles fail with "Error while linking"

2018-02-11 Thread Tom Lisjac via Lazarus
Thanks Zeljke, Péter and Mattias.

Plenty of space on all three OS'es and I installed all the dependencies
that the rpm's (from sourceforge) required.

I've upgraded the Fedora 19 install many times without issues. This is the
error after upgrading to 1.8.0 when compiling a blank form or the IDE from
the ide:

Build IDE: Exit code 512, Errors: 1
[lazarus] Error 1
[idepkg] Error 2
make: *** [idepkg] Error 2
lazarus.pp(161,1) Error: Error while linking

It was originally the same on a new Fedora 23, but booted the VM up again
today and now see this with a blank form compile:

Compile Project, Target: /home/user/tmp/project1: Exit code 256, Errors: 1,
Warnings: 2
project1.lpr(20,1) Warning: "crtbeginS.o" not found, this will probably
cause a linking failure
project1.lpr(20,1) Warning: "crtendS.o" not found, this will probably cause
a linking failure
project1.lpr(20,1) Error: Error while linking

A forum search search suggested checking the path in /etc/fpc.cfg:

# path to the gcclib
#ifdef cpui386
-Fl/usr/lib/gcc/x86_64-redhat-linux/4.8.3/32
#endif
#ifdef cpux86_64
-Fl/usr/lib/gcc/x86_64-redhat-linux/4.8.3
#endif

Both are correct on Fedora 19 as I can see crtbeginS.o and crtendS.o in
those directories, but neither of those entries are present in the
/etc/fpc.cfg on Fedora 23, so it's still not clear what the problem is and
how to fix it.

Thanks,

-Tom
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] ll 1.8.0 compiles fail with "Error while linking"

2018-02-11 Thread Mattias Gaertner via Lazarus
On Sun, 11 Feb 2018 10:38:11 +0100
Péter Gábor via Lazarus  wrote:

>[...]
> >> Getting "Error while linking" when trying to compile the 1.8.0 ide or
> >> any test programs on an old Fedora 19 and fresh installs of Fedora 23

Compiling via make or via the IDE?

On Fedora the normal IDE needs these rpms:
gtk2-devel, glibc-devel, binutils, gdb

Have you tried installing the rpms from our website? They were built on
Fedora.

> >> and Centos 6.8. Reviewed some bugs and forum postings, but there
> >> doesn't seem to be a fix or workaround available.
> >>
> >> I'd like to get this working on an RPM based distro, but am wondering
> >> if I'd have better luck trying a debian flavor.
> >>
> >> Any suggestions would be appreciated.  

Usually there are more messages than just "Error while linking". Please
post them.


> > You're probably missing some devel packages.
> >
> > zeljko  
> I think zeljko is true... however low dispk space and a lot of other
> issues can result in "Error while linking":
> 
> You can list dependencies with the following command (in terminal):
> 
>   readelf -d ~/Projektek/Lazarus-trunk/lazarus | grep NEEDED
>   objdump -p ~/Projektek/Lazarus-trunk/lazarus | grep NEEDED
>   ldd ~/Projektek/Lazarus-trunk/lazarus

When linking the IDE fails there is no lazarus, is there?
Instead there should be link.res files.

 
> You can list only the missing dependencies with 'grep' command like this:
>   ldd ~/Projektek/Lazarus-trunk/lazarus | grep "not found"
> 
> The result of the above command hardly depends on the installed Lazarus
> components, and may change if you  install or uninstall some of the
> Lazarus components.

Mattias
 
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] ll 1.8.0 compiles fail with "Error while linking"

2018-02-11 Thread Péter Gábor via Lazarus


2018-02-11 09:35 keltezéssel, zeljko via Lazarus írta:
> On 02/10/2018 11:50 PM, Tom Lisjac via Lazarus wrote:
>> Hi all,
>>
>> Getting "Error while linking" when trying to compile the 1.8.0 ide or
>> any test programs on an old Fedora 19 and fresh installs of Fedora 23
>> and Centos 6.8. Reviewed some bugs and forum postings, but there
>> doesn't seem to be a fix or workaround available.
>>
>> I'd like to get this working on an RPM based distro, but am wondering
>> if I'd have better luck trying a debian flavor.
>>
>> Any suggestions would be appreciated.
>
> You're probably missing some devel packages.
>
> zeljko
I think zeljko is true... however low dispk space and a lot of other
issues can result in "Error while linking":

You can list dependencies with the following command (in terminal):

  readelf -d ~/Projektek/Lazarus-trunk/lazarus | grep NEEDED
  objdump -p ~/Projektek/Lazarus-trunk/lazarus | grep NEEDED
  ldd ~/Projektek/Lazarus-trunk/lazarus

You can list only the missing dependencies with 'grep' command like this:
  ldd ~/Projektek/Lazarus-trunk/lazarus | grep "not found"

The result of the above command hardly depends on the installed Lazarus
components, and may change if you  install or uninstall some of the
Lazarus components.

-- 
Péter Gábor
p...@freemail.hu


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] ll 1.8.0 compiles fail with "Error while linking"

2018-02-11 Thread zeljko via Lazarus

On 02/10/2018 11:50 PM, Tom Lisjac via Lazarus wrote:

Hi all,

Getting "Error while linking" when trying to compile the 1.8.0 ide or 
any test programs on an old Fedora 19 and fresh installs of Fedora 23 
and Centos 6.8. Reviewed some bugs and forum postings, but there doesn't 
seem to be a fix or workaround available.


I'd like to get this working on an RPM based distro, but am wondering if 
I'd have better luck trying a debian flavor.


Any suggestions would be appreciated.


You're probably missing some devel packages.

zeljko
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] ll 1.8.0 compiles fail with "Error while linking"

2018-02-10 Thread Michael Van Canneyt via Lazarus



On Sat, 10 Feb 2018, Tom Lisjac via Lazarus wrote:


Hi all,

Getting "Error while linking" when trying to compile the 1.8.0 ide or any
test programs on an old Fedora 19 and fresh installs of Fedora 23 and
Centos 6.8. Reviewed some bugs and forum postings, but there doesn't seem
to be a fix or workaround available.

I'd like to get this working on an RPM based distro, but am wondering if
I'd have better luck trying a debian flavor.

Any suggestions would be appreciated.


Can you provide more output ?
'Error while linking' is not much to go on. 
to be able to diagnose, a little more would be good...


Michael.
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] ll 1.8.0 compiles fail with "Error while linking"

2018-02-10 Thread Tom Lisjac via Lazarus
Hi all,

Getting "Error while linking" when trying to compile the 1.8.0 ide or any
test programs on an old Fedora 19 and fresh installs of Fedora 23 and
Centos 6.8. Reviewed some bugs and forum postings, but there doesn't seem
to be a fix or workaround available.

I'd like to get this working on an RPM based distro, but am wondering if
I'd have better luck trying a debian flavor.

Any suggestions would be appreciated.

Thanks,

-Tom
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus