public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/44396] New: x86_64 linking problems with gcc4.4.1 on Snow Leopard
@ 2010-06-03 4:45 christine dot mecklenborg at gmail dot com
2010-06-03 5:56 ` [Bug target/44396] " pinskia at gcc dot gnu dot org
2010-06-03 14:33 ` christine dot mecklenborg at gmail dot com
0 siblings, 2 replies; 3+ messages in thread
From: christine dot mecklenborg at gmail dot com @ 2010-06-03 4:45 UTC (permalink / raw)
To: gcc-bugs
I'm running gcc4.4.1, courtesy of Fink, on Mac OS 10.6.3. I'm trying to
compile mex files for use with 64-bit Matlab 2010a, but build fails at the
linking stage. The source files successfully compile as x86_64 architecture
(confirmed with the 'file' command in the terminal), but gcc/ld is trying to
link as i386, for some unknown reason.
/sw/bin/gcc-4 -O -Wl,-twolevel_namespace -undefined error -arch x86_64
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6
-bundle
-Wl,-exported_symbols_list,/Applications/Scientific/MATLAB_R2010a.app/extern/lib/maci64/fexport.map
-o "FAST_SFunc.mexmaci64" DoubPrec.o SysMatlab.o NWTC_IO.o NWTC_Num.o
NWTC_Aero.o NWTC_Library.o SharedInflowDefs.o HHWind.o FFWind.o FDWind.o
CTWind.o UserWind.o InflowWindMod.o SharedTypes.o AeroMods.o GenSubs.o
AeroSubs.o AeroDyn.o FAST_Mods.o Noise.o fftpack.o FFTMod.o HydroCalc.o
AeroCalc.o FAST_IO.o FAST.o PitchCntrl_ACH.o SetVersion.o UserSubs.o
UserVSCont_KP.o FASTSimulink.o FASTGateway.o
-L/Applications/Scientific/MATLAB_R2010a.app/bin/maci64 -lmx -lmex -lmat
-L/sw/lib/gcc4.4/lib/x86_64/ -lgfortran
-L/sw/lib/gcc4.4/lib/gcc/i686-apple-darwin10/4.4.1/x86_64/ -lgfortranbegin
d: warning: in DoubPrec.o, file was built for unsupported file format which is
not the architecture being linked (i386)
ld: warning: in SysMatlab.o, file was built for unsupported file format which
is not the architecture being linked (i386)
ld: warning: in NWTC_IO.o, file was built for unsupported file format which is
not the architecture being linked (i386)
ld: warning: in NWTC_Num.o, file was built for unsupported file format which is
not the architecture being linked (i386)
ld: warning: in NWTC_Aero.o, file was built for unsupported file format which
is not the architecture being linked (i386)
ld: warning: in NWTC_Library.o, file was built for unsupported file format
which is not the architecture being linked (i386)
ld: warning: in SharedInflowDefs.o, file was built for unsupported file format
which is not the architecture being linked (i386)
ld: warning: in HHWind.o, file was built for unsupported file format which is
not the architecture being linked (i386)
ld: warning: in FFWind.o, file was built for unsupported file format which is
not the architecture being linked (i386)
ld: warning: in FDWind.o, file was built for unsupported file format which is
not the architecture being linked (i386)
ld: warning: in CTWind.o, file was built for unsupported file format which is
not the architecture being linked (i386)
ld: warning: in UserWind.o, file was built for unsupported file format which is
not the architecture being linked (i386)
ld: warning: in InflowWindMod.o, file was built for unsupported file format
which is not the architecture being linked (i386)
ld: warning: in SharedTypes.o, file was built for unsupported file format which
is not the architecture being linked (i386)
ld: warning: in AeroMods.o, file was built for unsupported file format which is
not the architecture being linked (i386)
ld: warning: in GenSubs.o, file was built for unsupported file format which is
not the architecture being linked (i386)
ld: warning: in AeroSubs.o, file was built for unsupported file format which is
not the architecture being linked (i386)
ld: warning: in AeroDyn.o, file was built for unsupported file format which is
not the architecture being linked (i386)
ld: warning: in FAST_Mods.o, file was built for unsupported file format which
is not the architecture being linked (i386)
ld: warning: in Noise.o, file was built for unsupported file format which is
not the architecture being linked (i386)
ld: warning: in fftpack.o, file was built for unsupported file format which is
not the architecture being linked (i386)
ld: warning: in FFTMod.o, file was built for unsupported file format which is
not the architecture being linked (i386)
ld: warning: in HydroCalc.o, file was built for unsupported file format which
is not the architecture being linked (i386)
ld: warning: in AeroCalc.o, file was built for unsupported file format which is
not the architecture being linked (i386)
ld: warning: in FAST_IO.o, file was built for unsupported file format which is
not the architecture being linked (i386)
ld: warning: in FAST.o, file was built for unsupported file format which is not
the architecture being linked (i386)
ld: warning: in PitchCntrl_ACH.o, file was built for unsupported file format
which is not the architecture being linked (i386)
ld: warning: in SetVersion.o, file was built for unsupported file format which
is not the architecture being linked (i386)
ld: warning: in UserSubs.o, file was built for unsupported file format which is
not the architecture being linked (i386)
ld: warning: in UserVSCont_KP.o, file was built for unsupported file format
which is not the architecture being linked (i386)
ld: warning: in FASTSimulink.o, file was built for unsupported file format
which is not the architecture being linked (i386)
ld: warning: in 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/44396] x86_64 linking problems with gcc4.4.1 on Snow Leopard
2010-06-03 4:45 [Bug c/44396] New: x86_64 linking problems with gcc4.4.1 on Snow Leopard christine dot mecklenborg at gmail dot com
@ 2010-06-03 5:56 ` pinskia at gcc dot gnu dot org
2010-06-03 14:33 ` christine dot mecklenborg at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-06-03 5:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2010-06-03 05:56 -------
>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?
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Component|c |target
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44396
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/44396] x86_64 linking problems with gcc4.4.1 on Snow Leopard
2010-06-03 4:45 [Bug c/44396] New: x86_64 linking problems with gcc4.4.1 on Snow Leopard christine dot mecklenborg at gmail dot com
2010-06-03 5:56 ` [Bug target/44396] " pinskia at gcc dot gnu dot org
@ 2010-06-03 14:33 ` christine dot mecklenborg at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: christine dot mecklenborg at gmail dot com @ 2010-06-03 14:33 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-06-03 14:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-03 4:45 [Bug c/44396] New: x86_64 linking problems with gcc4.4.1 on Snow Leopard christine dot mecklenborg at gmail dot com
2010-06-03 5:56 ` [Bug target/44396] " pinskia at gcc dot gnu dot org
2010-06-03 14:33 ` christine dot mecklenborg at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).