bugGNU Octave - Bugs: bug #49317, compile error on octave-4.2.0-rc2...

 
 

bug #49317: compile error on octave-4.2.0-rc2 with mxe-octave

Submitter:  Hartmut <hardy>
Submitted:  Tue 11 Oct 2016 09:06:00 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.2.0-rc2 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 12 Oct 2016 06:18:34 PM UTC, comment #4: 

The naming is a little confusing perhaps.

stable = the full released version
alpha = whatever the release candidate on the alpha.gnu website was
default = the version in the default branch.


John Donoghue <lostbard>
Group Member
Wed 12 Oct 2016 06:15:47 PM UTC, comment #3: 

Ooops, I've only now understood that there is a new option "--enable-octave=alpha" in mxe-octave. I will try that one then, instead. Please just close this bug report.

Hartmut <hardy>
Wed 12 Oct 2016 06:13:49 PM UTC, comment #2: 

Thanks for the hint! I will now try to compile mxe-octave with "default-octave", this is currently 4.3.0.+, if I'm right this time.

Wouldn't it be a good idea to bump the version in mxe-octave with "stable-octave" to 4.2.0-rc2 now? There is currently no straightforward way to built Octave 4.2.0-rc2 with mxe-octave. (I do know how to do it anyways...)

Feel free to just close this bug report, thanks.

Hartmut <hardy>
Tue 11 Oct 2016 11:30:27 PM UTC, comment #1: 

Stable is still 4.0.3, you would want the release candidate which would be the --enable-octave=alpha in the config options.





John Donoghue <lostbard>
Group Member
Tue 11 Oct 2016 09:06:00 PM UTC, original submission:  

I see an error when I use the current mxe-octave to compile stable octave, which is octave-4.2.0-rc2 at the moment.

Here are the details what I do to compile (on Ubuntu 14.04 linux), starting with a recent, fresh and clean copy of the mxe-octave repo (hg id 47051dc285cd):


cd /home/hartmut-nobackup/mxe-octave-repo/
export JAVA_HOME=/usr/lib/jvm/default-java
autoconf
./configure
make zip-dist


(To be honest, there is a light change in my copy of the repo: freetype version is updated to 2.6.5. But this shouldn't be the problem, freetype compiles fine.)

Here is the compilation error message from mxe-octave:


...
[download] stable-octave
[build]    stable-octave

Failed to build package stable-octave!
------------------------------------------------------------
make[3]: *** [install-recursive] Fehler 1
make[3]: Verzeichnis »/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/.build« wird verlassen
make[2]: *** [install] Fehler 2
make[2]: Verzeichnis »/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/.build« wird verlassen
make[1]: *** [build-only-stable-octave] Fehler 2
make[1]: Verzeichnis »/home/hartmut-nobackup/mxe-octave-repo« wird verlassen
real        17m56.011s
user        16m6.061s
sys        1m55.768s
------------------------------------------------------------
[log]      /home/hartmut-nobackup/mxe-octave-repo/log/stable-octave

make: *** [/home/hartmut-nobackup/mxe-octave-repo/installed-packages/stable-octave] Fehler 1


And those are the last lines of the "stable-octave" log file:


libtool: link: i686-w64-mingw32-ranlib operators/.libs/liboperators.a
libtool: link: ( cd "operators/.libs" && rm -f "liboperators.la" && ln -s "../liboperators.la" "liboperators.la" )
/bin/bash ../libtool  --tag=CXX   --mode=compile i686-w64-mingw32-g++ -DHAVE_CONFIG_H -I. -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave -I..  -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/array -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/cruft/misc -Inumeric -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/numeric -Ioperators -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/operators -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/system -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/util -I../libgnu -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/libgnu -I/home/hartmut-nobackup/mxe-octave-repo/usr/i686-w64-mingw32/include -pthread -fopenmp -mieee-fp -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -MT system/system_libsystem_la-dir-ops.lo -MD -MP -MF system/.deps/system_libsystem_la-dir-ops.Tpo -c -o system/system_libsystem_la-dir-ops.lo `test -f 'system/dir-ops.cc' || echo '/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/'`system/dir-ops.cc
libtool: compile:  i686-w64-mingw32-g++ -DHAVE_CONFIG_H -I. -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave -I.. -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/array -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/cruft/misc -Inumeric -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/numeric -Ioperators -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/operators -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/system -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/util -I../libgnu -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/libgnu -I/home/hartmut-nobackup/mxe-octave-repo/usr/i686-w64-mingw32/include -pthread -fopenmp -mieee-fp -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -MT system/system_libsystem_la-dir-ops.lo -MD -MP -MF system/.deps/system_libsystem_la-dir-ops.Tpo -c /home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/system/dir-ops.cc  -DDLL_EXPORT -DPIC -o system/.libs/system_libsystem_la-dir-ops.o
mv -f system/.deps/system_libsystem_la-dir-ops.Tpo system/.deps/system_libsystem_la-dir-ops.Plo
/bin/bash ../libtool  --tag=CXX   --mode=compile i686-w64-mingw32-g++ -DHAVE_CONFIG_H -I. -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave -I..  -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/array -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/cruft/misc -Inumeric -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/numeric -Ioperators -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/operators -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/system -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/util -I../libgnu -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/libgnu -I/home/hartmut-nobackup/mxe-octave-repo/usr/i686-w64-mingw32/include -pthread -fopenmp -mieee-fp -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -MT system/system_libsystem_la-file-ops.lo -MD -MP -MF system/.deps/system_libsystem_la-file-ops.Tpo -c -o system/system_libsystem_la-file-ops.lo `test -f 'system/file-ops.cc' || echo '/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/'`system/file-ops.cc
libtool: compile:  i686-w64-mingw32-g++ -DHAVE_CONFIG_H -I. -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave -I.. -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/array -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/cruft/misc -Inumeric -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/numeric -Ioperators -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/operators -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/system -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/util -I../libgnu -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/libgnu -I/home/hartmut-nobackup/mxe-octave-repo/usr/i686-w64-mingw32/include -pthread -fopenmp -mieee-fp -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -MT system/system_libsystem_la-file-ops.lo -MD -MP -MF system/.deps/system_libsystem_la-file-ops.Tpo -c /home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/system/file-ops.cc  -DDLL_EXPORT -DPIC -o system/.libs/system_libsystem_la-file-ops.o
mv -f system/.deps/system_libsystem_la-file-ops.Tpo system/.deps/system_libsystem_la-file-ops.Plo
/bin/bash ../libtool  --tag=CXX   --mode=compile i686-w64-mingw32-g++ -DHAVE_CONFIG_H -I. -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave -I..  -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/array -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/cruft/misc -Inumeric -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/numeric -Ioperators -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/operators -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/system -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/util -I../libgnu -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/libgnu -I/home/hartmut-nobackup/mxe-octave-repo/usr/i686-w64-mingw32/include -pthread -fopenmp -mieee-fp -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -MT system/system_libsystem_la-file-stat.lo -MD -MP -MF system/.deps/system_libsystem_la-file-stat.Tpo -c -o system/system_libsystem_la-file-stat.lo `test -f 'system/file-stat.cc' || echo '/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/'`system/file-stat.cc
libtool: compile:  i686-w64-mingw32-g++ -DHAVE_CONFIG_H -I. -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave -I.. -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/array -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/cruft/misc -Inumeric -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/numeric -Ioperators -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/operators -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/system -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/util -I../libgnu -I/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/libgnu -I/home/hartmut-nobackup/mxe-octave-repo/usr/i686-w64-mingw32/include -pthread -fopenmp -mieee-fp -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -MT system/system_libsystem_la-file-stat.lo -MD -MP -MF system/.deps/system_libsystem_la-file-stat.Tpo -c /home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/system/file-stat.cc  -DDLL_EXPORT -DPIC -o system/.libs/system_libsystem_la-file-stat.o
In file included from /home/hartmut-nobackup/mxe-octave-repo/usr/lib/gcc/i686-w64-mingw32/4.9.4/include/c++/cstring:42:0,
                 from /home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/system/file-stat.cc:28:
../libgnu/time.h:467:45: error: conflicting declaration of 'tm* localtime_r(const time_t*, tm*)' with 'C' linkage
                                             _GL_ARG_NONNULL ((1, 2)));
                                             ^
In file included from ../libgnu/time.h:41:0,
                 from ../libgnu/sys/stat.h:44,
                 from /home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/libgnu/filemode.h:22,
                 from /home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/system/file-stat.cc:33:
/home/hartmut-nobackup/mxe-octave-repo/usr/i686-w64-mingw32/include/time.h:269:34: note: previous declaration with 'C++' linkage
 __forceinline struct tm *__cdecl localtime_r(const time_t *_Time, struct tm *_Tm) {
                                  ^
In file included from /home/hartmut-nobackup/mxe-octave-repo/usr/lib/gcc/i686-w64-mingw32/4.9.4/include/c++/cstring:42:0,
                 from /home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/system/file-stat.cc:28:
../libgnu/time.h:489:42: error: conflicting declaration of 'tm* gmtime_r(const time_t*, tm*)' with 'C' linkage
                                          _GL_ARG_NONNULL ((1, 2)));
                                          ^
In file included from ../libgnu/time.h:41:0,
                 from ../libgnu/sys/stat.h:44,
                 from /home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/libgnu/filemode.h:22,
                 from /home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/system/file-stat.cc:33:
/home/hartmut-nobackup/mxe-octave-repo/usr/i686-w64-mingw32/include/time.h:272:34: note: previous declaration with 'C++' linkage
 __forceinline struct tm *__cdecl gmtime_r(const time_t *_Time, struct tm *_Tm) {
                                  ^
/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/system/file-stat.cc:126:32: warning: unused parameter 'mode' [-Wunused-parameter]
 base_file_stat::is_lnk (mode_t mode)
                                ^
/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/liboctave/system/file-stat.cc:146:33: warning: unused parameter 'mode' [-Wunused-parameter]
 base_file_stat::is_sock (mode_t mode)
                                 ^
make[5]: *** [system/system_libsystem_la-file-stat.lo] Fehler 1
make[5]: Verzeichnis »/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/.build/liboctave« wird verlassen
make[4]: *** [install] Fehler 2
make[4]: Verzeichnis »/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/.build/liboctave« wird verlassen
make[3]: *** [install-recursive] Fehler 1
make[3]: Verzeichnis »/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/.build« wird verlassen
make[2]: *** [install] Fehler 2
make[2]: Verzeichnis »/home/hartmut-nobackup/mxe-octave-repo/tmp-stable-octave/octave-4.0.3/.build« wird verlassen
make[1]: *** [build-only-stable-octave] Fehler 2
make[1]: Verzeichnis »/home/hartmut-nobackup/mxe-octave-repo« wird verlassen

real        17m56.011s
user        16m6.061s
sys        1m55.768s


Is this a known bug (possibly of my elderly OS Ubuntu 14.04) or a new behavior?

Let me know if you need more information on my build system.

(By the way: Why is the subfolder in tmp-stable-octave still named "octave-4.0.3" even if I compile octave-4.2.0-rc2?)

Hartmut <hardy>

 

(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 lostbard (Posted a comment)
  • -email is unavailable- added by hardy (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-10-12 lostbard StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code