-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with compiling sketch in linux #1
Comments
Trying this workaround gives another error /home/magnus/.arduino15/packages/FPGArduino/tools/f32c-compiler/1.0.0/bin/mips-elf-ld -N -EL -gc-sections --library-path=/home/magnus/.arduino15/packages/FPGArduino/hardware/f32c/1.0.0/system/mips/lib -nostdlib --section-start=.init=0x400 -lcrt0 /tmp/build1860868207851946728.tmp/mySerialEvent.cpp.o /tmp/build1860868207851946728.tmp/core.a -lulx2s -lm -lc -o /tmp/build1860868207851946728.tmp/mySerialEvent.cpp.elf |
I've just commited a crude realloc() implementation and rebuilt the C libs. With the new libc I can get the SerialEvent example to compile by adding the following code chunk to the sketch: void ___dso_handle; I doubt this will work since we haven't actually implemented serialEventRun() anywhere. In standard Arduino libs this seems to be implemented in HardwareSerial.cpp. We could probably implement this in UARTClass.cpp but looking at the standard Arduino code I'm having a hard time guessing the exact semantics of serialEvent stuff. |
Got Hx711 Scale module working https://github.com/goran-mahovlic/f32c_extras/blob/master/Arduino/MimasV2/SerialScale/SerialScale.ino |
I placed the __dso_handle fix to SoftwareWire for now. We may solve the problem cleanly If it arires with another library then we can |
I will close this issue for now, and reopen if preoblem arries... |
The problem reappears when compiling MIDI library #include <MIDI.h> |
Above is fixed in abi.gcc but there's new one int test(int a) will abort with error |
this error may be fixed in file platform.txt by adding compiler |
Just did the example SerialEvent with baudrate changed to 19200. Here is the output:
/home/magnus/.arduino15/packages/FPGArduino/tools/f32c-compiler/1.0.0/bin/mips-elf-ar rcs /tmp/build1860868207851946728.tmp/core.a /tmp/build1860868207851946728.tmp/UARTClass.cpp.o
/home/magnus/.arduino15/packages/FPGArduino/tools/f32c-compiler/1.0.0/bin/mips-elf-ld -N -EL -gc-sections --library-path=/home/magnus/.arduino15/packages/FPGArduino/hardware/f32c/1.0.0/system/mips/lib -nostdlib --section-start=.init=0x400 -lcrt0 /tmp/build1860868207851946728.tmp/mySerialEvent.cpp.o /tmp/build1860868207851946728.tmp/core.a -lulx2s -lm -lc -o /tmp/build1860868207851946728.tmp/mySerialEvent.cpp.elf
/tmp/build1860868207851946728.tmp/mySerialEvent.cpp.o: In function
_GLOBAL__sub_I_inputString': mySerialEvent.cpp:(.text.startup._GLOBAL__sub_I_inputString+0x28): undefined reference to
__dso_handle'mySerialEvent.cpp:(.text.startup._GLOBAL__sub_I_inputString+0x2c): undefined reference to
__cxa_atexit' /tmp/build1860868207851946728.tmp/core.a(WString.cpp.o): In function
String::changeBuffer(unsigned int)':(.text._ZN6String12changeBufferEj+0x1c): undefined reference to
realloc' /home/magnus/.arduino15/packages/FPGArduino/tools/f32c-compiler/1.0.0/bin/mips-elf-ld: /tmp/build1860868207851946728.tmp/mySerialEvent.cpp.elf: hidden symbol
__dso_handle' isn't defined/home/magnus/.arduino15/packages/FPGArduino/tools/f32c-compiler/1.0.0/bin/mips-elf-ld: final link failed: Bad value
Error compiling.
The text was updated successfully, but these errors were encountered: