gm2
[Top][All Lists]
Advanced

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

Re: Problem building 64-bit gm2 on Solaris 11.3/sparc


From: john o goyo
Subject: Re: Problem building 64-bit gm2 on Solaris 11.3/sparc
Date: Mon, 20 Mar 2023 17:26:23 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

Greetings, Gaius.

On 2023-03-19 22:09, Gaius Mulley wrote:
Hello John,

ah - yes indeed - I've added:

Did you push these changes?  I just pulled and do not see them.

Sincerely,
john



  mcflex.o: mcflex.c m2/gm2-libs/gm2-libs-host.h
         $(CC) -I$(srcdir)/m2/mc -g -c $< -o $@   # remember that
mcReserved.h is copied into m2/mc

diff --git a/gcc/m2/Make-lang.in b/gcc/m2/Make-lang.in
index 8e3f67a6591..17a0b03f280 100644
--- a/gcc/m2/Make-lang.in
+++ b/gcc/m2/Make-lang.in
@@ -1352,20 +1352,20 @@ m2/boot-bin/mc$(exeext): $(BUILD-MC-BOOT-O)
$(BUILD-MC-INTERFACE-O) \

  m2/mc-boot/$(SRC_PREFIX)%.o: m2/mc-boot/$(SRC_PREFIX)%.cc
m2/gm2-libs/gm2-libs-host.h
         -test -d $(@D) || $(mkinstalldirs) $(@D)
-       $(CXX) -g -c -I. -I$(srcdir)/m2/mc-boot-ch
-I$(srcdir)/m2/mc-boot -I$(srcdir)/../include -I$(srcdir) $(INCLUDES)
$< -o $@
+       $(CXX) $(CXX_FLAGS) -g -c -I. -I$(srcdir)/m2/mc-boot-ch
-I$(srcdir)/m2/mc-boot -I$(srcdir)/../include -I$(srcdir) $(INCLUDES)
$< -o $@




  m2/mc-boot-ch/$(SRC_PREFIX)%.o: m2/mc-boot-ch/$(SRC_PREFIX)%.c
m2/gm2-libs/gm2-libs-host.h
         -test -d $(@D) || $(mkinstalldirs) $(@D)
-       $(CXX) -DHAVE_CONFIG_H -g -c -I. -Im2/gm2-libs
-I$(srcdir)/../include -I$(srcdir) $(INCLUDES) -Im2/gm2-libs $< -o $@
+       $(CXX) $(CXX_FLAGS) -DHAVE_CONFIG_H -g -c -I. -Im2/gm2-libs
-I$(srcdir)/../include -I$(srcdir) $(INCLUDES) -Im2/gm2-libs $< -o $@

  m2/mc-boot-ch/$(SRC_PREFIX)%.o: m2/mc-boot-ch/$(SRC_PREFIX)%.cc
m2/gm2-libs/gm2-libs-host.h
         -test -d $(@D) || $(mkinstalldirs) $(@D)
-       $(CXX) -DHAVE_CONFIG_H -g -c -I. -Im2/gm2-libs
-I$(srcdir)/../include -I$(srcdir) $(INCLUDES) -Im2/gm2-libs $< -o $@
+       $(CXX) $(CXX_FLAGS) -DHAVE_CONFIG_H -g -c -I. -Im2/gm2-libs
-I$(srcdir)/../include -I$(srcdir) $(INCLUDES) -Im2/gm2-libs $< -o $@

  m2/mc-boot/main.o: $(M2LINK) $(srcdir)/m2/init/mcinit
         -test -d $(@D) || $(mkinstalldirs) $(@D)
         unset CC ; $(M2LINK) -s --langc++ --exit --name
m2/mc-boot/main.cc $(srcdir)/m2/init/mcinit
-       $(CXX) -g -c -I. -I$(srcdir)/../include -I$(srcdir)
$(INCLUDES) m2/mc-boot/main.cc -o $@
+       $(CXX) $(CXX_FLAGS) -g -c -I. -I$(srcdir)/../include
-I$(srcdir) $(INCLUDES) m2/mc-boot/main.cc -o $@

  mcflex.o: mcflex.c m2/gm2-libs/gm2-libs-host.h
         $(CC) -I$(srcdir)/m2/mc -g -c $< -o $@   # remember that
mcReserved.h is copied into m2/mc

which builds on an x86_64 debian system - how does it fare on the sparc?

regards,
Gaius

On Mon, Mar 20, 2023 at 12:03 AM john o goyo <jog37@riddermarkfarm.ca> wrote:
Greetings, Gaius.

On 2023-03-19 17:02, Gaius Mulley wrote:
Hello John,
If you could tell me where these are compiled, I could manually adding
the 64-bit flag.

sure:  gcc/m2/Make-lang.in:1347-1375

m2/boot-bin/mc$(exeext): $(BUILD-MC-BOOT-O) $(BUILD-MC-INTERFACE-O) \
          m2/mc-boot/main.o mcflex.o m2/gm2-libs-boot/RTcodummy.o
+$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ $(BUILD-MC-BOOT-O) \
           $(BUILD-MC-INTERFACE-O) m2/mc-boot/main.o \
           mcflex.o m2/gm2-libs-boot/RTcodummy.o -lm

m2/mc-boot/$(SRC_PREFIX)%.o: m2/mc-boot/$(SRC_PREFIX)%.cc
m2/gm2-libs/gm2-libs-host.h
-test -d $(@D) || $(mkinstalldirs) $(@D)
$(CXX) -g -c -I. -I$(srcdir)/m2/mc-boot-ch -I$(srcdir)/m2/mc-boot
-I$(srcdir)/../include -I$(srcdir) $(INCLUDES) $< -o $@
Am I misreading this in that $(CXX_FLAGS) is not present?

Sincerely,
john


m2/mc-boot-ch/$(SRC_PREFIX)%.o: m2/mc-boot-ch/$(SRC_PREFIX)%.c
m2/gm2-libs/gm2-libs-host.h
-test -d $(@D) || $(mkinstalldirs) $(@D)
$(CXX) -DHAVE_CONFIG_H -g -c -I. -Im2/gm2-libs -I$(srcdir)/../include
-I$(srcdir) $(INCLUDES) -Im2/gm2-libs $< -o $@

m2/mc-boot-ch/$(SRC_PREFIX)%.o: m2/mc-boot-ch/$(SRC_PREFIX)%.cc
m2/gm2-libs/gm2-libs-host.h
-test -d $(@D) || $(mkinstalldirs) $(@D)
$(CXX) -DHAVE_CONFIG_H -g -c -I. -Im2/gm2-libs -I$(srcdir)/../include
-I$(srcdir) $(INCLUDES) -Im2/gm2-libs $< -o $@

m2/mc-boot/main.o: $(M2LINK) $(srcdir)/m2/init/mcinit
-test -d $(@D) || $(mkinstalldirs) $(@D)
unset CC ; $(M2LINK) -s --langc++ --exit --name m2/mc-boot/main.cc
$(srcdir)/m2/init/mcinit
$(CXX) -g -c -I. -I$(srcdir)/../include -I$(srcdir) $(INCLUDES)
m2/mc-boot/main.cc -o $@

mcflex.o: mcflex.c m2/gm2-libs/gm2-libs-host.h
$(CC) -I$(srcdir)/m2/mc -g -c $< -o $@   # remember that mcReserved.h
is copied into m2/mc


regards,
Gaius


On Sun, Mar 19, 2023 at 6:27 PM john o goyo <jog37@riddermarkfarm.ca> wrote:
Greetings, Gaius.

I tried building a 64-bit version of gm2 (ABI=64, CFLAGS=-m64, and
sparcv9).  The C/C++ bits build fine without m2 but the -m64 does not
seem to propagate down to building mc.  The stuff in m2/mc-boot was
compiled to 32 bits.

/home/build/gcc/git/bin/g++ -c -DIN_GCC -m64 [...] -o m2/boot-bin/mc
[...]
ld: fatal: file m2/mc-boot/GASCII.o: wrong ELF class: ELFCLASS32
ld: fatal: file m2/mc-boot/GArgs.o: wrong ELF class: ELFCLASS32
[...]

If you could tell me where these are compiled, I could manually adding
the 64-bit flag.

Sincerely,
john





reply via email to

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