[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Help needed for r-cran-rcppmlpack



Hi,

the new version of r-cran-genieclust needs r-cran-rcppmlpack and thus I
injected it into salsa[1].  As I documented in d/README.source I went
with the MLPACK code copy since the Debian packaged version is way more
ahead than this one.  Possibly we can avoid the trouble I'm talking below
by simply using libmlpack-dev but I have not checked this.

...
g++ -std=gnu++11 -shared -L/usr/lib/R/lib -Wl,-z,relro -o RcppMLPACK.so ./mlpack/methods/pca/pca.o ./mlpack/methods/mvu/mvu.o ./mlpack/methods/det/dtree.o ./mlpack/methods/det/dt_utils.o ./mlpack/methods/linear_regression/linear_regression.o ./mlpack/methods/radical/radical.o ./mlpack/methods/neighbor_search/unmap.o ./mlpack/methods/neighbor_search/sort_policies/furthest_neighbor_sort.o ./mlpack/methods/neighbor_search/sort_policies/nearest_neighbor_sort.o ./mlpack/methods/lars/lars.o ./mlpack/methods/logistic_regression/logistic_regression_function.o ./mlpack/methods/regularized_svd/regularized_svd_function.o ./mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.o ./mlpack/core/math/lin_alg.o ./mlpack/core/math/random.o ./mlpack/core/kernels/epanechnikov_kernel.o ./mlpack/core/kernels/pspectrum_string_kernel.o ./mlpack/core/optimizers/lbfgs/test_functions.o ./mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_test_functions.o ./mlpack/core/optimizers/sgd/test_function.o ./mlpack/core/optimizers/lrsdp/lrsdp_function.o ./mlpack/core/optimizers/lrsdp/lrsdp.o ./mlpack/core/dists/gaussian_distribution.o ./mlpack/core/dists/discrete_distribution.o ./mlpack/core/dists/laplace_distribution.o ./mlpack/core/tree/mrkd_statistic.o ./mlpack/core/tree/cosine_tree/cosine_tree.o ./mlpack/core/util/string_util.o RcppExports.o kmeans.o init.o -llapack -lblas -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
g++ -std=gnu++11 -o libRcppMLPACK.so ./mlpack/methods/pca/pca.o ./mlpack/methods/mvu/mvu.o ./mlpack/methods/det/dtree.o ./mlpack/methods/det/dt_utils.o ./mlpack/methods/linear_regression/linear_regression.o ./mlpack/methods/radical/radical.o ./mlpack/methods/neighbor_search/unmap.o ./mlpack/methods/neighbor_search/sort_policies/furthest_neighbor_sort.o ./mlpack/methods/neighbor_search/sort_policies/nearest_neighbor_sort.o ./mlpack/methods/lars/lars.o ./mlpack/methods/logistic_regression/logistic_regression_function.o ./mlpack/methods/regularized_svd/regularized_svd_function.o ./mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.o ./mlpack/core/math/lin_alg.o ./mlpack/core/math/random.o ./mlpack/core/kernels/epanechnikov_kernel.o ./mlpack/core/kernels/pspectrum_string_kernel.o ./mlpack/core/optimizers/lbfgs/test_functions.o ./mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_test_functions.o ./mlpack/core/optimizers/sgd/test_function.o ./mlpack/core/optimizers/lrsdp/lrsdp_function.o ./mlpack/core/optimizers/lrsdp/lrsdp.o ./mlpack/core/dists/gaussian_distribution.o ./mlpack/core/dists/discrete_distribution.o ./mlpack/core/dists/laplace_distribution.o ./mlpack/core/tree/mrkd_statistic.o ./mlpack/core/tree/cosine_tree/cosine_tree.o ./mlpack/core/util/string_util.o RcppExports.o kmeans.o init.o -shared -llapack -lblas -lgfortran -lm -lquadmath  -L"/usr/lib/R/lib" -lR
ar qc libRcppMLPACK.a ./mlpack/methods/pca/pca.o ./mlpack/methods/mvu/mvu.o ./mlpack/methods/det/dtree.o ./mlpack/methods/det/dt_utils.o ./mlpack/methods/linear_regression/linear_regression.o ./mlpack/methods/radical/radical.o ./mlpack/methods/neighbor_search/unmap.o ./mlpack/methods/neighbor_search/sort_policies/furthest_neighbor_sort.o ./mlpack/methods/neighbor_search/sort_policies/nearest_neighbor_sort.o ./mlpack/methods/lars/lars.o ./mlpack/methods/logistic_regression/logistic_regression_function.o ./mlpack/methods/regularized_svd/regularized_svd_function.o ./mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.o ./mlpack/core/math/lin_alg.o ./mlpack/core/math/random.o ./mlpack/core/kernels/epanechnikov_kernel.o ./mlpack/core/kernels/pspectrum_string_kernel.o ./mlpack/core/optimizers/lbfgs/test_functions.o ./mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_test_functions.o ./mlpack/core/optimizers/sgd/test_function.o ./mlpack/core/optimizers/lrsdp/lrsdp_function.o ./mlpack/core/optimizers/lrsdp/lrsdp.o ./mlpack/core/dists/gaussian_distribution.o ./mlpack/core/dists/discrete_distribution.o ./mlpack/core/dists/laplace_distribution.o ./mlpack/core/tree/mrkd_statistic.o ./mlpack/core/tree/cosine_tree/cosine_tree.o ./mlpack/core/util/string_util.o RcppExports.o kmeans.o init.o
cp libRcppMLPACK.so ../inst/lib
cp libRcppMLPACK.a ../inst/lib
rm libRcppMLPACK.so libRcppMLPACK.a
make[2]: Leaving directory '/build/r-cran-rcppmlpack-1.0.10-7/src'
make[2]: Entering directory '/build/r-cran-rcppmlpack-1.0.10-7/src'
make[2]: Leaving directory '/build/r-cran-rcppmlpack-1.0.10-7/src'
installing to /build/r-cran-rcppmlpack-1.0.10-7/debian/r-cran-rcppmlpack/usr/lib/R/site-library/00LOCK-r-cran-rcppmlpack-1.0.10-7/00new/RcppMLPACK/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for 'RcppMLPACK' in library.dynam(lib, package, package.lib):
 shared object 'RcppMLPACK.so' not found
Error: loading failed
Execution halted
ERROR: loading failed
* removing '/build/r-cran-rcppmlpack-1.0.10-7/debian/r-cran-rcppmlpack/usr/lib/R/site-library/RcppMLPACK'


I've checked my pbuilder chroot after the build process halted and there
is really no "*.so" file left inside the build tree.  Any idea what might
be wrong here?

Kind regards

        Andreas.

[1] https://salsa.debian.org/r-pkg-team/r-cran-rcppmlpack

-- 
http://fam-tille.de


Reply to: