octave-maintainers
[Top][All Lists]
Advanced

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

Re: Compile error in latest repository tip


From: Daniel J Sebald
Subject: Re: Compile error in latest repository tip
Date: Thu, 03 Mar 2016 15:05:50 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

On 03/03/2016 02:44 PM, Mike Miller wrote:
On Thu, Mar 03, 2016 at 14:38:33 -0600, Daniel J Sebald wrote:
[@ build7]# grep -E "^(CXX|CXXFLAGS|XTRA_CXXFLAGS) =" Makefile
CXX = g++
CXXFLAGS = -g -O2
XTRA_CXXFLAGS =  -pthread -fopenmp

Hmm, there should be a -std=something in there. Can you check config.log
for tests relating to C++11 (or send the whole config.log to me)?

That option apparently fails:

configure:6623: gcc -std=gnu11 -c -g -O2  conftest.c >&5
cc1: error: unrecognized command line option "-std=gnu11"
configure:6623: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Octave"
| #define PACKAGE_TARNAME "octave"
| #define PACKAGE_VERSION "4.1.0+"
| #define PACKAGE_STRING "GNU Octave 4.1.0+"
| #define PACKAGE_BUGREPORT "http://octave.org/bugs.html";


I must have missed out on a discussion about compiler version.  g++ is the
same as gcc installed, but the config.log shows

configure:6029: gcc --version>&5
gcc (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

so I'm guessing 5.0+ is needed.

I have definitely been able to build with gcc 4.4, there are some minor
nits to fix with gcc 4.6, maybe some different issue with 4.5.

Just curious, what distro are you on that you are using an old
development branch version of gcc? I know CentOS is 4.4 or 4.8, Ubuntu
is 4.6 or 4.8.

Version? Abacus-age, probably. I might switch from RedHat (14?) to Mint, maybe this summer sometime.

Dan



reply via email to

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