[issue23024] Python Compile Error on Mac os X ld: unknown option: -export-dynamic
New submission from zhuoyikang: /Applications/Xcode.app/Contents/Developer/usr/bin/make Parser/pgen gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -L/usr/local/lib -export-dynamic Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o Objects/obmalloc.o Python/dynamic_annotations.o Python/mysnprintf.o Python/pyctype.o Parser/tokenizer_pgen.o Parser/printgrammar.o Parser/parsetok_pgen.o Parser/pgenmain.o -ldl -framework CoreFoundation -o Parser/pgen ld: unknown option: -export-dynamic collect2: error: ld returned 1 exit status make[1]: *** [Parser/pgen] Error 1 make: *** [Include/graminit.h] Error 2 -- components: Cross-Build messages: 232434 nosy: zhuoyikang priority: normal severity: normal status: open title: Python Compile Error on Mac os X ld: unknown option: -export-dynamic versions: Python 3.4 ___ Python tracker <http://bugs.python.org/issue23024> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23024] Python Compile Error on Mac os X ld: unknown option: -export-dynamic
zhuoyikang added the comment: Sorry, i am not cross-build , i just building it on my mac os x machine : i fellow this => Build Instructions -- On Unix, Linux, BSD, OSX, and Cygwin: New text ./configure make make test sudo make install This will install Python as python3. 2014-12-11 3:38 GMT+08:00 Ned Deily : > > Ned Deily added the comment: > > The -export-dynamic compile option is not supported nor selected at > configure time for normal builds on OS X. Exactly what configure options > did you use? I see that you have checked Cross-Build for components. What > sort of cross-building are you attempting? > > -- > nosy: +ned.deily > > ___ > Python tracker > <http://bugs.python.org/issue23024> > ___ > -- title: Python Compile Error on Mac os X ld: unknown option: -export-dynamic -> Python Compile Error on Mac os X ld: unknown option: -export-dynamic ___ Python tracker <http://bugs.python.org/issue23024> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23024] Python Compile Error on Mac os X ld: unknown option: -export-dynamic
zhuoyikang added the comment: thank u very much ! question solved 2014-12-11 14:42 GMT+08:00 Ned Deily : > > Ned Deily added the comment: > > That should work just fine, assuming you are using an unmodified Python > 3.4.x source download or the 3.4 branch of a source repo. My best guess as > to why you are running into problems is that you may be picking up build > tools other than those supplied by Apple. On recent versions of OS X, make > sure you have run 'sudo xcode-select --install' to install the latest > version of the command line tools and check your shell $PATH variable. > There may be clues in the config.log file produced by running ./configure. > > -- > > ___ > Python tracker > <http://bugs.python.org/issue23024> > ___ > -- ___ Python tracker <http://bugs.python.org/issue23024> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com