Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-08

Files have wrong owner, root... making build lazarus impossible.

7 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Peter E Williams

Hi All,

I am using Linux Ubuntu 10.04 LTS with latest lazarus (as installed via the Ubuntu Software Centre). Today I removed Lazarus and did a clean reinstall. I am now unable to do a clean build. See below:

"LCL" completed
"Package Registration" completed
"IDE Interface" completed
"SynEdit" completed
"CodeTools" completed
/usr/lib/lazarus/0.9.28.2/examples/hello.pp(31,1) Error: Can't create object file: units/i386-linux/hello.o
/usr/lib/lazarus/0.9.28.2/examples/hello.pp(31,1) Fatal: Can't create object units/i386-linux/hello.o

The problem is with the properties of the files such as hello.pp being owned by 'root' owner. What is the correct way for me to correct this. I would assume that either I need to copy the files or change the owner.

Without doing this I am unable to build lazarus ... making it not very useful.

Best Regards,
PEW
Hobart, Tasmania, Australia

Proudly developing Quality Cross Platform Open Source Games Since 1970 with a Commodore PET 4016 with 16 KRAM http://pews-freeware-games.org (<--- brand new) -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-hello.pp Properties.png Type: image/png Size: 26422 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100830/5244426a/attachment-0001.png>

Reply by email

Frank Church
to Peter E Williams

2010/8/29 Peter E Williams

Show quoted text 24 lines
Hi All, I am using Linux Ubuntu 10.04 LTS with latest lazarus (as installed via the Ubuntu Software Centre). Today I removed Lazarus and did a clean reinstall. I am now unable to do a clean build. See below: "LCL" completed "Package Registration" completed "IDE Interface" completed "SynEdit" completed "CodeTools" completed /usr/lib/lazarus/0.9.28.2/examples/hello.pp(31,1)<http://0.9.28.2/examples/hello.pp%2831,1%29>Error: Can't create object file: units/i386-linux/hello.o /usr/lib/lazarus/0.9.28.2/examples/hello.pp(31,1)<http://0.9.28.2/examples/hello.pp%2831,1%29>Fatal: Can't create object units/i386-linux/hello.o The problem is with the properties of the files such as hello.pp being owned by 'root' owner. What is the correct way for me to correct this. I would assume that either I need to copy the files or change the owner. Without doing this I am unable to build lazarus ... making it not very useful.

This seems to be more of a Linux question than a Lazarus one. You should probably run the build as root or a sudo user, or add youself to a group with write permissions to the necessary folders.

Another option is build it in under your own account, and change all the folders to a directory in your account.

Hang in there someone - who knows more will soon be around to help you.

Show quoted text 16 lines
Best Regards, PEW Hobart, Tasmania, Australia -- Proudly developing Quality Cross Platform Open Source Games Since 1970 with a Commodore PET 4016 with 16 KRAM http://pews-freeware-games.org (<--- brand new) -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100830/a19b5d56/attachment.html>

Reply by email

Vincent Snijders
to Peter E Williams: I am using Linux Ubuntu 10.04 LTS with latest lazarus (as installed via the Ubuntu…

2010/8/29 Peter E Williams :

Show quoted text 22 lines
Hi All, I am using Linux Ubuntu 10.04 LTS with latest lazarus (as installed via the Ubuntu Software Centre). Today I removed Lazarus and did a clean reinstall. I am now unable to do a clean build. See below: "LCL" completed "Package Registration" completed "IDE Interface" completed "SynEdit" completed "CodeTools" completed /usr/lib/lazarus/0.9.28.2/examples/hello.pp(31,1) Error: Can't create object file: units/i386-linux/hello.o /usr/lib/lazarus/0.9.28.2/examples/hello.pp(31,1) Fatal: Can't create object units/i386-linux/hello.o The problem is with the properties of the files such as hello.pp being owned by 'root' owner. What is the correct way for me to correct this. I would assume that either I need to copy the files or change the owner. Without doing this I am unable to build lazarus ... making it not very useful.

You should not build the examples, so disabled that option the configure builds lazarus dialog.

If you want to try an example, copy its sources to somewhere in your home directory and compile from there.

Vincent

Reply by email

Juha Manninen gmail
to Peter E Williams: I am using Linux Ubuntu 10.04 LTS with latest lazarus (as installed via the Ubuntu…

On Monday 30 August 2010 00:36:14 Peter E Williams wrote: ...

Show quoted text 9 lines
/usr/lib/lazarus/0.9.28.2/examples/hello.pp(31,1) Fatal: Can't create object units/i386-linux/hello.o The problem is with the properties of the files such as hello.pp being owned by 'root' owner. What is the correct way for me to correct this. I would assume that either I need to copy the files or change the owner. Without doing this I am unable to build lazarus ... making it not very useful.

You don't need to build the examples when you rebuild Lazarus. So, in Configure Build Lazarus, on Advanced Build Options tab set Examples to None.

If I remember right, Lazarus builds itself to your (writable) home directory if there is no write access for the installation directory.

This all is not very intuitive. I even made a big patch for the Configure Build Lazarus dialog which made it more intuitive but it was not applied and is forgotten now I guess.

Now I am almost used to this weird looking dialog like every other lazarus developer is. I am also building Lazarus trunk version in my home dir (with write access) just like other lazarus developers do.

This issue should be addressed later because Lazarus is not built only by the (hard-)core Lazarus development team but also by everybody who installs a package for it.

Juha

Reply by email

Maxim Ganetsky
to Juha Manninen gmail

30.08.2010 12:15, Juha Manninen (gmail) ?????:

This all is not very intuitive. I even made a big patch for the Configure Build Lazarus dialog which made it more intuitive but it was not applied and is forgotten now I guess.

Is it in Mantis?

Show quoted text 7 lines
Now I am almost used to this weird looking dialog like every other lazarus developer is. I am also building Lazarus trunk version in my home dir (with write access) just like other lazarus developers do. This issue should be addressed later because Lazarus is not built only by the (hard-)core Lazarus development team but also by everybody who installs a package for it.
Best regards, Maxim Ganetsky mailto:

Reply by email

Juha Manninen gmail
to Maxim Ganetsky
Maxim Ganetsky wrote
Is it in Mantis?

Yes. Issue #15336: "Build Profiles for Configure "Build Lazarus" dialog" from December last year.
I used it myself for some time but then got tired keeping it in sync with trunk. Now it is so old it probably doesn't work against current trunk.

The build profiles are handy. I got positive feedback from many people and nobody was really agaist it after the UI was tweaked. Still it was never applied which seems to be fate of many patches.

I can try to "rebase" it to current trunk if you want. I would use git which is said to be good in solving conflicts between code versions.

Juha

Reply by email

Maxim Ganetsky
to Juha Manninen gmail

30.08.2010 22:33, Juha Manninen (gmail) ?????:

I can try to "rebase" it to current trunk if you want. I would use git which is said to be good in solving conflicts between code versions.

This would be good, it should be in trunk IMO.

Best regards, Maxim Ganetsky mailto:

Reply by email