bugGNU Octave - Bugs: bug #55889, [mxe-octave] build failure of ...


bug #55889: [mxe-octave] build failure of build-gawk for native linux

Submitted by:  Tatsuro MATSUOKA <tmacchant>
Submitted on:  Tue 12 Mar 2019 04:02:00 AM UTC  
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  John Donoghue <lostbard>
Originator Name:  Tatsuro MATSUOKA Open/Closed:  Closed
Release:  5.1.0 Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

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


Wed 13 Mar 2019 10:17:48 AM UTC, comment #4: 

In this case it was because gcc-gmp used for build-gcc is static, which was done at one stage because it was the only way to get everything to play nice when building gcc, but may have changed in the versions since.

For the cross build the static tools dont really matter as its just a tool used to build everything else. When its a native build however, thats not the case any more.

John Donoghue <lostbard>
Project MemberIn charge of this item.
Wed 13 Mar 2019 06:13:01 AM UTC, comment #3: 

Is this happening because there are screwed up dependencies for the build tools on this particular system?

I'm not sure I want to go down the path of doing static builds for the build tools.  Do we need a build-gmp target?  I also don't know how far down that path I'd want to go...

John W. Eaton <jwe>
Project Administrator
Tue 12 Mar 2019 11:46:32 PM UTC, comment #2: 

I have confirm the fix. Please close.

Tatsuro MATSUOKA <tmacchant>
Tue 12 Mar 2019 02:42:18 PM UTC, comment #1: 

looks like its getting confushed with shared and non shared libs for gmp.

Pushed a change to compile gawk statically


John Donoghue <lostbard>
Project MemberIn charge of this item.
Tue 12 Mar 2019 04:02:00 AM UTC, original submission:  

$ cat HG-ID

building method : clean build
Distro Ubunutu 16.04

configure :

./configure   --enable-native-build   --with-ccache   --enable-devel-tools   --enable-pic-flag   --enable-lib64-directory   --enable-binary-packages   --enable-64   --disable-system-gcc   --disable-system-x11-libs   --enable-openblas   --disable-system-opengl   --enable-octave=release   gnu-linux

Failed to build package build-gawk!
Makefile:550: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/mousei7/work/octave/mxe-octave/linux/mxe-octave2/tmp-build-gawk/gawk-4.2.1.build'
/home/mousei7/work/octave/mxe-octave/linux/mxe-octave2/Makefile:935: recipe for target 'build-only-build-gawk' failed
make[1]: *** [build-only-build-gawk] Error 2
make[1]: Leaving directory '/home/mousei7/work/octave/mxe-octave/linux/mxe-octave2'
real    0m17.983s
user    0m24.616s
sys     0m1.868s
part of log

/home/mousei7/work/octave/mxe-octave/linux/mxe-octave2/usr/lib/gcc/x86_64-pc-linux-gnu/7.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: /home/mousei7/work/octave/mxe-octave/linux/mxe-octave2/usr/lib/libmpfr.a(exceptions.o): relocation R_X86_64_TPOFF32 against symbol `__gmpfr_emin' can not be used when making a shared object; recompile with -fPIC

xz compressed the log file and config.log are attached.

Tatsuro MATSUOKA <tmacchant>


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

Attach Files:

Attached Files
file #46503:  build-gawk_log.tar.xz added by tmacchant (6KiB - application/octet-stream)
file #46504:  config.log.tar.xz added by tmacchant (10KiB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only project members can vote.




    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-12 lostbard StatusNone => Fixed
        Assigned toNone => lostbard
        Open/ClosedOpen => Closed
    2019-03-12 tmacchant Attached File- => Added build-gawk_log.tar.xz, #46503
        Attached File- => Added config.log.tar.xz, #46504

    Back to the top

    Powered by Savane 3.5