dipetkov / eems

Estimating Effective Migration Surfaces
GNU General Public License v2.0
102 stars 28 forks source link

Problem compiling plinkio library for bed2diffs #60

Open redgcko7 opened 2 years ago

redgcko7 commented 2 years ago

Hello,

I cannot seem to compile the plinkio lib needed to run bed2diffs on my computer. I have followed the instructions on the bed2diffs README, but when I run the command 'make && make check && make install', I get the following error, and no 'lib' directory in created.

../../../libs/cmockery/src/example/calculator.c:257:3: error: implicit declaration of function 'example_test_printf' is invalid in C99 [-Werror,-Wimplicit-function-declaration]

There are also several warnings generated. I have attached the log file with the warnings and errors for reference. plinkio_configure_error_log.txt

macOS Big Sur 11.4 MacBook Pro 2020, M1 chip

JimStarrett commented 2 years ago

I seem to be having the same problem (macOS Big Sur 11.6), and after days of failed trouble-shooting, any help would be greatly appreciated.

I receive the same error above when I run 'make && make check && make install' for plinkio (following the bed2diffs READ.md).

When I run 'make darwin' for bed2diffs/src-wout-openmp i get the error below, regardless of the path I put for PLINKIO. The lib folder was not created.

(base) Aliatypus@Jamess-MacBook-Pro src-wout-openmp % make darwin
c++ -I/Users/Aliatypus/libplinkio/plinkio -O3 -Wall -Werror -o bed2diffs_v1 bed2diffs_v1.o data.o -L/Users/Aliatypus/libplinkio/plinkio/lib -lplinkio ld: warning: directory not found for option '-L/Users/Aliatypus/libplinkio/plinkio/lib' ld: library not found for -lplinkio clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [darwin] Error 1

redgcko7 commented 2 years ago

Unfortunately, I have not yet figured out the problem. I ended up successfully installing everything on another computer (macOS Mojave 10.14.6), leading me to believe it is a compatibility issue with the newer mac OS's.

JimStarrett commented 2 years ago

Thank you for replying and glad you were able to get it to work. I attempted to install on a linux based cluster but still ran into problems. Now the lib folder is created from running configure for libplinkio, and I put the path to the plinkio folder with the plinkio.h file in it in the bed2diff/src-wout-openmp Makefile, but still receive the error below. Any suggestions? Thanks!

data.hpp:7:10: fatal error: plinkio/plinkio.h: No such file or directory

include <plinkio/plinkio.h>

redgcko7 commented 2 years ago

Hmm, sounds like you've done all the steps that I did to get it to work. I would just double-check that you put the path to the right plinkio folder, as there seem to be several within the libplinkio directory. My path ended in: /libplinkio/src