Internal Error Assembler X86 .cpp
report any breakage of -fPIC as a bug. 4# CXXFLAGS += -fPIC 5# the following options reduce code size, but breaks link or makes link very slow on some systems 6# CXXFLAGS += -ffunction-sections -fdata-sections 7# LDFLAGS += -Wl,--gc-sections 8ARFLAGS = -cr # ar needs the dash on OpenBSD 9RANLIB = ranlib 10CP = cp 11MKDIR = mkdir 12EGREP = egrep 13UNAME = $(shell uname) 14ISX86 = $(shell uname -m | $(EGREP) -c "i.86|x86|i86|amd64") 15IS_SUN_CC = $(shell $(CXX) -V 2>&1 | $(EGREP) -c "CC: Sun") 16IS_LINUX = $(shell $(CXX) -dumpmachine 2>&1 | $(EGREP) -c "linux") 17IS_MINGW = $(shell $(CXX) -dumpmachine 2>&1 | $(EGREP) -c "mingw") 18CLANG_COMPILER = $(shell $(CXX) --version 2>&1 | $(EGREP) -i -c "clang version") 19 20# Default prefix for make install 21ifeq ($(PREFIX),) 22PREFIX = /usr 23endif 24 25ifeq ($(CXX),gcc) # for some reason CXX is gcc on cygwin 1.1.4 26CXX = g++ 27endif 28 29ifeq ($(ISX86),1) 30 31GCC42_OR_LATER = $(shell $(CXX) -v 2>&1 | $(EGREP) -c "^gcc version (4.[2-9]|[5-9])") 32INTEL_COMPILER = $(shell $(CXX) --version 2>&1 | $(EGREP) -c "\(ICC\)") 33ICC111_OR_LATER = $(shell $(CXX) --version 2>&1 | $(EGREP) -c "\(ICC\) ([2-9][0-9]|1[2-9]|11\.[1-9])") 34GAS210_OR_LATER = $(shell $(CXX) -xc -c /dev/null -Wa,-v -o/dev/null 2>&1 | $(EGREP) -c "GNU assembler version (2\.[1-9][0-9]|[3-9])") 35GAS217_OR_LATER = $(shell $(CXX) -xc -c /dev/null -Wa,-v -o/dev/null 2>&1 | $(EGREP) -c "GNU assembler version (2\.1[7-9]|2\.[2-9]|[3-9])") 36GAS219_OR_LATER = $(shell $(CXX) -xc -c /dev/null -Wa,-v -o/dev/null 2>&1 | $(EGREP) -c "GNU assembler version (2\.19|2\.[2-9]|[3-9])") 37 38ifneq ($(GCC42_OR_LATER),0) 39ifeq ($(UNAME),Darwin) 40CXXFLAGS += -arch x86_64 -arch i386 41else 42CXXFLAGS += -march=native 43endif 44endif 45 46ifneq ($(INTEL_COMPILER),0) 47CXXFLAGS += -wd68 -wd186 -wd279 -wd327 48ifeq ($(ICC111_OR_LATER),0) 49#
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Unable to change compiler in Crypto++ GNUmakefile up vote 1 down vote favorite I'm trying to compile cryptopp with gcc49 on http://www.cryptopp.com/docs/ref562/_g_n_umakefile_source.html FreeBSD 10.x, however no matter how I instruct the Makefile to compile with g++49/gcc49, my attempts are ignored and it always compiles with c++. I can't see at the moment where the compiler is defined in Makefile. What I tried: ifeq ($(CXX),gcc) # for some reason CXX is gcc on cygwin 1.1.4 CXX = g++49 endif So I'd like the almighty of someone here to instruct it to compile with gcc49 (or g++49?) instead. http://stackoverflow.com/questions/33686939/unable-to-change-compiler-in-crypto-gnumakefile Thanks! Makefile: CXXFLAGS = -DNDEBUG -g -O2 #CXXFLAGS = -g # -fPIC is supported. Please report any breakage of -fPIC as a bug. # CXXFLAGS += -fPIC # the following options reduce code size, but breaks link or makes link very slow on some systems # CXXFLAGS += -ffunction-sections -fdata-sections # LDFLAGS += -Wl,--gc-sections ARFLAGS = -cr # ar needs the dash on OpenBSD RANLIB = ranlib CP = cp MKDIR = mkdir EGREP = egrep UNAME = $(shell uname) ISX86 = $(shell uname -m | $(EGREP) -c "i.86|x86|i86|amd64") # Default prefix for make install ifeq ($(PREFIX),) PREFIX = .. endif ifeq ($(CXX),gcc) # for some reason CXX is gcc on cygwin 1.1.4 CXX = g++49 endif ifeq ($(ISX86),1) GCC42_OR_LATER = $(shell $(CXX) -v 2>&1 | $(EGREP) -c "^gcc version (4.[2-9]|[5-9])") INTEL_COMPILER = $(shell $(CXX) --version 2>&1 | $(EGREP) -c "\(ICC\)") ICC111_OR_LATER = $(shell $(CXX) --version 2>&1 | $(EGREP) -c "\(ICC\) ([2-9][0-9]|1[2-9]|11\.[1-9])") IS_SUN_CC = $(shell $(CXX) -V 2>&1 | $(EGREP) -c "CC: Sun") GAS210_OR_LATER = $(shell echo "" | $(AS) -v 2>&1 | $(EGREP) -c "GNU assembler version (2\.[1-9][0-9]|[3-9])") GAS217_OR_LATER = $(shell echo "" | $(AS) -v 2>&1 | $(EGREP) -c "GNU assembler version (2\.1[7-9]|2\.[2-9]|[3-9])") GAS219_OR_LATER = $(shell echo "" | $(AS) -v 2>&1 | $(EGREP) -c "GNU assembler version (2\.19|2\.[2-9]|[3-9])") ISMINGW = $(shell $(CXX) --version 2>&1 | $(EGREP
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this http://stackoverflow.com/questions/22733862/android-crypto-compiling-by-command-line-gnumakefile site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Android Crypto++ internal error compiling by command line, GNUmakefile up vote 2 down vote favorite I have a problem to make appriopriate GNUmakefile, which should create Crypto++ library for Android. I am using this tutorial, and I'm stuck on patching makefile. Where can I find file GNUmakefile-android.patch which there is mentioned? I've tryied to add manually lines to file but I am not sure I am doing it internal error assembler correct. Now my GNUmakefile looks like this: CXXFLAGS = -DNDEBUG -g -O2 # -O3 fails to link on Cygwin GCC version 4.5.3 # -fPIC is supported. Please report any breakage of -fPIC as a bug. # CXXFLAGS += -fPIC # the following options reduce code size, but breaks link or makes link very slow on some systems # CXXFLAGS += -ffunction-sections -fdata-sections # LDFLAGS += -Wl,--gc-sections ARFLAGS = -cr # ar needs the dash on OpenBSD RANLIB = ranlib CP = cp MKDIR = mkdir EGREP = egrep UNAME = $(shell uname) ISX86 = $(shell uname -m | $(EGREP) -c "i.86|x86|i86|amd64") IS_SUN_CC = $(shell $(CXX) -V 2>&1 | $(EGREP) -c "CC: Sun") IS_LINUX = $(shell $(CXX) -dumpmachine 2>&1 | $(EGREP) -c "linux") IS_MINGW = $(shell $(CXX) -dumpmachine 2>&1 | $(EGREP) -c "mingw") CLANG_COMPILER = $(shell $(CXX) --version 2>&1 | $(EGREP) -i -c "clang version") # Set in the environment ifeq ($(IS_CROSS_COMPILE),1) ISX86=0 IS_LINUX=0 IS_MINGW=0 IS_DARWIN=0 UNAME=CrossCompile endif # Default prefix for make install ifeq ($(PREFIX),) PREFIX = /usr endif ifeq ($(CXX),gcc) # for some reason CXX is gcc on cygwin 1.1.4 CXX = g++ endif ifeq ($(IS_ANDROID),1) CPP=arm-linux-androideabi-cpp CXX=arm-linux-androideabi-g++ AR=arm-linux-androideabi-ar RANLIB=a