__builtin_smulll_overflow usage results in undefined symbol
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
llvm-toolchain-3.5 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
This simple nonsense program:
int main(int argc, char *argv[])
{
long long result;
return __builtin_
}
Will result in the following:
ryan@ubuntu32:
/tmp/main-10feb1.o: In function `main':
main.cpp:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This can be manually fixed up by explicitly linking against compiler-rt:
clang++ main.cpp /usr/lib/
This only occurs on 32bit
$ lsb_release -rd
Description: Ubuntu 14.10
Release: 14.10
$ apt-cache policy clang++-3.5
libclang-3.5-dev:
Installed: (none)
Candidate: 1:3.5-4ubuntu2
Version table:
1:3.5-4ubuntu2 0
500 http://
clang-3.5-doc:
Installed: (none)
Candidate: 1:3.5-4ubuntu2
Version table:
1:3.5-4ubuntu2 0
500 http://
clang-3.5:
Installed: 1:3.5-4ubuntu2
Candidate: 1:3.5-4ubuntu2
Version table:
*** 1:3.5-4ubuntu2 0
500 http://
100 /var/lib/
python-clang-3.5:
Installed: (none)
Candidate: 1:3.5-4ubuntu2
Version table:
1:3.5-4ubuntu2 0
500 http://
clang-3.5-examples:
Installed: (none)
Candidate: 1:3.5-4ubuntu2
Version table:
1:3.5-4ubuntu2 0
500 http://
$ apt-cache policy llvm-3.5
llvm-3.5:
Installed: 1:3.5-4ubuntu2
Candidate: 1:3.5-4ubuntu2
Version table:
*** 1:3.5-4ubuntu2 0
500 http://
100 /var/lib/