[CMake] libtool: link: only absolute run-paths are allowed
Josh Stratton
strattonbrazil at gmail.com
Mon Mar 24 01:08:20 EDT 2014
If I leave off the --prefix for configure, I get the /usr/local/include
permission error again.
Making install in api
/bin/mkdir -p '/usr/local/include'
/usr/bin/install -c -m 644
/home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3.h
/home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3.f
/home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3l.f03
/home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3q.f03
'/usr/local/include'
/usr/bin/install: cannot create regular file '/usr/local/include/fftw3.h':
Permission denied
/usr/bin/install: cannot create regular file '/usr/local/include/fftw3.f':
Permission denied
/usr/bin/install: cannot create regular file
'/usr/local/include/fftw3l.f03': Permission denied
/usr/bin/install: cannot create regular file
'/usr/local/include/fftw3q.f03': Permission denied
make[6]: *** [install-includeHEADERS] Error 1
make[5]: *** [install-am] Error 2
make[4]: *** [install] Error 2
make[3]: *** [install-recursive] Error 1
make[2]: *** [fftw-prefix/src/fftw-stamp/fftw-install] Error 2
make[1]: *** [CMakeFiles/fftw.dir/all] Error 2
make: *** [all] Error 2
ExternalProject_Add(
fftw
SOURCE_DIR /home/stratton/Public/ppml/external/fftw-3.3.3
CONFIGURE_COMMAND <SOURCE_DIR>/configure ${CONFIGURE_PARALLEL_FLAG}
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=/tmp/ack
PATH=$DEPLOY_DIR/FFTW
BUILD_COMMAND make
)
On Sun, Mar 23, 2014 at 10:06 PM, Josh Stratton <strattonbrazil at gmail.com>wrote:
> When I try specifying the MAKE_INSTALL_PREFIX that way, I get the libtool
> error again.
>
> ...
> Making all in libbench2
> Making all in .
> libtool: link: only absolute run-paths are allowed
> make[5]: *** [libfftw3.la] Error 1
> make[4]: *** [all-recursive] Error 1
> make[3]: *** [all] Error 2
> make[2]: *** [fftw-prefix/src/fftw-stamp/fftw-build] Error 2
> make[1]: *** [CMakeFiles/fftw.dir/all] Error 2
> make: *** [all] Error 2
>
>
> ExternalProject_Add(
> fftw
> SOURCE_DIR /home/stratton/Public/ppml/external/fftw-3.3.3
> CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=$DEPLOY_DIR/FFTW
> ${CONFIGURE_PARALLEL_FLAG}
> CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=/tmp/ack
> PATH=$DEPLOY_DIR/FFTW
> BUILD_COMMAND make
> )
>
>
>
>
> On Sun, Mar 23, 2014 at 5:34 PM, Josh Stratton <strattonbrazil at gmail.com>wrote:
>
>> Looking at the docs it used a colon with the path afterward. What's
>> the PATH variable for then?
>>
>> On 3/23/14, Michael Jackson <mike.jackson at bluequartz.net> wrote:
>> > CMAKE_INSTALL_PREFIX needs an argument which is where you want FFTW
>> > installed. The Default value for CMAKE_INSTALL_PREFIX on Unix type
>> machines
>> > is /usr/local. So your CMake code needs to have something like
>> > ExternalProject_Add(
>> > fftw
>> > SOURCE_DIR /home/stratton/Public/ppml/external/fftw-3.3.3
>> > CONFIGURE_COMMAND <SOURCE_DIR>/configure ${CONFIGURE_PARALLEL_FLAG}
>> > CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=/home/stratton/Public/ppml/FFTW
>> > PATH=$DEPLOY_DIR/FFTW
>> > BUILD_COMMAND make
>> > )
>> >
>> >
>> > Mike Jackson
>> >
>> > On Mar 23, 2014, at 7:33 PM, Josh Stratton <strattonbrazil at gmail.com>
>> > wrote:
>> >
>> >> I've using cmake to build an autoconf portion of the project using
>> >> ExternalProject_Add. I tried using the autoconf prefix, but was having
>> >> issues with the libtool and absolute paths. I found
>> DCMAKE_INSTALL_PREFIX
>> >> in the docs, which seems to avoid the libtool problem, but I'm getting
>> >> errors saying I don't have permissions writing files to
>> >> /usr/local/include. Why would it be trying to write files there?
>> >>
>> >> Making install in api
>> >> /bin/mkdir -p '/usr/local/include'
>> >> /usr/bin/install -c -m 644
>> >> /home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3.h
>> >> /home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3.f
>> >> /home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3l.f03
>> >> /home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3q.f03
>> >> '/usr/local/include'
>> >> /usr/bin/install: cannot create regular file
>> '/usr/local/include/fftw3.h':
>> >> Permission denied
>> >> /usr/bin/install: cannot create regular file
>> '/usr/local/include/fftw3.f':
>> >> Permission denied
>> >> /usr/bin/install: cannot create regular file
>> >> '/usr/local/include/fftw3l.f03': Permission denied
>> >> /usr/bin/install: cannot create regular file
>> >> '/usr/local/include/fftw3q.f03': Permission denied
>> >> make[6]: *** [install-includeHEADERS] Error 1
>> >> make[5]: *** [install-am] Error 2
>> >> make[4]: *** [install] Error 2
>> >> make[3]: *** [install-recursive] Error 1
>> >> make[2]: *** [fftw-prefix/src/fftw-stamp/fftw-install] Error 2
>> >> make[1]: *** [CMakeFiles/fftw.dir/all] Error 2
>> >> make: *** [all] Error 2
>> >>
>> >> *** And part of my cmake file...
>> >>
>> >> SET(DEPLOY_DIR /tmp/foo)
>> >>
>> >> ExternalProject_Add(
>> >> fftw
>> >> SOURCE_DIR /home/stratton/Public/ppml/external/fftw-3.3.3
>> >> CONFIGURE_COMMAND <SOURCE_DIR>/configure ${CONFIGURE_PARALLEL_FLAG}
>> >> CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:
>> >> PATH=$DEPLOY_DIR/FFTW
>> >> BUILD_COMMAND make
>> >> )
>> >>
>> >> --
>> >>
>> >> Powered by www.kitware.com
>> >>
>> >> Please keep messages on-topic and check the CMake FAQ at:
>> >> http://www.cmake.org/Wiki/CMake_FAQ
>> >>
>> >> Kitware offers various services to support the CMake community. For
>> more
>> >> information on each offering, please visit:
>> >>
>> >> CMake Support: http://cmake.org/cmake/help/support.html
>> >> CMake Consulting: http://cmake.org/cmake/help/consulting.html
>> >> CMake Training Courses: http://cmake.org/cmake/help/training.html
>> >>
>> >> Visit other Kitware open-source projects at
>> >> http://www.kitware.com/opensource/opensource.html
>> >>
>> >> Follow this link to subscribe/unsubscribe:
>> >> http://www.cmake.org/mailman/listinfo/cmake
>> >
>> >
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140323/1e37fca4/attachment.html>
More information about the CMake
mailing list