Hi, I tried ( CFLAGS="-march=x86_64 -pipe -ggdb" CXXFLAGS="${CFLAGS}" ), but error comes: ====================================================== root@xxxxxxxxxxxxxxxxxxxxxxxxxxxx # ./configure checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. ======================================================= So I tried ( CFLAGS="-pipe -ggdb" CXXFLAGS="${CFLAGS}" ), all the FLAGS in the Makefile was set to "-pipe -ggdb", as the attachment showed.. Hmm, but there was still "??" in the back trace: (gdb) bt #0 0x00007fd007491c32 in ?? () from /usr/local/lib/libceph.so.1 #1 0x00007fd00746322d in ceph_write (fd=10, buf=0x7fff4ffe2210 "", size=2097152, offset=0) at libceph.cc:322 #2 0x0000000000400fd3 in main (argc=1, argv=0x7fff501e23d8) at testceph.cc:72 There is a exception when running my application with libceph, so I need the stack in the libceph to point the problem. It's a little URGENT...But I don't know what happened in the libceph, so unlucky.....Here is my stack: =================================================================================== (gdb) c Continuing. Program received signal SIGABRT, Aborted. [Switching to Thread 0x40838940 (LWP 9118)] 0x000000312b630265 in raise () from /lib64/libc.so.6 (gdb) bt #0 0x000000312b630265 in raise () from /lib64/libc.so.6 #1 0x000000312b631d10 in abort () from /lib64/libc.so.6 #2 0x000000312debec44 in __gnu_cxx::__verbose_terminate_handler () from /usr/lib64/libstdc++.so.6 #3 0x000000312debcdb6 in ?? () from /usr/lib64/libstdc++.so.6 #4 0x000000312debcde3 in std::terminate () from /usr/lib64/libstdc++.so.6 #5 0x000000312debceca in __cxa_throw () from /usr/lib64/libstdc++.so.6 #6 0x00007fdb4cce7a78 in ?? () from /usr/local/lib/libceph.so.1 #7 0x00007fdb4cbb4e1c in Mutex::Lock (this=0x66d790, no_lockdep=false) at ./common/Mutex.h:118 #8 0x00007fdb4cbcf5f4 in ?? () from /usr/local/lib/libceph.so.1 #9 0x00007fdb4cc45304 in ?? () from /usr/local/lib/libceph.so.1 #10 0x00007fdb4cd2b1d5 in ?? () from /usr/local/lib/libceph.so.1 #11 0x00007fdb4cbec038 in ?? () from /usr/local/lib/libceph.so.1 #12 0x00007fdb4cc6101d in ?? () from /usr/local/lib/libceph.so.1 #13 0x00007fdb4cc4862b in ?? () from /usr/local/lib/libceph.so.1 #14 0x00007fdb4cbb8641 in ?? () from /usr/local/lib/libceph.so.1 #15 0x00007fdb4cbf0a28 in ?? () from /usr/local/lib/libceph.so.1 #16 0x000000312be064a7 in start_thread () from /lib64/libpthread.so.0 #17 0x000000312b6d3c2d in clone () from /lib64/libc.so.6 (gdb) =================================================================================== Thx! Simon 2011/5/15 Dyweni - Ceph-Devel <YS3fpFE2ykfB@xxxxxxxxxx>: > Hi Simon! > > Set your CFLAGS and CXXFLAGS environment variables before calling configure > and make. > > Example: > CFLAGS="-march=native -pipe -ggdb" CXXFLAGS="${CFLAGS}" ./configure > CFLAGS="-march=native -pipe -ggdb" CXXFLAGS="${CFLAGS}" make > etc > > > Thanks, > Dyweni > > > On Sun, 15 May 2011 20:37:16 +0800, Simon Tian wrote: > >> Hi Dyweni, >> >> Can I do this by any options of "./configure"? or JUST modify >> the Makefile manually? >> >> Thx! >> Simon >> > >
Attachment:
Makefile
Description: Binary data