From: Jean-Marc Beaune <jm.beaune@gmail.com>
To: gentoo-embedded <gentoo-embedded@lists.gentoo.org>
Subject: [gentoo-embedded] pgmspace/inttypes issue
Date: Fri, 10 Jan 2014 22:07:51 +0100 [thread overview]
Message-ID: <CAK7bL3wwJOo_Lp2x9MRVV0X1bfv9aAz3rppTf+Et_sFJU29D2g@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3989 bytes --]
Hi
Trying to build firmware for VSCP devices, I got the following:
mamac@bussy2 ~/Electronic/projects/VSCP/demo_vscp_node_can128 $ make
> VSCP Paths set to /usr/share/vscp/vscp_software and
/usr/share/vscp/vscp_firmware respectivly
avr-gcc -g -Wall -Os -mmcu=at90can128 -DFOSC=16000 -DUSE_UART0
-DBAUDRATE=38400 -I /usr/share/vscp/vscp_firmware/common -I
/usr/share/vscp/vscp_firmware/avr/common -I
/usr/share/vscp/vscp_software/src/common -I
/usr/share/vscp/vscp_software/src/vscp/common -I . -c -o vscptest.o
vscptest.c
In file included from vscptest.c:82:0:
/usr/avr/include/avr/pgmspace.h:1067:26: error: unknown type name
‘uint_farptr_t’
extern size_t strlen_PF (uint_farptr_t src) __ATTR_CONST__; /* program
memory can't change */
^
/usr/avr/include/avr/pgmspace.h:1068:27: error: unknown type name
‘uint_farptr_t’
extern size_t strnlen_PF (uint_farptr_t src, size_t len) __ATTR_CONST__;
/* program memory can't change */
^
/usr/avr/include/avr/pgmspace.h:1069:37: error: unknown type name
‘uint_farptr_t’
extern void *memcpy_PF (void *dest, uint_farptr_t src, size_t len);
^
/usr/avr/include/avr/pgmspace.h:1070:37: error: unknown type name
‘uint_farptr_t’
extern char *strcpy_PF (char *dest, uint_farptr_t src);
^
/usr/avr/include/avr/pgmspace.h:1071:38: error: unknown type name
‘uint_farptr_t’
extern char *strncpy_PF (char *dest, uint_farptr_t src, size_t len);
^
/usr/avr/include/avr/pgmspace.h:1072:37: error: unknown type name
‘uint_farptr_t’
extern char *strcat_PF (char *dest, uint_farptr_t src);
^
/usr/avr/include/avr/pgmspace.h:1073:38: error: unknown type name
‘uint_farptr_t’
extern size_t strlcat_PF (char *dst, uint_farptr_t src, size_t siz);
^
/usr/avr/include/avr/pgmspace.h:1074:38: error: unknown type name
‘uint_farptr_t’
extern char *strncat_PF (char *dest, uint_farptr_t src, size_t len);
^
/usr/avr/include/avr/pgmspace.h:1075:39: error: unknown type name
‘uint_farptr_t’
extern int strcmp_PF (const char *s1, uint_farptr_t s2) __ATTR_PURE__;
^
/usr/avr/include/avr/pgmspace.h:1076:40: error: unknown type name
‘uint_farptr_t’
extern int strncmp_PF (const char *s1, uint_farptr_t s2, size_t n)
__ATTR_PURE__;
^
/usr/avr/include/avr/pgmspace.h:1077:43: error: unknown type name
‘uint_farptr_t’
extern int strcasecmp_PF (const char *s1, uint_farptr_t s2) __ATTR_PURE__;
^
/usr/avr/include/avr/pgmspace.h:1078:44: error: unknown type name
‘uint_farptr_t’
extern int strncasecmp_PF (const char *s1, uint_farptr_t s2, size_t n)
__ATTR_PURE__;
^
/usr/avr/include/avr/pgmspace.h:1079:41: error: unknown type name
‘uint_farptr_t’
extern char *strstr_PF (const char *s1, uint_farptr_t s2);
^
/usr/avr/include/avr/pgmspace.h:1080:38: error: unknown type name
‘uint_farptr_t’
extern size_t strlcpy_PF (char *dst, uint_farptr_t src, size_t siz);
^
/usr/avr/include/avr/pgmspace.h:1081:36: error: unknown type name
‘uint_farptr_t’
extern int memcmp_PF(const void *, uint_farptr_t, size_t) __ATTR_PURE__;
^
In file included from vscptest.c:95:0:
vscp_actions.c: In function ‘doActionCtrlLed’:
vscp_actions.c:48:16: warning: variable ‘val’ set but not used
[-Wunused-but-set-variable]
unsigned char val;
^
make: *** [vscptest.o] Error 1
Changes a bit if I change include to "../inttypes" in pgmspace.h but still
won't compile
Any idea is much appreciated.
Thank you
--
Jean-Marc
[-- Attachment #2: Type: text/html, Size: 4653 bytes --]
reply other threads:[~2014-01-10 21:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAK7bL3wwJOo_Lp2x9MRVV0X1bfv9aAz3rppTf+Et_sFJU29D2g@mail.gmail.com \
--to=jm.beaune@gmail.com \
--cc=gentoo-embedded@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox