Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

"nta" replaced by "nupic" (namespace and folder) #243

Merged
merged 7 commits into from
Dec 1, 2014

Conversation

david-ragazzi
Copy link
Contributor

Solves numenta/nupic-legacy#811 (2nd and 4th item)

@david-ragazzi david-ragazzi changed the title namespaces: "nta" replaced by "nupic" namespace: "nta" replaced by "nupic" Nov 25, 2014
@david-ragazzi david-ragazzi reopened this Nov 26, 2014
@david-ragazzi
Copy link
Contributor Author

@rhyolight @oxtopus @scottpurdy

Could you help me to find why only OSX tests are failing?

https://travis-ci.org/numenta/nupic.core/builds/42146187

This PR only rename the namespace from nta to nupic. Is there some external library used by OSX and specified on Travis which references nta?

The error:

Undefined symbols for architecture x86_64:
  "nta::count_gt(float*, float*, float)::localThreshold", referenced from:
  nupic::count_gt(float*, float*, float) in CondProbTableTest.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [unit_tests] Error 1
make[2]: *** [CMakeFiles/unit_tests.dir/all] Error 2
make[1]: *** [CMakeFiles/tests_unit.dir/rule] Error 2
make: *** [tests_unit] Error 2

@oxtopus
Copy link
Contributor

oxtopus commented Nov 26, 2014

A change like this seems ok to me. Would like others to weigh in, though.

You will need to rename the src/nta to src/nupic in order to make it work, however.

@david-ragazzi
Copy link
Contributor Author

You will need to rename the src/nta to src/nupic in order to make it work, however.

Shit.. I forgot this.. Thank you!

@david-ragazzi david-ragazzi changed the title namespace: "nta" replaced by "nupic" "nta" replaced by "nupic" (namespace and folder) Nov 26, 2014
@david-ragazzi
Copy link
Contributor Author

@oxtopus Same error with OSX...

@rhyolight
Copy link
Member

@oxtopus Same error with OSX...

Doesn't look like the same error to me: https://travis-ci.org/numenta/nupic.core/builds/42229029. All builds are in an error state.

@david-ragazzi
Copy link
Contributor Author

Doesn't look like the same error to me: https://travis-ci.org/numenta/nupic.core/builds/42229029. All builds are in an error state.

@rhyolight Please, check this: https://travis-ci.org/numenta/nupic.core/builds/42146187

@rhyolight
Copy link
Member

@david-ragazzi I tried building locally and got the same error:

Linking CXX executable unit_tests
Undefined symbols for architecture x86_64:
  "nta::count_gt(float*, float*, float)::localThreshold", referenced from:
      nupic::count_gt(float*, float*, float) in CondProbTableTest.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [unit_tests] Error 1
make[1]: *** [CMakeFiles/unit_tests.dir/all] Error 2
make: *** [all] Error 2

@rhyolight
Copy link
Member

@david-ragazzi See https://github.com/numenta/nupic.core/pull/243/files#diff-5fc4121d5c281de47186c9f30e425bdbR3893:

       "movq  __ZZN3nta8count_gtEPfS0_fE14localThreshold@GOTPCREL(%%rip), %%r11\n\t"

There's an nta buried in that string. I don't understand what is going on here, but this is probably the culprit.

@david-ragazzi
Copy link
Contributor Author

There's an nta buried in that string. I don't understand what is going on here, but this is probably the culprit.

Holy crap, Batman! This was the problem! Thanks @rhyolight !

@david-ragazzi
Copy link
Contributor Author

humm.. not enough... I mean this is really the problem but simply rename from nta to nupic is not enough. Someone with linkage and ASM expertise could help me?

@oxtopus
Copy link
Contributor

oxtopus commented Dec 1, 2014

See david-ragazzi#2

I was able to get the mangled name by commenting out the lines between the ifdef, and then using otool to get the symbol:

otool -SV libnupic_core.a  | grep localTh

@rhyolight
Copy link
Member

That sound awful. If you need someone to talk to, I'm here.

Sent from my MegaPhone

On Nov 30, 2014, at 5:02 PM, Austin Marshall notifications@github.com wrote:

See DavidRagazzi#2

I was able to get the mangled name by commenting out the lines between the ifdef, and then using otool to get the symbol:

otool -SV libnupic_core.a | grep localTh

Reply to this email directly or view it on GitHub.

Include correct mangled name following namespace change
@david-ragazzi
Copy link
Contributor Author

Thanks @rhyolight and @oxtopus! Now it is green!

Please, don't merge yet, we need point numenta/nupic-legacy#1568 to this PR and ensure that it gets green too..

david-ragazzi pushed a commit to david-ragazzi/nupic that referenced this pull request Dec 1, 2014
david-ragazzi pushed a commit to david-ragazzi/nupic that referenced this pull request Dec 1, 2014
@rhyolight
Copy link
Member

@david-ragazzi numenta/nupic-legacy#1568 is passing, so 👍. You ready for a merge?

@david-ragazzi
Copy link
Contributor Author

Yes, of course!!

rhyolight added a commit that referenced this pull request Dec 1, 2014
"nta" replaced by "nupic" (namespace and folder)
@rhyolight rhyolight merged commit 2ec5ba5 into numenta:master Dec 1, 2014
rhyolight added a commit to rhyolight/nupic that referenced this pull request Dec 1, 2014
Now that numenta/nupic.core-legacy#243 has been merged,
this points to the new SHA with those namespace changes that correspond
to these changes.
@david-ragazzi david-ragazzi deleted the namespace_nupic branch December 7, 2014 22:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants