-
Notifications
You must be signed in to change notification settings - Fork 242
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
Compile error on Cygwin: expl() is missing #281
Comments
So the right fix is probably to just replace |
(Using This was introduced in samtools/samtools@390bbfb and is either intentionally desiring more precision in the temporaries (perhaps it's getting it… rather needs an f.p. expert) or was accidentally checked in with unrelated code. Hard to say. Hmmm… |
@lh3: do you have any recollection about the need for Now that we're well into the 21st century, perhaps what we really want to do is just use |
error when using make under cygwin64 Bob |
ps bcftools-1.3 |
As noted, you can work around this by replacing |
OK done that fixed one lot of problems and made a couple of extra new ones as follows Robert@DESKTOP-14EL82S /usr/local/bin/bcftools-1.3 there are chages in the next line with a new warning on the following 2 linesgcc -g -Wall -Wc++-compat -O2 -std=gnu99 -I. -Ihtslib-1.3 -DPLUGINPATH= "c:/cygwin64/usr/local/bin/bcftools-1.3" -Dexpl-exp -c -o main.o main.c All the following functions in the files all relate to the sameas outlined above with 'char' Bob |
Hi Bob, I haven't got around to looking at this in depth. But just a reminder if you are not doing this already: every time a
to delete the botched linker and object files. Vince T. On 2016-01-29 8:44 AM, tpibob wrote:
|
Vince T something in makefile is not right is this area Adjust $(HTSDIR) to point to your top-level htslib directoryHTSDIR = htslib-1.3 CC = gcc OBJS = main.o vcfindex.o tabix.o
EXTRA_CPPFLAGS = -I. -I$(HTSDIR) -DPLUGINPATH= "$(pluginpath)" -Dexpl-exp *** This in above is part of the problem -DPLUGINPATH= "$(pluginpath)" it used to look like -DPLUGINPATH=/ "$(pluginpath)"with no spave after = and not space between \ and/ and see the section below starting at &&& GSL_LIBS = The polysomy command is not compiled by default because it brings dependencyon libgsl. The command can be compiled wth
|
Am I guessing correctly that the bolt that appeas above are instructions or hints to fix the problem? |
@tpibob: You need to read the newly-produced warnings, consider what's newly changed that might have triggered them (here, the part in bold), and copy more carefully. When you have fixed that, you will have a working |
bcftools now working and caught up on backlog |
prob1.c: In function ‘mc_cal_y’:
prob1.c:321:13: warning: incompatible implicit declaration of built-in function ‘expl’
x = expl(ma->t - (ma->t1 + ma->t2));
prob1.h defines bcf_p1aux_t structure with long t, t1, t2
but expl function argument expects long double.
Changing x to double and using exp2 function instead, resulted in a successful compile. Not sure if this is as designed?
The text was updated successfully, but these errors were encountered: