[llvm-dev] How to generate .bc file using configure && make on Mac OS X? (original) (raw)
Peng Yu via llvm-dev llvm-dev at lists.llvm.org
Mon Jan 28 06:09:50 PST 2019
- Previous message: [llvm-dev] How to generate .bc file using configure && make on Mac OS X?
- Next message: [llvm-dev] How to generate .bc file using configure && make on Mac OS X?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On macOS you just omit the '-fuse-ld=gold' and it will work out of the box.
> ./configure CC=clang RANLIB=llvm-ranlib CFLAGS=-flto > LDFLAGS=-Wl,-plugin-opt=save-temps\ -flto\ -fuse-ld=gold > make
No. It doesn't work on Mac OS by just omitting '-fuse-ld=gold'.
$ ../../../extract/bash-5.0/configure CC=clang CXX=clang++ RANLIB=llvm-ranlib CFLAGS=-g\ -flto LDFLAGS=-Wl,-plugin-opt=save-temps\ -flto checking build system type... x86_64-apple-darwin17.7.0 checking host system type... x86_64-apple-darwin17.7.0
Beginning configuration for bash-5.0-release for x86_64-apple-darwin17.7.0
checking for gcc... clang
checking whether the C compiler works... no
configure: error: in /Users/pengy/homebake/work/bash/build/Linux/y': configure: error: C compiler cannot create executables See
config.log' for more details
Here is the relevant content from config.log
==== configure:3750: checking whether the C compiler works configure:3772: clang -g -flto -Wl,-plugin-opt=save-temps -flto conftest.c >&5 ld: unknown option: -plugin-opt=save-temps clang: error: linker command failed with exit code 1 (use -v to see invocation) configure:3776: $? = 1 configure:3814: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGENAME "bash" | #define PACKAGETARNAME "bash" | #define PACKAGEVERSION "5.0-release" | #define PACKAGESTRING "bash 5.0-release" | #define PACKAGEBUGREPORT "bug-bash at gnu.org" | #define PACKAGEURL "" | #define ALIAS 1 | #define PUSHDANDPOPD 1 | #define RESTRICTEDSHELL 1 | #define PROCESSSUBSTITUTION 1 | #define PROMPTSTRINGDECODE 1 | #define SELECTCOMMAND 1 | #define HELPBUILTIN 1 | #define ARRAYVARS 1 | #define DPARENARITHMETIC 1 | #define BRACEEXPANSION 1 | #define COMMANDTIMING 1 | #define EXTENDEDGLOB 1 | #define EXTGLOBDEFAULT 0 | #define CONDCOMMAND 1 | #define CONDREGEXP 1 | #define COPROCESSSUPPORT 1 | #define ARITHFORCOMMAND 1 | #define NETWORKREDIRECTIONS 1 | #define PROGRAMMABLECOMPLETION 1 | #define DEBUGGER 1 | #define CASEMODATTRS 1 | #define CASEMODEXPANSIONS 1 | #define GLOBASCIIDEFAULT 1 | #define FUNCTIONIMPORT 1 | #define MEMSCRAMBLE 1 | /* end confdefs.h. */ || int | main () | { || ; | return 0; | } configure:3819: error: in `/Users/pengy/homebake/work/bash/build/Linux/y': configure:3821: error: C compiler cannot create executables
-- Regards, Peng
- Previous message: [llvm-dev] How to generate .bc file using configure && make on Mac OS X?
- Next message: [llvm-dev] How to generate .bc file using configure && make on Mac OS X?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]