Opened 11 years ago

Last modified 11 years ago

#1702 closed defect

Warnings when building/linking the Python module due to different linker architecture — at Initial Version

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-2.2
Component: python Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description

Warnings similar to the following may occur on MacOS X when building the Python module:

ld: warning: ignoring file ../lib/libpjsua-x86_64-apple-darwin11.4.2.a, file was built for archive which is not the architecture being linked (i386): ../libpjsua-x86_64-apple-darwin11.4.2.a

ld: warning: ignoring file /Users/bennylp/Desktop/project/pjsip/2.x/pjmedia/lib/libpjmedia-x86_64-apple-darwin11.4.2.a, file was built for archive which is not the architecture being linked (i386): /Users/bennylp/Desktop/project/pjsip/2.x/pjmedia/lib/libpjmedia-x86_64-apple-darwin11.4.2.a

...

These warnings can just be ignored because the module will still be built for the available architecture (x86_64 in this case).

If you want to get rid of the warnings, you can set the ARCHFLAGS as follows:

 $ ARCHFLAGS='-arch x86_64' python setup.py build

Change History (0)

Note: See TracTickets for help on using tickets.