Installation error: command 'gcc' failed with exit status 1

167 views
Skip to first unread message

11033...@qq.com

unread,
Aug 20, 2018, 12:12:23 AM8/20/18
to TRUST for T cell receptor hypervariable region assembly
HI
I got an error when I install trust using python setup.py install (my python is python3.5 installed by anaconda):
trust/getOverlapInfo.cpp: In function int* compare_Lgreaterthan64(uint64_t*, int, int, uint64_t*, int, int, int, int*)’:
trust
/getOverlapInfo.cpp:88:45: warning: format ‘%llu expects argument of type long long unsigned int’, but argument 2 has type uint64_t {aka long unsigned int}’ [-Wformat=]
             printf
("pre = %llu\n", prefix[i]);
                                             
^
trust
/getOverlapInfo.cpp:93:45: warning: format ‘%llu expects argument of type long long unsigned int’, but argument 2 has type uint64_t {aka long unsigned int}’ [-Wformat=]
             printf
("suf = %llu\n", suffix[i]);
                                             
^
trust
/getOverlapInfo.cpp: In function PyObject* _compare_Lgreaterthan64(PyObject*, PyObject*)’:
trust
/getOverlapInfo.cpp:214:49: error: PyInt_AsUnsignedLongLongMask was not declared in this scope
         _x
[i] = PyInt_AsUnsignedLongLongMask(obj);
                                                 
^
trust
/getOverlapInfo.cpp:219:49: error: PyInt_AsUnsignedLongLongMask was not declared in this scope
         _y
[i] = PyInt_AsUnsignedLongLongMask(obj);
                                                 
^
trust
/getOverlapInfo.cpp: In function void initgetOverlapInfo_C()’:
trust
/getOverlapInfo.cpp:254:65: error: Py_InitModule was not declared in this scope
     
(void) Py_InitModule("getOverlapInfo_C", GreateModuleMethods);
                                                                 
^
error
: command 'gcc' failed with exit status 1

Could you be kind to give me some advice on how to solve this problem? Thanks!

Yang

Bo Li

unread,
Aug 20, 2018, 8:45:16 AM8/20/18
to 11033...@qq.com, TRUST for T cell receptor hypervariable region assembly
TRUST is written in python 2. Please change your python version and try again.



--
You received this message because you are subscribed to the Google Groups "TRUST for T cell receptor hypervariable region assembly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trusttcr+unsubscribe@googlegroups.com.
To post to this group, send email to trus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trusttcr/3badb963-7558-458c-8a3d-4eab0008e3e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

11033...@qq.com

unread,
Aug 24, 2018, 9:43:59 AM8/24/18
to TRUST for T cell receptor hypervariable region assembly
Thank you! The problem is solved!

在 2018年8月20日星期一 UTC+8下午8:45:16,Bo Li写道:
To unsubscribe from this group and stop receiving emails from it, send an email to trusttcr+u...@googlegroups.com.

sull...@gmail.com

unread,
May 29, 2019, 2:02:37 AM5/29/19
to TRUST for T cell receptor hypervariable region assembly
Hello,
I think I am getting a similar problem during installation. I'm running python 2.7. I am able to change directory but running python setup.py install gives me the following error:

running install

running bdist_egg

running egg_info

writing requirements to trust.egg-info/requires.txt

writing trust.egg-info/PKG-INFO

writing top-level names to trust.egg-info/top_level.txt

writing dependency_links to trust.egg-info/dependency_links.txt

reading manifest file 'trust.egg-info/SOURCES.txt'

reading manifest template 'MANIFEST.in'

writing manifest file 'trust.egg-info/SOURCES.txt'

installing library code to build/bdist.macosx-10.6-intel/egg

running install_lib

running build_py

running build_ext

building 'trust/getOverlapInfo_C' extension

/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c trust/getOverlapInfo.cpp -o build/temp.macosx-10.6-intel-2.7/trust/getOverlapInfo.o

warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the

      libc++ standard library instead [-Wstdlibcxx-not-found]

trust/getOverlapInfo.cpp:12:10: fatal error: 'iostream' file not found

#include <iostream>

         ^~~~~~~~~~

1 warning and 1 error generated.

error: command '/usr/bin/clang' failed with exit status 1




Do you know what might be going on here?


Thank you!

Kevin

To unsubscribe from this group and stop receiving emails from it, send an email to trus...@googlegroups.com.

Bo Li

unread,
May 29, 2019, 11:58:27 AM5/29/19
to sull...@gmail.com, jian zhang, TRUST for T cell receptor hypervariable region assembly
Hi Jian,

Could you please help with this?

Thanks,
Bo

To unsubscribe from this group and stop receiving emails from it, send an email to trusttcr+u...@googlegroups.com.

To post to this group, send email to trus...@googlegroups.com.

Jian Zhang

unread,
Jun 4, 2019, 10:20:58 PM6/4/19
to Bo Li, sull...@gmail.com, TRUST for T cell receptor hypervariable region assembly
Hi Kevin,

Sorry for the delay response. I have some connection issues with my gmail account recently.
Could you please try "g++ -fPIC -shared getOverlapInfo.cpp -o getOverlaoInfo_C.so -I /usr/include/python2.7/ -Ipython2.7" ?
If the above command doesn't work, I think you probably need to re install g++.


Thanks,
Jian

Bo Li <li...@umich.edu> 于2019年5月29日周三 下午11:58写道:
Reply all
Reply to author
Forward
0 new messages