I tried a build of ldoms-mgr-gate using the instructions at
http://hub.opensolaris.org/bin/view/Project+ldoms-mgr/BuildingGate
I was almost successful after several workarounds, but I got hung up
on an error from mdgen.new.
1) It would be helpful if the mercurial repo was accessible via http.
Most corporate firewalls don't allow ssh connections. The one I need
to contend with doesn't allow ssh proxying either.
2) The following environment variable is needed to find the onbld tools.
$ export SNV_TOOLS=/opt
3) Solaris 10 has no /usr/bin/make. Valid options are likely dmake
that came with the Studio compilers or /usr/ccs/bin/make.
4) Linking fails unless I do this bad thing. Surely there is a
different fix to force it to use libpiclsnp.so.1 directly...
# cd /usr/platform/sun4v/lib
# ln -s libpiclsnmp.so.1 libpiclsnmp.so
5) Not sure what to do with this...
/usr/ccs/lib/cpp vcpu-state.md > vcpu-state.bin.tmp
/usr/local/bin/mdgen.new -o vcpu-state.bin vcpu-state.bin.tmp
FATAL: Illegal assignment expression at line 44 of vcpu-state.md
*** Error code 1
dmake: Fatal error: Command failed for target `vcpu-state.bin'
$ less -N state-md/vcpu-state.md
...
41 rtba = 0;
42 ntsb_ctx0 = 0;
43 ntsb_ctxn = 0;
44 tsbds_ctx0 = { [128] };
45 tsbds_ctxn = { [128] };
46 mmu_enabled = 0;
The same error happens on the other md files on the first line of the format:
something = { [num] };
The version of mdgen from the opensparc-t2 CVS repository gives the same error.
http://opensparc-t2.sunsource.net/source/browse/opensparc-t2/src/arch_tools/hypervisor/src/support/mdgen/mdgen?view=log
Was the right version of mdgen uploaded to the wiki? It doesn't look
like the input files have changed since the ldoms manager code was
first made available.
# digest -a md5 /usr/local/bin/mdgen.new
f8e6803ab54117952c9091ebcb8ecd68
--
Mike Gerdts
http://mgerdts.blogspot.com/