Sign in Join

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

Mailing lists / lazarus / 1999-07

Unrelated to current discussion, but soon to be important...

10 messages · 6 people ·

Reply by email Subscribe to this list Your subscription

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

Cliff Baeseman

guess we do need to look at this..

Cliff

Earlier message 37 lines
-----Original Message----- From: Jeffrey A. Wormsley To: Date: Wednesday, July 21, 1999 5:54 PM Subject: [lazarus] Unrelated to current discussion, but soon to be important... >I am doing what work I can under Win32 (for a little while longer, just got >my RH6 CD) and I run into this problem constantly... > >The command lines built by the make files frequently exceed the command >line length limit for win32. The worst offender so far is the hello_world >test app. Example: > >ppc386.exe -Twin32 -Fue:/pp/source/rtl/win32 -Fue:/pp/source/units/win32 >-Fu.. >/fcl/win32 -Fu../rtl -Fu../gtk -Fu../lazarus -FE. -di386 hello_world.pp >Free Pascal Compiler version 0.99.13 [1999/07/16] for i386 >Copyright (c) 1993-98 by Florian Klaempfl >Target OS: Win32 for i386 >Compiling h >Fatal: Can't open file h >make.exe: *** [hello_world.exe] Error 1 > >Notice the "Compiling h" line. The "ello_world.pp" part is completely >clipped off. > >Is there anything that can be done about this? > >Jeff. > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email

Unknown author
to Jeffrey A. Wormsley: can I downloaded what I think you are refering to from the following link.…
Jeffrey A. Wormsley wrote 13 lines
On 7/22/99, at 9:39 AM, Michael Van Canneyt wrote: >Luckily, the solution is simple: >If you use the mingw32 version of make.exe, there is no problem, since it can >handle command-lines of more than 128 characters. I downloaded what I think you are refering to from the following link. ftp://agnes.dida.physik.uni-essen.de/home/janjaap/mingw32/newnew/ When I tried to use it, it complained that the -T parameter was illegal.

?? make or the compiler ?

Also, why does make have anything to do with it? Isn't it ppc386 that reads the command line?

I am not sure that Go32v2 make constructs command-lines longer than 128 characters.

Michael.

Reply by email

Jeffrey A. Wormsley
> When I tried to use it, it complained that the -T parameter was illegal. ?? make or the compiler ?

I believe it was the compiler, because that version of make put a space between the -T and the win32.

Show quoted text 5 lines
> Also, why does make have anything to do with it? Isn't it ppc386 that > reads the command line? I am not sure that Go32v2 make constructs command-lines longer than 128 characters.

The appear on the screen, but ppc386 complains about whatever is on the end of the line. As in the line ends with hello_world.pp and ppc386 says it can't find the file h or in lazarus, it ends with lazarus.pp but ppc386 says it can't find lazarus.p and so on...

I have a fix ftom Payne that should hit the list soon, but I found out for some reason -that- doesn't work to make the FCL. The workaround is trivial though.

Jeff.

Reply by email

Jeff Wormsley
to Michael Van Canneyt: You are not the first to notice this problem. Luckily, the solution is simple: If you use…
Michael Van Canneyt wrote 10 lines
On Wed, 21 Jul 1999, Cliff Baeseman wrote: > guess we do need to look at this.. > You are not the first to notice this problem. Luckily, the solution is simple: If you use the mingw32 version of make.exe, there is no problem, since it can handle command-lines of more than 128 characters.

Any idea where to get this? Is it a shell? I don't think the cygwin had the problem either, but I wasn't really interested in running bash on win32. I had thought the 128 char command line was a limitation of the DOS box, and couldn't be overcome. I know that most DOS programs that hit this wall overcame it by passing parameters in a file instead of on the command line. Does make support this ability?

Jeff.

Reply by email

Michael Van Canneyt
to Jeff Wormsley
Jeff Wormsley wrote 19 lines
On 7/22/99, at 9:39 AM, Michael Van Canneyt wrote: >On Wed, 21 Jul 1999, Cliff Baeseman wrote: > >> guess we do need to look at this.. >> > >You are not the first to notice this problem. > >Luckily, the solution is simple: >If you use the mingw32 version of make.exe, there is no problem, since it can >handle command-lines of more than 128 characters. Any idea where to get this? Is it a shell? I don't think the cygwin had the problem either, but I wasn't really interested in running bash on win32. I had thought the 128 char command line was a limitation of the DOS box, and couldn't be overcome. I know that most DOS programs that hit this wall overcame it by passing parameters in a file instead of on the command line. Does make support this ability?

No, I meant that the make command itself can handle more than 128 chars. The shell cannot, except I think in batch files.

In any case I use the 'Unix for NT utilies' which come with a ksh kind of shell, it also handles >128 chars on the command line.

Michael.

Reply by email

Jeffrey A. Wormsley

I am doing what work I can under Win32 (for a little while longer, just got my RH6 CD) and I run into this problem constantly...

The command lines built by the make files frequently exceed the command line length limit for win32. The worst offender so far is the hello_world test app. Example:

ppc386.exe -Twin32 -Fue:/pp/source/rtl/win32 -Fue:/pp/source/units/win32 -Fu..
/fcl/win32 -Fu../rtl -Fu../gtk -Fu../lazarus -FE. -di386 hello_world.pp Free Pascal Compiler version 0.99.13 [1999/07/16] for i386 Copyright (c) 1993-98 by Florian Klaempfl
Target OS: Win32 for i386
Compiling h
Fatal: Can't open file h
make.exe: *** [hello_world.exe] Error 1

Notice the "Compiling h" line. The "ello_world.pp" part is completely clipped off.

Is there anything that can be done about this?

Jeff.

Reply by email

Jeffrey A. Wormsley
Michael Van Canneyt wrote
Luckily, the solution is simple: If you use the mingw32 version of make.exe, there is no problem, since it

can

handle command-lines of more than 128 characters.

I downloaded what I think you are refering to from the following link.

ftp://agnes.dida.physik.uni-essen.de/home/janjaap/mingw32/newnew/

When I tried to use it, it complained that the -T parameter was illegal. Also, why does make have anything to do with it? Isn't it ppc386 that reads the command line?

Jeff.

Reply by email

Michael Van Canneyt
to Cliff Baeseman: guess we do need to look at this.. Cliff -----Original Message----- From: Jeffrey A.…
Cliff Baeseman wrote
guess we do need to look at this..

You are not the first to notice this problem.

Luckily, the solution is simple:
If you use the mingw32 version of make.exe, there is no problem, since it can handle command-lines of more than 128 characters.

Michael.

Show quoted text 44 lines
Cliff -----Original Message----- From: Jeffrey A. Wormsley To: Date: Wednesday, July 21, 1999 5:54 PM Subject: [lazarus] Unrelated to current discussion, but soon to be important... >I am doing what work I can under Win32 (for a little while longer, just got >my RH6 CD) and I run into this problem constantly... > >The command lines built by the make files frequently exceed the command >line length limit for win32. The worst offender so far is the hello_world >test app. Example: > >ppc386.exe -Twin32 -Fue:/pp/source/rtl/win32 -Fue:/pp/source/units/win32 >-Fu.. >/fcl/win32 -Fu../rtl -Fu../gtk -Fu../lazarus -FE. -di386 hello_world.pp >Free Pascal Compiler version 0.99.13 [1999/07/16] for i386 >Copyright (c) 1993-98 by Florian Klaempfl >Target OS: Win32 for i386 >Compiling h >Fatal: Can't open file h >make.exe: *** [hello_world.exe] Error 1 > >Notice the "Compiling h" line. The "ello_world.pp" part is completely >clipped off. > >Is there anything that can be done about this? > >Jeff. > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus > _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

P Jean dit Bailleul
to Jeffrey A. Wormsley: I am doing what work I can under Win32 (for a little while longer, just got my RH6 CD)…
you wrote 23 lines
I am doing what work I can under Win32 (for a little while longer, just got my RH6 CD) and I run into this problem constantly... The command lines built by the make files frequently exceed the command line length limit for win32. The worst offender so far is the hello_world test app. Example: ppc386.exe -Twin32 -Fue:/pp/source/rtl/win32 -Fue:/pp/source/units/win32 -Fu.. /fcl/win32 -Fu../rtl -Fu../gtk -Fu../lazarus -FE. -di386 hello_world.pp Free Pascal Compiler version 0.99.13 [1999/07/16] for i386 Copyright (c) 1993-98 by Florian Klaempfl Target OS: Win32 for i386 Compiling h Fatal: Can't open file h make.exe: *** [hello_world.exe] Error 1 Notice the "Compiling h" line. The "ello_world.pp" part is completely clipped off. Is there anything that can be done about this? Jeff.

Under NT, put all the option in a cmd file, then
PPC386 <MyCmd.cmd FileToCompile.pp
should work. I think this can also work with Win 4.x (9..), but i've never try (I don't have any of them).

JDB

les opinions et recommandations exprim�es dans ce courrier sont ceux de l'auteur, ils ne sont pas n�cessairement endoss�s par Agritulture et AgroAlimentaire Canada
-------------------------------------------------------------- Philippe JEAN DIT BAILLEUL
Agriculture & AgroAlimentaire Canada - Agriculture & AgriFood Canada Email :
Web : Http://res.agr.ca/swinenet/porcexpert/jeanditbailleulp Tel : +1 (819) 565 9174 poste 251
Fax : +1 (819) 564 5507

Reply by email

Jeff Wormsley
to P Jean dit Bailleul
P Jean dit Bailleul wrote 6 lines
>Jeff. Under NT, put all the option in a cmd file, then PPC386 <MyCmd.cmd FileToCompile.pp should work. I think this can also work with Win 4.x (9..), but i've never try (I don't have any of them).

The problem is getting make to build the cmd file and then call ppc386 with it. I would rather not bypass make if possible, as if it changes for things like new dependencies, my batch version won't, and I'll be stuck doing this all over again. How to do this in a way that won't break anyone else is a challenge for tonight.

Jeff.

Reply by email