eclipse / upm

UPM is a high level repository that provides software drivers for a wide variety of commonly used sensors and actuators. These software drivers interact with the underlying hardware platform through calls to MRAA APIs.
MIT License
661 stars 410 forks source link

RE: Compiling and UPM #694

Closed silver2row closed 4 years ago

silver2row commented 4 years ago

Hello,

This seems to be an error on my side but I cannot be completely sure.

will change in GCC 7.1

I am compiling every module in python, python3, c, and c++ for now w/ make.

I am on an ARM board w/ a 32-bit processor, e.g. am335x from TI.com.

Seth

P.S. I looked through many of my errors during compilation. I am seeing a python 2.7.13 issue and the highlighted section in this post from above, gives me ideas that the GCC version is out of date on my board. Do you think I am on the right track so far to correct this issue? I have gcc/g++ 6.x.x.

silver2row commented 4 years ago

Hello,

I know have this version of gcc:

8.3.0

I am having severe issues w/ make.

See here:

make[2]: [src/2jciebu01_usb/CMakeFiles/jsupm_2jciebu01_usb.dir/build.make:63:src/2jciebu01_usb/CMakeFiles/jsupm_2jciebu01_usb.dir/CMakeFiles/jsupm_2jciebu01_usb.dir/2jciebu 01_usbJAVASCRIPT_wrap.cxx.o] Error 1 make[1]: [CMakeFiles/Makefile2:869: src/2jciebu01_usb/CMakeFiles/jsupm_2jciebu01_usb.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

Seth

P.S. This is at 0% compilation on a armhf board w/ a 32-bit processor w/ make. cmake works but then I run into issues w/ make. If anyone is working on making upm work w/ gcc --version 8.3.0, please pitch in. Thank you in advance for any assistance that is provided.

silver2row commented 4 years ago

Hello,

I think I figured it out. Thank you for the repo. to list the issue.

Seth

P.S. cmake -DCMAKE_INSTALL_PREFIX=/usr .. -DBUILDSWIGNODE=OFF -DBUILDSWIGJAVA=OFF works for me. Enjoy!

tingleby commented 4 years ago

@Propanu yeah lets turn of JS builds...

silver2row commented 4 years ago

@tingleby ,

Also, JAVA for debian 10 is on the fritz from what I remember. I put in a bug report a while back but the people might have already been aware of this bug I spent time filling out.

Just using default-jdk w/ apt install or default-jre gives errors on armhf boards on debian 10.

Seth