#33264: p5.12-xml-parser doesn't respect build_arch --------------------------------+------------------------------------------- Reporter: jhkoivis@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: p5.12-xml-parser --------------------------------+------------------------------------------- Comment(by jhkoivis@…): I have the following hacks: 1. I make copy the compiler to /usr/bin/gcc-4.2-orig 2. overwrite the gcc-4.2 with a script (or create a new file and and overwirte with a link) Below are the scripts (-m32 forces 32bit) and a listing of my /usr/bin/. If you have the same system/problem you want to do the same thing for g++ compiler. It will fail for the same reason for some other port... (I think one dependency for texlive?) less /usr/bin/gcc-4.2 {{{ #!/bin/sh /usr/bin/gcc-4.2-orig -m32 "$@" }}} less /usr/bin/g++-4.2 {{{ #!/bin/sh /usr/bin/g++-4.2-orig -m32 "$@" }}} listing: {{{ -rwxr-xr-x 1 root wheel 42B 22 Hel 10:08 /usr/bin/g++-4.2 -rwxr-xr-x 1 root wheel 162K 22 Hel 09:59 /usr/bin/g++-4.2-orig lrwxr-xr-x 1 root wheel 20B 15 Hel 16:10 /usr/bin/gcc-4.2 -> /usr/bin/gcc-4.2-m32 -rwxr-xr-x 1 root wheel 42B 7 Jou 2010 /usr/bin/gcc-4.2-m32 -rwxr-xr-x 1 root wheel 162K 26 Hei 2010 /usr/bin/gcc-4.2-orig }}} Below is a link to stackoverflow with the same question: http://stackoverflow.com/questions/4369765/how-to-force-usr-bin-gcc-usr- bin-gcc-m32 -- Ticket URL: <https://trac.macports.org/ticket/33264#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS