[LLVMdev] Compiling llvm and Clang in solaris 10

Jorge Rodrigues skeept at gmail.com
Tue Jun 25 07:50:25 PDT 2013


Is there anything I can do regarding the linker issue? The solaris linker
is in /usr/ccs/bin/ld but I think llvm wants to use the gnu linker. gcc in
my system was compiled with the solaris linker.

Thanks,
Jorge


On Mon, Jun 24, 2013 at 6:18 PM, Stefan Teleman <stefan.teleman at gmail.com>wrote:

> On Mon, Jun 24, 2013 at 6:17 PM, Jorge Rodrigues <skeept at gmail.com> wrote:
> > Norm,
> >
> > thanks for the help. Applying the fix solves the issue I mentioned but
> now I
> > have more issues.
> >
> >  I can install clang, but when running I cannot compile and link files.
> > If I compile with -c flag it works but compiling the following x.c file
> > gives an error:
>
> > /project/helder/scratch/packages2/bin/ld: unrecognized option '-C'
> > /project/helder/scratch/packages2/bin/ld: use the --help option for usage
> > information
> > clang: error: linker command failed with exit code 1 (use -v to see
> > invocation)
>
> -C is a flag for the Solaris linker only (/usr/bin/ld). It looks like
> /project/helder/scratch/packages2/bin/ld is actually the GNU linker,
> and it doesn't understand -C.
>
> I'll file the bug about the endian stuff, but we'll also have to have
> an <endian.h> in Solaris as well.
>
> --Stefan
>
> --
> Stefan Teleman
> KDE e.V.
> stefan.teleman at gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130625/9124e6b8/attachment.html>


More information about the llvm-dev mailing list