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: Sun, 19 Mar 2023 20:03:15 -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 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]