Re: [Rd] compile fails with x86_64-alpine-linux-uclibc-gcc

From: nobody <darwinskernel_at_gmail.com>
Date: Tue, 14 Aug 2012 21:11:19 -0400

On Tue, Aug 14, 2012 at 10:32:22AM -0400, Simon Urbanek wrote:
>
> On Aug 14, 2012, at 10:19 AM, nobody wrote:
>
> > On Tue, Aug 14, 2012 at 01:48:44PM +0200, peter dalgaard wrote:
> >>
> >> Perhaps I'm confused, but how did either of you expect to fix a problem with fgetc by modifying fgets???
> >>
> >> --
> >> Peter Dalgaard, Professor
> >> Center for Statistics, Copenhagen Business School
> >> Solbjerg Plads 3, 2000 Frederiksberg, Denmark
> >> Phone: (+45)38153501
> >> Email: pd.mes_at_cbs.dk Priv: PDalgd_at_gmail.com
> >
> > i'm not well versed in C. do know how to fix this? or, as i gather, this
> > is not something trivial and it has to be fixed uclibc upstream?
> >
>
> What Peter is saying that my fix was useless because I was talking about fgetc but fixed fgets: P
> So the fix attempt should have been
>
> static int fix_fgetc(FILE *stream) { return fgetc(stream); }
> #undef fgetc
> static int fgetc(FILE *stream) { return fix_fgetc(stream); }
>
> It should still be fixed upstream because I don't think POSIX allows fgetc to be a macro.
>
> Cheers,
> Simon

thanks, 's:^static:extern:' and it works, well sort of. now compilation gets stuck (waited 3 hours) here:

make[6]: Entering directory `/dev/shm/portage/dev-lang/R-2.15.1/work/R-2.15.1/src/library/tools/src' mkdir -p -- ../../../../library/tools/libs

make[6]: Leaving directory `/dev/shm/portage/dev-lang/R-2.15.1/work/R-2.15.1/src/library/tools/src'
make[5]: Leaving directory `/dev/shm/portage/dev-lang/R-2.15.1/work/R-2.15.1/src/library/tools/src'
make[4]: Leaving directory `/dev/shm/portage/dev-lang/R-2.15.1/work/R-2.15.1/src/library/tools'

it's apparently running:
/dev/shm/portage/dev-lang/R-2.15.1/work/R-2.15.1/bin/exec/R --vinalla --slave with 100% cpu usage! i don't what it's doing to be honest :) any idea?

p.s.: i'm attaching the patch to this for the curious, hope it helps.



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Wed 15 Aug 2012 - 02:29:38 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 15 Aug 2012 - 11:40:39 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive