CFLAGS=-fPIC ./configure
make CFLAGS=-fPIC LDFLAGS=fPIC
make CFLAGS=-fPIC LDFLAGS=fPIC check
make CFLAGS=-fPIC LDFLAGS=fPIC install

This installed libunwind without any issues. And I could compile google
profiler with this libunwind. I am trying it out with our project. I will
update you shortly after profiling.

Thankx once again for the extraordinary help Arun and David.

~Rajesh.B

On 2/25/07, Rajesh Balamohan <[EMAIL PROTECTED]> wrote:

Hi David and Arun,

I downloaded the snap shot and tried compiling in my 64 bit linux with the
following.

./configure
make (tried this. But got an error).
 make LDFLAGS="-fPIC" (even with this the same error. Details are pasted
below.).

gcc -shared  .libs/os-linux.o mi/.libs/init.o mi/.libs/flush_cache.o
mi/.libs/mempool.o mi/.libs/strerror.o dwarf/.libs/global.o .libs/elf64.o
x86_64/.libs/setcontext.o x86_64/.libs/is_fpreg.o x86_64/.libs/regname.o
mi/.libs/_ReadULEB.o mi/.libs/_ReadSLEB.o mi/.libs/backtrace.o mi/.libs/dyn-
cancel.o mi/.libs/dyn-info-list.o mi/.libs/dyn-register.o mi/.libs/Ldyn-
extract.o mi/.libs/Lfind_dynamic_proc_info.o mi/.libs/Lget_accessors.o
mi/.libs/Lget_proc_info_by_ip.o mi/.libs/Lget_proc_name.o
mi/.libs/Lput_dynamic_unwind_info.o mi/.libs/Ldestroy_addr_space.o
mi/.libs/Lget_reg.o mi/.libs/Lset_reg.o mi/.libs/Lget_fpreg.o
mi/.libs/Lset_fpreg.o mi/.libs/Lset_caching_policy.o
unwind/.libs/Backtrace.o unwind/.libs/DeleteException.o
unwind/.libs/FindEnclosingFunction.o unwind/.libs/ForcedUnwind.o
unwind/.libs/GetBSP.o unwind/.libs/GetCFA.o unwind/.libs/GetDataRelBase.o
unwind/.libs/GetGR.o unwind/.libs/GetIP.o
unwind/.libs/GetLanguageSpecificData.o unwind/.libs/GetRegionStart.o
unwind/.libs/GetTextRelBase.o unwind/.libs/RaiseException.o
unwind/.libs/Resume.o unwind/.libs/Resume_or_Rethrow.o unwind/.libs/SetGR.o
unwind/.libs/SetIP.o dwarf/.libs/Lexpr.o dwarf/.libs/Lfde.o
dwarf/.libs/Lparser.o dwarf/.libs/Lpe.o dwarf/.libs/Lstep.o
dwarf/.libs/Lfind_proc_info- lsb.o x86_64/.libs/Lcreate_addr_space.o
x86_64/.libs/Lget_save_loc.o x86_64/.libs/Lglobal.o x86_64/.libs/Linit.o
x86_64/.libs/Linit_local.o x86_64/.libs/Linit_remote.o
x86_64/.libs/Lis_signal_frame.o x86_64/.libs/Lget_proc_info.o
x86_64/.libs/Lregs.o x86_64/.libs/Lresume.o x86_64/.libs/Lstep.o  -lc -lgcc
-nostartfiles -nostdlib -static-libcxa -Wl,-soname -Wl, libunwind.so.7 -o
.libs/libunwind.so.7.0.0
gcc: unrecognized option `-static-libcxa'
/usr/bin/ld: dwarf/.libs/Lfind_proc_info- lsb.o: relocation R_X86_64_PC32
against `_ULx86_64_dwarf_search_unwind_table' can not be used when making a
shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[2]: *** [ libunwind.la] Error 1
make[2]: Leaving directory `/localdisk/libunwind_git/libunwind-0.99-alpha
/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/localdisk/libunwind_git/libunwind-0.99-alpha
/src'
make: *** [all-recursive] Error 1


On 2/25/07, David Mosberger-Tang <[EMAIL PROTECTED]> wrote:
>
> OK, you can get today's snapshot here:
>
>   
http://download.savannah.nongnu.org/releases/libunwind/libunwind-snap-070224.tar.gz
>
> Regards,
>
>   --david
>
> On 2/23/07, David Mosberger-Tang <[EMAIL PROTECTED] > wrote:
> > On 2/22/07, Arun Sharma <[EMAIL PROTECTED]> wrote:
> >
> > > David, could we arrange for nightly tarball downloads till we get a
> release out?
> >
> > Don't know about daily tarballs, but I'll make a snapshot later today.
> >  That will be good for testing anyhow.
> >
> >   --david
> > --
> > Mosberger Consulting LLC, http://www.mosberger-consulting.com/
> >
>
>
> --
> Mosberger Consulting LLC, http://www.mosberger-consulting.com/
>



--
~Rajesh.B




--
~Rajesh.B
_______________________________________________
Libunwind-devel mailing list
Libunwind-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to