Compilation Error

595 views
Skip to first unread message

Vp

unread,
Aug 4, 2011, 4:55:05 AM8/4/11
to Harbour Users
Hi,

I downloaded harbour-nightly-win.exe installed on my XP PC and I am
running Harbour IDE supplied with that. I am trying to compile file
using IDE, but getting following error....... I hv also setup IDE for
harbour root C:/hb31 and hbmk2 executable to C:/hb31/bin


Batch File Exists => C:\DOCUME~1\vp\LOCALS~1\Temp\0iv5z5.bat
Batch File Contents =>
hbmk2 -q -trace -info -lang=en -width=0 -rebuild -s C:\hb31\tests
\atest.prg
Command => C:\WINDOWS\system32\cmd.exe
Arguments => /C C:\DOCUME~1\vp\LOCALS~1\Temp\0iv5z5.bat
----------------------------------------------------------------------------------------------------
CurDir() => hb31\bin Starting in => C:\hb31\tests\

C:\hb31\tests>hbmk2 -q -trace -info -lang=en -width=0 -rebuild -s C:
\hb31\tests\atest.prg

'hbmk2' is not recognized as an internal or external command,
operable program or batch file.

any help ?

Massimo Belgrano

unread,
Aug 4, 2011, 6:06:11 AM8/4/11
to harbou...@googlegroups.com
add  to path C:/hb31/bin


2011/8/4 Vp <vishnu...@gmail.com>

--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users



--
Massimo Belgrano


V Patel

unread,
Aug 4, 2011, 6:19:42 AM8/4/11
to harbou...@googlegroups.com
Thanks  Massimo Belgrano
 
Still Following error
 
C:\hb31\vp>hbmk2 acrecu.prg
Harbour 3.1.0dev (Rev. 16977)
Copyright (c) 1999-2011, http://harbour-project.org/
Compiling 'acrecu.prg'...
Lines 18393, Functions/Procedures 127
Generating C source output to 'C:\DOCUME~1\vp\LOCALS~1\Temp\hbmk_g575jy.dir\acre
cu.c'... Done.
C:/DOCUME~1/vp/LOCALS~1/Temp/hbmk_g575jy.dir/acrecu.c:21743:1: fatal error: erro
r writing to -: Invalid argument
compilation terminated.
C:/DOCUME~1/vp/LOCALS~1/Temp/hbmk_px4dkj.c:17:1: fatal error: error closing -: I
nvalid argument
compilation terminated.
hbmk2: Error: Running C/C++ compiler. 1
gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer  -W -Wall -pip
e -IC:/hb31/include C:/DOCUME~1/vp/LOCALS~1/Temp/hbmk_g575jy.dir/acrecu.c C:/DOC
UME~1/vp/LOCALS~1/Temp/hbmk_px4dkj.c
With Regards

Vishnu
 
 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Please consider the environment before printing 

Massimo Belgrano

unread,
Aug 4, 2011, 10:59:06 AM8/4/11
to harbou...@googlegroups.com
I think that you have other compilation made that confuse incremental system try with
hbmk2 acrecu.prg -rebuild

verify that you can write in temporary path
C:/DOCUME~1/vp/LOCALS~1/Temp/

2011/8/4 V Patel <vishnu...@gmail.com>



--
Massimo Belgrano


V Patel

unread,
Aug 4, 2011, 11:54:14 PM8/4/11
to harbou...@googlegroups.com
Hi,
 
  Tried with your options, still same error, even if I try to compile hello.prg it also report error !
  I have installed  Borland BCC55, Is there anything missing ?

 

 

C:\hb31\tests>hbmk2 hello.prg -rebuild
hbmk2: Processing local make script: hbmk.hbm
hbmk2: Compiling Harbour sources...

Harbour 3.1.0dev (Rev. 16977)
Copyright (c) 1999-2011, http://harbour-project.org/
Compiling 'hello.prg'...
Lines 11, Functions/Procedures 1
Generating C source output to '.hbmk\win\mingw\hello.c'... Done.
hbmk2: Compiling...
../../../.hbmk/win/mingw/hello.c:37:1: fatal error: error closing -: Broken pipe
compilation terminated.
../../../.hbmk/win/mingw/_hbmkaut_hello.c:17:1: fatal error: error closing -: Br
oken pipe

compilation terminated.
hbmk2: Error: Running C/C++ compiler. 1
gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer  -W -Wall -pip
e -IC:/hb31/include ../../../.hbmk/win/mingw/hello.c ../../../.hbmk/win/mingw/_h
bmkaut_hello.c
 
EVEN WITH hello.prg
 
C:\hb31\tests>hbmk2 hello.prg -rebuild
hbmk2: Processing local make script: hbmk.hbm
hbmk2: Compiling Harbour sources...

Harbour 3.1.0dev (Rev. 16977)
Copyright (c) 1999-2011, http://harbour-project.org/
Compiling 'hello.prg'...
Lines 11, Functions/Procedures 1
Generating C source output to '.hbmk\win\mingw\hello.c'... Done.
hbmk2: Compiling...
../../../.hbmk/win/mingw/hello.c:37:1: fatal error: error closing -: Broken pipe
compilation terminated.
../../../.hbmk/win/mingw/_hbmkaut_hello.c:17:1: fatal error: error closing -: Br
oken pipe

compilation terminated.
hbmk2: Error: Running C/C++ compiler. 1
gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer  -W -Wall -pip
e -IC:/hb31/include ../../../.hbmk/win/mingw/hello.c ../../../.hbmk/win/mingw/_h
bmkaut_hello.c
 
 

Massimo Belgrano

unread,
Aug 6, 2011, 5:08:24 AM8/6/11
to harbou...@googlegroups.com
Follow is my suggestion
1 clean your path as mosta as possible
2 set path to your c compiler


Tomorrow for next 15 days i go on Holiday and may be on line only occasionally (wifi)
but i think that you find good reply here



2011/8/5 V Patel <vishnu...@gmail.com>



--
Massimo Belgrano

Vp

unread,
Aug 7, 2011, 3:41:43 AM8/7/11
to Harbour Users
Still Same Error, Path is as
My Path as Under

SET PATH=%path%;d:\other\CL52;C:\WINdows\COMMAND;C:\WINdows;C:\WINdows
\system32;c:\Borland\Bcc55;c:\Borland\Bcc55\binC:\hb31\bin;
SET LIB=c:\Borland\BCC55\lib;d:\other\CL52;c:\hb31\lib;
SET INCLUDE=c:\Borland\BCC55\include;d:\other\CL52;c:\hb31\include
SET HB_PATH=c:\xhb
SET CLIPPER=V020;R020;F99




'*' is not recognized as an internal or external command,
operable program or batch file.
D:\>c:

C:\hb31\tests>hbmk2 hello.prg -rebuild
hbmk2: Processing local make script: hbmk.hbm
hbmk2: Compiling Harbour sources...
Harbour 3.1.0dev (Rev. 16977)
Copyright (c) 1999-2011, http://harbour-project.org/
Compiling 'hello.prg'...
Lines 11, Functions/Procedures 1
Generating C source output to '.hbmk\win\mingw\hello.c'... Done.
hbmk2: Compiling...
../../../.hbmk/win/mingw/hello.c:37:1: fatal error: error closing -:
Invalid arg
ument
compilation terminated.
../../../.hbmk/win/mingw/_hbmkaut_hello.c:17:1: fatal error: error
closing -: In
valid argument
compilation terminated.
hbmk2: Error: Running C/C++ compiler. 1
gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer -W -
Wall -pip
e -IC:/hb31/include ../../../.hbmk/win/mingw/hello.c ../../../.hbmk/
win/mingw/_h
bmkaut_hello.c

C:\hb31\tests>


On Aug 6, 2:08 pm, Massimo Belgrano <mbelgr...@deltain.it> wrote:
> Follow is my suggestion
> 1 clean your path as mosta as possible
> 2 set path to your c compiler
>
> Tomorrow for next 15 days i go on Holiday and may be on line only
> occasionally (wifi)
> but i think that you find good reply here
>
> 2011/8/5 V Patel <vishnu.bar...@gmail.com>
>
>
>
>
>
> > Hi,
>
> >   Tried with your options, still same error, even if I try to compile
> > hello.prg it also report error !
> > *  I have installed  Borland BCC55, Is there anything missing ?*
>
> > **
>
> > C:\hb31\tests>hbmk2 hello.prg -rebuild
> > hbmk2: Processing local make script: hbmk.hbm
> > hbmk2: Compiling Harbour sources...
>
> > Harbour 3.1.0dev (Rev. 16977)
> > Copyright (c) 1999-2011,http://harbour-project.org/
> >  Compiling 'hello.prg'...
> > Lines 11, Functions/Procedures 1
> > Generating C source output to '.hbmk\win\mingw\hello.c'... Done.
> > hbmk2: Compiling...
> > ../../../.hbmk/win/mingw/hello.c:37:1: fatal error: error closing -: Broken
> > pipe
> > compilation terminated.
> > ../../../.hbmk/win/mingw/_hbmkaut_hello.c:17:1: fatal error: error closing
> > -: Br
> > oken pipe
>
> > compilation terminated.
> > hbmk2: Error: Running C/C++ compiler. 1
> > gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer  -W -Wall
> > -pip
> >  e -IC:/hb31/include ../../../.hbmk/win/mingw/hello.c
> > ../../../.hbmk/win/mingw/_h
> > bmkaut_hello.c
>
> > EVEN WITH hello.prg
>
> > C:\hb31\tests>hbmk2 hello.prg -rebuild
> > hbmk2: Processing local make script: hbmk.hbm
> > hbmk2: Compiling Harbour sources...
>
> > Harbour 3.1.0dev (Rev. 16977)
> > Copyright (c) 1999-2011,http://harbour-project.org/
> >  Compiling 'hello.prg'...
> > Lines 11, Functions/Procedures 1
> > Generating C source output to '.hbmk\win\mingw\hello.c'... Done.
> > hbmk2: Compiling...
> > ../../../.hbmk/win/mingw/hello.c:37:1: fatal error: error closing -: Broken
> > pipe
> > compilation terminated.
> > ../../../.hbmk/win/mingw/_hbmkaut_hello.c:17:1: fatal error: error closing
> > -: Br
> > oken pipe
>
> > compilation terminated.
> > hbmk2: Error: Running C/C++ compiler. 1
> > gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer  -W -Wall
> > -pip
> >  e -IC:/hb31/include ../../../.hbmk/win/mingw/hello.c
> > ../../../.hbmk/win/mingw/_h
> > bmkaut_hello.c
>
> > On Thu, Aug 4, 2011 at 8:29 PM, Massimo Belgrano <mbelgr...@deltain.it>wrote:
>
> >> I think that you have other compilation made that confuse incremental
> >> system try with
> >> hbmk2 acrecu.prg -rebuild
>
> >> verify that you can write in temporary path
> >> *C:/DOCUME~1/vp/LOCALS~1/Temp/*
> >> *
> >> *
> >>  2011/8/4 V Patel <vishnu.bar...@gmail.com>
>
> >>>   Thanks  Massimo Belgrano
>
> >>> Still Following error
>
> >>> C:\hb31\vp>hbmk2 acrecu.prg
> >>> Harbour 3.1.0dev (Rev. 16977)
> >>> Copyright (c) 1999-2011,http://harbour-project.org/
> >>> Compiling 'acrecu.prg'...
> >>> Lines 18393, Functions/Procedures 127
> >>> Generating C source output to
> >>> 'C:\DOCUME~1\vp\LOCALS~1\Temp\hbmk_g575jy.dir\acre
> >>> cu.c'... Done.
> >>> *C:/DOCUME~1/vp/LOCALS~1/Temp/hbmk_g575jy.dir/acrecu.c:21743:1: fatal
> >>> error: erro
> >>> r writing to -: Invalid argument
> >>> compilation terminated.
> >>> C:/DOCUME~1/vp/LOCALS~1/Temp/hbmk_px4dkj.c:17:1: fatal error: error
> >>> closing -: I
> >>> nvalid argument
> >>> compilation terminated.
> >>> hbmk2: Error: Running C/C++ compiler. 1
> >>> *gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer  -W
> >>> -Wall -pip
> >>> e -IC:/hb31/include C:/DOCUME~1/vp/LOCALS~1/Temp/hbmk_g575jy.dir/acrecu.c
> >>> C:/DOC
> >>> UME~1/vp/LOCALS~1/Temp/hbmk_px4dkj.c
>
> >>>   On Thu, Aug 4, 2011 at 3:36 PM, Massimo Belgrano <mbelgr...@deltain.it
> >>> > wrote:
>
> >>>>  add  to path C:/hb31/bin
>
> >>>> 2011/8/4 Vp <vishnu.bar...@gmail.com>
>
> >>>>> Hi,
>
> >>>>>   I downloaded harbour-nightly-win.exe installed on my XP PC and I am
> >>>>> running Harbour IDE supplied with that. I am trying to compile file
> >>>>> using IDE, but getting following error....... I hv also setup IDE for
> >>>>> harbour root C:/hb31 and hbmk2 executable to C:/hb31/bin
>
> >>>>> Batch File Exists => C:\DOCUME~1\vp\LOCALS~1\Temp\0iv5z5.bat
> >>>>> Batch File Contents =>
> >>>>> hbmk2 -q -trace -info -lang=en -width=0 -rebuild -s C:\hb31\tests
> >>>>> \atest.prg
> >>>>> Command => C:\WINDOWS\system32\cmd.exe
> >>>>> Arguments => /C C:\DOCUME~1\vp\LOCALS~1\Temp\0iv5z5.bat
>
> >>>>> ---------------------------------------------------------------------------­-------------------------
> >>>>> CurDir() => hb31\bin Starting in => C:\hb31\tests\
>
> >>>>> C:\hb31\tests>hbmk2 -q -trace -info -lang=en -width=0 -rebuild -s C:
> >>>>> \hb31\tests\atest.prg
>
> >>>>> 'hbmk2' is not recognized as an internal or external command,
> >>>>> operable program or batch file.
>
> >>>>> any help ?
>
> >>>>> --
> >>>>> You received this message because you are subscribed to the Google
> >>>>> Groups "Harbour Users" group.
> >>>>> Unsubscribe: harbour-user...@googlegroups.com
> >>>>> Web:http://groups.google.com/group/harbour-users
>
> >>>> --
> >>>> Massimo Belgrano
>
> >>>>   --
> >>>> You received this message because you are subscribed to the Google
> >>>> Groups "Harbour Users" group.
> >>>> Unsubscribe: harbour-user...@googlegroups.com
> >>>> Web:http://groups.google.com/group/harbour-users
>
> >>> --
>
> >>> *With Regards
>
> >>> Vishnu*
>
> >>>  ---------------------------------------------------------------------------­---------------------------------------------------------------------------­------------------------------------------------
> >>> **
> >>> *[image: Please consider the environment before printing] *
>
> >>> --
> >>>   You received this message because you are subscribed to the Google
> >>> Groups "Harbour Users" group.
> >>> Unsubscribe: harbour-user...@googlegroups.com
> >>> Web:http://groups.google.com/group/harbour-users
>
> >> --
> >> Massimo Belgrano
>
> >>   --
> >> You received this message because you are subscribed to the Google
> >> Groups "Harbour Users" group.
> >> Unsubscribe: harbour-user...@googlegroups.com
> >> Web:http://groups.google.com/group/harbour-users
>
> > --
>
> > *With Regards
>
> > Vishnu*
>
> >  ---------------------------------------------------------------------------­---------------------------------------------------------------------------­------------------------------------------------
> > **
> > *[image: Please consider the environment before printing] *
>
> >  --
> > You received this message because you are subscribed to the Google
> > Groups "Harbour Users" group.
> > Unsubscribe: harbour-user...@googlegroups.com
> > Web:http://groups.google.com/group/harbour-users
>
> --
> Massimo Belgrano- Hide quoted text -
>
> - Show quoted text -

Andrzej P. Wozniak

unread,
Aug 7, 2011, 8:16:43 AM8/7/11
to harbou...@googlegroups.com
From: Vp <vishnu...@gmail.com>
Sent: Sunday, August 07, 2011 9:41 AM
Subject: [harbour-users] Re: Compilation Error

> Still Same Error, Path is as
> My Path as Under

You should do some cleanup in your settings.

> SET PATH=%path%;d:\other\CL52;C:\WINdows\COMMAND;

^^^^^^^^^^^^^^^^^^
This path is valid only for Windows 9x…

> C:\WINdows;C:\WINdows\system32;

^^^^^^^^^^^^^^^^^^^
…and this is a standard path setting for Win NT family.

> c:\Borland\Bcc55;

Here you have path to Borland compiler - probably for xHarbour.

> c:\Borland\Bcc5\binC:\hb31\bin;
^
A semicolon (;) is missing here. Have you edited this part of path
manually or is it an installer bug?

> SET LIB=c:\Borland\BCC55\lib;d:\other\CL52;c:\hb31\lib;
> SET INCLUDE=c:\Borland\BCC55\include;d:\other\CL52;c:\hb31\include
> SET HB_PATH=c:\xhb

Again settings for xHarbour go…

> SET CLIPPER=V020;R020;F99

This is setting for Clipper S'87. For Clipper 5.2 you should use another
format, see SET CLIPPER in Norton Guide for CL52 Utilities.

> '*' is not recognized as an internal or external command,
> operable program or batch file.

Find a place with '*' used instead of a file name.

> Harbour 3.1.0dev (Rev. 16977)
> Copyright (c) 1999-2011, http://harbour-project.org/
> Compiling 'hello.prg'...
> Lines 11, Functions/Procedures 1
> Generating C source output to '.hbmk\win\mingw\hello.c'... Done.

^^^^^
As you see here and below, Harbour compiler calls mingw, not Borland
compiler.

> gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer

^^^^^^^

In general: If you want to have less troubleshooting, don't mix working
environments. Use separate settings for work with Harbour (hb31 and
mingw), separate ones for work with xHarbour (xhb and bcc55) and separate
for CL52. Only then you may be sure that reported errors really:
- point to proper files,
- come from the package you are trying to use.

That's why I don't comment other error messages you have quoted.

--
Regards from The Harbour Project mirror in Poland
Andrzej P. Woźniak

------

Hosting klatka.pl 4GB za jedyne 40 zl za rok


Reply all
Reply to author
Forward
0 new messages