[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

I always forget how to fix 'cannot find -lpthreads' (Was: vcflib new release)



Hi,

Am Sat, Jan 22, 2022 at 09:17:07AM +0100 schrieb Pjotr Prins:
> thanks Andreas! I also bumped vcflib
> 
> https://github.com/vcflib/vcflib/releases/tag/v1.0.3
> 
> It should build as before.

I adapted some patches and now I'm running into[1]


/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1478b.dir/link.txt --verbose=1
/usr/lib/ccache/cc -g -O2 -ffile-prefix-map=/builds/med-team/libvcflib/debian/output/source_dir=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DCHECK_FUNCTION_EXISTS=pthread_create -Wl,-z,relro -Wl,-z,now  -rdynamic CMakeFiles/cmTC_1478b.dir/CheckFunctionExists.c.o -o cmTC_1478b  -lpthreads 
/usr/bin/ld: cannot find -lpthreads: No such file or directory
collect2: error: ld returned 1 exit status


I've seen this several times before and always forget the fix. :-(

Kind regards

       Andreas.


[1] https://salsa.debian.org/med-team/libvcflib/-/jobs/2388752

-- 
http://fam-tille.de


Reply to: