bugGNU Octave - Bugs: bug #45815, [octave forge] (tisean) Windows...

 
 

bug #45815: [octave forge] (tisean) Windows build fails

Submitter:  John Donoghue <lostbard>
Submitted:  Mon 24 Aug 2015 05:37:16 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  JohnD Open/Closed:  * Closed
Release:  * dev Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 04 Sep 2015 04:30:03 PM UTC, comment #11: 

builds fine.

marco atzeri <matzeri>
Thu 03 Sep 2015 05:02:06 PM UTC, comment #10: 

How about this

(file #34804)

John Donoghue <lostbard>
Group Member
Thu 03 Sep 2015 02:40:12 PM UTC, comment #9: 

depending on arch

$ octave-config -p CANONICAL_HOST_TYPE
x86_64-unknown-cygwin

$ octave-config -p CANONICAL_HOST_TYPE
i686-pc-cygwin

marco atzeri <matzeri>
Thu 03 Sep 2015 02:34:27 PM UTC, comment #8: 

Looks same issue as mingw had with requiring the fortran libs.
what is the output of:

octave-config -p CANONICAL_HOST_TYPE


John Donoghue <lostbard>
Group Member
Thu 03 Sep 2015 02:24:37 PM UTC, comment #7: 

failing point with last patch

/usr/bin/mkoctfile-4.0.0.exe --verbose -ggdb -O2 -pipe -fdebug-prefix-map=/pub/devel/octave-forge/32bit/new/octave-tisean-0.2.3-1.i686/build=/usr/src/debug/octave-tisean-0.2.3-1 -fdebug-prefix-map=/pub/devel/octave-forge/32bit/new/octave-tisean-0.2.3-1.i686/src/tisean-0.2.3=/usr/src/debug/octave-tisean-0.2.3-1 -std=gnu++11 lazy.cc source_f/ts_surrogates.o source_f/d1.o source_f/istdio.o source_f/store_spec.o source_f/neigh.o source_f/rank.o source_f/ts_upo.o source_f/ts_lazy.
o source_f/normal.o source_f/libsla.a  -o lazy.oct
g++ -c   -I/usr/include/octave-4.0.0/octave/.. -I/usr/include/octave-4.0.0/octave -fopenmp -mieee-fp -ggdb -O2 -pipe -fdebug-prefix-map=/pub/devel/octave-forge/32bit/new/octave-tisean-0.2.3-1.i686/build=/usr/src/debug/octave-tisean-0.2.3-1
-fdebug-prefix-map=/pub/devel/octave-forge/32bit/new/octave-tisean-0.2.3-1.i686/src/tisean-0.2.3=/usr/src/debug/octave-tisean-0.2.3-1 -std=gnu++11  -ggdb -O2 -p
ipe -fdebug-prefix-map=/pub/devel/octave-forge/32bit/new/octave-tisean-0.2.3-1.i686/build=/usr/src/debug/octave-tisean-0.2.3-1 -fdebug-prefix-map=/pub/devel/octave-forge/32bit/new/octave-tisean-0.2.3-1.i686/src/tisean-0.2.3=/usr/src/debug/octave-tisean-0.2.3-1 -std=gnu++11   lazy.cc -o lazy.o
source_f/d1.o: In function `d1_':
/tmp/oct-F7OuW5/tisean-0.2.3/src/source_f/d1.f:48: undefined reference to `_gfortran_st_write'
/tmp/oct-F7OuW5/tisean-0.2.3/src/source_f/d1.f:48: undefined reference to `_gfortran_transfer_character_write'

marco atzeri <matzeri>
Wed 02 Sep 2015 08:16:03 PM UTC, comment #6: 

Adding dev in CC

Juan Pablo Carbajal <juanpi>
Group Member
Wed 02 Sep 2015 06:22:21 PM UTC, comment #5: 

I would imagine a similar addition for Cygwin will be needed as is added for mingw.

Do you have the build output?

John Donoghue <lostbard>
Group Member
Wed 02 Sep 2015 04:24:51 PM UTC, comment #4: 

Sorry guys, in CYGWIN does not work.

marco atzeri <matzeri>
Tue 25 Aug 2015 09:14:09 PM UTC, comment #3: 

John thanks. The second patch work in linux as well.
I am applying this patch to the devel branch in SF.
Lets see if more Windows reports confirm that the bug was fixed.

Juan Pablo Carbajal <juanpi>
Group Member
Tue 25 Aug 2015 02:03:40 PM UTC, comment #2: 

ok -  if windows only issue then perhaps as attached.


(file #34720)

John Donoghue <lostbard>
Group Member
Tue 25 Aug 2015 08:59:42 AM UTC, comment #1: 

Hi,
The patch breaks compilation in Linux. Piotr Held is looking into it as we speak. Expect a patch very soon.

Juan Pablo Carbajal <juanpi>
Group Member
Mon 24 Aug 2015 05:37:16 PM UTC, original submission:  

Trying to compile with octave 4.1.0+, the tsean package fails during compile with errors:


g++ -shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc  -O2 -std=gnu++11 -o __surr
ogates__.oct  source_f/d1.o source_f/istdio.o source_f/neigh.o source_f/normal.o source_f/rank.o source_f/store_spec.o sour
ce_f/ts_lazy.o source_f/ts_surrogates.o source_f/ts_upo.o __surrogates__.o  source_f/libsla.a  -LC:\Octave\Octave-4.1.0+\li
b\octave\4.1.0+ -LC:\Octave\Octave-4.1.0+\lib -loctinterp -loctave -Wl,-rpath-link,/home/jade/mxe-octave_hg/usr/x86_64-w64-
mingw32/lib -L/home/jade/mxe-octave_hg/usr/x86_64-w64-mingw32/lib -Wl,--export-all-symbols
source_f/d1.o: In function `d1_':
C:\Users\JDONOG~1\AppData\Local\Temp\oct-FQzlG9\tisean-0.2.3\src/source_f/d1.f:48: undefined reference to `_gfortran_st
_write'
C:\Users\JDONOG~1\AppData\Local\Temp\oct-FQzlG9\tisean-0.2.3\src/source_f/d1.f:48: undefined reference to `_gfortran_tr
ansfer_character_write'
C:\Users\JDONOG~1\AppData\Local\Temp\oct-FQzlG9\tisean-0.2.3\src/source_f/d1.f:48: undefined reference to `_gfortran_tr
ansfer_real_write'
C:\Users\JDONOG~1\AppData\Local\Temp\oct-FQzlG9\tisean-0.2.3\src/source_f/d1.f:48: undefined reference to `_gfortran_tr
ansfer_character_write'
C:\Users\JDONOG~1\AppData\Local\Temp\oct-FQzlG9\tisean-0.2.3\src/source_f/d1.f:48: undefined reference to `_gfortran_tr
ansfer_integer_write'
C:\Users\JDONOG~1\AppData\Local\Temp\oct-FQzlG9\tisean-0.2.3\src/source_f/d1.f:48: undefined reference to `_gfortran_tr
ansfer_character_write'
C:\Users\JDONOG~1\AppData\Local\Temp\oct-FQzlG9\tisean-0.2.3\src/source_f/d1.f:48: undefined reference to `_gfortran_tr
ansfer_integer_write'
C:\Users\JDONOG~1\AppData\Local\Temp\oct-FQzlG9\tisean-0.2.3\src/source_f/d1.f:48: undefined reference to `_gfortran_st
_write_done'
source_f/ts_lazy.o: In function `ts_lazy_':
C:\Users\JDONOG~1\AppData\Local\Temp\oct-FQzlG9\tisean-0.2.3\src/source_f/ts_lazy.f:87: undefined reference to `_gfortr
an_st_write'
C:\Users\JDONOG~1\AppData\Local\Temp\oct-FQzlG9\tisean-0.2.3\src/source_f/ts_lazy.f:87: undefined reference to `_gfortr
an_transfer_character_write'
C:\Users\JDONOG~1\AppData\Local\Temp\oct-FQzlG9\tisean-0.2.3\src/source_f/ts_lazy.f:87: undefined reference to `_gfortr
an_transfer_real_write'
C:\Users\JDONOG~1\AppData\Local\Temp\oct-FQzlG9\tisean-0.2.3\src/source_f/ts_lazy.f:87: undefined reference to `_gfortr
an_st_write_done'
source_f/libsla.a(snls1.o): In function `snls1_':


The errors appear to all be related to the fac that the gfortran library is not being linked in.

Patching the file as attached, enables  successful build.


John Donoghue <lostbard>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #34804:  tisean-1-fixes.patch added by lostbard (1KiB - application/octet-stream)
file #34720:  f77fix4.patch added by lostbard (1KiB - application/octet-stream)
file #34713:  f77fix.patch added by lostbard (1KiB - 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 (Updated the item)
  • -email is unavailable- added by juanpi
  • -email is unavailable- added by matzeri (Posted a comment)
  • -email is unavailable- added by juanpi (Posted a comment)
  • -email is unavailable- added by lostbard (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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-07-02 jwe Summary[octave-forge] tisean package fails build in windows [octave forge] (tisean) Windows build fails
    2015-09-03 lostbard Attached File- Added tisean-1-fixes.patch, #34804
    2015-09-02 juanpi Carbon-Copy- Added -email is unavailable-
    2015-08-25 carandraug StatusNone Fixed
        Open/ClosedOpen Closed
    2015-08-25 lostbard Attached File- Added f77fix4.patch, #34720
    2015-08-24 lostbard Attached File- Added f77fix.patch, #34713

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code