[Jprogramming] SVN 559 compile error

Bill Heagy wheagy at bell.net
Sun May 21 03:14:00 UTC 2017


I'm referring to the last 2 commits, yesterday and today.  Removing 
"static" in m.c allows the compile to complete, and jconsole runs.


On 20/05/17 10:25 PM, bill lam wrote:
> The git repo does not use SVN number for identification so that
> I don't know which commit you refered to. But I recall such
> error message had occured and fixed some months ago.
>
> A simple fix is to remove the static keyword in the lines
> of failure, eg
>>   static I jtfaorpush
> or remove its declaration from je.h
>
>
> Сб, 20 май 2017, Bill Heagy написал(а):
>> debian j32 or j64, build_libj.sh (still there in SVN 560)
>>
>> .........
>>
>> cc -fPIC -O1 -fwrapv -fno-strict-aliasing -Wextra -Wno-maybe-uninitialized
>> -Wno-unused-parameter -Wno-sign-compare -Wno-clobbered -Wno-empty-body
>> -Wno-unused-value -Wno-pointer-sign -Wno-parentheses
>> -Wno-shift-negative-value -m32 -msse2 -mfpmath=sse -DC_NOMULTINTRINSIC    -c
>> -o m.o /home/wheagy/tmp/jsource.git/trunk/jsrc/m.c
>> /home/wheagy/tmp/jsource.git/trunk/jsrc/m.c:414:10: error: static
>> declaration of ‘jtfaorpush’ follows non-static declaration
>>   static I jtfaorpush(J jt,AD* RESTRICT wd,I t){I af=AFLAG(wd); I n=AN(wd);
>>            ^~~~~~~~~~
>> In file included from /home/wheagy/tmp/jsource.git/trunk/jsrc/j.h:553:0,
>>                   from /home/wheagy/tmp/jsource.git/trunk/jsrc/m.c:12:
>> /home/wheagy/tmp/jsource.git/trunk/jsrc/je.h:679:17: note: previous
>> declaration of ‘jtfaorpush’ was here
>>   extern I        jtfaorpush(J,AD * RESTRICT,I);
>>                   ^~~~~~~~~~
>> <builtin>: recipe for target 'm.o' failed
>> make: *** [m.o] Error 1
>>
>>
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
Bill Heagy
615 Country Club Drive                        mailto:wheagy at bell.net
London, Ontario N6C 5P8 Canada                telephone: 519-680-0311



More information about the Programming mailing list