[Libre-soc-bugs] [Bug 696] [Coroliosis 2] Library libMut Not Found During Alliance Install
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Thu Sep 30 17:14:53 BST 2021
https://bugs.libre-soc.org/show_bug.cgi?id=696
--- Comment #30 from andrey at technepisteme.xyz ---
(In reply to Luke Kenneth Casson Leighton from comment #23)
> until you have LD_LIBRARY_PATH pointing to the correct location
> you are *not* going to get past this error.
> the problem *is* in the output of coriolisEnv.py - which is also
> correct and has nothing wrong with it - the problem *is* in
> the environment variables passed to the script and with ~/.bashrc
> and so on.
>
> you will find a missing entry in ~/.bashrc that looks like:
>
> PATH=/home//xxxxx
>
> or other entry where the ${USER} formerly ${SUDO_USER} did not expand
> out correctly.
After checking .bash_profile, I saw that there are additional paths:
export LD_LIBRARY_PATH=${ALLIANCE_TOP}/lib:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=${ALLIANCE_TOP}/lib64:${LD_LIBRARY_PATH}
Running "source ~/.bash_profile" adds these additional entries on top of
"coriolisenv":
/home/rohdo/alliance/install/lib64:
/home/rohdo/alliance/install/lib:
The first of these entries points to directory "lib64" in alliance which
doesn't exist for me. The second is a copy of an entry from coriolisenv (so is
redundant).
No other missing or broken exist in .bash_profile, .bash_rc, or .profile.
(In reply to Luke Kenneth Casson Leighton from comment #24)
> > -missing/misconfigured environment vars
>
> this is the source of the problem.
Ok checked my coriolisenv against yours.
LD_LIBRARY_PATH is meant to have library paths from coriolis:
/home/$USER/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib
and from alliance:
/home/$USER/alliance/install/lib
Again I re-created the schroot, re-compiled yosys, coriolis, and checked that
coriolisenv is correct. Installing alliance returns the -lMut error as before.
The only difference between luke's coriolisenv and mine, as that his coriolis
library path uses the name "lib":
/home/lkcl/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib
where's mine has "lib64"
/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64
The coriolis I installed uses the folder "lib64" so that's why there's a
difference ("lib" directory doesn't exist in my installation).
(In reply to Jacob Lifshay from comment #26)
> Normally you'd get the current user's home directory by using
> "$HOME/my_file", rather than "/home/$USER/my_file". Linux/Unix has a
> convenient shortcut for $HOME since using it is soo common: you use ~/my_file
I do know of this shortcut as I normally use it, but in this script's case I
was following the existing nomenclature (also there are other commands that
require $USER anyway).
(In reply to Jacob Lifshay from comment #27)
> docs for ~:
> https://www.gnu.org/software/bash/manual/html_node/Tilde-Expansion.html
Thanks for the info!
Found no other missing/broken entries in coriolisenv.
> source /tmp/coriolisenv
Here's my coriolisenv (added newline chars for clarity):
echo "Using user-selected Coriolis 2 (/home/rohdo/coriolis-2.x)";
echo "Switching to Coriolis 2.x (Release.Shared)";
PATH="/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/bin:
/usr/lib/ccache:
/usr/local/bin:
/usr/bin:
/bin:
/usr/local/games:
/usr/games";
BOOTSTRAP_TOP="/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install";
CORIOLIS_TOP="/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install";
export PATH BOOTSTRAP_TOP CORIOLIS_TOP STRATUS_MAPPING_NAME;
PYTHONPATH="/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/etc/coriolis2:
/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/python2.7/dist-packages/stratus:
/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/python2.7/dist-packages/cumulus/plugins:
/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/python2.7/dist-packages/cumulus:
/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/python2.7/dist-packages/crlcore:
/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64/python2.7/dist-packages:";
export PYTHONPATH;
LD_LIBRARY_PATH="/home/rohdo/coriolis-2.x/Linux.x86_64/Release.Shared/install/lib64:
/home/rohdo/alliance/install/lib:";
export LD_LIBRARY_PATH;
hash -r;
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list