You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "liuneng1994 (via GitHub)" <gi...@apache.org> on 2025/05/27 12:14:12 UTC
[I] [VL] Build arrow failed on Mac Apple M4 Pro [incubator-gluten]
liuneng1994 opened a new issue, #9767:
URL: https://github.com/apache/incubator-gluten/issues/9767
### Problem description
./dev/builddeps-veloxbe.sh --run_setup_script=false build_arrow
### System information
Gluten Version: 1.5.0-SNAPSHOT
Commit: a87cc8c1a2cfabac70d5b638e9ce0d237fb2fecb
CMake Version: 3.31.6
System: Darwin-24.5.0
Arch: arm64
CPU Name:
C++ Compiler: /Library/Developer/CommandLineTools/usr/bin/c++
C++ Compiler Version: 17.0.0.17000013
C Compiler: /Library/Developer/CommandLineTools/usr/bin/cc
C Compiler Version: 17.0.0.17000013
CMake Prefix Path: /Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk/usr;/opt/homebrew;/usr/local;/usr;/;/Applications/CMake.app/Contents;/usr/local;/usr/X11R6;/usr/pkg;/opt;/sw;/opt/local
### CMake log
```bash
[1/7] Building C object CMakeFiles/zlibstatic.dir/zutil.o
FAILED: CMakeFiles/zlibstatic.dir/zutil.o
/Library/Developer/CommandLineTools/usr/bin/cc -I/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep-build -I/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep -Qunused-arguments -fPIC -O3 -DNDEBUG -O2 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk -MD -MT CMakeFiles/zlibstatic.dir/zutil.o -MF CMakeFiles/zlibstatic.dir/zutil.o.d -o CMakeFiles/zlibstatic.dir/zutil.o -c /Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.c
In file included from /Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.c:8:
/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.h:170:11: warning: 'OS_CODE' macro redefined [-Wmacro-redefined]
170 | # define OS_CODE 19
| ^
/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.h:141:11: note: previous definition is here
141 | # define OS_CODE 7
| ^
In file included from /Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.c:10:
In file included from /Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/gzguts.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/include/stdio.h:61:
/Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/include/_stdio.h:318:7: error: expected identifier or '('
318 | FILE *fdopen(int, const char *) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fdopen));
| ^
/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/__stddef_null.h:26:16: note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
In file included from /Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.c:10:
In file included from /Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/gzguts.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/include/stdio.h:61:
/Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/include/_stdio.h:318:7: error: expected ')'
/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/__stddef_null.h:26:16: note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
/Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/include/_stdio.h:318:7: note: to match this '('
/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/__stddef_null.h:26:15: note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
In file included from /Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.c:10:
In file included from /Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/gzguts.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/include/stdio.h:61:
/Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/include/_stdio.h:318:7: error: expected ')'
318 | FILE *fdopen(int, const char *) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fdopen));
| ^
/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/__stddef_null.h:26:22: note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
/Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/include/_stdio.h:318:7: note: to match this '('
/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/__stddef_null.h:26:14: note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.c:135:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
135 | const char * ZEXPORT zError(err)
| ^
/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.c:307:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
307 | voidpf ZLIB_INTERNAL zcalloc(opaque, items, size)
| ^
/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.c:317:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
317 | void ZLIB_INTERNAL zcfree(opaque, ptr)
| ^
4 warnings and 3 errors generated.
[2/7] Building C object CMakeFiles/zlib.dir/zutil.o
FAILED: CMakeFiles/zlib.dir/zutil.o
/Library/Developer/CommandLineTools/usr/bin/cc -DZLIB_DLL -I/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep-build -I/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep -Qunused-arguments -fPIC -O3 -DNDEBUG -O2 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk -fPIC -MD -MT CMakeFiles/zlib.dir/zutil.o -MF CMakeFiles/zlib.dir/zutil.o.d -o CMakeFiles/zlib.dir/zutil.o -c /Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.c
In file included from /Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.c:8:
/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.h:170:11: warning: 'OS_CODE' macro redefined [-Wmacro-redefined]
170 | # define OS_CODE 19
| ^
/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.h:141:11: note: previous definition is here
141 | # define OS_CODE 7
| ^
In file included from /Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.c:10:
In file included from /Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/gzguts.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/include/stdio.h:61:
/Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/include/_stdio.h:318:7: error: expected identifier or '('
318 | FILE *fdopen(int, const char *) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fdopen));
| ^
/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/__stddef_null.h:26:16: note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
In file included from /Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.c:10:
In file included from /Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/gzguts.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/include/stdio.h:61:
/Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/include/_stdio.h:318:7: error: expected ')'
/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/__stddef_null.h:26:16: note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
/Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/include/_stdio.h:318:7: note: to match this '('
/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/__stddef_null.h:26:15: note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
In file included from /Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.c:10:
In file included from /Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/gzguts.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/include/stdio.h:61:
/Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/include/_stdio.h:318:7: error: expected ')'
318 | FILE *fdopen(int, const char *) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fdopen));
| ^
/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/__stddef_null.h:26:22: note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
/Library/Developer/CommandLineTools/SDKs/MacOSX15.4.sdk/usr/include/_stdio.h:318:7: note: to match this '('
/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.h:147:33: note: expanded from macro 'fdopen'
147 | # define fdopen(fd,mode) NULL /* No fdopen() */
| ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/__stddef_null.h:26:14: note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^
/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.c:135:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
135 | const char * ZEXPORT zError(err)
| ^
/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.c:307:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
307 | voidpf ZLIB_INTERNAL zcalloc(opaque, items, size)
| ^
/Users/admin/code/incubator-gluten/ep/_ep/arrow_ep/cpp/_build/zlib_ep-prefix/src/zlib_ep/zutil.c:317:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
317 | void ZLIB_INTERNAL zcfree(opaque, ptr)
| ^
4 warnings and 3 errors generated.
ninja: build stopped: subcommand failed.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [I] [VL] Build arrow failed on Mac Apple M4 Pro [incubator-gluten]
Posted by "zhouyuan (via GitHub)" <gi...@apache.org>.
zhouyuan commented on issue #9767:
URL: https://github.com/apache/incubator-gluten/issues/9767#issuecomment-3146361541
Cc @nimesh1601 as he is also trying on M4 build
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [I] [VL] Build arrow failed on Mac Apple M4 Pro [incubator-gluten]
Posted by "zhouyuan (via GitHub)" <gi...@apache.org>.
zhouyuan commented on issue #9767:
URL: https://github.com/apache/incubator-gluten/issues/9767#issuecomment-3146334586
@liuneng1994 @wForget
I think below patch has already fixed it: https://github.com/apache/incubator-gluten/pull/10158
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [I] [VL] Build arrow failed on Mac Apple M4 Pro [incubator-gluten]
Posted by "zhouyuan (via GitHub)" <gi...@apache.org>.
zhouyuan closed issue #9767: [VL] Build arrow failed on Mac Apple M4 Pro
URL: https://github.com/apache/incubator-gluten/issues/9767
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [I] [VL] Build arrow failed on Mac Apple M4 Pro [incubator-gluten]
Posted by "wForget (via GitHub)" <gi...@apache.org>.
wForget commented on issue #9767:
URL: https://github.com/apache/incubator-gluten/issues/9767#issuecomment-2915113748
You might try disabling zlib or specifying zlib version to 1.3.1 https://github.com/apache/incubator-gluten/blob/12eb8f6f5aab74bf74263cf317ae956806151f46/dev/build_arrow.sh#L48
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [I] [VL] Build arrow failed on Mac Apple M4 Pro [incubator-gluten]
Posted by "liuneng1994 (via GitHub)" <gi...@apache.org>.
liuneng1994 commented on issue #9767:
URL: https://github.com/apache/incubator-gluten/issues/9767#issuecomment-3146504058
Problem has been resolved
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [I] [VL] Build arrow failed on Mac Apple M4 Pro [incubator-gluten]
Posted by "wForget (via GitHub)" <gi...@apache.org>.
wForget commented on issue #9767:
URL: https://github.com/apache/incubator-gluten/issues/9767#issuecomment-2915107769
FYI: https://github.com/google-ai-edge/mediapipe/issues/5943
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org
Re: [I] [VL] Build arrow failed on Mac Apple M4 Pro [incubator-gluten]
Posted by "liuneng1994 (via GitHub)" <gi...@apache.org>.
liuneng1994 closed issue #9767: [VL] Build arrow failed on Mac Apple M4 Pro
URL: https://github.com/apache/incubator-gluten/issues/9767
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org