Recent

Author Topic: Error while linking (Ubuntu)  (Read 16445 times)

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: Error while linking (Ubuntu)
« Reply #30 on: December 25, 2017, 01:34:04 am »
Wait a minute -- isn't the fpc304 source code part of the installation/compiling process?
the source-code is not part of the (official) distribution in case the used *nix doesn't require it, as is with the rpm were all executables and units are pre-compiled.

Quote
And I'm afraid you will have to be clearer where and what/which binutils you mean!
You wish for me to explain how a compiler works ? The _exact_ binutil in this case seems to be ld-linker

Quote
I don't recollect having had this sort of problem before  :(
Then you can consider yourself a _very_ lucky person. As marcov mentioned, there does not exist binary compatibility between different *nix.

Quote
IOW it's a new one to me .....
As said, it can happen with _any_ release/distribution of whatever application. Unfortunately this time around it is with regards to your beloved compiler.

Just try to sit it out or follow advice or (and indeed i forgot that is also an option) follow dicepd's path.

It is simply a matter of the build-system used to create the package being more actualized than yours. Something that happens more often then you might perhaps think.
« Last Edit: December 25, 2017, 01:45:10 am by molly »

MikeFinch

  • Jr. Member
  • **
  • Posts: 79
Re: Error while linking (Ubuntu)
« Reply #31 on: December 28, 2017, 02:23:57 am »
Seems as if i will have to return to RC05 then?

mig-31

  • Sr. Member
  • ****
  • Posts: 305
Re: Error while linking (Ubuntu)
« Reply #32 on: December 28, 2017, 01:43:36 pm »
@MikeFinch

I am also a Mageia Linux user.

I'm successfully install Lazarus 1.8 on Mageia 6 like you, but received linking error.
As @dicepd mention read a bug report    https://bugs.freepascal.org/view.php?id=32251
 a do this
Code: Pascal  [Select][+][-]
  1.  
  2. Pierre Muller   (developer)
  3. 2017-12-13 13:29
  4.  
  5.         Could you test this file:
  6. ftp://ftp.freepascal.org/pub/fpc/dist/3.0.4/x86_64-linux/x86_64-linux-prt0-pre2.26-binutils.tar.gz [^]
  7.  
  8. Simply extract it at the base 3.0.4 installation directory,
  9. it contains the 4 files that are directly compiled using GNU assembler,
  10. but the version from the general tar installer, which was generated on
  11. a system with an old GNU binutils version.
  12.  
  13. Pierre
  14.  
  15.  
  16. muller@gcc67:~/pas/fpc-3.0.4$ tar -tvzf x86_64-linux-prt0-pre2.26-binutils.tar.gz
  17. -rw-r--r-- muller/muller 2224 2017-10-03 13:56 lib/fpc/3.0.4/units/x86_64-linux/rtl/cprt0.o
  18. -rw-r--r-- muller/muller 1880 2017-10-03 13:56 lib/fpc/3.0.4/units/x86_64-linux/rtl/dllprt0.o
  19. -rw-r--r-- muller/muller 2504 2017-10-03 13:56 lib/fpc/3.0.4/units/x86_64-linux/rtl/gprt0.o
  20. -rw-r--r-- muller/muller 1896 2017-10-03 13:56 lib/fpc/3.0.4/units/x86_64-linux/rtl/prt0.o
  21.  

After it you can build your projects.
Lazarus 2.2.6 - OpenSuse Leap 15.4, Mageia 8, CentOS 7

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: Error while linking (Ubuntu)
« Reply #33 on: December 28, 2017, 01:56:23 pm »
Seems as if i will have to return to RC05 then?
As already mentioned by me on the 23th (and above verified by user mig-31), use the archive from the mantis report and follow the instructions.

As user dicepd mentioned it might not be a good idea to update your binutils.

It is always possible to build the release yourself from sources.
« Last Edit: December 28, 2017, 02:03:05 pm by molly »

Thaddy

  • Hero Member
  • *****
  • Posts: 14215
  • Probably until I exterminate Putin.
Re: Error while linking (Ubuntu)
« Reply #34 on: December 28, 2017, 04:26:17 pm »
Which I did for him... and tested on ubuntu -armhf. See above.
Specialize a type, not a var.

MikeFinch

  • Jr. Member
  • **
  • Posts: 79
Re: Error while linking (Ubuntu)
« Reply #35 on: December 29, 2017, 10:57:00 pm »
@mig-31 : thanks a million; it worked of course!!

Also thanks to Handoko, Muller and the rest.

The only diff was I am /lib64/ rather than /lib/ and I changed from muller/muller to root/root.

Am I wrong using as root? My username is michael so perhaps michael/michael. Frankly I don't know why I am operating Lazarus as root; just a habit I suppose!

Again - Many Thanks to All. My Desktop is now fixed, so on to the laptop ...  ::)

MikeFinch

  • Jr. Member
  • **
  • Posts: 79
cannot find fcillaz
« Reply #36 on: May 22, 2018, 01:51:24 am »
Several months ago I had trouble using Lazarus 1.8.0 on Mageia 6. This was solved thank to Mr Muller.
Now I am having trouble compiling using L1.8.2 32bit on Windows!
I get the error :
"Cannot find system used by fcillaz of package FCL."
The identical error appears for both Windows 10 and 7.
Please help someone.

MikeFinch

  • Jr. Member
  • **
  • Posts: 79
Re: Error while linking (Ubuntu)
« Reply #37 on: May 23, 2018, 07:08:29 am »
Forget my last post ==>
A) it was fcllaz not fcillaz;
B) I had forgotten to set the TargetOS from Linux to, in my case, Windows32.
Oh dear! everything back to normal ...

Awesome Programmer

  • Sr. Member
  • ****
  • Posts: 451
  • Programming is FUN only when it works :)
    • Cool Technology
Re: Error while linking (Ubuntu)
« Reply #38 on: March 07, 2019, 09:56:46 pm »
Hello MikeFinch,

I tried Muller's solution, but unfortunately it didn't help at all.

I just recently installed the latest and the greatest of Lazarus 2.0.0 and fpc 3.0.4. And compiler keeps saying Error 1: Error While Blinking.

And I am trying to do this on Mageia 6 64 Bit version.
 :( :( :( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'(

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Error while linking (Ubuntu)
« Reply #39 on: March 07, 2019, 10:33:23 pm »
I'm not an admin but ...
This is your fourth post about this. Please, don't post in multiple threads (much less resuscitating old ones!) with the same problem; otherwise it's difficult to know whether an answer is already posted elsewhere.

Stick to one post in one thread and be patient.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

 

TinyPortal © 2005-2018