[OpenIndiana-New-developers] Illumos build notes/questions

Frank Middleton f.middleton at apogeect.com
Sat Mar 26 00:24:22 UTC 2011


Unsurprisingly no one seems to be able to suggest how to
fix what appears to be a perfectly good makefile line

On 03/16/11 19:37, I wrote:

> $(CP) $(@:$(ROOTLIB)/%=%) $@

In desperation, I simply commented out the last 4 lines of
usr/src/cmd/localedef/Makefile and manually copied
usr/src/cmd/localedef/locale in the background. This ugly
hack worked.

Now we progress to failing to populate packages, for example

Generating dependencies for developer-debug-mdb-module-module-fibre-channel.mog
Couldn't find /devel/illumos/illumos-gate/proto/root_i386/usr/lib/mdb/kvm/amd64/fcip.so
Couldn't find /devel/illumos/illumos-gate/proto/root_i386/usr/lib/mdb/kvm/amd64/fcp.so
Couldn't find /devel/illumos/illumos-gate/proto/root_i386/usr/lib/mdb/kvm/amd64/fctl.so
Couldn't find /devel/illumos/illumos-gate/proto/root_i386/usr/lib/mdb/kvm/fcip.so
Couldn't find /devel/illumos/illumos-gate/proto/root_i386/usr/lib/mdb/kvm/fcp.so
Couldn't find /devel/illumos/illumos-gate/proto/root_i386/usr/lib/mdb/kvm/fctl.so
*** Error code 1
The following command caused the error:
if [ ! -f packages.i386/developer-debug-mdb-module-module-fibre-channel.nodepend ]; then \
         pkgdepend generate -m -D 'PLATFORM=i86hvm'  -D 'PLATFORM=i86pc'  -D 'PLATFORM=i86xpv'  -D 'ISALIST=amd64'  -D 'ISALIST=i386' packages.i386/developer-debug-mdb-module-module-fibre-channel.mog \
                 /devel/illumos/illumos-gate//proto/root_i386 > packages.i386/developer-debug-mdb-module-module-fibre-channel.dep; \
else \
         /usr/bin/cp -f packages.i386/developer-debug-mdb-module-module-fibre-channel.mog packages.i386/developer-debug-mdb-module-module-fibre-channel.dep; \
fi

find . -name fcip.so
./usr/src/cmd/mdb/intel/amd64/fcip/dmod/fcip.so
./usr/src/cmd/mdb/intel/ia32/fcip/dmod/fcip.so

This has a familiar look - again the source doesn't seem to have been copied
so the pkgdepend fails.

There are 251 files that weren't copied, resulting in 14 more code 1s.
For many of them, the source isn't obvious, so the ugly hack really
isn't an option. The fundamental problem seems to be dmake itself,
failing to correctly parse expressions of this form. $(@:$(var)/%=%).

/opt/SUNWspro/bin/dmake --version
dmake: Sun Distributed Make 7.8 SunOS_i386 Patch 126504-01 2007/07/19
md5sum /opt/SUNWspro/bin/dmake
dc2a6391059fdb5ff969aa6e03998445  /opt/SUNWspro/bin/dmake

Been poking at this for more than 2 weeks now. Would it be worth
trying a newer dmake? Any suggestions for debugging this or ways
to move forward would be much appreciated.

Thanks





More information about the New-developers mailing list