erocarrera / erocarrera/pythonika

Mac OS X 10.9.5 Mathematica 9 + homebrew Python 2.7 32 bit

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
Mathematica
Stars
35
Forks
11
PR merge metrics
No merged PRs in 30d

Description

```
What steps will reproduce the problem?
1. After pointing to correct homebrew Python 2.7 and added -arch i386 to the
Makefile, I can build the object file.

2. But I can't link, error message:
c++ -arch i386
-I/Applications/Mathematica.app/SystemFiles/Links/MathLink/DeveloperKit/MacOSX-x
86-64/CompilerAdditions
-I/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/includ
e/python2.7 Pythonika.o Pythonikatm.o
-L/Applications/Mathematica.app/SystemFiles/Links/MathLink/DeveloperKit/MacOSX-x
86-64/CompilerAdditions -lMLi3
-F/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7
-framework Python
-F/Applications/Mathematica.app/SystemFiles/Links/MathLink/DeveloperKit/MacOSX-x
86-64/CompilerAdditions -framework mathlink -framework CoreFoundation -o
Pythonika -m32
ld: warning: ld: warning: ignoring file Pythonika.o, file was built for
unsupported file format ( 0xCF 0xFA 0xED 0xFE 0x07 0x00 0x00 0x01 0x03 0x00
0x00 0x00 0x01 0x00 0x00 0x00 ) which is not the architecture being linked
(i386): Pythonika.oignoring file Pythonikatm.o, file was built for unsupported
file format ( 0xCF 0xFA 0xED 0xFE 0x07 0x00 0x00 0x01 0x03 0x00 0x00 0x00 0x01
0x00 0x00 0x00 ) which is not the architecture being linked (i386):
Pythonikatm.o

Undefined symbols for architecture i386:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Pythonika] Error 1

OS : Mac OS X 10.9.5
Mathematica 9
Python: homebrew Python 2.7 32 bit

```

Original issue reported on code.google.com by `cykjason...@gmail.com` on 8 Jan 2015 at 5:13

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.