[MacPorts] #36026: ld64 sometimes builds wrong which causes other software to fail to build
MacPorts
noreply at macports.org
Sat Sep 29 00:59:12 PDT 2012
#36026: ld64 sometimes builds wrong which causes other software to fail to build
-------------------------+------------------------
Reporter: jwhowse4@… | Owner: jeremyhu@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Resolution: | Keywords:
Port: ld64 |
-------------------------+------------------------
Comment (by vaccari@…):
Ok, so I'v reinstalled MacPorts and have again a broken system. Broken in
the sense that I can't install libstdcxx. Looking at the log, the first
reference to a wrong architecture regards _muldi3_s.o
So I searched for *muldi3* in the tree, then
{{{
cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/gcc-4.7.1/libgcc
}}}
and
{{{
sudo clang -E
-B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build/./gcc/
-B/opt/local/x86_64-apple-darwin12/bin/ -B/opt/local/x86_64-apple-
darwin12/lib/ -isystem /opt/local/x86_64-apple-darwin12/include -isystem
/opt/local/x86_64-apple-darwin12/sys-include -g -pipe -O2 -O2 -g -pipe -O2
-DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-
prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include
-pipe -fno-common -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector
-pipe -fno-common -I. -I../gcc -I../include -I../../build/gcc
-DHAVE_CC_TLS -DUSE_EMUTLS -o _muldi3_s.o -MT _muldi3_s.o -MD -MP -MF
_muldi3_s.dep -DSHARED -DL_muldi3 -c libgcc2.c -I../../build/x86_64-apple-
darwin12/libgcc
}}}
Note that from the log I understand that gccx was used instead of clang,
if that's relevant. Also, I adjusted the -I options to properly find the
required headers, since I was issuing the clang command right from the
directory.
The command succeeded, the only warning being:
{{{
clang: warning: argument unused during compilation: '-fbuilding-libgcc'
}}}
I'm attaching the _muldi3_s.o file for your checking
--
Ticket URL: <https://trac.macports.org/ticket/36026#comment:91>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list