This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cross gcc for pc windos x86 as host and powerpc as target



>Make command fails after long time while compiling fnmatch.c in
>/gcc-2.95.2/libiberty/ directory.
>The error generated is.
>../../../gcc-2.95.2/libiberty/fnmatch.c:63 parse error before 'int'
>make[1]: *** [fnmatch.o] Error 1
>make:  *** [all-target-libiberty] Error 2
>
>Here if i goto line 63 of fnmatch.c its a "extern int errno; " statement.
>How could there be parse error for extern ???

errno is not a variable, but a pointer to a function.  This is to
allow sperate threads having their own copy of errno.

Perhaps you could extract the command line used to compile fnmatch.c
and use the -E option instead of the -c option to get the output from
the preprocessor.  Then you can see how errno is being (incorrectly)
substituted. 

-- 
Peter Barada                             pbarada@wavemark.com
Wizard                                   
WaveMark Technologies, Inc.              

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]