tinyos / nesc

Master nesc repository
GNU General Public License v2.0
100 stars 53 forks source link

TestSerial Compile Error "Requested alignment is not a power of 2" #54

Closed Callroy closed 4 years ago

Callroy commented 4 years ago

Hello, Im trying to test the serial connection between my Iris Mote and PC but when i attempt to Make Iris i get the below error.

Im running Ubuntu 16.04 on Virtual Box. I have successfully programmed previous tutorials onto my mote such as Blink with no issues, therefore I'm not sure where the alignment issues would come from.

Can anyone recommend a solution or help identify what the issue is?

Thank you

_mkdir -p build/iris mig java -target=null -I/home/cal/tinyos-main/tos/lib/T2Hack -DIDENT_APPNAME=\"TestSerialAppC\" -DIDENT_USERNAME=\"cal\" -DIDENT_HOSTNAME=\"cal-VirtualBox\" -DIDENT_USERHASH=0xdd7f3342L -DIDENT_TIMESTAMP=0x5e076facL -DIDENT_UIDHASH=0xde8d6d2bL -java-classname=TestSerialMsg TestSerial.h test_serial_msg -o TestSerialMsg.java In file included from /usr/lib/i386-linux-gnu/ncc/deputynodeputy.h:4: /usr/lib/gcc/i686-linux-gnu/5/include/stddef.h:429: requested alignment is not a power of 2 failed to parse message file TestSerial.h Makefile:11: recipe for target 'TestSerialMsg.java' failed make: *** [TestSerialMsg.java] Error 1

Callroy commented 4 years ago

From comparing the makefile with the one on this site they were different in the line

_9: nescc-mig java $(CFLAGS) -java-classname=TestSerialMsg TestSerial.h test_serialmsg -o $@

Using this version has corrected the issue however I do not know what the original cause is