Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
autconf stops half way ./configure
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
PT_LAmb
Guru
Guru


Joined: 22 Apr 2002
Posts: 332
Location: Lisboa (Lisbon), Portugal

PostPosted: Sun Feb 09, 2003 8:21 pm    Post subject: autconf stops half way ./configure Reply with quote

Hi,

After 3 months without an emerge -u world, I finally did one, but had a problem.

It stalled half way ./configure, without any error, or warning, with the following output:
Code:
yogurt root # emerge world -u
Calculating world dependencies ...done!
>>> emerge (1 of 101) sys-devel/autoconf-2.54 to /
>>> md5 ;-) autoconf-2.54.tar.bz2
>>> md5 ;-) autoconf-2.13.tar.gz
>>> Unpacking source...
>>> Unpacking autoconf-2.54.tar.bz2
>>> Unpacking autoconf-2.13.tar.gz
 * Applying autoconf-2.13-configure-gentoo.diff...                                                                            [ ok ]
 * Applying autoconf-2.13-configure.in-gentoo.diff...                                                                         [ ok ]
 * Applying autoconf-2.5-infopage-namechange.patch...                                                                         [ ok ]
>>> Source unpacked.
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for expr... /usr/bin/expr
checking for gm4... no
checking for gnum4... no
checking for m4... /usr/bin/m4
checking whether m4 supports frozen files... yes
checking for perl... /usr/bin/perl
checking for emacs... emacs
checking for emacs... (cached) emacs
checking where .elc files should go...


I also checked the cpu usage, but it was normal.

Thanks for any help,
Ricardo Cordeiro :)

PS - I have also posted this on the Portuguese forum, here
_________________
SETI@Home - http://setiathome.ssl.berkeley.edu/
Back to top
View user's profile Send private message
PT_LAmb
Guru
Guru


Joined: 22 Apr 2002
Posts: 332
Location: Lisboa (Lisbon), Portugal

PostPosted: Sun Feb 09, 2003 10:01 pm    Post subject: Reply with quote

Hi,

trying a emerge -u --deep world. It starts to compile other ebuilds first. Let's see if it solves the problem. :?

Ricardo Cordeiro :)
_________________
SETI@Home - http://setiathome.ssl.berkeley.edu/
Back to top
View user's profile Send private message
PT_LAmb
Guru
Guru


Joined: 22 Apr 2002
Posts: 332
Location: Lisboa (Lisbon), Portugal

PostPosted: Sun Feb 09, 2003 10:03 pm    Post subject: Reply with quote

It stops again :(
_________________
SETI@Home - http://setiathome.ssl.berkeley.edu/
Back to top
View user's profile Send private message
PT_LAmb
Guru
Guru


Joined: 22 Apr 2002
Posts: 332
Location: Lisboa (Lisbon), Portugal

PostPosted: Mon Feb 10, 2003 3:26 am    Post subject: Reply with quote

Hi again,

I think I found where the problem occurs.

The following are the last lines of the core tests section on config.log:
Code:
configure:1792: checking for emacs
configure:1818: result: emacs
configure:1831: checking where .elc files should go
configure:1841: $EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out

and the EMACS variable from the Cache Variables section:
Code:
ac_cv_prog_EMACS=emacs

I think that the script stalls at line 1841, so here goes a quote from configure:
Code:
  # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
  # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
  #  which is non-obvious for non-emacs users.
  # Redirecting /dev/null should help a bit; pity we can't detect "broken"
  #  emacsen earlier and avoid running this altogether.
  { (echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out") >&5
  ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setqload-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }
        am_cv_lispdir=`sed -n \
       -e 's,/$,,' \
       -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' \
       -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}' \
       conftest.out`
       rm conftest.out
       if test -z "$am_cv_lispdir"; then
         am_cv_lispdir='${datadir}/emacs/site-lisp'
       fi

fi

(line 1841 starts where the comments end)

After realizing that the problem would be realated to emacs ou xemacs, I merged the latest version o xemacs, but still the problem doesn't go away.

I have the sense that I'm nearing the solution, but still don't know what to do.

I would be glad to receive any kind of suggestion,
Ricardo Cordeiro :)

PS - Thanks to darktux for giving me some hints. :wink:
_________________
SETI@Home - http://setiathome.ssl.berkeley.edu/
Back to top
View user's profile Send private message
PT_LAmb
Guru
Guru


Joined: 22 Apr 2002
Posts: 332
Location: Lisboa (Lisbon), Portugal

PostPosted: Thu Mar 06, 2003 5:10 pm    Post subject: Reply with quote

Ahhhhhhhh! Finally a cause!

I have been playing with autoconf's configure script lately, and found out that I don't have emacs installed, but in replace I have xemacs. In some way the script finds that I have emacs installed, and sets $EMACS to emacs. The problem arises ahead when configure is searching for the correct .elc files paths...
Code:
$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null

which stalls if $EMACS is set to emacs. However, if set to xemacs, it is returned a directory list, which I think is the desired output.

Ok. Found the cause, all that's left is the solution.

Ricardo Cordeiro :)
_________________
SETI@Home - http://setiathome.ssl.berkeley.edu/
Back to top
View user's profile Send private message
PT_LAmb
Guru
Guru


Joined: 22 Apr 2002
Posts: 332
Location: Lisboa (Lisbon), Portugal

PostPosted: Thu Mar 06, 2003 5:48 pm    Post subject: Reply with quote

Ohh my! I'm the problem. :oops:

I created a /usr/local/bin/emacs script:
Code:
#!/bin/bash
xemacs -wm $*

Once erased, the problem ceases to exist.

Now I know why aliases exist.

I'm really sorry for this useless thread! :oops: :oops: :oops: :oops: :oops: :oops:

Forgive me,
Ricardo Cordeiro :oops:
_________________
SETI@Home - http://setiathome.ssl.berkeley.edu/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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