根据这个链接做安装前的配置
sh .conf.macosx
后出现以下信息
根据google到的信息,缺少command line tools,已经执行xcode-select --install
并完成安装。
gcc版本不对? 缺乏库?
checking build system type... x86_64-apple-darwin13.1.0
checking host system type... x86_64-apple-darwin13.1.0
checking target system type... x86_64-apple-darwin13.1.0
checking if you are configuring for another platform... no
checking for standard CFLAGS on this platform... -fpascal-strings -fno-common -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/Users/myName/Desktop/bochs-2.6':
configure: error: C compiler cannot create executables
See `config.log' for more details
不知如何提取config.log的有效信息,直接将文件挂在这里了
阿神2017-04-17 11:45:45
Try this: CFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future" ./configure ...
If that still doesn’t work, try: CC='clang -Wno-error=unused-command-line-argument-hard-error-in-future' ./configure ...
But having said that, if you want to install bochs, it is best to use Homebrew. After installing this, just use brew install bochs
.
黄舟2017-04-17 11:45:45
I think there are some libraries missing, but I can’t tell you what they are.
According to the search, you can try to install it first: brew install sdl
Then remember to run in your compilation directory: make distclean
Then recompile and install.
怪我咯2017-04-17 11:45:45
configure:3691: checking whether the C compiler works
configure:3713: gcc -arch i386 -m32 -pipe -O3 -I/sw/include -fomit-frame-pointer -finline-functions -falign-loops=16 -falign-jumps=16 -falign-functions=16 -falign-labels=16 -falign-loops-max-skip=15 -falign-jumps-max-skip=15 -fprefetch-loop-arrays -fpascal-strings -fno-common -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh -fpascal-strings -fno-common -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh -arch i386 -m32 -L/sw/lib conftest.c >&5
clang: error: unknown argument: '-falign-loops=16' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
clang: error: unknown argument: '-falign-jumps=16' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
clang: error: unknown argument: '-falign-labels=16' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
clang: error: unknown argument: '-falign-loops-max-skip=15' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
clang: error: unknown argument: '-falign-jumps-max-skip=15' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
configure:3717: $? = 1
configure:3755: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3760: error: in `/Users/rahn/Desktop/bochs-2.6':
configure:3762: error: C compiler cannot create executables
Your gcc is actually clang. The configure script was given an argument it didn't support. Maybe it's a version issue. You can try CFLAGS='-Wunused-command-line-argument-hard-error-in-future' ./configure
.
Or try setting CC
to clang
?
PHPz2017-04-17 11:45:45
Brew install gcc, set the environment variable CC to gcc and try. Brew has multiple gcc versions to choose from, 4.8 and 4.7. Just choose one. If you still get an error, continue posting the log