Closed DeeJay closed 5 months ago
Thanks for the feedback. This is what makes the difference...
It seems that the headers are different in my environment. I have to check my compiler and try to switch. I wonder which variables I can use...
int utimes(const char *path, const struct timeval *__tvp);.
int utimes(const char *path, const struct timeval times[2]);.
/Users/oyama/src/github.com/oyama/pico-sqlite/src/fallback.c:42:52: error: argument 2 of type 'const struct timeval *' declared as a pointer [-Werror=array-parameter=]
42 | int utimes(const char *path, const struct timeval *__tvp) {
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~
In file included from /Applications/ArmGNUToolchain/13.2.Rel1/arm-none-eabi/arm-none-eabi/include/sys/resource.h:8,
from /Users/oyama/src/github.com/oyama/pico-sqlite/src/fallback.c:4:
/Applications/ArmGNUToolchain/13.2.Rel1/arm-none-eabi/arm-none-eabi/include/sys/time.h:417:27: note: previously declared as an array 'const struct timeval[2]'
417 | int utimes (const char *, const struct timeval [2]);
Thank you. Build now runs to completion and generates an sqlite3.uf2 file.
david@rp54bw64full0512:~/Projects/pslite/pico-sqlite/build $ picotool info sqlite3.uf2
File sqlite3.uf2:
Program Information
name: sqlite3
features: UART stdin / stdout
USB stdin / stdout
david@rp54bw64full0512:~/Projects/pslite/pico-sqlite/build $ ls -al sqlite3.uf2
-rw-r--r-- 1 david david 1262592 May 31 15:35 sqlite3.uf2
david@rp54bw64full0512:~/Projects/pslite/pico-sqlite/build $ file sqlite3.uf2
sqlite3.uf2: UF2 firmware image, family Raspberry Pi RP2040, address 0x10000000, 2466 total blocks
david@rp54bw64full0512:~/Projects/pslite/pico-sqlite/build $
Build of project fails
Transcript -