genome / bam-readcount

Count bases in BAM/CRAM files
MIT License
298 stars 95 forks source link

Make Error for boost on MacOS #77

Open chintan-vora-tfs opened 3 years ago

chintan-vora-tfs commented 3 years ago

I am getting the following error on macOS Big Sur

Failed to build Boost.Build build engine Consult 'bootstrap.log' for more details make[2]: [vendor/src/boost-1.55-stamp/boost-1.55-configure] Error 1 make[1]: [CMakeFiles/boost-1.55.dir/all] Error 2 make: *** [all] Error 2

File: vendor/boost-src/bootstrap.log Error modules/path.c:16:12: error: implicit declaration of function 'file_query' is invalid in C99 [-Werror,-Wimplicit-function-declaration] return file_query( list_front( lol_get( frame->args, 0 ) ) ) ? ^ 1 error generated.

Su06690 commented 2 years ago

I have got the same error

yumh0811 commented 2 years ago

Hi, I come across the same error. May I know how to deal with it? Thank you.

ebrettmann commented 2 years ago

I'm having the same problem. Do you all also have the Apple M1 chip? I'm wondering if that's part of the issue

ebrettmann commented 2 years ago

I figured it out! The issue was with the version of boost supplied in the package. I found an old post about new versions of clang/Xcode not playing nicely with old versions of boost. So I deleted the bam-readcount folder and re-cloned it. Then I downloaded the newest version of boost (1.79). I changed the file name of boost1.79 to match the name of the boost supplied with bam-readcount, and swapped the old for the new. Then I followed the install instructions and it worked. Go figure.