-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install failed #41
Comments
Try removing the cget directory in the base of the Minimac 4 source, running |
Alternatively, you might be able to just run |
I tried and failed to make , the error as follow: |
These link errors you are experiencing suggest that Minimac4 and libStatGen are being built with different compilers. You could try running If that doesn't work, please provide the output of |
I tried to run export CFLAGS="-fPIC -D_GLIBCXX_USE_CXX11_ABI=0" && make and the same problem occured. Those output logfile as follow |
I'm guessing that libStatGen is being built with
Otherwise, I would just use the prebuilt binary at https://github.com/statgen/Minimac4/releases/download/v1.0.2/minimac4-1.0.2-Linux.sh. You can install the binary to a location of your choosing with |
This does work. |
Can I ask for some help? I ran into some trouble while installing Minimac4 and would greatly appreciate it. I tried the following steps: CMake Error in CMakeLists.txt:
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
-- Generating done |
The install.sh script should no longer be used (should have been deleted). Instead follow the instructions in the README to build from source. You will likely need to use a gcc version >= 5. Instead of building from source, I recommend using the pre-built executable that can be installed by running https://github.com/statgen/Minimac4/releases/download/v4.1.2/minimac4-4.1.2-Linux-x86_64.sh. |
Hi, I have met problem when I installed minimac4 . the command I used as follow:
/home/rw/guanglinHe/software/anaconda3/bin/cget install -f ./requirements.txt #-- Installing:/home/XiaominYang/biosoftware/Minimac4/cget/cget/pkg/statgen__libStatGen/install/lib/libStatGen.a
Successfully installed statgen/libStatGen
mkdir build && cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../cget/cget/cget.cmake ..
make
the problem as follow:
Scanning dependencies of target minimac4
[ 8%] Building CXX object CMakeFiles/minimac4.dir/src/Analysis.cpp.o
[ 16%] Building CXX object CMakeFiles/minimac4.dir/src/AnalysisChunks.cpp.o
[ 25%] Building CXX object CMakeFiles/minimac4.dir/src/DosageData.cpp.o
[ 33%] Building CXX object CMakeFiles/minimac4.dir/src/HaplotypeSet.cpp.o
[ 41%] Building CXX object CMakeFiles/minimac4.dir/src/Imputation.cpp.o
[ 50%] Building CXX object CMakeFiles/minimac4.dir/src/ImputationStatistics.cpp.o
[ 58%] Building CXX object CMakeFiles/minimac4.dir/src/Main.cpp.o
[ 66%] Building CXX object CMakeFiles/minimac4.dir/src/MarkovModel.cpp.o
[ 75%] Building CXX object CMakeFiles/minimac4.dir/src/MarkovParameters.cpp.o
[ 83%] Building CXX object CMakeFiles/minimac4.dir/src/Unique.cpp.o
[ 91%] Building CXX object CMakeFiles/minimac4.dir/src/Estimation.cpp.o
[100%] Linking CXX executable minimac4
/usr/bin/ld: ../cget/lib/libStatGen.a(InputFile.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ../cget/lib/libStatGen.a(Parameters.o): relocation R_X86_64_32S against symbol
_ZTV13ParameterList' can not be used when making a PIE object; recompile with -fPIC/usr/bin/ld: ../cget/lib/libStatGen.a(PhoneHome.o): relocation R_X86_64_32S against symbol
_ZN9PhoneHome6ourURLB5cxx11E' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ../cget/lib/libStatGen.a(StringBasics.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC/usr/bin/ld: ../cget/lib/libStatGen.a(StringMap.o): relocation R_X86_64_32S against symbol
_ZTV9StringMap' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ../cget/lib/libStatGen.a(UncompressedFileType.o): relocation R_X86_64_32S against symbol
_ZTV20UncompressedFileType' can not be used when making a PIE object; recompile with -fPIC/usr/bin/ld: ../cget/lib/libStatGen.a(VcfFile.o): relocation R_X86_64_32S against symbol
_ZTV7VcfFile' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ../cget/lib/libStatGen.a(VcfFileReader.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC/usr/bin/ld: ../cget/lib/libStatGen.a(VcfHeader.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ../cget/lib/libStatGen.a(VcfRecord.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC/usr/bin/ld: ../cget/lib/libStatGen.a(VcfRecordFilter.o): relocation R_X86_64_32 against
.bss' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ../cget/lib/libStatGen.a(VcfRecordGenotype.o): relocation R_X86_64_32S against symbol
_ZN17VcfRecordGenotype14ourStoreFieldsB5cxx11E' can not be used when making a PIE object; recompile with -fPIC/usr/bin/ld: ../cget/lib/libStatGen.a(VcfRecordInfo.o): relocation R_X86_64_32S against symbol
_ZTV13VcfRecordInfo' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ../cget/lib/libStatGen.a(VcfSubsetSamples.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC/usr/bin/ld: ../cget/lib/libStatGen.a(VcfRecordDiscardRules.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ../cget/lib/libStatGen.a(knetfile.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC/usr/bin/ld: ../cget/lib/libStatGen.a(BgzfFileType.o): relocation R_X86_64_32S against symbol
_ZTV12BgzfFileType' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ../cget/lib/libStatGen.a(BgzfFileTypeRecovery.o): relocation R_X86_64_32S against symbol
_ZTV10FileReader' can not be used when making a PIE object; recompile with -fPIC/usr/bin/ld: ../cget/lib/libStatGen.a(Error.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ../cget/lib/libStatGen.a(FileType.o): relocation R_X86_64_32S against symbol
_ZTV8FileType' can not be used when making a PIE object; recompile with -fPIC/usr/bin/ld: ../cget/lib/libStatGen.a(GzipFileType.o): relocation R_X86_64_32S against symbol
_ZTV12GzipFileType' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ../cget/lib/libStatGen.a(GzipHeader.o): relocation R_X86_64_32S against symbol
_ZN20UncompressedFileType6isOpenEv' can not be used when making a PIE object; recompile with -fPIC/usr/bin/ld: ../cget/lib/libStatGen.a(StatGenStatus.o): relocation R_X86_64_32S against symbol
_ZN13StatGenStatus16enumStatusStringE' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ../cget/lib/libStatGen.a(StringArray.o): relocation R_X86_64_32S against symbol
_ZTV11StringArray' can not be used when making a PIE object; recompile with -fPIC/usr/bin/ld: ../cget/lib/libStatGen.a(Tabix.o): relocation R_X86_64_32S against symbol
_ZTV5Tabix' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ../cget/lib/libStatGen.a(VcfGenotypeField.o): relocation R_X86_64_32 against
.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC/usr/bin/ld: ../cget/lib/libStatGen.a(VcfGenotypeFormat.o): relocation R_X86_64_32S against symbol
_ZTV17VcfGenotypeFormat' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ../cget/lib/libStatGen.a(VcfGenotypeSample.o): relocation R_X86_64_32S against symbol
_ZTV17VcfGenotypeSample' can not be used when making a PIE object; recompile with -fPIC/usr/bin/ld: ../cget/lib/libStatGen.a(bgzf.o): relocation R_X86_64_32S against
.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ../cget/lib/libStatGen.a(ErrorHandler.o): relocation R_X86_64_32 against symbol
_ZSt4cerr@@GLIBCXX_3.4' can not be used when making a PIE object; recompile with -fPIC/usr/bin/ld: ../cget/lib/libStatGen.a(IndexBase.o): relocation R_X86_64_32S against symbol
_ZTV9IndexBase' can not be used when making a PIE object; recompile with -fPIC /usr/bin/ld: ../cget/lib/libStatGen.a(Sort.o): relocation R_X86_64_32 against
.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
CMakeFiles/minimac4.dir/build.make:356: recipe for target 'minimac4' failed
make[2]: *** [minimac4] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/minimac4.dir/all' failed
make[1]: *** [CMakeFiles/minimac4.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
I will be appreciated if anyone can give me somea suggestions.
The text was updated successfully, but these errors were encountered: