Re: [fpc-devel] OpenBSD compiler

2011-10-11 Thread Marco van de Voort
Building a snapshot now works fine, shared linking and IDE inclusive. The IDE isn't built standardly yet though, so not in the snapshot I uploaded an initial snapshot to ftp://ftp.freepascal.org/pub/fpc/snapshot/v27/i386-openbsd/ ___ fpc-devel maill

Re: [fpc-devel] OpenBSD compiler

2011-10-11 Thread Marco van de Voort
In our previous episode, Pierre Free Pascal said: > You were right, it didn't help much: > http://www.freepascal.org/testsuite/cgi-bin/testsuite.cgi?os=7&cpu=8&version > =0&date=&submitter=&machine=&comment=&cond= > > > 2) Did you test with elf binwriter ? > It took me a long time to understand

RE: [fpc-devel] OpenBSD compiler

2011-10-10 Thread Pierre Free Pascal
> -Message d'origine- > De : fpc-devel-boun...@lists.freepascal.org [mailto:fpc-devel- > boun...@lists.freepascal.org] De la part de Marco van de Voort > Envoyé : lundi 10 octobre 2011 08:52 > À : FPC developers' list > Objet : Re: [fpc-devel] OpenBSD c

Re: [fpc-devel] OpenBSD compiler

2011-10-09 Thread Marco van de Voort
In our previous episode, Pierre Free Pascal said: > > (*) FreeBSD's pipe command contains an optimization. The array is not > passed > > to the syscall, and the results are stored in regs, not in the array. The > > wrapper code stores the regs in the array. > The current FreeBSD code is i386/x86_

RE: [fpc-devel] OpenBSD compiler

2011-10-09 Thread Pierre Free Pascal
> > ? I tested if getdirentries35 works OK, > > I was able to do a gmake cycle on a 4.4 openbsd. > > > > Committed in 19423. > > For me the one before this already worked. > > I tried a "make all", and that failed in the fpmake of fcl-base on the pipe > syscall. That's a know gotcha that I know

RE: [fpc-devel] OpenBSD compiler

2011-10-09 Thread Pierre Free Pascal
> Great!. I did an svn up, then gmake again, but the problem persists. What > gmake options did you use?. > > Maybe you should upload the new bootstrapping compiler > to ftp://ftp.freepascal.org/pub/fpc/contrib/ I added a i386 openbsd ppc386 executable in: ftp://ftp.freepascal.org/pub/fpc/snap

Re: [fpc-devel] OpenBSD compiler

2011-10-09 Thread Marco van de Voort
In our previous episode, Leonardo M. Ram? said: > Problem confirmed: > ? I use Sys call number 312 for getdirentries > but for 4.4, the last system call is 310. > > ? I tested if getdirentries35 works OK, > I was able to do a gmake cycle on a 4.4 openbsd. > > Committed in 19423. For me the one b

Re: [fpc-devel] OpenBSD compiler

2011-10-09 Thread Leonardo M . Ramé
- Original Message - > From: Pierre Free Pascal > To: 'Leonardo M. Ramé' ; 'FPC developers' list' > > Cc: > Sent: Sunday, October 9, 2011 12:37 PM > Subject: RE: [fpc-devel] OpenBSD compiler > >> /bin/rm -f fpcmade.i386-openbsd Pa

RE: [fpc-devel] OpenBSD compiler

2011-10-09 Thread Pierre Free Pascal
> /bin/rm -f fpcmade.i386-openbsd Package.fpc ppas.sh script.res link.res > /bin/rm -f *.s *_ppas.sh > gmake[7]: Leaving directory `/var/home/leonardo/fpc/rtl/openbsd' > gmake[6]: Leaving directory `/var/home/leonardo/fpc/rtl' > gmake -C /var/home/leonardo/fpc/rtl 'OPT=' all > gmake[6]: Entering di

Re: [fpc-devel] OpenBSD compiler

2011-10-08 Thread Leonardo M . Ramé
- Original Message - > From: Marco van de Voort > To: Leonardo M. Ramé > Cc: > Sent: Saturday, October 8, 2011 5:06 PM > Subject: Re: [fpc-devel] OpenBSD compiler > > In our previous episode, Leonardo M. Ram? said: >>   Pierre, glad to hear that. What compil

RE: [fpc-devel] OpenBSD compiler

2011-10-08 Thread Pierre Free Pascal
> Pierre, glad to hear that. What compiler did you use to bootstrap?. I used a mingw compiled Openbsd Binutils source (available in */usr/src/gnu/usr.bin/Binutils/binutils on a BSD machine with source installed). (with small mods to > I've downloaded one from FreePascal's ftp, but it gives m

Re: [fpc-devel] OpenBSD compiler

2011-10-08 Thread Marco van de Voort
In our previous episode, Leonardo M. Ram? said: > Pierre, glad to hear that. What compiler did you use to bootstrap?. > I've downloaded one from FreePascal's ftp, but it gives me "Bad system call" > when I run it. As said, easiest is to use a linux binary. All three BSDs can run linux binaries

Re: [fpc-devel] OpenBSD compiler

2011-10-08 Thread Leonardo M . Ramé
> >From: Pierre Free Pascal >To: 'FPC developers' list' >Sent: Saturday, October 8, 2011 2:07 PM >Subject: RE: [fpc-devel] OpenBSD compiler > > > >> -Message d'origine- >> De : fpc-devel

RE: [fpc-devel] OpenBSD compiler

2011-10-08 Thread Pierre Free Pascal
> -Message d'origine- > De : fpc-devel-boun...@lists.freepascal.org [mailto:fpc-devel- > boun...@lists.freepascal.org] De la part de Marco van de Voort > Envoyé : vendredi 7 octobre 2011 23:53 > À : FPC developers' list > Objet : Re: [fpc-devel] OpenBSD c

Re: [fpc-devel] OpenBSD compiler

2011-10-07 Thread Marco van de Voort
In our previous episode, Pierre Free Pascal said: > The ones with compat are probably OK, No, they are old syscalls only kept for compatibility. That means you also have to use the corresponding old syscalls. I also think the getdents=getdirentries "alias" is not entirely correct. It is possible

RE: [fpc-devel] OpenBSD compiler

2011-10-07 Thread Pierre Free Pascal
, they seem to be inversed! I tried to cross-compile the compiler, but it crashes inside a fsearch call... Pierre > -Message d'origine- > De : fpc-devel-boun...@lists.freepascal.org [mailto:fpc-devel- > boun...@lists.freepascal.org] De la part de Marco van de Voort >

Re: [fpc-devel] OpenBSD compiler

2011-10-07 Thread Marco van de Voort
In our previous episode, Tomas Hajny said: > > Some status update after some play yesterday evening: > . > . > > 4. The next big crash is, as usual for a new port, in > > fexpand/expandfilename/readdir. > . > > I assume you probably meant FindFirst rather than FExpand/ExpandFileName, > right? F

Re: [fpc-devel] OpenBSD compiler

2011-10-07 Thread Tomas Hajny
On Fri, October 7, 2011 16:15, Marco van de Voort wrote: > In our previous episode, Marco van de Voort said: > > Some status update after some play yesterday evening: . . > 4. The next big crash is, as usual for a new port, in > fexpand/expandfilename/readdir. . . I assume you probably meant F

Re: [fpc-devel] OpenBSD compiler

2011-10-07 Thread Marco van de Voort
In our previous episode, Marco van de Voort said: Some status update after some play yesterday evening: 1. The commit from Pierre for the exit syscall seems to work. Exe's don't crash anymore. 2. Some other minor fixes for stat record (as of yet uncommitted, as I still have to check the many ifd

Re: [fpc-devel] OpenBSD compiler

2011-10-05 Thread Marco van de Voort
In our previous episode, Pierre Free Pascal said: > I tried to get i386-openbsd port up to date, I had a openbsd 4.8 VM lying around, so I tried my usual cross bootstrap routine (I'm lazy, you don't need crossbinutils on BSD systems since they can run the linux bootstrap compiler) What I did (pre

Re: [fpc-devel] OpenBSD compiler

2011-10-05 Thread Leonardo M . Ramé
>From: Pierre Free Pascal >To: 'Leonardo M. Ramé' ; 'FPC developers' list' > >Sent: Wednesday, October 5, 2011 7:32 AM >Subject: RE: [fpc-devel] OpenBSD compiler > > >  I tried to get i386-openbsd port up to

RE: [fpc-devel] OpenBSD compiler

2011-10-05 Thread Pierre Free Pascal
I tried to get i386-openbsd port up to date, using mingw cross Binutils that I compiled myself using openbsd sources. Should I add those to ftp? But I am stuck because I have a 64-bit OpenBSD virtual machine (and no room to add a i386 version on my machine) but all cross-compiled executa

Re: [fpc-devel] OpenBSD compiler

2011-10-05 Thread Jonas Maebe
On 05 Oct 2011, at 01:31, Leonardo M. Ramé wrote: Does anyone knows where can I find a bootstraping compiler for this platform?. There is none that is usable for current trunk, you have to cross- compile. Jonas___ fpc-devel maillist - fpc-dev