[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gm2] Building gm2-4.7.3 on MacOS 10.5.8/PPC
From: |
john o goyo |
Subject: |
[Gm2] Building gm2-4.7.3 on MacOS 10.5.8/PPC |
Date: |
Wed, 27 Aug 2014 10:59:59 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-GB; rv:1.9.2.23) Gecko/20110920 Thunderbird/3.1.15 |
In the interests of portability, I tried building gm2 on my DP G5
(PPC970) running Mac 10.5.8. I am able to build gcc-4.7.3 but ran into
problems with gm2. In summary, LDFLAGS is not being propopaged down to
the gm2 level. Summary of the journey follows.
Following recommendations found on the web, I used gcc-4.2 that comes
with Xcode. (With gmp, mpfr, and mpc, make check passed all test.)
Building gmp-5.0.5:
CC=gcc-4.2 CFLAGS='-m64 -mtune=970 -O3' \
CXX=g++-4.2 CXXFLAGS='-m64 -mtune=970 -O3' \
./configure
Building mpfr-3.1.1:
CC=gcc-4.2 CFLAGS='-m64 -mtune=970 -O3' \
CXX=g++-4.2 CXXFLAGS='-m64 -mtune=970 -O3' \
./configure --with-gmp=/usr/local
Building mpc-1.0.1:
CC=gcc-4.2 CFLAGS='-m64 -mtune=970 -O3' \
CXX=g++-4.2 CXXFLAGS='-m64 -mtune=970 -O3' \
./configure --with-gmp=/usr/local --with-mpfr=/usr/local
Building gcc-4.7.3:
CC=gcc-4.2 CFLAGS='-m64 -mtune=970 -O3' \
CXX=g++-4.2 CXXFLAGS='-m64 -mtune=970 -O3' \
$(SRCDIR)/gcc-4.7.3/configure \
--prefix=$HOME/gcc-4.7.3 --exec-prefix=$HOME/gcc-4.7.3 \
--with-mpc=/usr/local \
--with-mpfr=/usr/local \
--with-gmp=/usr/local \
--enable-languages=c,c++ \
--disable-multilib \
--disable-bootstrap --enable-checking --disable-libitm
So far, so good. Tried building gm2 with the following configuration
options:
CC=gcc-4.2 CFLAGS='-m64 -mtune=970 -O3' \
CXX=g++-4.2 CXXFLAGS='-m64 -mtune=970 -O3' \
LDFLAGS='-m64 -mtune=970' \
../../src/gcc-4.7.3-patched/configure \
--prefix=$HOME/gm2-4.7.3 --exec-prefix=$HOME/gm2-4.7.3 \
--with-mpc=/usr/local \
--with-mpfr=/usr/local \
--with-gmp=/usr/local \
--enable-languages=c,c++,gm2 \
--disable-multilib \
--disable-bootstrap --enable-checking --disable-libitm \
--enable-libgm2
Failure here:
gcc-4.2 gm2/boot-bin/trans.o gm2/boot-bin/stuff.o gm2/boot-bin/out.o
gm2/boot-bin/comment.o gm2/boot-bin/lex.o gm2/boot-bin/parse.o
gm2/boot-bin/decl.o gm2/boot-bin/expr.o gm2/boot-bin/pexpr.o
gm2/boot-bin/funcs.o gm2/boot-bin/dir.o -o gm2/boot-bin/p2c
ld warning: in gm2/boot-bin/trans.o, file is not of required architecture
ld warning: in gm2/boot-bin/stuff.o, file is not of required architecture
[...]
Note that LDFLAGS are not used. I tried linking the above by hand with
those flags and it linked without problems.
So, how do I push LDFLAGS to the gm2 part?
Sincerely,
john
- [Gm2] Building gm2-4.7.3 on MacOS 10.5.8/PPC,
john o goyo <=