arduino-ci / sd Goto Github PK
View Code? Open in Web Editor NEWThis project forked from arduino-libraries/sd
SD Library for Arduino
Home Page: http://arduino.cc/
License: GNU General Public License v3.0
This project forked from arduino-libraries/sd
SD Library for Arduino
Home Page: http://arduino.cc/
License: GNU General Public License v3.0
"<filesystem>
is technically available in C++11 and later. The implementation lives in the std::__fs::filesystem namespace..." Clang Developers.
To move from C++0x to C++11, see Arduino-CI/arduino_ci#146.
It looks like we need some more features to support this.
The command bundle exec arduino_ci_remote.rb --skip-unittests
shows that all the examples compile fine in the Arduino IDE. But when I run bundle exec arduino_ci_remote.rb --skip-compilation
I get error: cannot take the address of an rvalue of type 'int'
(see below).
DDRE
comes from #define DDRE _SFR_IO8(0x0D)
which uses #define _SFR_IO8(io_addr) (io_addr)
. So, it appears that the code is trying to do something like
volatile uint8_t* ddr = &0x0D;
,
which does seem odd. Perhaps 0x0D is supposed to be an address?
@ianfixes, @per1234, do you have any advice?
Note that this is where I ran into #186.
Last command: $ g++ -std=c++0x -o /Users/jfoster/Documents/Arduino/libraries/SD/unittest_test.cpp.bin -DARDUINO=100 -g -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address -D__AVR_ATmega2560__ -DARDUINO_CI -D__AVR__ -I/Users/jfoster/Documents/Arduino/libraries/SD/vendor/bundle/ruby/2.6.0/gems/arduino_ci-0.3.0/cpp/arduino -I/Users/jfoster/Documents/Arduino/libraries/SD/vendor/bundle/ruby/2.6.0/gems/arduino_ci-0.3.0/cpp/unittest -I/Users/jfoster/Documents/Arduino/libraries/SD/src -I/Users/jfoster/Documents/Arduino/libraries/SD/src/utility /Users/jfoster/Documents/Arduino/libraries/SD/vendor/bundle/ruby/2.6.0/gems/arduino_ci-0.3.0/cpp/arduino/Arduino.cpp /Users/jfoster/Documents/Arduino/libraries/SD/vendor/bundle/ruby/2.6.0/gems/arduino_ci-0.3.0/cpp/arduino/Godmode.cpp /Users/jfoster/Documents/Arduino/libraries/SD/vendor/bundle/ruby/2.6.0/gems/arduino_ci-0.3.0/cpp/arduino/stdlib.cpp /Users/jfoster/Documents/Arduino/libraries/SD/vendor/bundle/ruby/2.6.0/gems/arduino_ci-0.3.0/cpp/unittest/ArduinoUnitTests.cpp /Users/jfoster/Documents/Arduino/libraries/SD/src/File.cpp /Users/jfoster/Documents/Arduino/libraries/SD/src/SD.cpp /Users/jfoster/Documents/Arduino/libraries/SD/src/utility/Sd2Card.cpp /Users/jfoster/Documents/Arduino/libraries/SD/src/utility/SdFile.cpp /Users/jfoster/Documents/Arduino/libraries/SD/src/utility/SdVolume.cpp /Users/jfoster/Documents/Arduino/libraries/SD/test/test.cpp
In file included from /Users/jfoster/Documents/Arduino/libraries/SD/src/File.cpp:15:
In file included from /Users/jfoster/Documents/Arduino/libraries/SD/src/SD.h:20:
In file included from /Users/jfoster/Documents/Arduino/libraries/SD/src/utility/SdFat.h:29:
In file included from /Users/jfoster/Documents/Arduino/libraries/SD/src/utility/Sd2Card.h:26:
/Users/jfoster/Documents/Arduino/libraries/SD/src/utility/Sd2PinMap.h:78:4: error: cannot take the address of an rvalue of type 'int'
{&DDRE, &PINE, &PORTE, 0}, // E0 0
^~~~~
Use GitHub Actions to run automated tests.
Code appears to compile correctly with the Arduino CLI compiler but not with the arduino_ci
compiler. See https://gcc.gnu.org/onlinedocs/gcc-4.7.2/gcc/Function-Attributes.html.
Changing cpp_library.rb:497
from -std=c++0x
to -std=c++11
solves this problem. See Arduino-CI/arduino_ci#146.
Furthermore, this is only a warning and if there are no errors then it is silently ignored so we can proceed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.