hi,when I‘m ’building the Cython modules,
cd $FRCN_ROOT/lib
make
there is always a error occured.

My gcc is 4.8.2,But I guess it does not matter with gcc version! who can help me ?
Actually, '-R' should be replace with '-Wl,-rpath=' . After replacing '-R' with '-Wl,-rpath=', the g++ command can be successfully run. You just copy the above wrong command and replace '-R' with '-Wl,-rpath=' or '-Wl,-R' (this is also ok) and run again.
@xiamenwcy I have the same mistake, In that file will -R changed to -Wl,-rpath=
Hi,
@xiamenwcy
@zgq91
In which file should I changed? I have met the same problem. Thanks very much.
After reading the docs of Cython and setup file in lib. I have solved the problem yet. You should modified the files in numpy/distutils which is named by unixcompiler.py. In this file changed '-R' to '-Wl,-rpath='
@SophieZhou thank you~~I have solved it.
@SophieZhou I can find the file numpy/distutils/unixcompiler.py, but i can't find '-R'. Can you show me the code or where is the '-R'? Thank you very much!
@zhoupan9109 in my computer:
if self._is_gcc(compiler):
# gcc on non-GNU systems does not need -Wl, but can
# use it anyway. Since distutils has always passed in
# -Wl whenever gcc was used in the past it is probably
# safest to keep doing so.
if sysconfig.get_config_var("GNULD") == "yes":
# GNU ld needs an extra option to get a RUNPATH
# instead of just an RPATH.
return "-Wl,--enable-new-dtags,-R" + dir
else:
return "-Wl,-rpath" + dir
else:
# No idea how --enable-new-dtags would be passed on to
# ld if this system was using GNU ld. Don't know if a
# system like this even exists.
-R return "-Wl,-rpath=" + dir
here is the -R,line in 255
@UUZYWEI Can you give me the absolute path of the file unixcompiler.py?
@zhoupan9109 ...../anaconda3/lib/python3.6/distutils/unixcompiler.py, in your now python path/distutils/unixcompiler.py
@UUZYWEI Thank you very much! I have solved it!
Most helpful comment
@zhoupan9109 ...../anaconda3/lib/python3.6/distutils/unixcompiler.py, in your now python path/distutils/unixcompiler.py