From: Greg Bentley Date: Thu, 22 Jan 2009 10:23:18 -0600 Message-Id: <1232641398.13734.110.camel@domain.hid> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-1dEfdA5NfQXMqBgHcTFf" Subject: [Xenomai-help] Compiler Errors with User Space Tools for 2.4.6.1 List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org --=-1dEfdA5NfQXMqBgHcTFf Content-Type: text/plain Content-Transfer-Encoding: 7bit Hello, I am working on getting Xenomai 2.4.6.1 working on a custom board with an Atmel AT91SAM9260 processor. The IPIPE patch I used was adeos-ipipe-2.6.25-arm-1.9-02.patch. My kernel patches, compiles, and runs on the board. However, when compiling the user space tools, make fails when it gets the pSOS+ skin with an error of PTHREAD_STACK_MIN being undeclared. PTHREAD_STACK_MIN is not defined as the include/posix/pthread.h does not appear correctly included in the path for the src/ programs. This are the configure and make commands I used: configure CC="arm-linux-gnueabi-gcc -v" CXX=arm-linux-gnueabi-gcc AR=arm-linux-gnueabi-ar LD=arm-linux-gnueabi-ld \ --build=i686-pc-linux-gnu \ --host=arm-linux \ --enable-arm-mach=at91sam926x \ --enable-arm-eabi \ --enable-arm-tsc make DESTDIR=/projects/som9260/xenomai/_install install These options worked correctly with Xenomai 2.4.3 and I did not see any changes from the current configure help or from README.INSTALL. If someone could point out what I am doing wrong here, I would appreciate the assistance. Compiler error dump: #include "..." search starts here: #include <...> search starts here: . /projects/som9260/xenomai/xenomai-2.4.6.1/src/skins/psos+ ../../../src/include /projects/som9260/xenomai/xenomai-2.4.6.1/include /opt/oe/EMAC-OE/tmp/cross/lib/gcc/arm-linux-gnueabi/4.1.1/include /opt/oe/EMAC-OE/tmp/cross/lib/gcc/arm-linux-gnueabi/4.1.1/../../../../arm-linux-gnueabi/include End of search list. /projects/som9260/xenomai/xenomai-2.4.6.1/src/skins/psos+/task.c:1: warning: target CPU does not support interworking GNU C version 4.1.1 (arm-linux-gnueabi) compiled by GNU C version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21). GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: d6cc0668abea2ae9cf06e099757012f4 /projects/som9260/xenomai/xenomai-2.4.6.1/src/skins/psos+/task.c: In function 't_create': /projects/som9260/xenomai/xenomai-2.4.6.1/src/skins/psos+/task.c:146: error: 'PTHREAD_STACK_MIN' undeclared (first use in this function) /projects/som9260/xenomai/xenomai-2.4.6.1/src/skins/psos+/task.c:146: error: (Each undeclared identifier is reported only once /projects/som9260/xenomai/xenomai-2.4.6.1/src/skins/psos+/task.c:146: error: for each function it appears in.) make[3]: *** [libpsos_la-task.lo] Error 1 make[3]: Leaving directory `/projects/som9260/xenomai/build-2.6.25-20090121r1/src/skins/psos+' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/projects/som9260/xenomai/build-2.6.25-20090121r1/src/skins' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/projects/som9260/xenomai/build-2.6.25-20090121r1/src' make: *** [install-recursive] Error 1 Thank you in advance, Greg Bentley --=-1dEfdA5NfQXMqBgHcTFf Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Hello,

I am working on getting Xenomai 2.4.6.1 working on a custom board with an Atmel AT91SAM9260 processor. The IPIPE patch I used was adeos-ipipe-2.6.25-arm-1.9-02.patch. My kernel patches, compiles, and runs on the board.

However, when compiling the user space tools, make fails when it gets the pSOS+ skin with an error of PTHREAD_STACK_MIN being undeclared. PTHREAD_STACK_MIN is not defined as the include/posix/pthread.h does not appear correctly included in the path for the src/ programs.

This are the configure and make commands I used:

configure CC="arm-linux-gnueabi-gcc -v" CXX=arm-linux-gnueabi-gcc AR=arm-linux-gnueabi-ar LD=arm-linux-gnueabi-ld \
        --build=i686-pc-linux-gnu \
        --host=arm-linux \
        --enable-arm-mach=at91sam926x \
        --enable-arm-eabi \
        --enable-arm-tsc
make DESTDIR=/projects/som9260/xenomai/_install install

These options worked correctly with Xenomai 2.4.3 and I did not see any changes from the current configure help or from README.INSTALL. If someone could point out what I am doing wrong here, I would appreciate the assistance.

Compiler error dump:

#include "..." search starts here:
#include <...> search starts here:
.
/projects/som9260/xenomai/xenomai-2.4.6.1/src/skins/psos+
../../../src/include
/projects/som9260/xenomai/xenomai-2.4.6.1/include
/opt/oe/EMAC-OE/tmp/cross/lib/gcc/arm-linux-gnueabi/4.1.1/include
/opt/oe/EMAC-OE/tmp/cross/lib/gcc/arm-linux-gnueabi/4.1.1/../../../../arm-linux-gnueabi/include
End of search list.
/projects/som9260/xenomai/xenomai-2.4.6.1/src/skins/psos+/task.c:1: warning: target CPU does not support interworking
GNU C version 4.1.1 (arm-linux-gnueabi)
        compiled by GNU C version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: d6cc0668abea2ae9cf06e099757012f4
/projects/som9260/xenomai/xenomai-2.4.6.1/src/skins/psos+/task.c: In function 't_create':
/projects/som9260/xenomai/xenomai-2.4.6.1/src/skins/psos+/task.c:146: error: 'PTHREAD_STACK_MIN' undeclared (first use in this function)
/projects/som9260/xenomai/xenomai-2.4.6.1/src/skins/psos+/task.c:146: error: (Each undeclared identifier is reported only once
/projects/som9260/xenomai/xenomai-2.4.6.1/src/skins/psos+/task.c:146: error: for each function it appears in.)
make[3]: *** [libpsos_la-task.lo] Error 1
make[3]: Leaving directory `/projects/som9260/xenomai/build-2.6.25-20090121r1/src/skins/psos+'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/projects/som9260/xenomai/build-2.6.25-20090121r1/src/skins'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/projects/som9260/xenomai/build-2.6.25-20090121r1/src'
make: *** [install-recursive] Error 1

Thank you in advance,

Greg Bentley --=-1dEfdA5NfQXMqBgHcTFf--