pkgsrc-Users archive

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

Re: gcc34 build problem on Tru64 UNIX 5.1b



Well looking at config.log CFLAGS/CXXFLAGS/CPPFLAGS contain '-ieee' flag which
is invalid for gcc, it should be '-mieee'. If you didn't set it yourself, then
it was set by pkgsrc infrastructure:

[raymond@ultra10] cd /opt/pkgsrc/mk
[raymond@ultra10] for i in `find . -type f`
> do
> grep 'ieee' $i
> if test $? -eq 0
> then
> echo "^^ $i"
> fi
> done
# Most packages assume ieee floats, make that the default.
CFLAGS+=        -ieee
CXXFLAGS+=      -ieee
^^ ./compiler/ccc.mk
              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
^^ ./gnu-config/config.sub
-mieee)
        arg="-ieee"
^^ ./wrapper/transform-ccc-cc
# Add -mieee to CFLAGS and FFLAGS for NetBSD->=1.5V-alpha
CFLAGS+=        -mieee
FFLAGS+=        -mieee
^^ ./platform/NetBSD.mk

As far as I can see 'ieee' compiler flag is only valid for Compaq C compilers,
so maybe pkgsrc is thinking you're using those compilers. What does your
mk.conf file have? You need to have a bootstrap gcc installed before you can
build and install pkgsrc gcc. So for example, suppose your bootstrap gcc is
installed under /usr/local/gcc, before you can build pkgsrc gcc you need to
build the dependant packages with Compaq C compilers. Set your mk.conf file so
that it uses Compaq compilers, then

# cd /opt/pkgsrc/lang/gcc34
# bmake extract
... pkgsrc tries to extract gcc34 package and build its dependancies
# MAKECONF="" USE_NATIVE_GCC=yes PKGSRC_COMPILER=gcc \
PATH=/usr/local/gcc/bin:$PATH \
CC=/usr/local/gcc/bin/gcc \
CXX=/usr/local/gcc/bin/g++ \
CPP=/usr/local/gcc/bin/cpp \
bmake package

Running bmake extract in the example above ensures that any packages that
lang/gcc34 package depends on, are built with Compaq compilers and then get
installed. Next, MAKECONF environment variable is temporary reset to empty
string to prevent pkgsrc from reading mk.conf file and the environment
variables that specify native bootstrap GCC are temporary set to the
appropriate values. This makes bmake package command to use bootstrap GCC to
build pkgsrc GCC package



Home | Main Index | Thread Index | Old Index