public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Marco Atzeri <marco.atzeri@gmail.com>
To: cygwin@cygwin.com
Subject: Re: bcftools error running Make after installing update 2.4.1.1 to Cygwin64
Date: Wed, 27 Jan 2016 11:46:00 -0000	[thread overview]
Message-ID: <56A88876.1040808@gmail.com> (raw)
In-Reply-To: <BAY175-W34875F1AEC9896102CA3A3ADD90@phx.gbl>



On 27/01/2016 05:53, Robert May wrote:
> I have had another look at Makefile and I changed c to gnu in this line 40 -std=gnu99
> CFLAGS   = -g -Wall -Wc++-compat -O2  -std=gnu99
>
> I had also removed -rdynamic in  line 185 so it now reads
> $(CC)  $(LDFLAGS) -o $@ $(OBJS) $(HTSLIB) -lpthread -lz -lm -ldl $(GSL_LIBS) $(LIBS)
>
> and ran make again
>
> Like sametools it has many warning essages about ‘expl’, ‘alloca’, ‘fileno’, ‘char’, this last one being the most prominent and ends with
>
> prob1.o: In function `mc_cal_y':
> /usr/local/bin/bcftools-1.3/prob1.c:320: undefined reference to `expl'
> /usr/local/bin/bcftools-1.3/prob1.c:320:(.text+0x1842): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `expl'
> collect2: error: ld returned 1 exit status
> Makefile:185: recipe for target 'bcftools' failed
> make: *** [bcftools] Error 1
>
> this is the same error message as in samtools collect2: error: ld returned 1 exit status
> but a different culprit prob1.o: In function `mc_cal_y':
>
>
>   Bob May

Bob,
it seems you are missing some includes

fileno is defined in
   /usr/include/stdio.h

alloca in
   /usr/include/alloca.h

expl is not available so use exp are workaround


That char is not defined seems VERY VERY strange

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2016-01-27  9:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-27  8:29 Robert May
2016-01-27 11:46 ` Marco Atzeri [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-01-25 21:11 Robert May
2016-01-26 17:23 ` David Stacey
2016-01-26 19:33   ` Duncan Roe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56A88876.1040808@gmail.com \
    --to=marco.atzeri@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).