[ECOS] RE: Weird Parse Error

Trenton D. Adams tadams@extremeeng.com
Tue Jun 19 15:00:00 GMT 2001


I found a ' at the beginning of the "cyg/io/pcmcia.h" in the "install"
tree.  I assumed that it was referring to the pcmcia.h in the
repository.  I never bothered to think that it's build time in which
case it would want to use the include from the install tree.

You know what THEY say about assumptions! :)

> -----Original Message-----
> From: Trenton D. Adams [ mailto:tadams@extremeeng.com ] 
> Sent: Tuesday, June 19, 2001 3:28 PM
> To: 'eCos'
> Subject: Weird Parse Error
> 
> 
> My include list is below.
> 
> #include <pkgconf/io_pcmcia.h>
> 
> #include <cyg/hal/hal_io.h>             // IO macros
> #include <cyg/hal/hal_arch.h>           // Register state info
> #include <cyg/hal/hal_intr.h>           // HAL interrupt macros
> #include <cyg/hal/drv_api.h>
> 
> #ifdef CYGPKG_KERNEL
> #include <pkgconf/kernel.h>   // Configuration header
> #include <cyg/kernel/kapi.h>
> #endif
> #include <cyg/hal/hal_if.h>
> 
> #include <cyg/io/pcmcia.h>
> #include <cyg/infra/diag.h>
> 
> #include <cyg/hal/hal_edb7xxx.h>  // Board definitions
> #include "clps6700_edb7xxx.h"
> 
> My compile errors are below.  I have no idea why pcmcia.h on 
> line 86 would have an error.  It looks perfectly fine to me.  
> Also, I haven't included anything of my own before it so any 
> errors I could have created in any headers wouldn't happen 
> until the last include or so.
> 
> 
> //C/MyDocuments/CurrentRepository/ecos/packages/devs/pcmcia/ar
> m/edb7xxx/current/src/edb7xxx_pcmcia.c
> In file included from 
> //C/MyDocuments/CurrentRepository/ecos/packages/devs/pcmcia/ar
> m/edb7xxx/current/src/edb7xxx_pcmcia.c:57:
> //C/MyDocuments/eCosDevelopment/RAMSupport_install/include/cyg
> /io/pcmcia.h:86: parse error before ``'
> //C/MyDocuments/eCosDevelopment/RAMSupport_install/include/cyg
> /io/pcmcia.h:89: `CF_MAX_IO_ADDRS' undeclared here (not in a function)
> //C/MyDocuments/eCosDevelopment/RAMSupport_install/include/cyg
> /io/pcmcia.h:92: parse error before `}'
> //C/MyDocuments/eCosDevelopment/RAMSupport_install/include/cyg
> /io/pcmcia.h:99: field `io_space' has incomplete type
> //C/MyDocuments/CurrentRepository/ecos/packages/devs/pcmcia/ar
> m/edb7xxx/current/src/edb7xxx_pcmcia.c: In function `cf_detect_dsr':
> //C/MyDocuments/CurrentRepository/ecos/packages/devs/pcmcia/ar
> m/edb7xxx/current/src/edb7xxx_pcmcia.c:82: 
> `SA11X0_GPIO_PIN_LEVEL' undeclared (first use in this function)
> //C/MyDocuments/CurrentRepository/ecos/packages/devs/pcmcia/ar
> m/edb7xxx/current/src/edb7xxx_pcmcia.c:82: (Each undeclared 
> identifier is reported only once
> //C/MyDocuments/CurrentRepository/ecos/packages/devs/pcmcia/ar
> m/edb7xxx/current/src/edb7xxx_pcmcia.c:82: for each function 
> it appears in.)
> //C/MyDocuments/CurrentRepository/ecos/packages/devs/pcmcia/ar
> m/edb7xxx/current/src/edb7xxx_pcmcia.c: In function `cf_hwr_init':
> //C/MyDocuments/CurrentRepository/ecos/packages/devs/pcmcia/ar
> m/edb7xxx/current/src/edb7xxx_pcmcia.c:130: 
> `SA11X0_GPIO_PIN_LEVEL' undeclared (first use in this function)
> //C/MyDocuments/CurrentRepository/ecos/packages/devs/pcmcia/ar
> m/edb7xxx/current/src/edb7xxx_pcmcia.c:176: `_assabet_BCR' 
> undeclared (first use in this function)
> //C/MyDocuments/CurrentRepository/ecos/packages/devs/pcmcia/ar
> m/edb7xxx/current/src/edb7xxx_pcmcia.c:176: 
> `EDB7XXX_BCR_CF_POWER' undeclared (first use in this function)
> //C/MyDocuments/CurrentRepository/ecos/packages/devs/pcmcia/ar
> m/edb7xxx/current/src/edb7xxx_pcmcia.c:176: 
> `EDB7XXX_BCR_CF_POWER_ON' undeclared (first use in this function)
> //C/MyDocuments/CurrentRepository/ecos/packages/devs/pcmcia/ar
> m/edb7xxx/current/src/edb7xxx_pcmcia.c: In function `cf_hwr_poll':
> //C/MyDocuments/CurrentRepository/ecos/packages/devs/pcmcia/ar
> m/edb7xxx/current/src/edb7xxx_pcmcia.c:190: 
> `SA11X0_GPIO_PIN_LEVEL' undeclared (first use in this function)
> //C/MyDocuments/CurrentRepository/ecos/packages/devs/pcmcia/ar
> m/edb7xxx/current/src/edb7xxx_pcmcia.c: In function 
> `cf_hwr_change_state':
> //C/MyDocuments/CurrentRepository/ecos/packages/devs/pcmcia/ar
> m/edb7xxx/current/src/edb7xxx_pcmcia.c:254: warning: control 
> reaches end of non-void function
> make[1]: *** [src/edb7xxx_pcmcia.o.d] Error 1
> make[1]: Leaving directory 
> `/c/MyDocuments/eCosDevelopment/RAMSupport_build/devs/pcmcia/a
> rm/edb7xxx/current'
> make: *** [build] Error 2
> 



More information about the Ecos-discuss mailing list