[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#693208: clang unable to link trivial test program on armhf



Hello Sylvestre,

Installing clang and llvm-runtime packages on my Debian testing, here is what I get :

$ cat hello.c 
#include <stdio.h>
int main (void) {
        printf ("Hello, world!\n");
        return 0;
}
$ clang -emit-llvm -c hello.c && lli hello.o 
lli: hello.o: unknown type in type table

However, installing llvm-3.1-runtime as well, 3.1 being the LLVM version clang is based on, I get (forcing the lli version to 3.1) :

$ clang -emit-llvm -c hello.c && lli-3.1 hello.o 
Hello, world!

I think asking our users to explicitly use versioned LLVM tools with clang is wrong. In the future, I think you should base clang on the default LLVM version, even if a newer LLVM version is available in the repositories.

Regarding the current clang packages in the repositories (3.0 in testing, 3.1 in unstable), you would have to add an epoch to downgrade clang to 3.0 in unstable with a fix and then have to fix migrated to testing. This would also fix the issue above, but epochs are, well, not beautiful...

What is your opinion regarding those issues?

Cheers,
Arthur.

2012/11/26 Sylvestre Ledru <sylvestre@debian.org>
On 14/11/2012 11:45, Julien Cristau wrote:
> On Wed, Nov 14, 2012 at 09:24:50 +0000, peter green wrote:
>
>> I have attatched a diff which I would like to upload to TPU are the
>> maintainer and release team happy with this? I have tested that the
>> patch does not break linking on armel with either bfd or gold.
>>
>> P.S. it seems the version in unstable has regressed from the version
>> in testing and does not link a trivial test app successfully on either
>> armel or armhf I have not investigated details of that (IMO fixing
>> wheezy is more important than fixing a package that is in sid and
>> unlikely to make it for wheezy).
>>
> Having a fix in sid is a prerequisite for anything regarding wheezy.
So, to fix this issue, should I do the following ?

* ask for a removal of clang 3.1 in unstable
* upload a version 3.0 in unstable with Peter patch
* ask for an exception

Thanks
Sylvestre

_______________________________________________
Pkg-llvm-team mailing list
Pkg-llvm-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-llvm-team


Reply to: