I wrote: >> Compiling well-running code (gcc 4.2) with clang, I got a compiler error : >> /var/folders/ZW/ZW4XDOyYGAG-cIUUUKtCYk+++TI/-Tmp-/cc-tx1iU7.s:63041:FATAL:Symbol Linfo_begin64 already defined. >> Compilation failed >> It took me some time to find out that it was not the code, but the containing folder that caused this failure. >> Curious, the folder name was "Français", after replacing the "ç" by "c", no more problem. >> (Same with "á", "â", " à" etc.) >> maybe, this is not a FBtoC problem, > > This is a bug in clang or possibly llvm, not FBtoC. I have reported it to the clang developers. and got an interesting reply from the lead compiler engineer. Robert P. Begin forwarded message: > From: Chris Lattner <clattner@...> > Date: 25 April 2010 3:46:53 PM NZST > To: Robert Purves <listrp@...> > Cc: cfe-dev@... > Subject: Re: [cfe-dev] Fatal error from -include if pwd has Unicode characters > > > On Apr 24, 2010, at 8:18 PM, Robert Purves wrote: > >> $ /Developer/usr/bin/clang -c test.c >> $ /Developer/usr/bin/clang -c test.c -include test.h >> In file included from <built-in>:110: >> <command line>:1:10: fatal error: '/Users/rdp/Desktop/Français' file not found >> #include "/Users/rdp/Desktop/Français" >> ^ >> 1 diagnostic generated. >> >> $ /Developer/usr/bin/clang --version >> clang version 1.0.2 (http://llvm.org/svn/llvm-project/cfe/tags/Apple/clang-32 exported) >> Target: x86_64-apple-darwin10 >> >> >> Reassuringly, r102295 does not show the problem, but I am not sure if that is a guarantee for future Apple branches. > > clang "1.0.2" is pretty ancient by now :). Thanks for confirming that it is fixed on mainline though, > > -Chris