Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation problem on Mac OS 10.6.8 with python version from fink #184

Closed
giampaolo opened this issue May 23, 2014 · 3 comments
Closed

Comments

@giampaolo
Copy link
Owner

From ske...@googlemail.com on July 11, 2011 11:06:24

What steps will reproduce the problem?  
1. Download and unpack  psutil-0.3.0.tar.gz
2. Execute: python setup.py install 

What is the expected output?  


What do you see instead?  
One expects that psutil compiles without errors. Instead I get:
running install
running build
running build_py
running build_ext
building '_psutil_osx' extension
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -I/sw/include/python2.7 -c psutil/_psutil_osx.c -o 
build/temp.macosx-10.6-i386-2.7/psutil/_psutil_osx.o
In file included from psutil/_psutil_osx.c:26:
/usr/include/mach/shared_memory_server.h:48:2: warning: #warning 
"<mach/shared_memory_server.h> is deprecated.  Please use 
<mach/shared_region.h> instead."
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -I/sw/include/python2.7 -c psutil/_psutil_common.c -o 
build/temp.macosx-10.6-i386-2.7/psutil/_psutil_common.o
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -I/sw/include/python2.7 -c psutil/arch/osx/process_info.c 
-o build/temp.macosx-10.6-i386-2.7/psutil/arch/osx/process_info.o
gcc -L/sw/lib -bundle -L/sw/lib/python2.7/config -lpython2.7 
build/temp.macosx-10.6-i386-2.7/psutil/_psutil_osx.o 
build/temp.macosx-10.6-i386-2.7/psutil/_psutil_common.o 
build/temp.macosx-10.6-i386-2.7/psutil/arch/osx/process_info.o -o 
build/lib.macosx-10.6-i386-2.7/_psutil_osx.so
ld: warning: in /sw/lib/python2.7/config/libpython2.7.dylib, file was built for 
i386 which is not the architecture being linked (x86_64)
Undefined symbols:
[...] 

What version of psutil are you using? What Python version?  
0.3.0 

On what operating system? Is it 32bit or 64bit version?  
Mac OS 10.6.8 

Please provide any additional information below.  
I have two installations of gcc
- the one from Apple: (i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. 
build 5659)
- the one from fink: gcc-4 (GCC) 4.5.0

By default /usr/bin/gcc (the Apple one) is invoked. But my python install is 
from fink. So I guess this causes the problem. Can someone propose a solution?

Original issue: http://code.google.com/p/psutil/issues/detail?id=184

@giampaolo giampaolo self-assigned this May 23, 2014
@giampaolo
Copy link
Owner Author

From g.rodola on October 22, 2011 04:44:40

Jay? Jeremy? Any comment on this?

Status: WaitingForReview
Owner: jcscoob...@gmail.com
Cc: jlo...@gmail.com
Labels: OpSys-OSX

@giampaolo
Copy link
Owner Author

From jlo...@gmail.com on October 26, 2011 17:27:38

I don't have any input on this as I don't have fink installed. Possibly you 
could use environment variables or distutils mods to get it to use the right 
gcc, but I can't confirm/test here to tell you for sure. 
http://stackoverflow.com/questions/5967065/python-distutils-not-using-correct-version-of-gcc
 I'd try some of the suggestions there, particularly setting the CC env 
variable and see if that helps. I'm not sure what's up with the libs being i386 
though, that may or not still be an issue if you switch gcc versions.

@giampaolo
Copy link
Owner Author

From g.rodola on June 03, 2012 15:47:06

Closing this out as it doesn't look like a psutil bug.

Status: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant