[Python-Dev] python compile error on mac os x

Brett Cannon brett at python.org
Wed Dec 10 17:40:21 CET 2014


It would be better to file a bug at bugs.python.org so it's easier to track
the problem.

On Wed Dec 10 2014 at 11:37:30 AM 卓一抗 <zhuoyikang at gmail.com> wrote:

> hello, everybody ,i occur an ld error in my mac os x
>
> python 3.4.2  gcc 4.8.2
>
> /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
>
>
> how to solve this ?  anybody help me ?
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/
> brett%40python.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20141210/497ba881/attachment.html>


More information about the Python-Dev mailing list