Skip to content
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

Docker image build failed #7521

Closed
nolouch opened this issue Dec 11, 2023 · 0 comments · Fixed by #7522
Closed

Docker image build failed #7521

nolouch opened this issue Dec 11, 2023 · 0 comments · Fixed by #7522
Labels
severity/major type/bug The issue is confirmed as a bug.

Comments

@nolouch
Copy link
Contributor

nolouch commented Dec 11, 2023

Bug Report

What did you do?

make docker-image

10.02 # github.com/mattn/go-sqlite3
10.02 sqlite3-binding.c:35901:42: error: 'pread64' undeclared here (not in a function); did you mean 'pread'?
10.02 35901 |   { "pread64",      (sqlite3_syscall_ptr)pread64,    0  },
10.02       |                                          ^~~~~~~
10.02       |                                          pread
10.02 sqlite3-binding.c:35919:42: error: 'pwrite64' undeclared here (not in a function); did you mean 'pwrite'?
10.02 35919 |   { "pwrite64",     (sqlite3_syscall_ptr)pwrite64,   0  },
10.02       |                                          ^~~~~~~~
10.02       |                                          pwrite
10.02 sqlite3-binding.c: In function 'seekAndRead':
10.02 sqlite3-binding.c:35905:49: error: unknown type name 'off64_t'; did you mean 'off_t'?
10.02 35905 | #define osPread64 ((ssize_t(*)(int,void*,size_t,off64_t))aSyscall[10].pCurrent)
10.02       |                                                 ^~~~~~~
10.02 sqlite3-binding.c:38767:11: note: in expansion of macro 'osPread64'
10.02 38767 |     got = osPread64(id->h, pBuf, cnt, offset);
10.02       |           ^~~~~~~~~
10.02 sqlite3-binding.c:35905:58: error: expected ')' before 'aSyscall'
10.02 35905 | #define osPread64 ((ssize_t(*)(int,void*,size_t,off64_t))aSyscall[10].pCurrent)
10.02       |                   ~                                      ^~~~~~~~
10.02 sqlite3-binding.c:38767:11: note: in expansion of macro 'osPread64'
10.02 38767 |     got = osPread64(id->h, pBuf, cnt, offset);
10.02       |           ^~~~~~~~~
10.02 sqlite3-binding.c: In function 'seekAndWriteFd':
10.02 sqlite3-binding.c:35923:57: error: unknown type name 'off64_t'; did you mean 'off_t'?
10.02 35923 | #define osPwrite64  ((ssize_t(*)(int,const void*,size_t,off64_t))\
10.02       |                                                         ^~~~~~~
10.02 sqlite3-binding.c:38896:17: note: in expansion of macro 'osPwrite64'
10.02 38896 |   do{ rc = (int)osPwrite64(fd, pBuf, nBuf, iOff);}while( rc<0 && errno==EINTR);
10.02       |                 ^~~~~~~~~~
10.02 sqlite3-binding.c:35924:21: error: expected ')' before 'aSyscall'
10.02 35924 |                     aSyscall[13].pCurrent)
10.02       |                     ^~~~~~~~
10.02 sqlite3-binding.c:38896:17: note: in expansion of macro 'osPwrite64'
10.02 38896 |   do{ rc = (int)osPwrite64(fd, pBuf, nBuf, iOff);}while( rc<0 && errno==EINTR);
10.02       |                 ^~~~~~~~~~
10.02 sqlite3-binding.c:35923:21: note: to match this '('
10.02 35923 | #define osPwrite64  ((ssize_t(*)(int,const void*,size_t,off64_t))\
10.02       |                     ^
10.02 sqlite3-binding.c:38896:17: note: in expansion of macro 'osPwrite64'
10.02 38896 |   do{ rc = (int)osPwrite64(fd, pBuf, nBuf, iOff);}while( rc<0 && errno==EINTR);
10.02       |                 ^~~~~~~~~~
32.92 make: *** [Makefile:91: pd-server] Error 1
------
Dockerfile:28
--------------------
  26 |     COPY . .
  27 |
  28 | >>> RUN make
  29 |
  30 |     FROM alpine:3.17

What did you expect to see?

successful.

What did you see instead?

failed.

What version of PD are you using (pd-server -V)?

master

@nolouch nolouch added the type/bug The issue is confirmed as a bug. label Dec 11, 2023
ti-chi-bot bot pushed a commit that referenced this issue Dec 11, 2023
close #7521

ci: fix docker build with musl compatibility issue

Signed-off-by: Shuning Chen <nolouch@ShuningdeMacBook-Pro.local>

Co-authored-by: Shuning Chen <nolouch@ShuningdeMacBook-Pro.local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/major type/bug The issue is confirmed as a bug.
Projects
Development

Successfully merging a pull request may close this issue.

1 participant