Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Alpha] bootstrap with ccc fails on baselayout/sysvinit
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
yngwin
Developer
Developer


Joined: 19 Dec 2002
Posts: 4414
Location: Suzhou, China

PostPosted: Mon Jun 02, 2003 9:35 pm    Post subject: [Alpha] bootstrap with ccc fails on baselayout/sysvinit Reply with quote

Taviso, I send you an email message to taviso at gentoo.org, but it got bounced. :( Anyway, there may be others with ideas:

I followed your guide for bootstrap with ccc, using the special
ccc-stage1. All went well for 3.5 hours (on a PWS433au Miata) up to the
second stage reconfiguring compaq compilers. Then it proceeds to
baselayout and quits after lots of warnings with:

Code:
void quit_handler()
-----^
cc: Warning: last.c, line 283: In this statement, the referenced type of
the pointer value "quit_handler" is "function () returning void", which is
not compatible with "function (int) returning void". (ptrmismatch)
        signal(SIGQUIT, quit_handler);
------------------------^
cc: Warning: last.c, line 589: In this statement, the referenced type of
the pointer value "int_handler" is "function () returning void", which is
not compatible with "function (int) returning void". (ptrmismatch)
  signal(SIGINT, int_handler);
-----------------^
cc: Warning: last.c, line 590: In this statement, the referenced type of
the pointer value "quit_handler" is "function () returning void", which is
not compatible with "function (int) returning void". (ptrmismatch)
  signal(SIGQUIT, quit_handler);
------------------^
ccc   -o init init.o init_utmp.o
ccc  -o halt halt.o ifdown.o hddown.o utmp.o
ccc  -o shutdown dowall.o shutdown.o utmp.o
ccc  -o runlevel runlevel.o
ccc   -o sulogin sulogin.o
sulogin.o(.text+0x10d4): In function `main':
: undefined reference to `crypt'
sulogin.o(.text+0x10d8): In function `main':
: undefined reference to `crypt'
sulogin.o(.text+0x10d8): In function `main':
: undefined reference to `crypt'
collect2: ld returned 1 exit status
make: *** [sulogin] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: sys-apps/baselayout-1.8.5.9 failed.
!!! Function src_compile, Line 121, Exitcode 2
!!! problem compiling sysvinit


I'm going to try to modify the script to use gcc for baselayout, see what
happens next. Do you have any suggestions?
Back to top
View user's profile Send private message
taviso
Retired Dev
Retired Dev


Joined: 15 Apr 2003
Posts: 261
Location: United Kingdom

PostPosted: Tue Jun 03, 2003 4:25 pm    Post subject: Re: [Alpha] bootstrap with ccc fails on baselayout/sysvinit Reply with quote

yngwin wrote:
Taviso, I send you an email message to taviso at gentoo.org, but it got bounced.

ack, sorry about that, it should be fixed now.

Quote:
I followed your guide for bootstrap with ccc, using the special
ccc-stage1. All went well for 3.5 hours (on a PWS433au Miata) up to the
second stage reconfiguring compaq compilers. Then it proceeds to
baselayout and quits after lots of warnings with:

sulogin.o(.text+0x10d4): In function `main':
: undefined reference to `crypt'
sulogin.o(.text+0x10d8): In function `main':
: undefined reference to `crypt'
sulogin.o(.text+0x10d8): In function `main':
: undefined reference to `crypt'
collect2: ld returned 1 exit status


hmm, i cant reproduce, `crypt` is provided by glibc in libcrypt, what happens if you add -lcrypt?

btw, you probably know this, but you can continue at the second stage of bootstrap by using

Code:
./bootstrap.sh 2

_________________
--------------------------------------
Gentoo on Alpha, is your penguin 64bit?
--------------------------------------------------------
Back to top
View user's profile Send private message
yngwin
Developer
Developer


Joined: 19 Dec 2002
Posts: 4414
Location: Suzhou, China

PostPosted: Tue Jun 03, 2003 8:59 pm    Post subject: Re: [Alpha] bootstrap with ccc fails on baselayout/sysvinit Reply with quote

taviso wrote:
hmm, i cant reproduce, `crypt` is provided by glibc in libcrypt, what happens if you add -lcrypt?

Where exactly should I add that?
It may be that this is caused by setting the crypt USE flag, maybe I should leave that one out? Or is that what you meant?

taviso wrote:
btw, you probably know this, but you can continue at the second stage of bootstrap by using
Code:
./bootstrap.sh 2

No, I didn't know, but that's useful :D Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum