[mlpack] make test failure on OS X

Ryan Curtin gth671b at mail.gatech.edu
Wed Mar 19 19:19:54 EDT 2014


On Wed, Mar 19, 2014 at 01:40:59PM -0600, Kevin Locke wrote:
> Hello All,
> 
> I am attempting to install mlpack 1.0.8 on OS X 10.8.5 with clang
> "Apple LLVM version 5.0 (clang-500.2.75) (based on LLVM 3.3svn)" using
> brew 0.9.5 and linking against libc++.  I am using boost 1.55.0_1 and
> armadillo 4.100.2 both build with brew and linked against libc++.
> When I attempt to install with `brew install mlpack --c++11` the
> installation aborts due to test failures
> 
> I've attempted to isolate the problem and can reproduce the issue
> without brew by running the following commands (which mimic brew's
> invocations and where fix-nmf-nan.patch is a backported fix from this
> ML that brew applies[1], note that the failure occurs with or without
> the patch):
> 
> curl http://www.mlpack.org/files/mlpack-1.0.8.tar.gz | tar -xz && \
>     patch -p0 < fix-nmf-nan.patch &&
>     mkdir mlpack-1.0.8/build &&
>     cd mlpack-1.0.8/build &&
>     CXXFLAGS="-std=c++11 -stdlib=libc++" /usr/local/bin/cmake .. -DBOOST_ROOT=/usr/local -DARMADILLO_INCLUDE_DIR=/usr/local/include -DARMADILLO_LIBRARY=/usr/local/lib/libarmadillo.dylib -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev &&
>     make test
> 
> Which produces a large amount of output (make test output attached).
> The part that seemed relevant was:
> 
> [WARN ] Unable to detect type of 'test_file.txt'; load failed. Incorrect extension?
> /path/to/mlpack-1.0.8/src/mlpack/tests/load_save_test.cpp:202: fatal error in "SaveArmaASCIITest": critical check data::Load("test_file.txt", test) == true failed
> [WARN ] Loading 'test_file.bin' as raw binary formatted data; but this may not be the actual filetype!
> 
> Attempting to further isolate the issue, I ran the following command
> (with output):
> 
> $ ./bin/mlpack_test -t LoadSaveTest/SaveArmaASCIITest
> Running 1 test case...
> [WARN ] Unable to detect type of 'test_file.txt'; load failed. Incorrect extension?
> /path/to/mlpack-1.0.8/src/mlpack/tests/load_save_test.cpp:202: fatal error in "SaveArmaASCIITest": critical check data::Load("test_file.txt", test) == true failed
> 
> *** 1 failure detected in test suite "MLPACKTest"
> 
> 
> So, is this an error that I should be concerned about?  It is
> something related to my machine or build configuration?  Is there more
> that I can do to help diagnose the issue?  Any input/help is greatly
> appreciated.

Hi Kevin,

Thanks for the information.  Can you try running
LoadSaveTest/LoadArmaASCIITest and tell me what the result is?

Also, about bug 296, is there a bug report in QuantLib I could reference
to learn more?

Thanks,

Ryan

-- 
Ryan Curtin    | "Leave your stupid comments in your pocket!"
ryan at ratml.org |   - Mark



More information about the mlpack mailing list