Source: survivor Version: 1.0.6-2 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
survivor fails to cross build from source, because the upstream Makefils hard code the build architecture compiler g++. Please use $(CXX) instead. I'm attaching a patch for your convenience. Helmut
--- survivor-1.0.6.orig/Debug/makefile +++ survivor-1.0.6/Debug/makefile @@ -52,7 +52,7 @@ all: SURVIVOR SURVIVOR: $(OBJS) $(USER_OBJS) @echo 'Building target: $@' @echo 'Invoking: Cross G++ Linker' - g++ -o "SURVIVOR" $(OBJS) $(USER_OBJS) $(LIBS) + $(CXX) -o "SURVIVOR" $(OBJS) $(USER_OBJS) $(LIBS) @echo 'Finished building target: $@' @echo ' ' --- survivor-1.0.6.orig/Debug/src/analysis_sv/subdir.mk +++ survivor-1.0.6/Debug/src/analysis_sv/subdir.mk @@ -32,7 +32,7 @@ CPP_DEPS += \ src/analysis_sv/%.o: ../src/analysis_sv/%.cpp @echo 'Building file: $<' @echo 'Invoking: Cross G++ Compiler' - g++ -O3 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + $(CXX) -O3 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" @echo 'Finished building: $<' @echo ' ' --- survivor-1.0.6.orig/Debug/src/convert/subdir.mk +++ survivor-1.0.6/Debug/src/convert/subdir.mk @@ -47,7 +47,7 @@ CPP_DEPS += \ src/convert/%.o: ../src/convert/%.cpp @echo 'Building file: $<' @echo 'Invoking: Cross G++ Compiler' - g++ -O3 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + $(CXX) -O3 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" @echo 'Finished building: $<' @echo ' ' --- survivor-1.0.6.orig/Debug/src/merge_vcf/subdir.mk +++ survivor-1.0.6/Debug/src/merge_vcf/subdir.mk @@ -20,7 +20,7 @@ CPP_DEPS += \ src/merge_vcf/%.o: ../src/merge_vcf/%.cpp @echo 'Building file: $<' @echo 'Invoking: Cross G++ Compiler' - g++ -O3 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + $(CXX) -O3 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" @echo 'Finished building: $<' @echo ' ' --- survivor-1.0.6.orig/Debug/src/phasing/subdir.mk +++ survivor-1.0.6/Debug/src/phasing/subdir.mk @@ -17,7 +17,7 @@ CPP_DEPS += \ src/phasing/%.o: ../src/phasing/%.cpp @echo 'Building file: $<' @echo 'Invoking: Cross G++ Compiler' - g++ -O3 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + $(CXX) -O3 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" @echo 'Finished building: $<' @echo ' ' --- survivor-1.0.6.orig/Debug/src/scrup_vcf/subdir.mk +++ survivor-1.0.6/Debug/src/scrup_vcf/subdir.mk @@ -17,7 +17,7 @@ CPP_DEPS += \ src/scrup_vcf/%.o: ../src/scrup_vcf/%.cpp @echo 'Building file: $<' @echo 'Invoking: Cross G++ Compiler' - g++ -O3 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + $(CXX) -O3 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" @echo 'Finished building: $<' @echo ' ' --- survivor-1.0.6.orig/Debug/src/simulator/subdir.mk +++ survivor-1.0.6/Debug/src/simulator/subdir.mk @@ -32,7 +32,7 @@ CPP_DEPS += \ src/simulator/%.o: ../src/simulator/%.cpp @echo 'Building file: $<' @echo 'Invoking: Cross G++ Compiler' - g++ -O3 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + $(CXX) -O3 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" @echo 'Finished building: $<' @echo ' ' --- survivor-1.0.6.orig/Debug/src/snp_overlap/subdir.mk +++ survivor-1.0.6/Debug/src/snp_overlap/subdir.mk @@ -17,7 +17,7 @@ CPP_DEPS += \ src/snp_overlap/%.o: ../src/snp_overlap/%.cpp @echo 'Building file: $<' @echo 'Invoking: Cross G++ Compiler' - g++ -O3 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + $(CXX) -O3 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" @echo 'Finished building: $<' @echo ' ' --- survivor-1.0.6.orig/Debug/src/subdir.mk +++ survivor-1.0.6/Debug/src/subdir.mk @@ -29,7 +29,7 @@ CPP_DEPS += \ src/%.o: ../src/%.cpp @echo 'Building file: $<' @echo 'Invoking: Cross G++ Compiler' - g++ -O3 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + $(CXX) -O3 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" @echo 'Finished building: $<' @echo ' ' --- survivor-1.0.6.orig/Debug/src/vcfs/subdir.mk +++ survivor-1.0.6/Debug/src/vcfs/subdir.mk @@ -35,7 +35,7 @@ CPP_DEPS += \ src/vcfs/%.o: ../src/vcfs/%.cpp @echo 'Building file: $<' @echo 'Invoking: Cross G++ Compiler' - g++ -O3 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + $(CXX) -O3 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" @echo 'Finished building: $<' @echo ' '