On 15/10/2013, at 12:45 AM, john skaller wrote:

>> 
>> I have to build the Ubuntu one on the server first.
>> 
>> There's a small problem: 
> 
> Actually there's a big problem. Some crud gets into
> a generated file:
> 
>      if(!((::std::string("--hide") == 
> ::flx::rtl::strutil::substr(arg,0,::std::string("--hide").size())))) goto 
> _50192;$
>      ptrflx_pkgconfig->hide = 1; //assign simple$
>      goto _50239;$
> 
> On the middle line, character 7. Running the Python build AND the felix 
> bootstrap.
> 
> The problem is .. there's nothing there. I even know its character \302 from 
> gcc diagnostic,
> but it just isn't there. Sigh. Unix and its tools are such shit . [everything 
> builds fine on osx with clang]
> 
> build/release/cache/text/home/skaller/felix/src/tools/flx_pkgconfig.cpp:160:7:
>  error: stray ‘\302’ in program
> compilation terminated due to -Wfatal-errors.
> 


Well despite the hopeless vi program I had to view this, I found a way:
I used the Felix webserver and my browser:

      acc = 1; //assign simple

Not sure if you can see the A with the weird accent there, but it occurs on 
EVERY
line marked "assign simple". Which comes from this Ocaml code:

          string_of_cexpr lv ^ " = " ^ ge sr e2 ^ "; //assign simple\n"

And to be sure I have changed string_of_cexpr.

Still I cannot see how a crap character can creep in .. especially as the code
works fine on my box. I'm using Ocaml 3.11.1 on OSX and Ocaml 3.12.1 on Ubuntu.
So it looks like a bug in Ocaml...

Ah no .. I get that on my box too! Clang ignores it ..

      ptrflx_pkgconfig->hide = 1; //assign simple

Bug in Clang instead .. figures .. but still the Ocaml code is weird!



--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to