[cfe-dev] cfe-dev Digest, Vol 46, Issue 88
Peter Lawrence
peterl95124 at sbcglobal.net
Fri Apr 29 07:45:44 PDT 2011
All,
I have always suspected that it would be better if things
like search paths
came out of a human readable ascii-text file that resided in the
directory with
the executable,
...../bin/clang
...../bin/clang-parameters
that way there is at least a workaround for these sorts of inevitable
failures.
best,
-Peter Lawrence.
On Apr 28, 2011, at 10:43 PM, cfe-dev-request at cs.uiuc.edu wrote:
> ------------------------------
>
> Message: 4
> Date: Fri, 29 Apr 2011 05:35:13 +0200
> From: ?scar Fuentes <ofv at wanadoo.es>
> Subject: [cfe-dev] Clang on Ubuntu 11.04 (natty) 32 bits
> To: cfe-dev at cs.uiuc.edu
> Message-ID: <8739l191ce.fsf at wanadoo.es>
> Content-Type: text/plain
>
> Some weeks ago a patch for supporting Ubuntu 11.04 x86_64 was
> applied. However, for i686 clang can't figure out the library paths
> (the
> -L paramaters appear as nonsense relative paths). I
> looked at ToolChains.cpp and there it is assumed that on Linux there
> exists a directory /usr/lib/gcc/<platform-triple>. On my install there
> is no /usr/lib/gcc directory. Creating a /usr/lib/gcc symlink to
> /usr/lib/i386-linux-gnu allows me to go further, but then this:
>
> #include <errno.h>
>
> ends with the error message:
>
> /usr/include/linux/errno.h:4:10: fatal error: 'asm/errno.h' file
> not found
>
> "asm/errno.h" is in the directory /usr/include/i386-linux-gnu. gcc has
> that directory on its search list, but clang doesn't.
>
> As a side note, I noticed that clang checks the existence of lots of
> directories, including quite a few that doesn't make sense for the
> current platform (like those having x86_64 on its name) and adds to
> the
> include search list directories for more than one compiler. In my case
> it adds 4.4 and 4.5 (this is an upgraded machine and the previos OS
> version came with gcc 4.4, which still is installed). This doesn't
> look
> right at all, considering that the 4.4 header directories are listed
> before those corresponding to 4.5, but then clang uses the 4.5
> libraries
> for linking.
>
> Any pointers on how to configure clang for matching gcc's directory
> search list appreciated.
>
>
>
> ------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110429/d0cc2686/attachment.html>
More information about the cfe-dev
mailing list