-current userland not building

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

-current userland not building

Chris Smith-32
Problems building -current userland:
======================================
===> libcurses
cc -O2 -pipe -g -I. -I/usr/src/lib/libcurses    -c codes.c -o codes.o
cc -O2 -pipe -g -I. -I/usr/src/lib/libcurses    -c comp_captab.c -o
comp_captab.o
cc -O2 -pipe -g -I. -I/usr/src/lib/libcurses    -c expanded.c -o expanded.o
cc -O2 -pipe -g -I. -I/usr/src/lib/libcurses    -c fallback.c -o fallback.o
cc -O2 -pipe -g -I. -I/usr/src/lib/libcurses    -c lib_gen.c -o lib_gen.o
lib_gen.c:27: error: conflicting types for `addchnstr'
/usr/src/lib/libcurses/curses.h:531: error: previous declaration of `addchnstr'
lib_gen.c:34: error: conflicting types for `addchstr'
/usr/src/lib/libcurses/curses.h:532: error: previous declaration of `addchstr'
lib_gen.c:41: error: conflicting types for `addnstr'
/usr/src/lib/libcurses/curses.h:533: error: previous declaration of `addnstr'
lib_gen.c:48: error: conflicting types for `addstr'
<snip>
lib_gen.c:1522: error: conflicting types for `waddwstr'
/usr/src/lib/libcurses/curses.h:1483: error: previous declaration of `waddwstr'
lib_gen.c:1558: error: conflicting types for `wins_wstr'
/usr/src/lib/libcurses/curses.h:1499: error: previous declaration of `wins_wstr'
*** Error code 1

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

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

Stop in /usr/src (line 80 of Makefile).
======================================

Clues please.

Chris

Reply | Threaded
Open this post in threaded view
|

Re: -current userland not building

Chris Smith-32
It seems I've followed the instructions labelled "2011/09/19 - thread
model posix enabled for gcc 3" at
http://openbsd.org/faq/current.html#20110919 and mistakenly so which
is probably why userland wont build as that process has replaced
gcc-4.x with gcc-3.x.

If indeed that is the case, the question is, how do I get gcc-4.x back ?

Thanks,

Chris

On Wed, Sep 21, 2011 at 12:01 PM, Chris Smith <[hidden email]>
wrote:
> Problems building -current userland:
> ======================================
> ===> libcurses
> cc -O2 -pipe -g -I. -I/usr/src/lib/libcurses B  B -c codes.c -o codes.o
> cc -O2 -pipe -g -I. -I/usr/src/lib/libcurses B  B -c comp_captab.c -o
> comp_captab.o
> cc -O2 -pipe -g -I. -I/usr/src/lib/libcurses B  B -c expanded.c -o
expanded.o
> cc -O2 -pipe -g -I. -I/usr/src/lib/libcurses B  B -c fallback.c -o
fallback.o
> cc -O2 -pipe -g -I. -I/usr/src/lib/libcurses B  B -c lib_gen.c -o lib_gen.o
> lib_gen.c:27: error: conflicting types for `addchnstr'
> /usr/src/lib/libcurses/curses.h:531: error: previous declaration of
`addchnstr'
> lib_gen.c:34: error: conflicting types for `addchstr'
> /usr/src/lib/libcurses/curses.h:532: error: previous declaration of
`addchstr'
> lib_gen.c:41: error: conflicting types for `addnstr'
> /usr/src/lib/libcurses/curses.h:533: error: previous declaration of
`addnstr'
> lib_gen.c:48: error: conflicting types for `addstr'
> <snip>
> lib_gen.c:1522: error: conflicting types for `waddwstr'
> /usr/src/lib/libcurses/curses.h:1483: error: previous declaration of
`waddwstr'
> lib_gen.c:1558: error: conflicting types for `wins_wstr'
> /usr/src/lib/libcurses/curses.h:1499: error: previous declaration of
`wins_wstr'

> *** Error code 1
>
> Stop in /usr/src/lib/libcurses (line 92 of /usr/share/mk/sys.mk).
> *** Error code 1
>
> Stop in /usr/src/lib (line 48 of /usr/share/mk/bsd.subdir.mk).
> *** Error code 1
>
> Stop in /usr/src (line 80 of Makefile).
> ======================================
>
> Clues please.
>
> Chris

Reply | Threaded
Open this post in threaded view
|

Re: -current userland not building

Bryan Steele-2
In reply to this post by Chris Smith-32
> It seems I've [blindly] followed the instructions ...

Hah. Whoops.

> If indeed that is the case, the question is, how do I get gcc-4.x back ?

It would be easier to reinstall, but you may be able to extract the comp set
and pray to santa it works.

-Bryan.

Reply | Threaded
Open this post in threaded view
|

Re: -current userland not building

Amit Kulkarni-5
>> It seems I've [blindly] followed the instructions ...
>
> Hah. Whoops.

yeah... what were you thinking!

>> If indeed that is the case, the question is, how do I get gcc-4.x back ?
>
> It would be easier to reinstall, but you may be able to extract the comp set
> and pray to santa it works.
>

or use a newer snapshot to upgrade and it will definitely work.

Reply | Threaded
Open this post in threaded view
|

Re: -current userland not building

Chris Smith-32
In reply to this post by Bryan Steele-2
On Thu, Sep 22, 2011 at 7:26 PM, Brynet <[hidden email]> wrote:
> you may be able to extract the comp set

I did extract the comp set from the latest snapshot and gcc-4.x was returned.
However, once again the kernel compiled fine but received the same
error with the userland,

Chris

Reply | Threaded
Open this post in threaded view
|

Re: -current userland not building

Tomas Bodzar-4
In reply to this post by Chris Smith-32
On Fri, Sep 23, 2011 at 1:04 AM, Chris Smith <[hidden email]>
wrote:
> It seems I've followed the instructions labelled "2011/09/19 - thread
> model posix enabled for gcc 3" at
> http://openbsd.org/faq/current.html#20110919 and mistakenly so which
> is probably why userland wont build as that process has replaced
> gcc-4.x with gcc-3.x.

Mmmm are you on alpha or landisk that you follow those instructions?

>
> If indeed that is the case, the question is, how do I get gcc-4.x back ?
>
> Thanks,
>
> Chris
>
> On Wed, Sep 21, 2011 at 12:01 PM, Chris Smith <[hidden email]>
> wrote:
>> Problems building -current userland:
>> ======================================
>> ===> libcurses
>> cc -O2 -pipe -g -I. -I/usr/src/lib/libcurses B B B -c codes.c -o codes.o
>> cc -O2 -pipe -g -I. -I/usr/src/lib/libcurses B B B -c comp_captab.c -o
>> comp_captab.o
>> cc -O2 -pipe -g -I. -I/usr/src/lib/libcurses B B B -c expanded.c -o
> expanded.o
>> cc -O2 -pipe -g -I. -I/usr/src/lib/libcurses B B B -c fallback.c -o
> fallback.o
>> cc -O2 -pipe -g -I. -I/usr/src/lib/libcurses B B B -c lib_gen.c -o
lib_gen.o

>> lib_gen.c:27: error: conflicting types for `addchnstr'
>> /usr/src/lib/libcurses/curses.h:531: error: previous declaration of
> `addchnstr'
>> lib_gen.c:34: error: conflicting types for `addchstr'
>> /usr/src/lib/libcurses/curses.h:532: error: previous declaration of
> `addchstr'
>> lib_gen.c:41: error: conflicting types for `addnstr'
>> /usr/src/lib/libcurses/curses.h:533: error: previous declaration of
> `addnstr'
>> lib_gen.c:48: error: conflicting types for `addstr'
>> <snip>
>> lib_gen.c:1522: error: conflicting types for `waddwstr'
>> /usr/src/lib/libcurses/curses.h:1483: error: previous declaration of
> `waddwstr'
>> lib_gen.c:1558: error: conflicting types for `wins_wstr'
>> /usr/src/lib/libcurses/curses.h:1499: error: previous declaration of
> `wins_wstr'
>> *** Error code 1
>>
>> Stop in /usr/src/lib/libcurses (line 92 of /usr/share/mk/sys.mk).
>> *** Error code 1
>>
>> Stop in /usr/src/lib (line 48 of /usr/share/mk/bsd.subdir.mk).
>> *** Error code 1
>>
>> Stop in /usr/src (line 80 of Makefile).
>> ======================================
>>
>> Clues please.
>>
>> Chris

Reply | Threaded
Open this post in threaded view
|

Re: -current userland not building

Chris Smith-32
On Fri, Sep 23, 2011 at 3:56 AM, Tomas Bodzar <[hidden email]> wrote:
> Mmmm are you on alpha or landisk that you follow those instructions?

No, but I think a landshark was knocking at the door at the time and
interrupted my train of thought :)

In reality, the instructions weren't labelled for any particular
architecture and I blindly followed them.

But I am thinking that something else is wrong as apparently userland
should build with gcc-3.x (yes?) and I see the same failure now, with
gcc-4.x, after installing the comp set from a snapshot.

Chris

Reply | Threaded
Open this post in threaded view
|

Re: -current userland not building

Stuart Henderson
In reply to this post by Chris Smith-32
On 2011-09-23, Chris Smith <[hidden email]> wrote:

> On Thu, Sep 22, 2011 at 7:26 PM, Brynet <[hidden email]> wrote:
>> you may be able to extract the comp set
>
> I did extract the comp set from the latest snapshot and gcc-4.x was returned.
> However, once again the kernel compiled fine but received the same
> error with the userland,
>
> Chris
>
>

clean your obj dir, re-run make obj, and try again.

Reply | Threaded
Open this post in threaded view
|

Re: -current userland not building

Chris Smith-32
In reply to this post by Chris Smith-32
On Fri, Sep 23, 2011 at 11:34 AM, Amit Kulkarni <[hidden email]> wrote:
> Yes, it happens when you start out. Look Nick added this because of you :-)
> http://www.openbsd.org/faq/current.html#20110919

Thank you Nick :)

However, I just realized that:
http://www.openbsd.org/faq/current.html#20110919

is not the same as:
http://openbsd.org/faq/current.html#20110919

The site at http://openbsd.org is not in sync with http://www.openbsd.org/.

Chris

Reply | Threaded
Open this post in threaded view
|

Re: -current userland not building

Amit Kulkarni-5
> The site at http://openbsd.org is not in sync with http://www.openbsd.org/.

yes they are different. its addressed already in the archives multiple times.

Reply | Threaded
Open this post in threaded view
|

Re: -current userland not building

Chris Smith-32
On Wed, Sep 28, 2011 at 3:00 PM, Amit Kulkarni <[hidden email]> wrote:
>> The site at http://openbsd.org is not in sync with http://www.openbsd.org/.
>
> yes they are different. its addressed already in the archives multiple times.

Found a thread from 2007 where Theo states "www.openbsd.org is a
mirror on a good network connection" but is this still the case? Can
one have a "mirror" that is more up-to-date than the source?

Reply | Threaded
Open this post in threaded view
|

Re: -current userland not building

Nick Holland
On 09/28/2011 03:42 PM, Chris Smith wrote:
> On Wed, Sep 28, 2011 at 3:00 PM, Amit Kulkarni<[hidden email]>  wrote:
>>> The site at http://<nowww>.openbsd.org is not in sync with http://www.openbsd.org/.
>>
>> yes they are different. its addressed already in the archives multiple times.
>
> Found a thread from 2007 where Theo states "www.openbsd.org is a
> mirror on a good network connection" but is this still the case? Can
> one have a "mirror" that is more up-to-date than the source?

we like it that way.
quit using the site without the www's. :)

<nowww>.openbsd.org is not the source and never was (at least in the ten
years I've been on the project).  It is hosted on the machine where
OpenBSD development is stored, but the source is a CVS repository.  All
mirrors we want you to use are cvs checkouts of the CVS www/ repo.  Most
of them update automatically.  That one you are worrying about is
updated manually for various reasons.  It helps discourage you from
using it. :)

Nick.

Reply | Threaded
Open this post in threaded view
|

Re: -current userland not building

Chris Smith-32
On Wed, Sep 28, 2011 at 3:59 PM, Nick Holland
<[hidden email]> wrote:
> quit using the site without the www's. :)

Yes, I've made a mental note to that effect and already edited my bookmarks.

> <nowww>.openbsd.org is not the source and never was (at least in the ten
> years I've been on the project).

That 'splains it :)

Thanks.