On Fri, 3 Nov 2006, Adam Todorski wrote:
My response to the email form of this forum bounced, so I'm posting it via the
web discussion (my apologies if you get this twice):
Frank
I don't need a new FS driver, but this other guy did:
http://www.opensolaris.org/jive/thread.jspa?threadID=6427&tstart=30
The above poster and I have in common that when we tried to compiler our
modified mkfs.c files we had the exact same error from make:
sh: Xa: not found
I have never heard of Xa and can't find anything about it being part of
a package that I may be missing on my development machine. My question
was basically just "what is this Xa and how do I get it?"
"-Xa" is a compiler flag for Sun Workshop cc - it specifies "ANSI C,
please", just as gcc's "-ansi" flag.
You (and Manish from that old thread) are getting this error message
because your Makefile/build environment is "odd" - you're somehow missing
the C Compiler variable, and instead of 'make' calling "$(CC) -Xa ..." you
end up with '-Xa' which the shell translates to 'Xa' and you're not
getting anywhere ...
Most likely some Makefile screwup. It's arcane magic :(
Are you building within an OpenSolaris source tree ? Which files and
directories have you created / modified, which Makefiles (and rules/target
files) have you changed and in which way ? Are you willing to share a
webrev from your workspace, so that we can see what's there, what of that
is correct and what's missing ?
webrev's a "unified diff prettyprinter". Part of SUNWonbld, the
OpenSolaris build tools package that you need to build OpenSolaris. The
developer's guide has instructions how to use it.
As far as Makefile setup for your own filesystem driver and its associated
tools goes, refer to:
http://www.genunix.org/wiki/index.php/Writing_Filesystems_-_Build_Environment
That page's a work in progress. It misses step 9 and step 10 - change
"Makefile.files" in usr/src/uts/common to list MYFS_OBJS, and create the
package definitions for your new filesystem driver and its utilities.
Pls. let me know what exactly works for you. I need to augment the Wiki
page :)
Sorry for any confusion.
Ah, you're much quicker finding both these questions and these solutions
than I was a few years ago :)
Enjoy your weekend !
FrankH.
_______________________________________________
ufs-discuss mailing list
[email protected]