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



On Wed, 2006-09-20 at 11:25 +0100, Raymond Meyer wrote:
> 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?

It contains:
PKGSRC_COMPILER=ccc
X11_TYPE=native
ACCEPTABLE_LICENSES+=unrar-license
CONFIG_SHELL=   /usr/pkg/bin/bash
WRAPPER_SHELL=  /usr/pkg/bin/bash
PKG_OPTIONS.SDL=-aalib -arts -esound -nas
PKG_OPTIONS.qemu=-nas
SED=/usr/pkg/bin/gsed
AWK=/usr/pkg/bin/gawk
SH=/usr/pkg/bin/bash


>  You need to have a bootstrap gcc installed before you can
> build and install pkgsrc gcc. 

I do have a but why so? Is it the same for Solaris (and any non-gcc
systems)? 

> 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

It doesn't seem to be a "standard way" to build gcc. Could I have found
it in pkgsrc's docs?

Anyway thanks a lot. I'm going to try.

Alexey Lebedev.

Attachment: signature.asc
Description: This is a digitally signed message part



Home | Main Index | Thread Index | Old Index