octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #46309] odepkg 0.8.5 does not build with 64bit


From: Martin K
Subject: [Octave-bug-tracker] [bug #46309] odepkg 0.8.5 does not build with 64bit enabled Octave
Date: Wed, 28 Oct 2015 12:39:47 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0

URL:
  <http://savannah.gnu.org/bugs/?46309>

                 Summary: odepkg 0.8.5 does not build with 64bit enabled
Octave
                 Project: GNU Octave
            Submitted by: grisu86
            Submitted on: Mi 28 Okt 2015 12:39:45 GMT
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Build Failure
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I am using Octave 4.0.0 with 64bit integer support. Compiled with gcc 4.8.5.
When I try to install odepkg 0.8.5 from Octave-Forge I got the error below.
The error exists in 4 files an can be fixed by a typecast. Furthermore, the
Makefile does not read the F77_INTEGER8_FLAG out of the mkoctfile data.  

I attached a patch, which solved the problem on my system. 



g++ -c  -fPIC
-I/scratch/koehlerm/local_install/conda-2.7/include/octave-4.0.0/octave/..
-I/scratch/koehlerm/local_install/conda-2.7/include/octave-4.0.0/octave
-I/scratch/koehlerm/local_install/conda-2.7/include -pthread -fopenmp
-I/scratch/koehlerm/local_install/conda-2.7/includeCPPFLAGS=-I/scratch/koehlerm/local_install/conda-2.7/include
   odepkg_octsolver_radau.cc -o odepkg_octsolver_radau.o
In file included from odepkg_octsolver_radau.cc:35:0:
odepkg_octsolver_radau.cc: In function ‘octave_value_list Fode2r(const
octave_value_list&, int)’:
odepkg_octsolver_radau.cc:612:24: error: invalid conversion from ‘int
(*)(const octave_idx_type&, double*, const octave_idx_type*, const double*,
const octave_idx_type*) {aka int (*)(const long int&, double*, const long
int*, const double*, const long int*)}’ to ‘odepkg_radau_masstype {aka
long int (*)(const long int&, double*, const long int*, const double*, const
long int*)}’ [-fpermissive]
              IPAR, IDID));
                        ^
/scratch/koehlerm/local_install/conda-2.7/include/octave-4.0.0/octave/f77-fcn.h:70:27:
note: in definition of macro ‘F77_XFCN’
           F77_FUNC (f, F) args; \
                           ^
In file included from
/scratch/koehlerm/local_install/conda-2.7/include/octave-4.0.0/octave/oct.h:31:0,
                 from odepkg_octsolver_radau.cc:34:
odepkg_octsolver_radau.cc:65:23: error:   initializing argument 14 of ‘int
radau_(const octave_idx_type&, odepkg_radau_usrtype, const double&, const
double*, const double&, const double&, const double*, const double*, const
octave_idx_type&, odepkg_radau_jactype, const octave_idx_type&, const
octave_idx_type&, const octave_idx_type&, odepkg_radau_masstype, const
octave_idx_type&, const octave_idx_type&, const octave_idx_type&,
odepkg_radau_soltype, const octave_idx_type&, const double*, const
octave_idx_type&, const octave_idx_type*, const octave_idx_type&, const
double*, const octave_idx_type*, const octave_idx_type&)’ [-fpermissive]
   F77_RET_T F77_FUNC (radau, RADAU)
                       ^
/scratch/koehlerm/local_install/conda-2.7/include/octave-4.0.0/octave/config.h:92:29:
note: in definition of macro ‘F77_FUNC’
 #define F77_FUNC(name,NAME) name ## _
                             ^
make: *** [odepkg_octsolver_radau.o] Error 1
make: Leaving directory `/tmp/oct-rL8GGn/odepkg-0.8.5/src'




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mi 28 Okt 2015 12:39:45 GMT  Name: fix-odepkg-0.8.5-int8.patch  Size:
4kB   By: grisu86

<http://savannah.gnu.org/bugs/download.php?file_id=35321>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46309>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]