ld: /usr/lib///libm.dylib unknown flags (type) of section 6
(__TEXT,__dof_plockstat) in load command 0
ld: /usr/lib///libmx.dylib segment __TEXT contains no sections and
can't be link-edited
ld: /usr/lib///libSystem.dylib unknown flags (type) of section 6
(__TEXT,__dof_plockstat) in load command 0
Any ideas?
Al Greynolds
www.ruda.com
Are you using a special ld made for g95? It seems to be too old to
understand the Leopard libraries.
Unfortunately, g95 also does not build on Leopard. So, unless the g95
developers do something, and very quickly, the game for g95 on the Mac
is over.
--
Martin
/usr/bin$ ld -v
Apple Computer, Inc. version cctools-622.5.obj~13
I hope the problem with g95 under Leopard is fixed soon.
Unforturnately the last time I e-mailed the developer
an...@firstinter.net on an unrelated issue, it was returned as
undeliverable.
Al
This is not necessarily the same ld that is used by g95. For example, I
have here a g95 that answers on "g95 -v":
Using built-in specs.
Target:
Configured with: ../configure
--prefix=/sw/lib/gcc-lib/powerpc-apple-darwin8/4.0.3
--enable-languages=c --with-as=/sw/lib/odcctools590/bin/as
--with-ld=/sw/lib/odcctools590/bin/ld
--with-nm=/sw/lib/odcctools590/bin/nm --with-included-gettext
Thread model: posix
gcc version 4.0.3 (g95 0.90!) Nov 14 2006
This is from Fink, and it uses a special Fink-provided ld from
odcctools590. It works on Tiger, but on Leopard it gives the same error
as you have been seeing.
--
Martin
$ g95 test.F
/var/folders/3e/3exGxwUPGCadpQCXucA8S+++-++/-Tmp-//cc17LJ0r.s:
59:indirect jmp without `*'
/var/folders/3e/3exGxwUPGCadpQCXucA8S+++-++/-Tmp-//cc17LJ0r.s:
78:indirect jmp without `*'
/var/folders/3e/3exGxwUPGCadpQCXucA8S+++-++/-Tmp-//cc17LJ0r.s:
97:indirect jmp without `*'
/var/folders/3e/3exGxwUPGCadpQCXucA8S+++-++/-Tmp-//cc17LJ0r.s:
112:indirect jmp without `*'
ld: unknown/unsupported architecture name for: -arch i686
$ g95 -v
Using built-in specs.
Target:
Configured with: ../configure --enable-languages=c
Thread model: posix
gcc version 4.0.3 (g95 0.91!) Oct 27 2007
$ ld -v -v
@(#)PROGRAM:ld PROJECT:ld64-77
@(#)PROGRAM:ld PROJECT:ld64-77
Library search paths:
/usr/lib
/usr/local/lib
Framework search paths:
/Library/Frameworks/
/System/Library/Frameworks/
/Network/Library/Frameworks/
ld: warning -arch not specified
ld: no object files specified for inferred architecture i386
This is with the g95 downloaded from g95.org, and after doing an
upgrade to Leopard, including developer tools. Any ideas?
Peter
This is not /usr/bin/ld from Leopard, it's something else, and too old.
[]
> ld: /usr/lib///libm.dylib unknown flags (type) of section 6
> (__TEXT,__dof_plockstat) in load command 0
But even if you use Leopard's ld, g95 won't build on Leopard, and a g95
built on Tiger won't work on Leopard as you are showing.
--
Martin