The IOT SDK distributed for the Galileo does not work. (Get compile errors when using fput/fget/fcntl)
However, the SDK distributed for the Edison DOES work.
The IOT SDKs can be found on the WEB over here: ( http: // iotdk.intel.com/sdk/3.5/ )
The compile errors I get with the Galileo SDK are similar to the following older thread over here: (which was answered, but not really resolved)
I created the same test, to show the compile errors when 'fputc', 'fgetc' and others are called.test.c
* Test program to show that the distributed SDK is broken
* 1: Source the environment
* source environment-setup-i586-poky-linux
* 2: Compile using the following command:
* $CC -o test test.c
* The following compile error will be shown:
* /tmp/ccvcmLaV.o: In function `main':
* test.c:(.text+0x50): undefined reference to `__fputc_unlocked'
* collect2: error: ld returned 1 exit status
printf("Used fputc to write the character 'a' to STDOUT\n");
Any workarounds I could apply to resolve these compiler errors with the Galileo SDK ?
NOTES: I also tried sourcing the "environment-setup-x86-pokymllib32-linux-uclibc" instead, but that is even more broken, referencing compiler binaries that are not present in the SDK.
My host is an "Ubuntu 14.04" 64-bit distribution.
Please note, that this is for the Wind River Helix Application Cloud development project, and we do not want customers to have to re-create SDKs from scratch via source code, using bitbake or other tools.
The distribution model provided at "http : // iotdk.intel.com/sdk/3.5/ " (here is the link http://iotdk.intel.com/sdk/3.5/ 3.5/ ) are ideal for the creation of Helix Application Cloud SDKs, since all the work have been done already.
Thank you for your patience.
Here are replacement SDKs for the 32/64bit linux failing SDK's. I also built a minimal SDK which is much smaller than the IoTDK SDKs.
4a76c6282459316591b1f6e02563d292 69K http://iotdk.intel.com/sdk/3.5/galileo/iot-devkit-toolchain-galileo-20160606.manifest Manifest for IoTDK image
50b4a09f250552342e47bffbf5540552 1012M http://iotdk.intel.com/sdk/3.5/galileo/iot-devkit-toolchain-linux-32bit-galileo-20160606-glibc-fix.s... Fixed 32bit image
55ff25885083eee41f84225ba6e743ca 1012M http://iotdk.intel.com/sdk/3.5/galileo/iot-devkit-toolchain-linux-64bit-galileo-20160606-glibc-fix.s... Fixed 64bit image
2362129c1d90ef074680f52ea9a09c88 12K http://iotdk.intel.com/sdk/3.5/galileo/core-image-minimal-toolchain-galileo-20160606.manifest Manifest for minimal image
1aed39eff9460ccfc76f919869b20971 231M http://iotdk.intel.com/sdk/3.5/galileo/core-image-minimal-toolchain-linux-32bit-galileo-20160606-gli... Minimal 32bit image
254e2732a426d10e809943eefe829be6 232M http://iotdk.intel.com/sdk/3.5/galileo/core-image-minimal-toolchain-linux-64bit-galileo-20160606-gli... Minimal 64bit image
Please let us know if this resolves your issue. We'll be waiting for your response.
We have moved offices since August and moved on to other projects.
I am unfortunately not in a situation to easily test out the SDKs anymore.
Thank you for replying to our follow up. In case you need further assistance in the future, don't hesitate to contact us again. We'd be happy to try to assist you.