[cfe-dev] linux build fix
sean at awesomeplay.com
Fri Dec 7 20:59:31 PST 2007
Decided to give hacking on clang a try, as I'm very much interested in
compilers and languages and so forth. I started out by trying to
compile a small C program of mine that exercises a good chunk of the
Various GNU/Linux headers include the stddef.h header, which is
in /usr/include/linux, which isn't in the system header search path.
So, as a "hello everyone" gift, here's my first patch for the project.
Clearly it's the most awesome patch ever, what with it being a whole
single line in a part of a file marked as "need's to be replaced." :)
Next up is to figure out why both time_t and size_t result in a variety
of comical errors such as:
///usr/include/linux/time.h:10:2: error: type name requires a specifier
time_t tv_sec; /* seconds */
Out of the pages and pages of errors, almost all of them are either
errors from time_t or size_t, so I figure fixing whatever that is will
get me pretty close to compiling this little program.
I'm also rather tempted to go fix whatever is causing that extra // at
the start of the file path in the errors. :)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 481 bytes
Desc: not available
More information about the cfe-dev