You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pfe build dies on macOS Montery with "pfe/def-regth.h:44:38: error: register '%r15' unsuitable for global register variables on this target".
Here's a log of the build:
$ make
Makefile:536: warning: overriding commands for target `rpm'
Makefile:446: warning: ignoring old commands for target `rpm'
(cd `uname -msr | tr " /" "__"`.d && test ! -f configure && /Applications/Xcode.app/Contents/Developer/usr/bin/make "all") || exit ; /Applications/Xcode.app/Contents/Developer/usr/bin/make done "RULE=all"
Making all in pfe
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
/bin/sh ./libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../../pfe/.. -I. -I../../pfe -O1 -I/usr/local/opt/expat/include -g -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Werror-implicit-function-declaration -fno-strict-aliasing -Wno-sign-compare -no-cpp-precomp -MT def-check.lo -MD -MP -MF .deps/def-check.Tpo -c -o def-check.lo ../../pfe/def-check.c
In file included from ../../pfe/def-check.c:28:
In file included from ../../pfe/../pfe/def-regs.h:25:
../../pfe/../pfe/def-regth.h:44:38: error: register '%r15' unsuitable for global register variables on this target
register struct p4_Thread* p4TH asm (P4_REGTH);
^
../../pfe/../pfe/def-regmacro.h:166:36: note: expanded from macro 'P4_REGTH'
# define P4_REGTH "%r15"
^
1 error generated.
make[3]: *** [def-check.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
What was using the default computer on macOS, which is /usr/bin/gcc, which is actually Apple clang:
$ /usr/bin/gcc --version
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: x86_64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
I tried using a real GCC, installed by the macOS package manager homebrew, by setting CC=gcc-13 in the arguments to configure, like this: configure CC=gcc-13. It died with the error: "gcc-13: error: unrecognized command-line option '-no-cpp-precomp'".
pfe build dies on macOS Montery with "pfe/def-regth.h:44:38: error: register '%r15' unsuitable for global register variables on this target".
Here's a log of the build:
What was using the default computer on macOS, which is /usr/bin/gcc, which is actually Apple clang:
I tried using a real GCC, installed by the macOS package manager homebrew, by setting
CC=gcc-13
in the arguments toconfigure
, like this:configure CC=gcc-13
. It died with the error: "gcc-13: error: unrecognized command-line option '-no-cpp-precomp'".I found "-no-cpp-precomp" in
configure
. When I removed it, the build worked. Yay! Here's the diff:The text was updated successfully, but these errors were encountered: