public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] RE: Weird Parse Error
@ 2001-06-19 15:00 Trenton D. Adams
  0 siblings, 0 replies; only message in thread
From: Trenton D. Adams @ 2001-06-19 15:00 UTC (permalink / raw)
  To: 'eCos'

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
> 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-06-19 15:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-19 15:00 [ECOS] RE: Weird Parse Error Trenton D. Adams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).