-
-
Notifications
You must be signed in to change notification settings - Fork 812
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
install failed on MacOS with ARM64 #3296
Comments
try dev branch bash <(curl -fsSL https://xmake.io/shget.text) dev |
I tried, it has same error for me compiling.release core/src/tbox/tbox/src/tbox/platform/file.c
In file included from core/src/tbox/tbox/src/tbox/platform/file.c:39:
core/src/tbox/tbox/src/tbox/platform/posix/file.c:202:14: warning: 'lstat64' is deprecated: first deprecated in macOS 10.6 [-Wdeprecated-declarations]
if (!lstat64(path, &st))
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/sys/stat.h:428:9: note: 'lstat64' has been explicitly marked deprecated here
int lstat64(const char *, struct stat64 *) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_5, __MAC_10_6, __IPHONE_NA, __IPHONE_NA);
^
In file included from core/src/tbox/tbox/src/tbox/platform/file.c:39:
core/src/tbox/tbox/src/tbox/platform/posix/file.c:219:22: warning: 'stat64' is deprecated: first deprecated in macOS 10.6 [-Wdeprecated-declarations]
if (!stat64(path, &st))
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/sys/stat.h:429:9: note: 'stat64' has been explicitly marked deprecated here
int stat64(const char *, struct stat64 *) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_5, __MAC_10_6, __IPHONE_NA, __IPHONE_NA);
^
2 warnings generated.
compiling.release core/src/tbox/tbox/src/tbox/platform/filelock.c
......
compiling.release core/src/xmake/lz4/block_decompress.c
core/src/xmake/lz4/block_decompress.c:71:22: warning: 'LZ4_decompress_fast' is deprecated: This function is deprecated and unsafe. Consider using LZ4_decompress_safe() instead [-Wdeprecated-declarations]
tb_int_t r = LZ4_decompress_fast((tb_char_t const*)data, (tb_char_t*)output_data, real);
^
/usr/local/Cellar/lz4/1.9.3/include/lz4.h:753:1: note: 'LZ4_decompress_fast' has been explicitly marked deprecated here
LZ4_DEPRECATED("This function is deprecated and unsafe. Consider using LZ4_decompress_safe() instead")
^
/usr/local/Cellar/lz4/1.9.3/include/lz4.h:687:52: note: expanded from macro 'LZ4_DEPRECATED'
# define LZ4_DEPRECATED(message) __attribute__((deprecated(message)))
^
1 warning generated.
compiling.release core/src/xmake/lz4/compress_stream_read.c
compiling.release core/src/xmake/lz4/compress_file.c
......
linking.release build/macosx/arm64/release/libxmake.a
compiling.release core/src/demo/xmake.c
linking.release build/xmake
ld: warning: ignoring file build/macosx/arm64/release/libtbox.a, building for macOS-x86_64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file build/macosx/arm64/release/libxmake.a, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 )
ld: archive has no table of contents file 'build/macosx/arm64/release/libsv.a' for architecture x86_64
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [build/xmake] Error 1
make failed!
|
can you try the following command and give me verbose logs.
|
I have the same issue with a m1 pro.
|
I need full logs ./configure --verbose --diagnosis |
configure log: https://gist.github.com/FabianTerhorst/781c68f83d61ffcc77708803c1c5da3f
|
Can you disable LTO and try it again? Lines 28 to 31 in 0847395
then you need run |
thanks alot, make worked and i got a xmake binary now. |
It looks like make didn't returned any errors and generated a binary, but the binary is not doing anything and is just 500kb. |
right, xmake binary is small, it is just 500kb. you need run ./scripts/get.sh __local__ __install_only__
source ~/.xmake/profile to install binary and all lua scripts, then it will work. |
thanks, it works now. I was able to build a project with it. |
I have fixed it on dev. |
Xmake Version
2.7.5
Operating System Version and Architecture
macOS Monterey
Describe Bug
install by
bash <(curl -fsSL https://xmake.io/shget.text)
failederror log:
Expected Behavior
Expected installation success
Project Configuration
No response
Additional Information and Error Logs
No response
The text was updated successfully, but these errors were encountered: