[cfe-dev] openSuSE 11.4 support failure

Trevor Woerner twoerner at gmail.com
Mon May 23 06:43:40 PDT 2011


Hi,

On May 22, 2011 Ismail sent in a patch to update openSuSE support for clang:

http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-May/015194.html

I'm running openSuSE 11.4 and the "--dynamic-tags" switch causes "ld" to fail:

[trevor at devel-suse64 clang]$ cat main.c
#include <stdio.h>

int
main (int argc, char *argv[])
{
        printf ("Hello, world!\n");
        return 0;
}
[trevor at devel-suse64 clang]$ clang main.c
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld:
unrecognized option '--dynamic-tags'
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld:
use the --help option for usage information
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[trevor at devel-suse64 clang]$

I wonder why it fails for me but not for Ismail?

[trevor at devel-suse64 clang]$ which ld
/usr/bin/ld
[trevor at devel-suse64 clang]$ ld --version
GNU ld (GNU Binutils; openSUSE 11.4) 2.21
Copyright 2010 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
[trevor at devel-suse64 clang]$ uname -a
Linux devel-suse64 2.6.37.6-0.5-desktop #1 SMP PREEMPT 2011-04-25
21:48:33 +0200 x86_64 x86_64 x86_64 GNU/Linux

Best regards,
    Trevor



More information about the cfe-dev mailing list