bugGNU Octave - Bugs: bug #51594, [MXE] libsndfile fails to build...

 
 

bug #51594: [MXE] libsndfile fails to build (due to upstream Automake & Perl upgrades)

Submitter:  Philip Nienhuis <philipnienhuis>
Submitted:  Thu 27 Jul 2017 09:45:22 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  lostbard
Originator Name:  Philip Nienhuis Open/Closed:  * Closed
Release:  * dev Operating System:  * Other
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 28 Jul 2017 06:51:54 PM UTC, comment #11: 

Thanks, with the fix libsndfile now gets built.

Closing report as "fixed" and adapting title for future reference

Philip Nienhuis <philipnienhuis>
Group Member
Fri 28 Jul 2017 05:02:53 PM UTC, comment #10: 
John Donoghue <lostbard>
Group Member
Fri 28 Jul 2017 02:57:47 PM UTC, comment #9: 

Thanks Mike, so it looks like the regex had better be fixed.
Doesn't "deprecated" in due time automagically morph into "illegal" anyway? :-)

Philip Nienhuis <philipnienhuis>
Group Member
Fri 28 Jul 2017 02:56:06 PM UTC, comment #8: 
Mike Miller <mtmiller>
Group Member
Fri 28 Jul 2017 02:53:39 PM UTC, comment #7: 

Ok, according to the Automake NEWS file:


New in 1.15.1:

* Bugs fixed:

  - The code has been adapted to remove a warning present since Perl
    5.22 stating that "Unescaped left brace in regex is deprecated".
    This warning has become an hard error in Perl 5.26 (bug#22372).


So Philip probably has Perl 5.26 or newer, not necessarily Perl 6 (that was just a guess). My system is still at Perl 5.24.

We could continue using Automake 1.11 and patch this one regex, which seems simple and safest, or try updating mxe-octave to new Autoconf / Automake, which may break some builds of other packages.

Mike Miller <mtmiller>
Group Member
Fri 28 Jul 2017 02:45:11 PM UTC, comment #6: 

Yes, we use identical autotools in mxe-octave, but Automake is a perl program, and it assumes the host OS perl interpreter is sufficient.

It seems obvious that the difference is this warning, which still allows Automake to run:

"Unescaped left brace in regex is deprecated, passed through in regex"

versus this error message, which causes Automake to fail:

"Unescaped left brace in regex is illegal here in regex;"

These messages are coming from perl itself as it's parsing the Automake program. I'm guessing Philip's unstable system maybe has Perl 6, which doesn't seem to like Automake 1.11 (which is now 6 years old itself).

Mike Miller <mtmiller>
Group Member
Fri 28 Jul 2017 01:52:07 PM UTC, comment #5: 

shave was a valid option, but doesn't appear to be anymore - I'll remove it.

I've seen the scan_file warning on several packages before doing a quick check in my log files, it appears also on arpack, fontconfig, glpk, gnutls, libssh2 and others.

I believe that it should be using the autotools we provide as build_xxxx.mk so shouldnt be an issue with differing tools.

John Donoghue <lostbard>
Group Member
Fri 28 Jul 2017 01:18:16 PM UTC, comment #4: 

Looks like the same error, but on my box the build breaks.

configure options are --enable-octave=defaut --enable-windows-64 --enable-devel-tools --enable-binary-packages

On my other build box (stable Mageia-5), where I also just run "hg -v pull && hg -v update" (27 csets rather than the 9 on my main box) libsndfile got built fine, with the same (error? warning?) message about scan_file()

So maybe Mageia-6 has more picky autotools; or maybe the error message about scan_file() is just a red herring (see my remark abut unstable Mageia-6).

Taking into account that on my other box the build continues, what to do with this bug? "works for me"?

BTW nitty-gritty dept: a bit lower in the log I see:

:
configure: WARNING: unrecognized options: --disable-shave


(and I also see it in your log).
Should this be "--disable-share" ?

Philip Nienhuis <philipnienhuis>
Group Member
Fri 28 Jul 2017 11:58:47 AM UTC, comment #3: 

looking at the log on portaudio on my mxe build


main::scan_file() called too early to check prototype at /home/johnd/mxe-octave/build-qt5/usr/bin/aclocal line 644.
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `Cfg'.
libtoolize: copying file `Cfg/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `M4'.
libtoolize: copying file `M4/libtool.m4'
libtoolize: copying file `M4/ltoptions.m4'
libtoolize: copying file `M4/ltsugar.m4'
libtoolize: copying file `M4/ltversion.m4'
libtoolize: copying file `M4/lt~obsolete.m4'
main::scan_file() called too early to check prototype at /home/johnd/mxe-octave/build-qt5/usr/bin/aclocal line 644.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /home/johnd/mxe-octave/build-qt5/usr/bin/automake line 4159.
cd '/home/johnd/mxe-octave/build-qt5/tmp-libsndfile/libsndfile-1.0.28' && ./configure --host='x86_64-w64-mingw32' --build='x86_64-unknown-linux-gnu' --enable-shared --disable-static --prefix='/home/johnd/mxe-octave/build-qt5/usr/x86_64-w64-mingw32' --enable-sqlite --enable-external-libs --disable-octave --disable-alsa --disable-shave
.
.
.



but it continues with the build of libsndfile

John Donoghue <lostbard>
Group Member
Fri 28 Jul 2017 10:36:53 AM UTC, comment #2: 

What configure options are using for mxe?

It builds ok on my fedora box, but I ooften do a complete rebuild of everything so if there was a comflict between some old stuff and new, I may not get it.

John Donoghue <lostbard>
Group Member
Fri 28 Jul 2017 07:50:44 AM UTC, comment #1: 

FTR, this is after "hg pull && hg update" in an existing me-octave. So the same cross-compiler was used here.
Backing out the flac upgrade makes no difference.

I wonder if this is related to building on (unstable) Mageia-6. A while ago I couldn't cross-build Octave at all on the box in question; after a series of Mageia package upgrades it suddenly worked, yesterday there was another series of package upgrades.

Philip Nienhuis <philipnienhuis>
Group Member
Thu 27 Jul 2017 09:45:22 PM UTC, original submission:  


:
[download] flac
[build]    flac
[done]     flac
[build]    libsndfile

Failed to build package libsndfile!
------------------------------------------------------------
main::scan_file() called too early to check prototype at /home/philip/devel/octdev/mxe/mxe_e64_20170704/usr/bin/aclocal line 644.
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /home/philip/devel/octdev/mxe/mxe_e64_20170704/usr/bin/automake line 4159.
autoreconf: automake failed with exit status: 255
/home/philip/devel/octdev/mxe/mxe_e64_20170704/Makefile:836: recipe for target 'build-only-libsndfile' failed
make[1]: *** [build-only-libsndfile] Error 1
make[1]: Leaving directory '/home/philip/devel/octdev/mxe/mxe_e64_20170704'
real    0m6.562s
user    0m4.845s
sys     0m0.163s
------------------------------------------------------------
[log]      /home/philip/devel/octdev/mxe/mxe_e64_20170704/log/libsndfile


Philip Nienhuis <philipnienhuis>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by philipnienhuis (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-07-28 philipnienhuis StatusReady For Test Fixed
        Open/ClosedOpen Closed
        Summary[MXE] libsndfile fails to build [MXE] libsndfile fails to build (due to upstream Automake & Perl upgrades)
    2017-07-28 lostbard StatusNone Ready For Test
        Assigned toNone lostbard

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code