Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#71 Malformed include search path

open
David Gay
ncc (18)
5
2012-10-11
2012-10-11
pucek
No

Hi

I'm trying to cross-compile tinyOS to misp using nesc 1.3.3 and 1.3.4
When I try to compile it shows that it can't find stdarg.h includes, which are standard gcc.

I tryied to compile it with -v option, and it shows that gcc got malformed include search path.
It shows:
/home/xxxxxxxxx/xxxxxx/nesc-1.3.4/build/backfire_10.03.1/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib/gcc/mipsel-openwrt-linux-uclibc/4/
.3.3/include/
where should be:
/home/xxxxxxxxx/xxxxxx/nesc-1.3.4/build/backfire_10.03.1/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib/gcc/mipsel-openwrt-linux-uclibc/4.3.3/include/
It looks like one dot is exchanged by slash...

#include "..." and component search starts here:
#include <...> search starts here:
/home/xxxxxxxxx/xxxxxx/nesc-1.3.4/build/backfire_10.03.1/staging_dir/host/lib/ncc/
/home/xxxxxxxxx/xxxxxx/nesc-1.3.4/build/backfire_10.03.1/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/include/
include/
/home/xxxxxxxxx/xxxxxx/nesc-1.3.4/build/backfire_10.03.1/build_dir/host/tinyos-2.1.0/tos/platforms/linuxmote/
/home/xxxxxxxxx/xxxxxx/nesc-1.3.4/build/backfire_10.03.1/build_dir/host/tinyos-2.1.0/tos/lib/timer/
/home/xxxxxxxxx/xxxxxx/nesc-1.3.4/build/backfire_10.03.1/build_dir/host/tinyos-2.1.0/tos/lib/serial/
/home/xxxxxxxxx/xxxxxx/nesc-1.3.4/build/backfire_10.03.1/build_dir/host/tinyos-2.1.0/tos/interfaces/
/home/xxxxxxxxx/xxxxxx/nesc-1.3.4/build/backfire_10.03.1/build_dir/host/tinyos-2.1.0/tos/types/
/home/xxxxxxxxx/xxxxxx/nesc-1.3.4/build/backfire_10.03.1/build_dir/host/tinyos-2.1.0/tos/system/
/home/xxxxxxxxx/xxxxxx/nesc-1.3.4/build/backfire_10.03.1/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib/gcc/mipsel-openwrt-linux-uclibc/4/
.3.3/include/
/home/xxxxxxxxx/xxxxxx/nesc-1.3.4/build/backfire_10.03.1/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib/gcc/mipsel-openwrt-linux-uclibc/4/
.3.3/include-fixed/
/home/xxxxxxxxx/xxxxxx/nesc-1.3.4/build/backfire_10.03.1/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib/gcc/mipsel-openwrt-linux-uclibc/4/
.3.3/../../../../mipsel-openwrt-linux-uclibc/sys-include/
/home/xxxxxxxxx/xxxxxx/nesc-1.3.4/build/backfire_10.03.1/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib/gcc/mipsel-openwrt-linux-uclibc/4/
.3.3/../../../../mipsel-openwrt-linux-uclibc/include/
End of search list.
preprocessing /home/xxxxxxxxx/xxxxxx/nesc-1.3.4/build/backfire_10.03.1/staging_dir/host/lib/ncc/deputy_nodeputy.h
/home/xxxxxxxxx/xxxxxx/nesc-1.3.4/build/backfire_10.03.1/staging_dir/host/lib/ncc/deputy_nodeputy.h:4:20: error: stddef.h: No such file or directory

When I set it by hand using -I/home/xxxxxxxxx/xxxxxx/nesc-1.3.4/build/backfire_10.03.1/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib/gcc/mipsel-openwrt-linux-uclibc/4.3.3/include/
it works fine and compile. When I try to comile everything in shorter path like everything seems to be fine:

#include "..." and component search starts here:
#include <...> search starts here:
/opt/nesc-1.3.4/build/backfire_10.03.1/staging_dir/host/lib/ncc/
/opt/nesc-1.3.4/build/backfire_10.03.1/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/include/
/opt/nesc-1.3.4/build/backfire_10.03.1/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib/gcc/mipsel-openwrt-linux-uclibc/4.3.3/include/
/opt/nesc-1.3.4/build/backfire_10.03.1/build_dir/host/tinyos-2.1.0/tos/platforms/linuxmote/
/opt/nesc-1.3.4/build/backfire_10.03.1/build_dir/host/tinyos-2.1.0/tos/lib/timer/
/opt/nesc-1.3.4/build/backfire_10.03.1/build_dir/host/tinyos-2.1.0/tos/lib/serial/
/opt/nesc-1.3.4/build/backfire_10.03.1/build_dir/host/tinyos-2.1.0/tos/interfaces/
/opt/nesc-1.3.4/build/backfire_10.03.1/build_dir/host/tinyos-2.1.0/tos/types/
/opt/nesc-1.3.4/build/backfire_10.03.1/build_dir/host/tinyos-2.1.0/tos/system/
/opt/nesc-1.3.4/build/backfire_10.03.1/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib/gcc/mipsel-openwrt-linux-uclibc/4.3.3/include/
/opt/nesc-1.3.4/build/backfire_10.03.1/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib/gcc/mipsel-openwrt-linux-uclibc/4.3.3/include-fixed/
/opt/nesc-1.3.4/build/backfire_10.03.1/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib/gcc/mipsel-openwrt-linux-uclibc/4.3.3/../../../../mi/
psel-openwrt-linux-uclibc/sys-include/
/opt/nesc-1.3.4/build/backfire_10.03.1/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib/gcc/mipsel-openwrt-linux-uclibc/4.3.3/../../../../mi/
psel-openwrt-linux-uclibc/include/
End of search list.

Compilation goes ok.

Maybe it is some problem with passing argument to gcc by ncc?

Discussion

  • David Gay
    David Gay
    2012-10-15

    Please provide the actuall ncc command line used, as well as how you built/installed ncc/nesc (hard to tell what's going on w/o that information).

     
  • I notice that I've much more energy but I am not shaky, that is a problem I've had with other tablets. I really like that I only must take Japanese 2 Day Diet http://daydietcapsule.blogs.sapo.pt/ pill per day suitable just after consuming breakfast, that is really straightforward for me to bear in mind to accomplish. I received the product really quickly by mail and it was effectively packaged.

     
  • I just traditionally bring in your chanel shoes ebay within the next about 40-50 degrees F released. Its excellent not to exceptional weather. I always wash promptly after the two bring in. They've been comfortable as well as shock absorption. Excellent to take whenever you only want to have a short operated. christian louboutin men http://www.cheapchristianlouboutinman.com/

     
  • You are my intake, I have few web logs and sometimes run out from post :). "He who controls the past commands the future. He who commands the future conquers the past." by George Orwell. [url=http://www.uonobu.co.jp/shop/akb48.html]akb48[/url]