brianm@sco.COM (Brian Moffet) (11/14/89)
I am having a problem with Lattice's LMK program just exiting
after it prints out the Copyright information on the screen.
I have installed the update to get me to Lattice 5.04 and since
I had not used LMK before this point, I cannot tell if the problem
existed before (I can't find my original disks.)
If anyone has seen this problem, please let me know.
thanks
brian moffet
My test program
main()
{
puts( "Hello, World" );
}
-=-=-=-=-=-=-=-
LMK file
CFLAGS=-O
a.out: main.o
blink from lib:c.o+main.o to a.out LIB LIB:lc.lib+LIB:amiga.lib
main.o: main.c
$(CC) $(CFLAGS) main.c
-=-=-=-=-=-=-
Output from LMK -d
dolnode: [$]
set: name [$] value [$]
dolnode: [@]
set: name [@] value [$@]
dolnode: [<]
set: name [<] value [$<]
dolnode: [*]
set: name [*] value [$*]
dolnode: [?]
set: name [?] value [$?]
dolnode: [>]
set: name [>] value [$>]
parse: [LD=Blink]
getword: [LD]
dolnode: [LD]
set: name [LD] value [Blink]
parse: [AS=asm]
getword: [AS]
dolnode: [AS]
set: name [AS] value [asm]
parse: [CFLAGS=-iINCLUDE:]
getword: [CFLAGS]
dolnode: [CFLAGS]
set: name [CFLAGS] value [-iINCLUDE:]
parse: [CC=lc]
getword: [CC]
dolnode: [CC]
set: name [CC] value [lc]
parse: [.c.o:]
getword: [.c.o]
getword: [.c.o]
mkdep: word [.c.o]
targnode: [.c.o]
mkdep: return [(EMPTY)]
parse: [ $(CC) $(CFLAGS) $*]
readline: 1 [CFLAGS=-O]
parse: [CFLAGS=-O]
getword: [CFLAGS]
set: name [CFLAGS] value [-O]
readline: 2 []
parse: []
readline: 3 [a.out: main.o]
parse: [a.out: main.o]
getword: [a.out]
getword: [a.out]
mkdep: word [a.out]
targnode: [a.out]
getword: [main.o]
targnode: [main.o]
mkdep: return [main.o]
readline: 4 [ blink from lib:c.o+main.o to a.out LIB LIB:lc.lib+LIB:amiga.lib]
parse: [ blink from lib:c.o+main.o to a.out LIB LIB:lc.lib+LIB:amiga.lib]
readline: 5 []
parse: []
readline: 6 [main.o: main.c]
parse: [main.o: main.c]
getword: [main.o]
getword: [main.o]
mkdep: word [main.o]
getword: [main.c]
targnode: [main.c]
mkdep: return [main.c]
readline: 7 [ $(CC) $(CFLAGS) main.c]
parse: [ $(CC) $(CFLAGS) main.c]
Brian Moffet uunet!sco!alar!brian
--
Brian Moffet {uunet,decvax!microsoft,ucscc}!sco!brianm
-or- ...sco!alar!brian
"I was everything you wanted me to be. You were afraid, I was frightening."
My fish and company have policies. I have opinions.
farren@well.UUCP (Mike Farren) (11/30/89)
In article <3760@scolex.sco.COM> brianm@sco.COM (Brian Moffet) writes: > >I am having a problem with Lattice's LMK program just exiting >after it prints out the Copyright information on the screen. >I have installed the update to get me to Lattice 5.04 and since >I had not used LMK before this point, I cannot tell if the problem >existed before (I can't find my original disks.) No, this didn't exist before, and yes, it IS a problem with the new version of LMK. The discussion on the Lattice BBS seems to indicate that it's a problem with some signal bit or other in the process structure, and one of the folks posted the following small program, which seems to allow LMK to work properly: #include <libraries/dosextens.h> _main() { struct Task *t; t = FindTask(0L); t->tc_SigAlloc &= 0x7fffffff; t->tc_SigRecvd &= 0x7fffffff; } As you can see, all it does is clear the high-order bit of the CLI signal words. I've found that if you run this before you run LMK, LMK works almost always. If it does not, closing the CLI and opening a new CLI does the trick. At any event, Lattice is aware of this bug, and (I hope) is going to fix it next update. -- Mike Farren farren@well.sf.ca.usa
bill@wfhami.uucp (Bill Hogsett) (11/30/89)
In article <3760@scolex.sco.COM> brianm@sco.COM (Brian Moffet) writes: > >I am having a problem with Lattice's LMK program just exiting >after it prints out the Copyright information on the screen. >I have installed the update to get me to Lattice 5.04 and since >I had not used LMK before this point, I cannot tell if the problem >existed before (I can't find my original disks.) The work around for the Lattice 5.04 lmk (make) problem is to run lmk. I just setup an alias as: alias make run lmk I would be interested in a discussion of why this problem occurred.
bill%wfhami.uucp@cunyvm.cuny.edu (12/07/89)
In article <3760@scolex.sco.COM> brianm@sco.COM (Brian Moffet) writes: > >I am having a problem with Lattice's LMK program just exiting >after it prints out the Copyright information on the screen. >I have installed the update to get me to Lattice 5.04 and since >I had not used LMK before this point, I cannot tell if the problem >existed before (I can't find my original disks.) The work around for the Lattice 5.04 lmk (make) problem is to run lmk. I just setup an alias as: alias make run lmk I would be interested in a discussion of why this problem occurred.