[Bug 610992] Re: clang -fstack-protector fails to link (undefined reference to `__stack_chk_guard')

Anders Kaseorg andersk at mit.edu
Mon Aug 16 20:34:03 BST 2010


I tested this debdiff in my PPA, to be sure there are no other spurious failures.  The tests passed as expected.
https://launchpad.net/~anders-kaseorg/+archive/ppa
http://launchpadlibrarian.net/53821962/buildlog_ubuntu-maverick-i386.llvm-2.7_2.7-3ubuntu2andersk4_FULLYBUILT.txt.gz
http://launchpadlibrarian.net/53822296/buildlog_ubuntu-maverick-amd64.llvm-2.7_2.7-3ubuntu2andersk4_FULLYBUILT.txt.gz

-- 
clang -fstack-protector fails to link (undefined reference to `__stack_chk_guard')
https://bugs.launchpad.net/bugs/610992
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.

Status in The Low Level Virtual Machine Compiler Infrastructure: Unknown
Status in “llvm-2.7” package in Ubuntu: New
Status in “llvm-2.7” package in Debian: Unknown

Bug description:
Binary package hint: clang

$ echo 'int main(){char s[80];}' > test.c
$ gcc -fstack-protector test.c -o test
$ ./test
$ clang -fstack-protector test.c -o test
/usr/bin/ld: /tmp/cc-0Rbhby.o: in function main:test.c(.text+0xc): error: undefined reference to '__stack_chk_guard'
/usr/bin/ld: /tmp/cc-0Rbhby.o: in function main:test.c(.text+0x22): error: undefined reference to '__stack_chk_guard'
collect2: ld returned 1 exit status
clang: error: linker command failed with exit code 1 (use -v to see invocation)





More information about the Ubuntu-sponsors mailing list