octave-maintainers
[Top][All Lists]
Advanced

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

Re: [MXE MinGW] miscompiled gcc for --enable64?


From: Philip Nienhuis
Subject: Re: [MXE MinGW] miscompiled gcc for --enable64?
Date: Sun, 07 Dec 2014 21:34:23 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0 SeaMonkey/2.30

JohnD wrote:
Date: Fri, 5 Dec 2014 14:58:02 -0800 (PST)
From: Philip Nienhuis <address@hidden>
To: address@hidden
Subject: [MXE MinGW] miscompiled gcc for --enable64?
Message-ID: <address@hidden>
Content-Type: text/plain; charset=us-ascii

With a cross-built mxe-octave with 64-bit indexing (--enable64), building OF
packages fails because g++, gcc and c++ all bail out with the message:

"C:\Programs\.....\bin\g++.exe is not a valid Win32 application."
(of course, similarly for c++.exe and gcc.exe)

In addition, cc.exe seems to be missing.

Running these commands in an MSYS shell gives:

address@hidden /c/programs/octave/octave64-3.9.0+-4.1.0+/bin
$ gcc
sh: ./gcc: Bad file number
address@hidden /c/programs/octave/octave64-3.9.0+-4.1.0+/bin
$ ls -l gcc
-rwxr-xr-x 1 philip Administrators 0 Dec  5 21:02 gcc

(funny, I'm not administrator but "user". Running MSYS as administrator
doesn't make a difference though, I get the same issues)

Can someone confirm this?


__run_test_suite__ with 3.9.0+ (64bit indexing) gives:
Summary:

   PASS     11562
   FAIL        12
   XFAIL        9
   SKIPPED     65
(similar or equal to what I reported a few months ago on the task tracker
(http://savannah.gnu.org/task/?13313).


An older cross-built 64-bit indexing mingw Octave (Oct. 31; built on another
machine) runs fine on the same box; gcc.exe, cc.exe, c++.exe and g++.exe
yield meaningful messages.


My build system: Mageia-4 64; mxe-octave: 8657bb199f09 tip @ (zeromq: update
to v4.0.5)
./configure --enable-64     (and I've manually adapted octave.mk for 4.1.0+
/ 3.9.0+ checksums)

Host system:  Windows 7 Prof. 64-bit
>
<snip>
-----

I made a new mxe-build with --enable-windows-64 last night on my system
(current mxe hg as of last night), but only using octave 3.8.2.

Built on mint linux 17
Running  64 bit running in Win 7 Prof - service pack 1 - 64bit
   PASS     11402
   FAIL        16

Running build_packages.m from the gui compiles everything ok

That surprises me.

First of all, for me the patch from this bug report is needed to make a few OF packages compile:
https://savannah.gnu.org/bugs/index.php?43318
(I'd appreciate if a core dev could review that patch, please)

But even with that patch, the following OF packages included in mxe-octave won't install at all with --enable-64:
- image
- odepkg
- fl-core
- netcdf

Have you tried "pkg list" to see which packages do get installed successfully? As you've adapted build_packages.m to catch unsuccessful OF package installs (thanks for that BTW!) it is easy to overlook packages that didn't get installed.

<snip>

I will retry with a later octave, however think it will run fine for me.

Now that I know that it is 7zip on the Windows side that doesn't unpack all files correctly from .tgz or .tar.gz archives, I think so too :-)

Philip




reply via email to

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