Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#1702 closed defect (wontfix)

Warnings when building/linking the Python module due to different linker architecture

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 (last modified by bennylp)

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 to include only architecture that you want to build as follows:

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

Change History (2)

comment:1 Changed 11 years ago by bennylp

  • Resolution set to wontfix
  • Status changed from new to closed

comment:2 Changed 11 years ago by bennylp

  • Description modified (diff)
Note: See TracTickets for help on using tickets.