Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New issues with install #60

Closed
msettles opened this issue Feb 20, 2017 · 12 comments
Closed

New issues with install #60

msettles opened this issue Feb 20, 2017 · 12 comments

Comments

@msettles
Copy link
Member

after loading module cmake/boost AND

cmake -DBOOST_ROOT=/software/boost/1.60/x86_64-linux-ubuntu14.04 -DCMAKE_BUILD_TYPE=Release -DBoost_NO_SYSTEM_PATHS=TRUE -DBoost_NO_BOOST_CMAKE=TRUE ..

[ 16%] Built target googletest
[ 18%] Linking CXX executable /usr/local/bin/hts_common_test
/usr/bin/ld: cannot open output file /usr/local/bin/hts_common_test: Permission denied
collect2: error: ld returned 1 exit status
make[2]: *** [/usr/local/bin/hts_common_test] Error 1
make[1]: *** [common/CMakeFiles/hts_common_test.dir/all] Error 2
make: *** [all] Error 2

Looks like its trying to reference /usr/local/bin which contains nothing I as a user I don't have access to write to

Matt

@msettles
Copy link
Member Author

was able to get past by adding prefix to cmake

cmake -DBOOST_ROOT=/software/boost/1.60/x86_64-linux-ubuntu14.04 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/share/biocore/software

BUT whats the deal with all the _test bins

msettles@ganesh: build$ll /share/biocore/software/bin/
total 3.9M
drwxrwxr-x 2 msettles biocore 18 Feb 19 16:37 .
drwxrwxr-x 4 msettles biocore 4 Jan 3 15:25 ..
-rwxrwxr-x 1 msettles biocore 274K Feb 19 16:37 cut-trim
-rwxrwxr-x 1 msettles biocore 782K Feb 19 16:36 cut-trim_test
-rwxrwxr-x 1 msettles biocore 931K Feb 19 16:36 hts_common_test
-rwxrwxr-x 1 msettles biocore 270K Feb 19 16:37 n-remover
-rwxrwxr-x 1 msettles biocore 733K Feb 19 16:37 NRemover_test
-rwxrwxr-x 1 msettles biocore 315K Feb 19 16:37 overlapper
-rwxrwxr-x 1 msettles biocore 755K Feb 19 16:37 overlapper_test
-rwxrwxr-x 1 msettles biocore 283K Feb 19 16:37 phix-remover
-rwxrwxr-x 1 msettles biocore 714K Feb 19 16:37 phix_remover_test
-rwxrwxr-x 1 msettles biocore 274K Feb 19 16:36 polyAT-trim
-rwxrwxr-x 1 msettles biocore 792K Feb 19 16:36 polyATtrim_test
-rwxrwxr-x 1 msettles biocore 274K Feb 19 16:36 q-window-trim
-rwxrwxr-x 1 msettles biocore 791K Feb 19 16:36 q-window-trim_test
-rwxrwxr-x 1 msettles biocore 285K Feb 19 16:36 super-deduper
-rwxrwxr-x 1 msettles biocore 793K Feb 19 16:36 super-deduper_test
-rwxrwxr-x 1 msettles biocore 237K Feb 19 16:36 tab-converter

something tells me the process still isn't quite right

Matt

@msettles
Copy link
Member Author

oh and then make test fails

@samhunter
Copy link
Collaborator

It probably would be good to default the install directory to "./bin/" (e.g. HTStream/build/bin/). Also it does seem like building (or at least installing) the "*test" binaries should probably not be done on a release build. Those are all the google-test unit tests however, which is a GOOD thing because it means the code is being tested and has a testing framework!

@msettles
Copy link
Member Author

agreed, build/bin and then maybe a 'make install' to send it to the system (or specified install location) if one so chooses, unit tests are great, but weird to coexist with regular binaries in the final install directory (unless maybe in the build/bin), shouldn't 'make test' then execute and verify install works correctly?

@joe-angell
Copy link
Collaborator

I agree, make should build all the binaries in the build dir (the default behavior of cmake), make install should not install the test binaries. Does make test currently not work?

@msettles
Copy link
Member Author

msettles commented Feb 20, 2017 via email

@joe-angell
Copy link
Collaborator

pr to fix install issues: https://github.com/ibest/HTStream/pull/65

make test works for me, your runtime is probably pulling in the wrong libraries or something. You can run the test executables directly to see why they are failing.

@msettles
Copy link
Member Author

msettles commented Feb 20, 2017 via email

@joe-angell
Copy link
Collaborator

joe-angell commented Feb 20, 2017 via email

@joe-angell
Copy link
Collaborator

fixed in #65

@samhunter
Copy link
Collaborator

FYI:

shunter@zen:/bio/HTStream/build$ make test
Running tests...
Test project /bio/HTStream/build
Start 1: test_common
1/8 Test #1: test_common ...................... Passed 0.01 sec
Start 2: test_superd
2/8 Test #2: test_superd ...................... Passed 0.01 sec
Start 3: test_polyATtrim
3/8 Test #3: test_polyATtrim .................. Passed 0.01 sec
Start 4: test_q_window_trim
4/8 Test #4: test_q_window_trim ............... Passed 0.01 sec
Start 5: test_cut_trim
5/8 Test #5: test_cut_trim .................... Passed 0.01 sec
Start 6: test_phix_remover
6/8 Test #6: test_phix_remover ................ Passed 0.01 sec
Start 7: test_overlapper
7/8 Test #7: test_overlapper .................. Passed 0.01 sec
Start 8: test_n_remover
8/8 Test #8: test_n_remover ................... Passed 0.00 sec

100% tests passed, 0 tests failed out of 8

@msettles
Copy link
Member Author

msettles commented Feb 21, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants