[Yhc] Compilation error questions...

Tom Shackell shackell at cs.york.ac.uk
Thu Jun 28 19:11:29 EDT 2007


Looks like it's saying there are no dirent functions, which is perhaps 
not so surprising since those are directory listing functions. You'll 
need to find where the header is included, comment it out then fix any 
errors you get by commenting those bits out also, leaving empty functions.

Cheers

Tom

Alexis Morris wrote:
> 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>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Yhc mailing list
> Yhc at haskell.org
> http://www.haskell.org/mailman/listinfo/yhc


More information about the Yhc mailing list