-
Notifications
You must be signed in to change notification settings - Fork 127
On Apple M3, meson setup incorrectly identify as x86_64 #392
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
Comments
There are about 250+ sprintf code declarations in the codebase. For the time being, turn off that warning. The code has gone through a security audit for these kinds of buffer overflows and should know what it is doing. |
I have the same problem. Any suggestions? |
My guess would be that meson is running using Rosetta 2 in x86_64 mode. Perhaps you did change the config of your terminal in the past to run your shell this way? I don't own a Mac and can't give you detailed advice, but there seems to be an If you are sure that meson is invoked in ARM mode it would be helpful if you upload the full meson log ( |
Any suggestions? I have the same issue. |
Did you try the suggestions in my previous comment? |
I am using a MacBook Pro with Apple M3 chip. Following the compiling instructions in README.md, after all needed tools and packages are installed, then download from git the gtkwave, then at meson setup, it finds:
Host machine cpu family: x86_64
Host machine cpu: x86_64
Nonetheless, I tried to proceed with meson compile. At step [253/257] Linking target contrib/rtlbrowse/rtlbrowse, error messages started with
FAILED: contrib/rtlbrowse/rtlbrowse
then after hundreds of lines of error messages, the compilation stops with below messages and appears to be the problem by mistaking Apple M3 as x86_64:
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[256/257] Compiling C++ object contrib/xml2stems/xml2stems.p/xml2stems.cc.o
../contrib/xml2stems/xml2stems.cc:169:37: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
169 | sprintf(genname, "%s:G%d", nam, geninst++);
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:274:1: note: 'sprintf' has been explicitly marked deprecated here
274 | __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg'
218 | #define __deprecated_msg(_msg) attribute((deprecated(_msg)))
| ^
1 warning generated.
ninja: build stopped: subcommand failed.
The text was updated successfully, but these errors were encountered: