Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9121155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:47:45+00:00 2026-06-17T05:47:45+00:00

I am building on a Mac OS X 10.8.2 workstation running GCC 4.7.2 obtained

  • 0

I am building on a Mac OS X 10.8.2 workstation running GCC 4.7.2 obtained via MacPorts. I can build 64-bit (x86_64) apps with this setup.

I am trying to build a 32-bit binary from source by adding the -arch i386 to the compilation flags. I’d like to add support for 32-bit clients on 10.5 and 10.6.

I get the following error messages (among others) which seem relevant to the lack of 32-bit libraries:

ld: warning: ignoring file /opt/local/lib/gcc47/libgcc_ext.10.5.dylib, missing required architecture i386 in file /opt/local/lib/gcc47/libgcc_ext.10.5.dylib (1 slices)
ld: warning: ignoring file /opt/local/lib/gcc47/gcc/x86_64-apple-darwin12/4.7.2/libgcc.a, file was built for archive which is not the architecture being linked (i386): /opt/local/lib/gcc47/gcc/x86_64-apple-darwin12/4.7.2/libgcc.a

My questions are:

  • Is there a different flag I should use for this, instead of -arch i386?

  • Or, where can I obtain (or how can I compile) the i386 libraries I need to install, to get 32-bit support?

(Can I compile i386 architecture libraries from downloading GCC 4.7.2 source? Is there a specific set of options I should add to the ./configure statement to enable this?)

  • Once these libraries are installed, how does my current gcc installation “know” where these libraries will be found?

  • Is there anything I can add via Xcode 4.5.2? I am already doing this on the command-line, but I can only see “command-line tools” and iOS simulators as download options in the Preferences applet.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:47:46+00:00Added an answer on June 17, 2026 at 5:47 am

    Rebuilding the MacPorts installation of GCC 4.7.2 with the +universal option provided support for compiling both 32- (i386) and 64-bit (x86_64) binaries.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While building an existing code base on Mac OS using its native build setup
I'm trying to automate Mac OS X package building via command line interface of
I'm building application with GWT + GAE on my MAC. In this app i
I'm building a small Mac Application that gets continuously supplied with data via a
I am building one application on Mac OS X (10.6). In this application, I
I'm following the instructions from here to build MonoDevelop on Mac OS X: Building
I'm running a Mac Mini with Apache/PHP5/MySQL as my staging server. I'm building and
I am trying to build libdecodeqr on a mac. My c++ building and linking
I'm building this app for Mac OS X v10.6 I'm building a text-based adventure
I'm just building my Cocoa app for distribution on mac app store, but this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.