[Bug c/44396] New: x86_64 linking problems with gcc4.4.1 on Snow Leopard

2010-06-02 Thread christine dot mecklenborg at gmail dot com
 FASTGateway.o, file was built for unsupported file format which
is not the architecture being linked (i386)
ld: warning: in
/Applications/Scientific/MATLAB_R2010a.app/bin/maci64/libmx.dylib, file was
built for unsupported file format which is not the architecture being linked
(i386)
ld: warning: in
/Applications/Scientific/MATLAB_R2010a.app/bin/maci64/libmex.dylib, file was
built for unsupported file format which is not the architecture being linked
(i386)
ld: warning: in
/Applications/Scientific/MATLAB_R2010a.app/bin/maci64/libmat.dylib, file was
built for unsupported file format which is not the architecture being linked
(i386)
ld: warning: in /sw/lib/gcc4.4/lib/x86_64//libgfortran.dylib, file was built
for unsupported file format which is not the architecture being linked (i386)
ld: warning: in
/sw/lib/gcc4.4/lib/gcc/i686-apple-darwin10/4.4.1/x86_64//libgfortranbegin.a,
file was built for unsupported file format which is not the architecture being
linked (i386)
ld: warning: in
/sw/lib/gcc4.4/lib/gcc/i686-apple-darwin10/4.4.1/x86_64//libgcc.a, file was
built for unsupported file format which is not the architecture being linked
(i386)
Undefined symbols:
  "_mexfunction_", referenced from:
 -exported_symbol[s_list] command line option
ld: symbol(s) not found
collect2: ld returned 1 exit status

mex: link of ' "FAST_SFunc.mexmaci64"' failed.


-- 
   Summary: x86_64 linking problems with gcc4.4.1 on Snow Leopard
   Product: gcc
   Version: 4.4.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
    ReportedBy: christine dot mecklenborg at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44396



[Bug target/44396] x86_64 linking problems with gcc4.4.1 on Snow Leopard

2010-06-03 Thread christine dot mecklenborg at gmail dot com


--- Comment #2 from christine dot mecklenborg at gmail dot com  2010-06-03 
14:33 ---
(In reply to comment #1)
> >gcc/ld is trying to link as i386
> 
> Well the option -arch x86_64 does not exist for the FSF GCC; it is -m64.  I
> think the issue is that your makefile is built for Apple's GCC and not for the
> generic GCC.  Can you change the makefile to use -m64 instead?
> 

That did the trick.  Thank you so much!


-- 

christine dot mecklenborg at gmail dot com changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution||INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44396