Discussion:
HLA binary unable to locate its library file.
(too old to reply)
Jackson
2020-05-22 19:47:06 UTC
Permalink
Hello all.

I was directed here by the textbook "The Art of Assembly Language Programming." I hope this is the appropriate forum; the text only mentions that comp.lang.asm.x86 is an "Internet newgroup."

I am hoping for guidance on the installation of High Level Assembly.
ERROR! Could not locate the hlalib.a file.
Have you set the 'hlalib' environment variable properly?
hlalib=/home/jackson/bin/hla-resources/hlalib
export hlalib
hlainc=/home/jackson/bin/hla-resources/include
export hlainc
I've executed 'source .bashrc' to refresh(?) the configuration.
total 3040
-rwxrwxr-x. 1 jackson jackson 726944 May 21 19:28 hla
-rwxr-xr-x. 1 jackson jackson 42324 May 21 19:28 hlacmp
-rwxrwxr-x. 1 jackson jackson 2330716 May 21 19:28 hlaparse
drwxrwxr-x. 4 jackson jackson 4096 May 22 11:32 hla-resources
total 8
drwxrwxr-x. 2 jackson jackson 4096 May 21 19:27 hlalib
drwxr-xr-x. 3 jackson jackson 4096 May 21 19:27 include
total 4552
-rw-r--r--. 1 jackson jackson 2281264 May 21 19:28 hlalib.a
-rw-r--r--. 1 jackson jackson 2376200 May 21 19:28 hlalib_safe.a
...
Has anyone installed HLA recently and encountered a similar issue? Any insight would be greatly appreciated.
Frank Kotler
2020-05-22 20:32:03 UTC
Permalink
Post by Jackson
Hello all.
I was directed here by the textbook "The Art of Assembly Language Programming." I hope this is the appropriate forum; the text only mentions that comp.lang.asm.x86 is an "Internet newgroup."
I am hoping for guidance on the installation of High Level Assembly.
ERROR! Could not locate the hlalib.a file.
Have you set the 'hlalib' environment variable properly?
hlalib=/home/jackson/bin/hla-resources/hlalib
export hlalib
hlainc=/home/jackson/bin/hla-resources/include
export hlainc
I've executed 'source .bashrc' to refresh(?) the configuration.
total 3040
-rwxrwxr-x. 1 jackson jackson 726944 May 21 19:28 hla
-rwxr-xr-x. 1 jackson jackson 42324 May 21 19:28 hlacmp
-rwxrwxr-x. 1 jackson jackson 2330716 May 21 19:28 hlaparse
drwxrwxr-x. 4 jackson jackson 4096 May 22 11:32 hla-resources
total 8
drwxrwxr-x. 2 jackson jackson 4096 May 21 19:27 hlalib
drwxr-xr-x. 3 jackson jackson 4096 May 21 19:27 include
total 4552
-rw-r--r--. 1 jackson jackson 2281264 May 21 19:28 hlalib.a
-rw-r--r--. 1 jackson jackson 2376200 May 21 19:28 hlalib_safe.a
...
Has anyone installed HLA recently and encountered a similar issue? Any insight would be greatly appreciated.
Hi Jackson,
Sorry for the delay - moderated newsgroup. I don't think you'll find any
HLA users here. Dearcj for an "aoaprogramming" group. Good Luck!

Best,
Frank
(moderator)
Jackson
2020-05-22 21:57:31 UTC
Permalink
Post by Frank Kotler
Post by Jackson
Hello all.
I was directed here by the textbook "The Art of Assembly Language Programming." I hope this is the appropriate forum; the text only mentions that comp.lang.asm.x86 is an "Internet newgroup."
I am hoping for guidance on the installation of High Level Assembly.
ERROR! Could not locate the hlalib.a file.
Have you set the 'hlalib' environment variable properly?
hlalib=/home/jackson/bin/hla-resources/hlalib
export hlalib
hlainc=/home/jackson/bin/hla-resources/include
export hlainc
I've executed 'source .bashrc' to refresh(?) the configuration.
total 3040
-rwxrwxr-x. 1 jackson jackson 726944 May 21 19:28 hla
-rwxr-xr-x. 1 jackson jackson 42324 May 21 19:28 hlacmp
-rwxrwxr-x. 1 jackson jackson 2330716 May 21 19:28 hlaparse
drwxrwxr-x. 4 jackson jackson 4096 May 22 11:32 hla-resources
total 8
drwxrwxr-x. 2 jackson jackson 4096 May 21 19:27 hlalib
drwxr-xr-x. 3 jackson jackson 4096 May 21 19:27 include
total 4552
-rw-r--r--. 1 jackson jackson 2281264 May 21 19:28 hlalib.a
-rw-r--r--. 1 jackson jackson 2376200 May 21 19:28 hlalib_safe.a
...
Has anyone installed HLA recently and encountered a similar issue? Any insight would be greatly appreciated.
Hi Jackson,
Sorry for the delay - moderated newsgroup. I don't think you'll find any
HLA users here. Dearcj for an "aoaprogramming" group. Good Luck!
Best,
Frank
(moderator)
Thank you for your time Frank!
James Norris
2020-05-24 11:05:05 UTC
Permalink
ERROR! Could not locate the hlalib.a file.
Have you set the 'hlalib' environment variable properly?
hlalib=/home/jackson/bin/hla-resources/hlalib
export hlalib
If you are on Mac Os, they recently changed their security to make it so dlopen will not find a shared library unless it is in a standard location for shared libraries, or in the same subdirectory as the program that is using it, regardless of how the environment variables are set. The fix is to copy hlalib to a standard
location, or the same directory as the program that is using it. The extra security makes it difficult to put the shared library into one of the standard locations...

The standard locations of shared libraries are:

The standard locations for dynamic libraries are ~/lib, /usr/local/lib, and /usr/lib.

Reference: https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/UsingDynamicLibraries.html

If you are on a Mac, please try Diaperglu. It has an x86 assembler in it and soon it will support vex instructions.
Loading...