FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

LinkBack Thread Tools
Old 09-24-2011, 04:25 PM
Artifex Maximus
Default clang compile problem with samefile


I have a problem compiling samefile with clang on Wheezy. configure
gives the following error:

"checking for C compiler default output file name... configure: error:
C compiler cannot create executables
See `config.log' for more details."

config.log says:

"configure:1683: checking for C compiler default output file name
configure:1686: clang -v -m64 -pipe -O2 -s conftest.c >&5
clang version 2.9 (tags/RELEASE_29/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
"/usr/bin/clang" -cc1 -triple x86_64-pc-linux-gnu -emit-obj
-disable-free -disable-llvm-verifier -main-file-name confte
st.c -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64
-target-linker-version -momit-leaf-frame-pointer -v
-resource-dir /usr/bin/../lib/clang/2.9 -O2 -ferror
-limit 19 -fmessage-length 0 -fgnu-runtime -fdiagnostics-show-option
-o /tmp/cc-bHqtLm.o -x c conftest.c
clang -cc1 version 2.9 based upon llvm 2.9 hosted on x86_64-pc-linux-gnu
ignoring duplicate directory "/usr/include/x86_64-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
End of search list.
"/usr/bin/ld" -s --hash-style=both --no-copy-dt-needed-entries
--build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker
/lib64/ld-linux-x86-64.so.2 -o a.out crt1.o crti.o crtbegin.o -L
-L/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib6
4 -L/../../.. /tmp/cc-bHqtLm.o -lgcc --as-needed -lgcc_s
--no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed crt
end.o crtn.o
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find crtbegin.o: No such file or directory
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: cannot find -lgcc_s
clang: error: linker command failed with exit code 1 (use -v to see invocation)"

My system is:

Linux machine 3.0.0-1-rt-amd64 #1 SMP PREEMPT RT Sat Aug 27 17:34:31
UTC 2011 x86_64 GNU/Linux

Any idea why clang does not find those files? Is it Debian Wheezy or
Clang related problem?


To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAPkuXvEqvRqhug7AQ6kAQJF78itNura-vPfNKbmTR=uD4_oBOg@mail.gmail.com">http://lists.debian.org/CAPkuXvEqvRqhug7AQ6kAQJF78itNura-vPfNKbmTR=uD4_oBOg@mail.gmail.com

Thread Tools

All times are GMT. The time now is 08:01 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org