bugGNU Octave - Bugs: bug #52708, MXE failure on build-flex on...

 
 

bug #52708: MXE failure on build-flex on Ubuntu 17.10 VM for flex 2.6.4

Submitter:  Marshall <marsian>
Submitted:  Wed 20 Dec 2017 08:45:39 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  Marsian Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 04 Jul 2018 04:24:37 PM UTC, comment #7: 

Closing as fixed (reported by OP).

Markus Mützel <mmuetzel>
Group administrator
Thu 19 Apr 2018 04:26:54 PM UTC, comment #6: 

I think this can be closed. I haven't run into any problems with this since the fix in comment #4.

Marshall <marsian>
Sat 24 Mar 2018 06:37:44 PM UTC, comment #5: 

It succeeds on build-flex 2.6.4 for me now.

Marshall <marsian>
Fri 23 Mar 2018 04:39:18 AM UTC, comment #4: 

I upgraded my systems to the latest Debian testing earlier today and started hitting the flex build problem with reallocarray.  I checked in the following change and it seems to work for me:

http://hg.octave.org/mxe-octave/rev/b23584d79172

John W. Eaton <jwe>
Group administrator
Thu 21 Dec 2017 06:39:08 PM UTC, comment #3: 

I would imagine the results will be the same with a clean build, so shouldn't be required.

Not sure when the next version of flex is out, but until then it might be easier just to go back to the older version

John Donoghue <lostbard>
Group Member
Thu 21 Dec 2017 06:09:08 PM UTC, comment #2: 

I tried the change (I think), and I got the same errors. How I tested:
I changed build-flex.mk back to the 2.6.4 version.
hg -v pull
hg -v update
touch src/build-flex.mk
time make hg-octave-dist

  • fails same way on build-flex

comparing the log with the last log they are almost identical accept for an additional line with

(cd '/home/marshall/mxe-octave/tmp-build-flex/flex-2.6.4' && patch -p1 -u) < /home/marshall/mxe-octave/src/build-flex-1-fixes.patch
patching file src/scan.l

showing the patch seems to have been applied, and a line showing  make ... -j '1' instead of make ... -j '4', a lot of re-ordered lines, and the final times were different. I could try building from a completely clean build/new repo, but I don't expect different results and it takes forever to build from that point. I'll do it though if you think that will give useful results.

Marshall <marsian>
Thu 21 Dec 2017 03:02:40 PM UTC, comment #1: 

I pushed a change which may fix flex - http://hg.octave.org/mxe-octave/rev/a0e30199373f


John Donoghue <lostbard>
Group Member
Wed 20 Dec 2017 08:45:39 PM UTC, original submission:  

When flex is set to use version 2.6.4 in mxe-octave/src/build-flex.mk, then I get a build failure. I'm running Ubuntu 17.10 on virtual box, to compile a windows installer. If I change the version to 2.6.3 (and checksum to 5ca32baa607ed32aa069e18d6d60b9761e1e6538), then It will compile.

I am using the following configure options:
./configure --enable-devel-tools --enable-octave=default --enable-qt5 --enable-64 --enable-windows-64
From a working build changing back to the original build-flex with version 2.6.4, and running the following, it fails again:


touch src/build-flex.mk
make nsis-installer JOBS=4


I geet the following error:

[download] build-flex
[build]    build-flex

Failed to build package build-flex!
------------------------------------------------------------
Makefile:533: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/marshall/mxe-octave/tmp-build-flex/flex-2.6.4.build'
/home/marshall/mxe-octave/Makefile:852: recipe for target 'build-only-build-flex' failed
make[1]: *** [build-only-build-flex] Error 2
make[1]: Leaving directory '/home/marshall/mxe-octave'
real        0m8.342s
user        0m11.603s
sys        0m1.584s
------------------------------------------------------------
[log]      /home/marshall/mxe-octave/log/build-flex


from  /home/marshall/mxe-octave/log/build-flex, I get the following details:

/home/marshall/mxe-octave/tmp-build-flex/flex-2.6.4/src/misc.c:147:8: warning: implicit declaration of function ‘reallocarray’; did you mean ‘reallocate_array’? [-Wimplicit-function-declaration]
  mem = reallocarray(NULL, (size_t) size, element_size);
        ^~~~~~~~~~~~
        reallocate_array
/home/marshall/mxe-octave/tmp-build-flex/flex-2.6.4/src/misc.c:147:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  mem = reallocarray(NULL, (size_t) size, element_size);
      ^
/home/marshall/mxe-octave/tmp-build-flex/flex-2.6.4/src/misc.c: In function ‘reallocate_array’:
/home/marshall/mxe-octave/tmp-build-flex/flex-2.6.4/src/misc.c:664:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  new_array = reallocarray(array, (size_t) size, element_size);
            ^
...
/home/marshall/mxe-octave/tmp-build-flex/flex-2.6.4/src/misc.c:147:8: warning: implicit declaration of function ‘reallocarray’; did you mean ‘reallocate_array’? [-Wimplicit-function-declaration]
  mem = reallocarray(NULL, (size_t) size, element_size);
        ^~~~~~~~~~~~
        reallocate_array
/home/marshall/mxe-octave/tmp-build-flex/flex-2.6.4/src/misc.c:147:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  mem = reallocarray(NULL, (size_t) size, element_size);
      ^
/home/marshall/mxe-octave/tmp-build-flex/flex-2.6.4/src/misc.c: In function ‘reallocate_array’:
/home/marshall/mxe-octave/tmp-build-flex/flex-2.6.4/src/misc.c:664:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  new_array = reallocarray(array, (size_t) size, element_size);
            ^
...
./stage1flex   -o stage1scan.c /home/marshall/mxe-octave/tmp-build-flex/flex-2.6.4/src/scan.l
Makefile:1696: recipe for target 'stage1scan.c' failed
make[4]: *** [stage1scan.c] Segmentation fault (core dumped)
make[4]: Leaving directory '/home/marshall/mxe-octave/tmp-build-flex/flex-2.6.4.build/src'
...

There seems to be several possibly related bugs reported to flex,
https://github.com/westes/flex/issues/219
https://github.com/westes/flex/issues/265
I'm not sure if any of those fixes apply, but in any case, building flex fails when run from a clean repo/build of mxe-octave.

Marshall <marsian>

 

(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 mmuetzel (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by marsian (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
    2018-07-04 mmuetzel StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2018-03-23 jwe StatusNone Ready For Test
    2017-12-21 rik5 Carbon-CopyRemoved 72865 -
    2017-12-21 rik5 SummaryFailure on build-flex on Ubuntu 17.10 VM for flex 2.6.4 MXE failure on build-flex on Ubuntu 17.10 VM for flex 2.6.4

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code