tensorflow / swift

Swift for TensorFlow
https://tensorflow.org/swift
Apache License 2.0
6.12k stars 608 forks source link

Issue with S4TF installation on Ubuntu #340

Open stmugisha opened 4 years ago

stmugisha commented 4 years ago

I have followed instructions on how to install swift-for-tensorflow (CPU-version) as outlined in the github repository and the swift REPL works at first but also throws these warnings;

error: ld-2.27.so 0x7fffffff0005c564: adding range [0x1464a-0x146ba) which has a base that is less than the function's low PC 0x14dc0. Please file a bug and attach the file at the start of this error message
error: ld-2.27.so 0x7fffffff0005c564: adding range [0x146d0-0x146d6) which has a base that is less than the function's low PC 0x14dc0. Please file a bug and attach the file at the start of this error message
error: ld-2.27.so 0x7fffffff0005c5c5: adding range [0x1464a-0x146ba) which has a base that is less than the function's low PC 0x14dc0. Please file a bug and attach the file at the start of this error message
error: ld-2.27.so 0x7fffffff0005c5c5: adding range [0x146d0-0x146d6) which has a base that is less than the function's low PC 0x14dc0. Please file a bug and attach the file at the start of this error message

However when I exit the terminal (Ubuntu 18.04) and re-open, running swift doesn't return the REPL instead.

The above described scenario still manifested when I initially tried installing swift (before s4tf) meaning it could be an issue with swift.

Current solution: I currently have to add the path to the env. variables everytime I open the terminal in order to use the REPL.

Anybody with a clue on how to go about this/why this is happening? I'll greatly appreciate.

BradLarson commented 4 years ago

I believe this might be due to issue SR-8690, which impacts Swift in general on Ubuntu. It has been suggested that removing libc6-dbg will resolve this, but I can't verify that.

stmugisha commented 4 years ago

I'll try this out and see if it solves the issue. Thanks

stmugisha commented 4 years ago

Removing libc6-dbg clears the error but doesn't seem to solve the second issue

However when I exit the terminal (Ubuntu 18.04) and re-open, running swift doesn't return the REPL.

Instead I still have to add the path to the env. variables everytime I open the terminal in order to use the REPL.