Seth Grover | 9 Feb 23:17
Picon

lazbuild and cross-compiling

I'm not sure if this is a bug, or if I'm just not doing it right...

I am running in a 64-bit Linux environment with FPC 2.4.0 with
cross-compiling set up (ie., I have both ppcx64 and ppc386 installed,
FPC's default is to use ppx64) If I save a project (the default new
application with the single empty form is fine for this example) and I
set the Target CPU to i386, and do a "Run | Build All" from within
Lazarus, the file that's generated is a 32-bit application, which is
correct.

However, if I do "lazbuild project1.lpi" I can see from the command
line that's printed out and from examining the resultant file that
it's a 64-bit application. If I do "lazbuild --cpu=i386" it works
correctly, but lazbuild's help says "--cpu" is used to "orverride the
project cpu." Since my .lpi file contains <TargetCPU Value="i386"/>
shouldn't lazbuild figure it out and do the right thing (build a
32-bit application) by default?

-SG

--
This email is fiction. Any resemblance to actual events
or persons living or dead is purely coincidental.

Seth Grover
sethdgrover[at]gmail[dot]com

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Osvaldo Filho | 9 Feb 13:38
Picon

Unable to install components

Ubuntu 9.10 64
Lazarus svn
FPC 2.4.1

Problems:
- Need permission on /usr/share/lazarus
/usr/share/lazarus/components/codetools/codetoolsstrconsts.pas(280)
Error: Writing Resource String Table file:
/usr/share/lazarus/components/codetools/units/x86_64-linux/codetoolsstrconsts.rst

/usr/share/lazarus/components/fpcunit/ide/testcaseopts.pas(41,1)
Error: Can't create object file:
/usr/share/lazarus/components/fpcunit/ide/lib/x86_64-linux/testcaseopts.o

Error: Can't create object file:
/usr/share/lazarus/components/printers/lib/x86_64-linux/gtk2/cupsdyn.o

- Why ?
/usr/share/lazarus/ide/lazarus.pp(1,1) Fatal: Can't find unit
codetools used by Lazarus

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

ik | 9 Feb 13:49
Picon

Re: Unable to install components


On Tue, Feb 9, 2010 at 14:38, Osvaldo Filho <arquivostcf <at> gmail.com> wrote:
Ubuntu 9.10 64
Lazarus svn
FPC 2.4.1

Problems:
- Need permission on /usr/share/lazarus
/usr/share/lazarus/components/codetools/codetoolsstrconsts.pas(280)
Error: Writing Resource String Table file:
/usr/share/lazarus/components/codetools/units/x86_64-linux/codetoolsstrconsts.rst

/usr/share/lazarus/components/fpcunit/ide/testcaseopts.pas(41,1)
Error: Can't create object file:
/usr/share/lazarus/components/fpcunit/ide/lib/x86_64-linux/testcaseopts.o

Error: Can't create object file:
/usr/share/lazarus/components/printers/lib/x86_64-linux/gtk2/cupsdyn.o

Unless you change permissions to /usr/share/lazarus you will be unable to compile lazarus on that location unless you are root .
 


- Why ?
/usr/share/lazarus/ide/lazarus.pp(1,1) Fatal: Can't find unit
codetools used by Lazarus

I guess it because it was never compiled to an objct/unit ...
 

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Mattias Gärtner | 9 Feb 14:34
Picon

Re: Unable to install components

Zitat von ik <idokan <at> gmail.com>:

> On Tue, Feb 9, 2010 at 14:38, Osvaldo Filho <arquivostcf <at> gmail.com> wrote:
>
>> Ubuntu 9.10 64
>> Lazarus svn
>> FPC 2.4.1
>>
>> Problems:
>> - Need permission on /usr/share/lazarus
>> /usr/share/lazarus/components/codetools/codetoolsstrconsts.pas(280)
>> Error: Writing Resource String Table file:
>>
>> /usr/share/lazarus/components/codetools/units/x86_64-linux/codetoolsstrconsts.rst
>>
>> /usr/share/lazarus/components/fpcunit/ide/testcaseopts.pas(41,1)
>> Error: Can't create object file:
>> /usr/share/lazarus/components/fpcunit/ide/lib/x86_64-linux/testcaseopts.o
>>
>> Error: Can't create object file:
>> /usr/share/lazarus/components/printers/lib/x86_64-linux/gtk2/cupsdyn.o
>>
>
> Unless you change permissions to /usr/share/lazarus you will be unable to
> compile lazarus on that location unless you are root .

lazarus checks if the output directory is writable. If it is not  
writable it uses ~/.lazarus/lib/≤packagename>/...

Maybe you already changed the permissions, but then compiled as root?  
In that case some files were created as root and can not be  
overwritten as normal user.

Please fix the permissions of /usr/share/lazarus (including sub  
directories). All files there should be owned by root and not writable  
by normal users.

If you use lazarus svn, I recommend to put the svn into your home  
directory (owned by your account). Otherwise your error reports will  
easily confuse people.

>> - Why ?
>> /usr/share/lazarus/ide/lazarus.pp(1,1) Fatal: Can't find unit
>> codetools used by Lazarus
>>
>
> I guess it because it was never compiled to an objct/unit ...

Mattias

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Osvaldo Filho | 9 Feb 15:50
Picon

Re: Unable to install components

Thanks Mattias.
But why i have this:

"/usr/share/lazarus/ide/lazarus.pp(1,1) Fatal: Can't find unit
codetools used by Lazarus"

2010/2/9 Mattias Gärtner <nc-gaertnma <at> netcologne.de>:

> Zitat von ik <idokan <at> gmail.com>: > >> On Tue, Feb 9, 2010 at 14:38, Osvaldo Filho <arquivostcf <at> gmail.com> wrote: >> >>> Ubuntu 9.10 64 >>> Lazarus svn >>> FPC 2.4.1 >>> >>> Problems: >>> - Need permission on /usr/share/lazarus >>> /usr/share/lazarus/components/codetools/codetoolsstrconsts.pas(280) >>> Error: Writing Resource String Table file: >>> >>> >>> /usr/share/lazarus/components/codetools/units/x86_64-linux/codetoolsstrconsts.rst >>> >>> /usr/share/lazarus/components/fpcunit/ide/testcaseopts.pas(41,1) >>> Error: Can't create object file: >>> /usr/share/lazarus/components/fpcunit/ide/lib/x86_64-linux/testcaseopts.o >>> >>> Error: Can't create object file: >>> /usr/share/lazarus/components/printers/lib/x86_64-linux/gtk2/cupsdyn.o >>> >> >> Unless you change permissions to /usr/share/lazarus you will be unable to >> compile lazarus on that location unless you are root . > > lazarus checks if the output directory is writable. If it is not writable it > uses ~/.lazarus/lib/≤packagename>/... > > Maybe you already changed the permissions, but then compiled as root? In > that case some files were created as root and can not be overwritten as > normal user. > > Please fix the permissions of /usr/share/lazarus (including sub > directories). All files there should be owned by root and not writable by > normal users. > > If you use lazarus svn, I recommend to put the svn into your home directory > (owned by your account). Otherwise your error reports will easily confuse > people. > > >>> - Why ? >>> /usr/share/lazarus/ide/lazarus.pp(1,1) Fatal: Can't find unit >>> codetools used by Lazarus >>> >> >> I guess it because it was never compiled to an objct/unit ... > > > Mattias > > > > > -- > _______________________________________________ > Lazarus mailing list > Lazarus <at> lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >
-- _______________________________________________ Lazarus mailing list Lazarus <at> lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Mattias Gärtner | 9 Feb 16:25
Picon

Re: Unable to install components

Zitat von Osvaldo Filho <arquivostcf <at> gmail.com>:


> Thanks Mattias. > But why i have this: > > "/usr/share/lazarus/ide/lazarus.pp(1,1) Fatal: Can't find unit > codetools used by Lazarus"
Because FPC didn't found a proper codetools.ppu. This can mean: - it is not there - it is there, but it is only a left over from a broken compile I hope someday fpc will report two different errors messages for this. The IDE "simply" calls 'make' with some flags. You can start the IDE in a terminal and see what it does. If you use svn, I recommend to use your home directory (e.g. /home/you/pascal/lazarus). Then you won't mess up your linux package system and you can easily clean up if something went wrong. Don't forget to set the lazarus directory in the environment options. Mattias -- _______________________________________________ Lazarus mailing list Lazarus <at> lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Flávio Etrusco | 9 Feb 00:22
Picon

Announcing releases on LWN

Hello,

maybe it's a bit late to bring this issue (for the current releases),
but is there a reason there was no announcements for the later FPC
releases and no Lazarus announcements ever?
I think LWN is an important channel to divulging OSS projects.

Best regards,
Flávio

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Vincent Snijders | 9 Feb 08:05
Picon
Favicon

Re: Announcing releases on LWN

Flávio Etrusco schreef:

> Hello, > > maybe it's a bit late to bring this issue (for the current releases), > but is there a reason there was no announcements for the later FPC > releases and no Lazarus announcements ever? > I think LWN is an important channel to divulging OSS projects. >
What is LWN? Vincent -- _______________________________________________ Lazarus mailing list Lazarus <at> lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Flávio Etrusco | 9 Feb 14:11
Picon

Re: Announcing releases on LWN

On Tue, Feb 9, 2010 at 4:05 AM, Vincent Snijders
<vsnijders <at> vodafonevast.nl> wrote:

> Flávio Etrusco schreef: >> >> Hello, >> >> maybe it's a bit late to bring this issue (for the current releases), >> but is there a reason there was no announcements for the later FPC >> releases and no Lazarus announcements ever? >> I think LWN is an important channel to divulging OSS projects. >> > > What is LWN? > > Vincent >
I could swear I had written in the message "Linux Weekly News" somewhere :-S Best regards, Flávio -- _______________________________________________ Lazarus mailing list Lazarus <at> lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Vincent Snijders | 9 Feb 18:36
Picon
Favicon

Re: Announcing releases on LWN

Flávio Etrusco schreef:

> On Tue, Feb 9, 2010 at 4:05 AM, Vincent Snijders > <vsnijders <at> vodafonevast.nl> wrote: >> Flávio Etrusco schreef: >>> Hello, >>> >>> maybe it's a bit late to bring this issue (for the current releases), >>> but is there a reason there was no announcements for the later FPC >>> releases and no Lazarus announcements ever? >>> I think LWN is an important channel to divulging OSS projects. >>> >> What is LWN? >> >> Vincent >> > > I could swear I had written in the message "Linux Weekly News" somewhere :-S
Maybe you have to ask LNW? I don't know what we can do, so that LNW forwards our release announcements. Vincent -- _______________________________________________ Lazarus mailing list Lazarus <at> lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Flávio Etrusco | 9 Feb 00:12
Picon

OT: SourceForge Removes Blanket Blocking

http://yro.slashdot.org/story/10/02/08/1620238/SourceForge-Removes-Blanket-Blocking?art_pos=8

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Gmane