u013038589
jerryson1
2015-12-20 13:01

tinyos 2.1.1 ubuntu下运行make micaz sim出现问题

200
  • ubuntu
  • tinyos

具体如下 求解答啊。。。
mkdir -p simbuild/micaz
placing object files in simbuild/micaz
writing XML schema to app.xml
compiling BlinkAppC to object file sim.o
ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim -fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node() -Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=simbuild/micaz/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 -l/path -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"csh2008\" -DIDENT_HOSTNAME=\"ubuntu\" -DIDENT_USERHASH=0xf9c23cb9L -DIDENT_TIMESTAMP=0x5676a4b6L -DIDENT_UIDHASH=0xdf79702fL -Wno-nesc-data-race BlinkAppC.nc -fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
In file included from /usr/lib/ncc/deputy_nodeputy.h:4:
/usr/lib/gcc/i686-linux-gnu/5/include/stddef.h:429: requested alignment is not a power of 2
/opt/tinyos-2.1.1/support/make/sim.extra:67: recipe for target 'sim-exe' failed
make: *** [sim-exe] Error 1

/usr/lib/gcc/i686-linux-gnu/5/include/stddef.h:429:
大概是这些
typedef struct {
long long max_align_ll __attribute((__aligned__(__alignof__(long long))));
long double max_align_ld __attribute((__aligned__(__alignof__(long double))));
} max_align_t;

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答