[Yhc] Compilation error questions...

Alexis Morris akmorris at gmail.com
Thu Jun 28 19:06:26 EDT 2007


Hi all,

I am getting the following strange errors while compiling YHI with
arm-elf-gcc. Does anyone have a suggestion about them?  Not sure why
dirent.h is giving an error, although it's included in the arm tools. The
other errors with thread.h I suspect are due to my trying to build main
without the other dependency files first. Not sure though...

Thanks in advance, any help is appreciated.

=========================================

$ arm-elf-gcc -Wall main.c
In file included from /cygdrive/c/program
files/gnuarm/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/sys-include/dirent.h:6,
                 from platform.h:107,
                 from main.c:1:
/cygdrive/c/program
files/gnuarm/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/sys-include/sys/dirent.h:10:2:
error: #error "<dirent.h> not supported"

In file included from main.c:11:
thread.h:9:23: error: semaphore.h: No such file or directory
In file included from main.c:11:
thread.h:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'OSThread'
thread.h:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'*' token
thread.h:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'*' token
thread.h:39: error: expected specifier-qualifier-list before 'OSThread'
thread.h:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'osthread_create'
thread.h:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'mutex_create'
thread.h:55: error: expected ')' before 'mutex'
thread.h:56: error: expected ')' before 'mutex'
thread.h:57: error: expected ')' before 'mutex'
thread.h:59: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'yhi_semaphore_create'
thread.h:60: error: expected ')' before 'sem'
thread.h:61: error: expected ')' before 'sem'
thread.h:62: error: expected ')' before 'sem'
thread.h:63: error: expected ')' before 'sem'


-- 
</Alexis>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/yhc/attachments/20070629/3f9a065d/attachment-0001.htm


More information about the Yhc mailing list