[LLVMbugs] [Bug 2424] New: libprofile_rt.so installed correctly, but libprofile_rt. a not
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Jun 9 02:18:28 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2424
Summary: libprofile_rt.so installed correctly, but
libprofile_rt.a not
Product: Runtime Libraries
Version: trunk
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: libprofile library
AssignedTo: unassignedbugs at nondot.org
ReportedBy: hs4233 at mail.mn-solutions.de
CC: llvmbugs at cs.uiuc.edu
I configure llvm with
mkdir obj.llvm
cd obj.llvm
../svn.llvm/configure \
--prefix=`pwd`/dist \
... (other options)
Later I wanted to install the profile libraries. I did:
cd obj.llvm/runtime
make install
and the following happened:
*** Install runtime
cd /usr/src/llvm/obj.llvm/runtime; make install
make[1]: Entering directory `/usr/src/llvm/obj.llvm/runtime'
make[2]: Entering directory `/usr/src/llvm/obj.llvm/runtime/libprofile'
llvm[2]: Installing Release Shared Library
/usr/src/llvm/dist/lib/libprofile_rt.so
mklib: install: warning: remember to run `mklib --finish
/usr/src/llvm/obj.llvm/Release/lib'
PATH="$PATH:/sbin" ldconfig -n /usr/src/llvm/dist/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/src/llvm/dist/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
llvm[2]: Installing Release Bytecode Archive /lib/libprofile_rt.a
/usr/bin/install: cannot create regular file `/lib/libprofile_rt.a': Permission
denied
make[2]: *** [/lib/libprofile_rt.a] Error 1
make[2]: Leaving directory `/usr/src/llvm/obj.llvm/runtime/libprofile'
make[1]: *** [libprofile/.makeinstall] Error 2
make[1]: Leaving directory `/usr/src/llvm/obj.llvm/runtime'
make: *** [instrt] Error 2
As you can see, the installation of libprofile_rt.a didn't honor the --prefix
parameter.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list