News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

installation problem

Started by kb7wg, February 05, 2006, 09:11:55 PM

Previous topic - Next topic

kb7wg

hello....i installed masm32 and hla on drive C:\.....in chapter 2 of AoA...from a c prompt i type hla -?.....it works fine....when i type ml /? or link /?...it says not recognize......i can get them if i go to C:\masm32\bin.....i have hla and masm32\bin in my system path......does anyone know what i am doing wrong?.....thanks....earl

MichaelW

I suspect the problem is somewhere in your path statement.

eschew obfuscation

kb7wg

thank u.....it wasnt the path....had to add lib and include variable. but now...as i try to hla hello world........right after it says it compiling........it stops and returns to com prompt.....do other people have these kind of problems?
it says the -v switch is verbose......why doesnt it give me a clue as to what is wrong?
it says using command line [hlaparse -v -sm -test "hw hla"] and then returns to command prompt.
any help would be appreciated....thanks earl.

MichaelW

It wasn't the path? Environment variables would have nothing to do with the ability of the system to find ML and LINK.

If you did an automatic installation of HLA, then the necessary environment variables would have been set, and assuming HLA and MASM32 are on drive C, and working from a directory that contains hello.hla, you should be able to build hello.exe with a batch file like this:

set path=%path%;c:\masm32\bin;c:\hla

hla hello.hla

pause


If you did a manual installation of HLA, even if you did not set the necessary environment variables, I think a batch file like this should work:

set path=%path%;c:\masm32\bin;c:\hla
set hlainc=c:\hla\include
set hlalib=c:\hla\hlalib\hlalib.lib
set lib=c:\hla\hlalib

pause

rem The following could be used to inspect the environment:
rem set
rem pause

hla hello.hla

pause
eschew obfuscation

kb7wg

i did auto install......it put the path in.........but i could not do ml or link till i added lib and include variables......i am following the instuctions in chap 2 of AoA......to hla hw.....it says it compliling.....then returns to cmd prompt..............earl.

Sevag.K

You are not getting an executable?
It might be helpful to cut/paste the verbose listing you get.

I have also developed a tool that lets you skip the installation phase and contains everything you need in the package, including an IDE, the HLA compiler and assembler backend.  Just unzip into its own folder and run it.

Just follow the link on my sig, and browse to the HIDE download page if interested.



MichaelW

Earl,

On my system (Windows 2000), the automatic installation did not alter the path, but did set the following environment variables:

hlainc=c:\hla\include
hlalib=c:\hla\hlalib\hlalib.lib
lib=;c:\hla\hlalib

Note that the variables did not appear in the environment until I had restarted the system. With these variables set as shown, the first batch file I posted above is able to build hello.hla without problems. If it will not on your system, then here are a few things you could try:

Open a command prompt, type SET and press Enter. Verify that that the three environment variables have been set, and unless you intend to specify the path in a batch file that runs the compiler, that the HLA and MASM32 bin folders have been added to the path. If not, refer to this page for instructions on altering the environment.

To test the MASM32 installation, start qeditor.exe in the MASM32 directory, open \masm32\examples\exampl01\generic\generic.asm, and select Build All on the Project menu. If the installation is OK the application should build OK. If not, post the details of your installation so we can do something besides just guessing at what the problem might be.

If the MASM32 installation is OK, and HLA still does not work, post the details of your installation.

eschew obfuscation

kb7wg

C:\>hla -v hw
HLA (High Level Assembler)
Released to the public domain by Randall Hyde.
Version Version 1.79 build 10131 (prototype)
Win32 COFF output
Using MASM assembler
MASM output
-test active

HLA Lib Path:     C:\hla\hlalib\hlalib.lib
HLA include path: C:\hla\include
HLA temp path:
Linker Lib Path:  C:\hla\hlalib

Files:
1: hw.hla

Compiling 'hw.hla' to 'hw.asm'
using command line [hlaparse  -v -sm -test "hw.hla"]

C:\>



ok this is what i get....earl

MichaelW

This is what I get after adding -v to the first batch file:

C:\HLA\My>set path=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Common Files\Roxio Shared\DLLShared;c:\masm32\bin;c:\hla

C:\HLA\My>hla -v hello.hla
HLA (High Level Assembler)
Released to the public domain by Randall Hyde.
Version Version 1.79 build 10131 (prototype)
Win32 COFF output
Using MASM assembler
MASM output
-test active

HLA Lib Path:     c:\hla\hlalib\hlalib.lib
HLA include path: c:\hla\include
HLA temp path:
Linker Lib Path:  ;c:\hla\hlalib;c:\hla\hlalib

Files:
1: hello.hla

Compiling 'hello.hla' to 'hello.asm'
using command line [hlaparse  -v -sm -test "hello.hla"]
HLA (High Level Assembler) Parser
Released to the public domain by Randall Hyde.
Version Version 1.79 build 10130 (prototype)
-t active
File: hello.hla
Output Path: ""

Compiling "hello.hla" to "hello.asm"
Compilation complete, 7047 lines,   0.742 seconds,    9497 lines/second

Assembling "hello.asm" to "hello.obj" via [ml /c /coff /Cp /Fo"hello.obj"   "hel
lo.asm"]
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.

Assembling: hello.asm
Linking via [link @hello.link._.link]
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

-heap:0x1000000,0x1000000
-stack:0x1000000,0x1000000
-base:0x4000000
-entry:HLAMain
-section:.text,ER
-section:.data,RW
-section:.bss,RW
kernel32.lib
user32.lib
gdi32.lib
-subsystem:console
-out:hello.exe
c:\hla\hlalib\hlalib.lib
hello.obj

C:\HLA\My>pause
Press any key to continue . . .


It looks like hlaparse.exe is silently failing on your system. By renaming or moving essential files I can cause it to fail, but not silently.
eschew obfuscation

Sevag.K

Have you tried downloading it again?  Get the update and install just those files, it may be that some of the files in your current installation are corrupt.

kb7wg

C>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\earl\Application Data
CLASSPATH=C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=SYSTEM2
ComSpec=C:\WINDOWS\system32\cmd.exe;
FP_NO_HOST_CHECK=NO
hlainc=C:\hla\include
hlalib=C:\hla\hlalib\hlalib.lib
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\earl
lib=;c:\hla\hlalib
LOGONSERVER=\\SYSTEM2
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Su
pport Tools\;C:\hla;C:\masm32\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 31 Stepping 0, AuthenticAMD
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=1f00
ProgramFiles=C:\Program Files
prompt=$N$G
QTJAVA=C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\earl\LOCALS~1\Temp
TMP=C:\DOCUME~1\earl\LOCALS~1\Temp
tvdumpflags=8
USERDOMAIN=SYSTEM2
USERNAME=earl
USERPROFILE=C:\Documents and Settings\earl
windir=C:\WINDOWS

C>

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C>hla -v hw
HLA (High Level Assembler)
Released to the public domain by Randall Hyde.
Version Version 1.79 build 10131 (prototype)
Win32 COFF output
Using MASM assembler
MASM output
-test active

HLA Lib Path:     C:\hla\hlalib\hlalib.lib
HLA include path: C:\hla\include
HLA temp path:
Linker Lib Path:  ;c:\hla\hlalib;C:\hla\hlalib

Files:
1: hw.hla

Compiling 'hw.hla' to 'hw.asm'
using command line [hlaparse  -v -sm -test "hw.hla"]

C>

ok...i updated the files and heres what i get....earl

Sevag.K

This is odd behavior.

Do you get any intermediate files?  Look for hw.asm, hw.ro.inc, etc.


kb7wg

i know....its driving me nuts....i cant get past chap 2 of AoA..............i cant find any intermediate files.....

Evenbit

Try shortening the path statement to just:

Path=C:\WINDOWS\system32;C:\WINDOWS;C:\hla;C:\masm32\bin

...and see what happens.

Looks like ml.exe isn't being run (at least, not the "ml.exe" that we know).

Nathan.

MichaelW

And check that the MASM32 installation is OK by building one of the examples.

eschew obfuscation