bugGNU Octave - Bugs: bug #30119, build failure using dash shell in...

 
 

bug #30119: build failure using dash shell in Ubuntu 9.10 64bit

Submitted by:  Richard T. Guy <guyrt>
Submitted on:  Sat 12 Jun 2010 12:02:54 AM UTC  
 
Category: Configuration and Build SystemSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Build Failure
Status: InvalidAssigned to: None
Originator Name: Richard T. GuyOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 12 Jun 2010 12:41:48 AM UTC, comment #1:

I guess it is coming from lines like

func_append finalize_command " $qarg"

in the generated libtool script since func_append is also defined in that script to be

# func_append var value
# Append VALUE to the end of shell variable VAR.
func_append ()
{
eval "$1+=\$2"
}

So this looks like a libtool problem so I guess the right place to report the bug is to the libtool maintainers.

A new version of libtool was recently released, but it appears ot have the same definition of func_append.

In any case, I think you can avoid the problem by doing something like

CONFIG_SHELL=/bin/bash configure ...

to configure Octave. That way, the generated libtool script should use the shell specified by CONFIG_SHELL. There is no need to be root and change /bin/sh to be /bin/bash.

I'm marking this bug as invalid and closing it because if there is a bug, it should be fixed in libtool so everyone benefits from the fix rather than putting some workaround in Octave.

John W. Eaton <jwe>
Project Administrator
Sat 12 Jun 2010 12:02:54 AM UTC, original submission:

I was unable to build Octave in Ubuntu 9.10, 64 bit using the dash shell. I got lots of errors like this:

eval: 1: libtool_args+=: not found
eval: 1: compile_command+=: not found
eval: 1: finalize_command+=: not found
eval: 1: libtool_args+=: not found
eval: 1: compile_command+=: not found
eval: 1: finalize_command+=: not found
eval: 1: libtool_args+=: not found
eval: 1: compile_command+=: not found

followed by this:

la=`echo DLD-FUNCTIONS/max.la | /bin/sed 's,DLD-FUNCTIONS/,,'` && \
of=`echo DLD-FUNCTIONS/max.oct | /bin/sed 's,DLD-FUNCTIONS/,,'` && \
cd DLD-FUNCTIONS && \
ln -s .libs/`/bin/sed -n -e "s/dlname='\([^']*\)'/\1/p" < $la` $of
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/libgfortranbegin.a(fmain.o): In function `main':
(.text+0x26): undefined reference to `MAIN__'

When I switched my default shell to bash rather than the debian product bash, the problem was resolved. I can attach a full output from a failed build, but it gets a ways in so that would be very long. Bottom line, it is almost certainly a script in
octave/src that needs a #/bin/bash

RTG

Richard T. Guy <guyrt>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by guyrt (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 12 Jun 2010 12:41:48 AM UTCjweStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1