libiberty

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

libiberty

Gregory Edigarov-2
Hello,

I know this is a FAQ, and perhaps I'll be blamed for asking it again...

cc -O2 -pipe -g   -DHAVE_CONFIG_H -I/usr/src/gnu/lib/libiberty/src
-I/usr/src/gnu/lib/libiberty/include -I/usr/src/gnu/lib/libiberty/obj
-c /usr/src/gnu/lib/libiberty/src/hex.c -o
hex.o /usr/src/gnu/lib/libiberty/src/hex.c:22: error: conflicting types
for '_hex_value' /usr/src/gnu/lib/libiberty/include/libiberty.h:338:
error: previous declaration of '_hex_value' was here *** Error code 1

Stop in /usr/src/gnu/lib/libiberty (line 92 of /usr/share/mk/sys.mk).
# uname -a
OpenBSD edigarov.sa.net.ua 4.7 GENERIC#16 amd64

This happen while i am trying to build from sources. The system is
the latest binary snapshot as found on ftp.openbsd.org.
Upgraded from snapshot, done
cvs up -Pd in /usr/src; rm -rf /usr/obj/*; make obj; make build
build process stops with above error.

Just want to learn how to struggle this.

Here's what i tryed:

cd /usr/src/gnu/lib/libiberty
make -f Makefile.bsd-wrapper cleandir
make -f Makefile.bsd-wrapper depend
make -f Makefile.bsd-wrapper

no success...


--
With best regards,
        Gregory Edigarov

Reply | Threaded
Open this post in threaded view
|

Re: libiberty

J.C. Roberts-3
On Sat, 5 Jun 2010 13:25:26 +0300 Gregory Edigarov
<[hidden email]> wrote:

>
> Stop in /usr/src/gnu/lib/libiberty (line 92 of /usr/share/mk/sys.mk).
> # uname -a
> OpenBSD edigarov.sa.net.ua 4.7 GENERIC#16 amd64
>
> This happen while i am trying to build from sources. The system is
> the latest binary snapshot as found on ftp.openbsd.org.
> Upgraded from snapshot, done
> cvs up -Pd in /usr/src; rm -rf /usr/obj/*; make obj; make build
> build process stops with above error.
>
> Just want to learn how to struggle this.
>
> Here's what i tryed:
>
> cd /usr/src/gnu/lib/libiberty
> make -f Makefile.bsd-wrapper cleandir
> make -f Makefile.bsd-wrapper depend
> make -f Makefile.bsd-wrapper
>
> no success...

It seems you forgot to run sysmerge after upgrading via snapshot, and
you didn't follow current.html

http://www.openbsd.org/faq/current.html



--
The OpenBSD Journal - http://www.undeadly.org

Reply | Threaded
Open this post in threaded view
|

Re: libiberty

Gregory Edigarov-2
In reply to this post by Gregory Edigarov-2
On Sun, 06 Jun 2010 12:33:24 +0200
Gabriel Kihlman <[hidden email]> wrote:

> Gabriel Kihlman <[hidden email]> writes:
>
> > Gregory Edigarov <[hidden email]> writes:
> >
> >> Gabriel,
> >>
> >> The gcc is already the necessary version:
> >>
> >
> > But you missed this part from the faq:
> >
> > [ ... ]
> > rm -rf /usr/include/g++/*
> > cd /usr/src/gnu/lib/libstdc++-v3
> > make obj && make includes && make depend && make && make install
> > [ ... ]
> >
> > You see? Remove old headers..
>
> Oh and it even says:
>
> [ ... ]
> For people updating using snapshots, don't forget to:
>
>     rm -rf /usr/include/g++/*
>
> before installing newer snapshot.
> [ ... ]
>
>
> So you have no excuse...
>
> /gabriel

no excuse, you say....
well...

# cat /root/build.sh
rm -rf /usr/obj/*
rm -rf /usr/include/g++/*
cd /usr/src && make obj
cd /usr/src/etc && env DESTDIR=/ make distrib-dirs
cd /usr/src && make build

# sh build

[skip many strings]

cc -O2 -pipe -g   -DHAVE_CONFIG_H -I/usr/src/gnu/lib/libiberty/src
-I/usr/src/gnu/lib/libiberty/include -I/usr/src/gnu/lib/libiberty/obj
-c /usr/src/gnu/lib/libiberty/src/hex.c -o
hex.o /usr/src/gnu/lib/libiberty/src/hex.c:22: error: conflicting types
for '_hex_value' /usr/src/gnu/lib/libiberty/include/libiberty.h:338:
error: previous declaration of '_hex_value' was here *** Error code 1

Stop in /usr/src/gnu/lib/libiberty (line 92 of /usr/share/mk/sys.mk).
*** Error code 1

Stop in /usr/src/gnu/lib (line 48 of /usr/share/mk/bsd.subdir.mk).
*** Error code 1

Stop in /usr/src (line 74 of Makefile).

Now, where am I wrong?

--
With best regards,
        Gregory Edigarov

Reply | Threaded
Open this post in threaded view
|

Re: libiberty

Gregory Edigarov-2
On Mon, 7 Jun 2010 12:57:06 +0300
Gregory Edigarov <[hidden email]> wrote:

> On Sun, 06 Jun 2010 12:33:24 +0200
> Gabriel Kihlman <[hidden email]> wrote:
>
> > Gabriel Kihlman <[hidden email]> writes:
> >
> > > Gregory Edigarov <[hidden email]> writes:
> > >
> > >> Gabriel,
> > >>
> > >> The gcc is already the necessary version:
> > >>
> > >
> > > But you missed this part from the faq:
> > >
> > > [ ... ]
> > > rm -rf /usr/include/g++/*
> > > cd /usr/src/gnu/lib/libstdc++-v3
> > > make obj && make includes && make depend && make && make install
> > > [ ... ]
> > >
> > > You see? Remove old headers..
> >
> > Oh and it even says:
> >
> > [ ... ]
> > For people updating using snapshots, don't forget to:
> >
> >     rm -rf /usr/include/g++/*
> >
> > before installing newer snapshot.
> > [ ... ]
> >
> >
> > So you have no excuse...
> >
> > /gabriel
>
> no excuse, you say....
> well...
>
> # cat /root/build.sh
> rm -rf /usr/obj/*
> rm -rf /usr/include/g++/*
> cd /usr/src && make obj
> cd /usr/src/etc && env DESTDIR=/ make distrib-dirs
> cd /usr/src && make build
>
> # sh build
this is
# sh build.sh
of course...
but the rest of the question stays :-(

>
> [skip many strings]
>
> cc -O2 -pipe -g   -DHAVE_CONFIG_H -I/usr/src/gnu/lib/libiberty/src
> -I/usr/src/gnu/lib/libiberty/include -I/usr/src/gnu/lib/libiberty/obj
> -c /usr/src/gnu/lib/libiberty/src/hex.c -o
> hex.o /usr/src/gnu/lib/libiberty/src/hex.c:22: error: conflicting
> types for
> '_hex_value' /usr/src/gnu/lib/libiberty/include/libiberty.h:338:
> error: previous declaration of '_hex_value' was here *** Error code 1
>
> Stop in /usr/src/gnu/lib/libiberty (line 92 of /usr/share/mk/sys.mk).
> *** Error code 1
>
> Stop in /usr/src/gnu/lib (line 48 of /usr/share/mk/bsd.subdir.mk).
> *** Error code 1
>
> Stop in /usr/src (line 74 of Makefile).
>
> Now, where am I wrong?
>


--
With best regards,
        Gregory Edigarov

Reply | Threaded
Open this post in threaded view
|

Re: libiberty

J.C. Roberts-3
In reply to this post by Gregory Edigarov-2
On Mon, 7 Jun 2010 12:57:06 +0300 Gregory Edigarov
<[hidden email]> wrote:

>
> no excuse, you say....
> well...
>
> # cat /root/build.sh
> rm -rf /usr/obj/*
> rm -rf /usr/include/g++/*
> cd /usr/src && make obj
> cd /usr/src/etc && env DESTDIR=/ make distrib-dirs
> cd /usr/src && make build
>
> # sh build

Just running `rm -rf /usr/include/g++/*` is *_ONLY_* sufficient for
those who are upgrading via snapshots. For those upgrading via source
(i.e. *YOU*), there are a lot more steps listed in current.html

        http://www.openbsd.org/faq/current.html

All of this is due to the recent upgrading of gcc3 to gcc4 on the amd64
and sparc64 archs. If you don't follow the procedures in current.html,
then you can be reasonably sure things will become a real mess.

        jcr

--
The OpenBSD Journal - http://www.undeadly.org