gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] Re: GM2 build failure on OSX


From: Michael Lambert
Subject: Re: [Gm2] Re: GM2 build failure on OSX
Date: Mon, 22 Jun 2009 21:18:10 -0400

I sent the following to the list last October. I wonder if it is still the fix?

Michael

One tweak is the following patch (ld on OS X complains about the dwarf format):

--------------------
--- Make-lang.in.sav    2008-10-01 16:46:23.000000000 -0400
+++ Make-lang.in        2008-10-08 08:45:42.000000000 -0400
@@ -56,6 +56,13 @@
XGM2BUILD1 = /home/gaius/GM2/gm2-harness/build/gcc/stage1/gm2 -g - gdwarf-2
XGM2_1 = ./xgm2
XGM2BUILD1 = ./stage1/gm2  -g -gdwarf-2
+ifeq ($(OSTYPE),darwin)
+  ifeq ($(VENDOR),apple)
+    ifeq ($(MACHTYPE),i386)
+       XGM2BUILD1 = ./stage1/gm2 -g
+    endif
+  endif
+endif

# Define the name of target independent tools to be installed in $ (bindir)
# Names are subject to changes
--------------------

On 22 Jun 2009, at 20:00, Gaius Mulley wrote:

B K <address@hidden> writes:

after changing --strip-underscores to --strip-underscore, the build
proceeds but the resulting compiler is of no use because when trying
to compile/build anything with it it fails as the following example
shows ...

/usr/bin/ranlib /var/folders/0d/0dREfDvwHrK6Z7YL+1m3DU+++TI/-Tmp-// ccIGoWBQ.a /Users/benjamin/opt/libexec/gcc/i386-apple-darwin9.7.1/4.1.2/ collect2
-dynamic -arch i386 -weak_reference_mismatches non-weak -o a.out
-lcrt1.o -L/Users/benjamin/opt/lib/gcc/i386-apple-darwin9.7.1/4.1.2
-L/Users/benjamin/opt/lib/gcc/i386-apple-darwin9.7.1/4.1.2/../../..
/var/folders/0d/0dREfDvwHrK6Z7YL+1m3DU+++TI/-Tmp-//ccIGoWBQ.a -lstdc ++
-lgcc_eh -lgcc_s.10.4 -lgcc -lSystem
ld: in /var/folders/0d/0dREfDvwHrK6Z7YL+1m3DU+++TI/-Tmp-// ccIGoWBQ.a(DynamicStrings.o),
object file contains old DWARF debug info - rebuild with newer
compiler
collect2: ld returned 1 exit status

there is of course Xcode installed (v.3.1) on the same machine which
uses both GCC 4.0.1 and GCC 4.2.

any help would be appreciated
thanks

NB: this email address is used only for posting, incoming mail is
automatically deleted, please reply to the list, thanks.

Hi,

I'll investigate on an x86 based mac at work on Thursday.  I'm
particularly interested in trying to compile:

MODULE hello ;

FROM libc IMPORT printf ;

BEGIN
  printf("hello world\n")
END hello.

with:

gm2 -g -c -flibs=min hello.mod
gm2 -g -flibs=min hello.mod

as this will not use DynamicStrings.o

regards,
Gaius




_______________________________________________
gm2 mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/gm2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]