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

Error compiling test on Ubuntu 14.04 LTS 64 bit #5

Closed
CristianCantoro opened this issue Oct 27, 2014 · 11 comments
Closed

Error compiling test on Ubuntu 14.04 LTS 64 bit #5

CristianCantoro opened this issue Oct 27, 2014 · 11 comments
Assignees
Labels
Milestone

Comments

@CristianCantoro
Copy link

Hi,

after compiling hdt-lib compiling the tests (with make tests) resuls in the following compilation error.

$ make tests
 [HDT] Compiling test tests/bit375.cpp
 [HDT] Compiling test tests/bitutiltest.cpp
 [HDT] Compiling test tests/cmp.cpp
tests/cmp.cpp: In member function ‘virtual unsigned char* MyIterator::next()’:
tests/cmp.cpp:33:65: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
   sprintf((char*)buffer, "AAA %015lld FINNN", (uint64_t) count++);
                                                                 ^
 [HDT] Compiling test tests/confm.cpp
/tmp/cc4opceY.o: In function `main':
confm.cpp:(.text.startup+0xc79): undefined reference to `hdt::LiteralDictionary::LiteralDictionary()'
confm.cpp:(.text.startup+0xc92): undefined reference to `hdt::LiteralDictionary::import(hdt::Dictionary*, hdt::ProgressListener*)'
confm.cpp:(.text.startup+0xd7b): undefined reference to `hdt::LiteralDictionary::save(std::ostream&, hdt::ControlInformation&, hdt::ProgressListener*)'
confm.cpp:(.text.startup+0xdf6): undefined reference to `hdt::LiteralDictionary::~LiteralDictionary()'
confm.cpp:(.text.startup+0xee1): undefined reference to `hdt::LiteralDictionary::~LiteralDictionary()'
collect2: error: ld returned 1 exit status
make: *** [tests/confm] Error 1

Cristian

@artob artob added the bug label Jun 14, 2016
@artob artob self-assigned this Jun 14, 2016
@artob
Copy link
Contributor

artob commented Jun 15, 2016

@CristianCantoro Could you re-try, please, with the current version of the library?

Also, in case the problem should persist still now, we would need more context and information to reproduce it, as the project generally compiles fine on Ubuntu 14.04--it's what I compile on myself.

@mielvds
Copy link
Member

mielvds commented Jan 12, 2017

If no further updates, I'll close this in a few days.

@mielvds mielvds added this to the Early 2017 milestone Jan 12, 2017
@RubenVerborgh
Copy link
Member

Now also building tests on Travis: 554bf77, let's see how that goes: https://travis-ci.org/rdfhdt/hdt-cpp/builds/191244955. If it works, I think we can close this. (Travis is 12.04, but we test different gcc versions.)

@RubenVerborgh
Copy link
Member

PS Even better would be actually executing the tests on Travis, but unsure whether they work.

@RubenVerborgh
Copy link
Member

Tests compile on Travis.

@RubenVerborgh
Copy link
Member

RubenVerborgh commented Jan 12, 2017

Now also running the tests: https://travis-ci.org/rdfhdt/hdt-cpp/builds/191250501

@RubenVerborgh
Copy link
Member

Mmm, one of the tests runs indefinitely…

@RubenVerborgh
Copy link
Member

RubenVerborgh commented Jan 12, 2017

Trying again with a subset of tests: https://travis-ci.org/rdfhdt/hdt-cpp/builds/191259380 (some tests seem to require input files)

@RubenVerborgh RubenVerborgh assigned RubenVerborgh and unassigned artob Jan 12, 2017
@RubenVerborgh
Copy link
Member

@RubenVerborgh
Copy link
Member

554bf77 has been merged to develop, so tests are compiled on Travis.

@mielvds
Copy link
Member

mielvds commented Jan 13, 2017

Cool, thanks

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

No branches or pull requests

4 participants