bugGNU Octave - Bugs: bug #49822, MXE: dev build fails with various...

 
 

bug #49822: MXE: dev build fails with various compiler errors

Submitter:  Philip Nienhuis <philipnienhuis>
Submitted:  Sat 10 Dec 2016 06:09:57 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  lostbard
Originator Name:  Philip Nienhuis Open/Closed:  * Closed
Release:  * dev Operating System:  * Other
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 13 Dec 2016 08:19:28 PM UTC, comment #7: 

Yes  works fine, thanks for the fix.

Closing report

Philip Nienhuis <philipnienhuis>
Group Member
Tue 13 Dec 2016 12:57:54 PM UTC, comment #6: 
John Donoghue <lostbard>
Group Member
Mon 12 Dec 2016 09:52:18 PM UTC, comment #5: 

I haven't built to test it yet, but this will probably fix it



(file #39205)

John Donoghue <lostbard>
Group Member
Mon 12 Dec 2016 09:29:59 PM UTC, comment #4: 

It looks like its a part of the native built cross tools, which don't get built for anything except mxe.

I'll take a look

I believe they only get build it the --enable-binary-packages is set in mxe, which in turn enables --enable-cross-tools in octave's configure.

John Donoghue <lostbard>
Group Member
Mon 12 Dec 2016 05:21:13 PM UTC, comment #3: 

So it is an MXE problem, it is the cross-build that breaks.
I'll cc JohnD

Thx

Philip Nienhuis <philipnienhuis>
Group Member
Mon 12 Dec 2016 06:09:17 AM UTC, comment #2: 

The C++ compiler you are using is using C++98 rather than the C++11 standard which is required now.  That's the immediate cause of the problem.  I thought there was some logic in configure to add the C++11 flag to the compiler, but maybe there isn't or it doesn't work with the MXE environment.

Rik <rik5>
Group administrator
Sat 10 Dec 2016 06:11:04 PM UTC, comment #1: 

For completeness:
revision 3c0e70e2f51c: "maint: Periodic merge of stable to default"

Philip Nienhuis <philipnienhuis>
Group Member
Sat 10 Dec 2016 06:09:57 PM UTC, original submission:  

Since a few days, cross-building 4.3.0+ fails with several compiler warnings. I waited a few days with reporting in the hope that it would be straightened out by new commits (which often happens) but I think this is more serious.


:
g++ -o src/x86_64-w64-mingw32-mkoctfile -DCROSS=1 -I. -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+ -O2 -g  -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/src src/x86_64-w64-mingw32-mkoctfile.cc
g++ -o src/x86_64-w64-mingw32-octave-config -DCROSS=1 -I. -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+ -O2 -g  -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/src src/x86_64-w64-mingw32-octave-config.cc
src/x86_64-w64-mingw32-mkoctfile.cc: In function ‘int main(int, char**)’:
src/x86_64-w64-mingw32-mkoctfile.cc:669:24: error: ISO C++ forbids declaration of ‘f’ with no type [-fpermissive]
       for (const auto& f : cfiles)
                        ^
src/x86_64-w64-mingw32-mkoctfile.cc:669:28: error: range-based ‘for’ loops are not allowed in C++98 mode
       for (const auto& f : cfiles)
                            ^
src/x86_64-w64-mingw32-mkoctfile.cc:671:48: error: invalid user-defined conversion from ‘const int’ to ‘const string& {aka const std::basic_string<char>&}’ [-fpermissive]
           std::string dfile = basename (f, true) + ".d", line;
                                                ^
In file included from /usr/include/c++/4.9.2/string:53:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note: candidate is: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>] <near match>
     basic_string<_CharT, _Traits, _Alloc>::
     ^
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note:   no known conversion for argument 1 from ‘const int’ to ‘const char*’
src/x86_64-w64-mingw32-mkoctfile.cc:671:48: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
           std::string dfile = basename (f, true) + ".d", line;
                                                ^
In file included from /usr/include/c++/4.9.2/string:53:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note: initializing argument 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
     basic_string<_CharT, _Traits, _Alloc>::
     ^
src/x86_64-w64-mingw32-mkoctfile.cc:678:62: error: invalid user-defined conversion from ‘const int’ to ‘const string& {aka const std::basic_string<char>&}’ [-fpermissive]
                + incflags  + " " + defs + " " + quote_path (f));
                                                              ^
In file included from /usr/include/c++/4.9.2/string:53:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note: candidate is: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>] <near match>
     basic_string<_CharT, _Traits, _Alloc>::
     ^
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note:   no known conversion for argument 1 from ‘const int’ to ‘const char*’
src/x86_64-w64-mingw32-mkoctfile.cc:678:62: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
                + incflags  + " " + defs + " " + quote_path (f));
                                                              ^
In file included from /usr/include/c++/4.9.2/string:53:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note: initializing argument 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
     basic_string<_CharT, _Traits, _Alloc>::
     ^
src/x86_64-w64-mingw32-mkoctfile.cc:703:24: error: ISO C++ forbids declaration of ‘f’ with no type [-fpermissive]
       for (const auto& f : ccfiles)
                        ^
src/x86_64-w64-mingw32-mkoctfile.cc:703:28: error: range-based ‘for’ loops are not allowed in C++98 mode
       for (const auto& f : ccfiles)
                            ^
src/x86_64-w64-mingw32-mkoctfile.cc:705:48: error: invalid user-defined conversion from ‘const int’ to ‘const string& {aka const std::basic_string<char>&}’ [-fpermissive]
           std::string dfile = basename (f, true) + ".d", line;
                                                ^
In file included from /usr/include/c++/4.9.2/string:53:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note: candidate is: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>] <near match>
     basic_string<_CharT, _Traits, _Alloc>::
     ^
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note:   no known conversion for argument 1 from ‘const int’ to ‘const char*’
src/x86_64-w64-mingw32-mkoctfile.cc:705:48: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
           std::string dfile = basename (f, true) + ".d", line;
                                                ^
In file included from /usr/include/c++/4.9.2/string:53:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note: initializing argument 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
     basic_string<_CharT, _Traits, _Alloc>::
     ^
src/x86_64-w64-mingw32-mkoctfile.cc:712:62: error: invalid user-defined conversion from ‘const int’ to ‘const string& {aka const std::basic_string<char>&}’ [-fpermissive]
                + incflags  + " " + defs + " " + quote_path (f));
                                                              ^
In file included from /usr/include/c++/4.9.2/string:53:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note: candidate is: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>] <near match>
     basic_string<_CharT, _Traits, _Alloc>::
     ^
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note:   no known conversion for argument 1 from ‘const int’ to ‘const char*’
src/x86_64-w64-mingw32-mkoctfile.cc:712:62: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
                + incflags  + " " + defs + " " + quote_path (f));
                                                              ^
In file included from /usr/include/c++/4.9.2/string:53:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note: initializing argument 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
     basic_string<_CharT, _Traits, _Alloc>::
     ^
src/x86_64-w64-mingw32-mkoctfile.cc:740:20: error: ISO C++ forbids declaration of ‘f’ with no type [-fpermissive]
   for (const auto& f : f77files)
                    ^
src/x86_64-w64-mingw32-mkoctfile.cc:740:24: error: range-based ‘for’ loops are not allowed in C++98 mode
   for (const auto& f : f77files)
                        ^
src/x86_64-w64-mingw32-mkoctfile.cc:742:40: error: invalid user-defined conversion from ‘const int’ to ‘const string& {aka const std::basic_string<char>&}’ [-fpermissive]
       std::string b = basename (f, true);
                                        ^
In file included from /usr/include/c++/4.9.2/string:53:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note: candidate is: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>] <near match>
     basic_string<_CharT, _Traits, _Alloc>::
     ^
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note:   no known conversion for argument 1 from ‘const int’ to ‘const char*’
src/x86_64-w64-mingw32-mkoctfile.cc:742:40: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
       std::string b = basename (f, true);
                                        ^
In file included from /usr/include/c++/4.9.2/string:53:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note: initializing argument 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
     basic_string<_CharT, _Traits, _Alloc>::
     ^
src/x86_64-w64-mingw32-mkoctfile.cc:761:40: error: no match for ‘operator+’ (operand types are ‘std::basic_string<char>’ and ‘const int’)
                + pass_on_options + " " + f + " -o " + o);
                                        ^
src/x86_64-w64-mingw32-mkoctfile.cc:761:40: note: candidates are:
In file included from /usr/include/c++/4.9.2/string:52:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.h:2437:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
     ^
/usr/include/c++/4.9.2/bits/basic_string.h:2437:5: note:   template argument deduction/substitution failed:
src/x86_64-w64-mingw32-mkoctfile.cc:761:42: note:   deduced conflicting types for parameter ‘_CharT’ (‘char’ and ‘int’)
                + pass_on_options + " " + f + " -o " + o);
                                          ^
In file included from /usr/include/c++/4.9.2/string:52:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.h:2421:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^
/usr/include/c++/4.9.2/bits/basic_string.h:2421:5: note:   template argument deduction/substitution failed:
src/x86_64-w64-mingw32-mkoctfile.cc:761:42: note:   mismatched types ‘const _CharT*’ and ‘int’
                + pass_on_options + " " + f + " -o " + o);
                                          ^
In file included from /usr/include/c++/4.9.2/string:53:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.tcc:708:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(_CharT, const std::basic_string<_CharT, _Traits, _Alloc>&)
     operator+(_CharT __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs)
     ^
/usr/include/c++/4.9.2/bits/basic_string.tcc:708:5: note:   template argument deduction/substitution failed:
src/x86_64-w64-mingw32-mkoctfile.cc:761:42: note:   mismatched types ‘const std::basic_string<_CharT, _Traits, _Alloc>’ and ‘const int’
                + pass_on_options + " " + f + " -o " + o);
                                          ^
In file included from /usr/include/c++/4.9.2/string:53:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.tcc:692:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&)
     operator+(const _CharT* __lhs,
     ^
/usr/include/c++/4.9.2/bits/basic_string.tcc:692:5: note:   template argument deduction/substitution failed:
src/x86_64-w64-mingw32-mkoctfile.cc:761:42: note:   mismatched types ‘const _CharT*’ and ‘std::basic_string<char>’
                + pass_on_options + " " + f + " -o " + o);
                                          ^
In file included from /usr/include/c++/4.9.2/string:52:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.h:2384:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
     ^
/usr/include/c++/4.9.2/bits/basic_string.h:2384:5: note:   template argument deduction/substitution failed:
src/x86_64-w64-mingw32-mkoctfile.cc:761:42: note:   mismatched types ‘const std::basic_string<_CharT, _Traits, _Alloc>’ and ‘const int’
                + pass_on_options + " " + f + " -o " + o);
                                          ^
In file included from /usr/include/c++/4.9.2/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/4.9.2/bits/char_traits.h:39,
                 from /usr/include/c++/4.9.2/string:40,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/stl_iterator.h:334:5: note: template<class _Iterator> std::reverse_iterator<_Iterator> std::operator+(typename std::reverse_iterator<_Iterator>::difference_type, const std::reverse_iterator<_Iterator>&)
     operator+(typename reverse_iterator<_Iterator>::difference_type __n,
     ^
/usr/include/c++/4.9.2/bits/stl_iterator.h:334:5: note:   template argument deduction/substitution failed:
src/x86_64-w64-mingw32-mkoctfile.cc:761:42: note:   mismatched types ‘const std::reverse_iterator<_Iterator>’ and ‘const int’
                + pass_on_options + " " + f + " -o " + o);
                                          ^
In file included from /usr/include/c++/4.9.2/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/4.9.2/bits/char_traits.h:39,
                 from /usr/include/c++/4.9.2/string:40,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/stl_iterator.h:918:5: note: template<class _Iterator, class _Container> __gnu_cxx::__normal_iterator<_Iterator, _Container> __gnu_cxx::operator+(typename __gnu_cxx::__normal_iterator<_Iterator, _Container>::difference_type, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&)
     operator+(typename __normal_iterator<_Iterator, _Container>::difference_type
     ^
/usr/include/c++/4.9.2/bits/stl_iterator.h:918:5: note:   template argument deduction/substitution failed:
src/x86_64-w64-mingw32-mkoctfile.cc:761:42: note:   mismatched types ‘const __gnu_cxx::__normal_iterator<_Iterator, _Container>’ and ‘const int’
                + pass_on_options + " " + f + " -o " + o);
                                          ^
src/x86_64-w64-mingw32-mkoctfile.cc:776:20: error: ISO C++ forbids declaration of ‘f’ with no type [-fpermissive]
   for (const auto& f : cfiles)
                    ^
src/x86_64-w64-mingw32-mkoctfile.cc:776:24: error: range-based ‘for’ loops are not allowed in C++98 mode
   for (const auto& f : cfiles)
                        ^
src/x86_64-w64-mingw32-mkoctfile.cc:780:44: error: invalid user-defined conversion from ‘const int’ to ‘const string& {aka const std::basic_string<char>&}’ [-fpermissive]
           std::string b = basename (f, true), o;
                                            ^
In file included from /usr/include/c++/4.9.2/string:53:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note: candidate is: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>] <near match>
     basic_string<_CharT, _Traits, _Alloc>::
     ^
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note:   no known conversion for argument 1 from ‘const int’ to ‘const char*’
src/x86_64-w64-mingw32-mkoctfile.cc:780:44: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
           std::string b = basename (f, true), o;
                                            ^
In file included from /usr/include/c++/4.9.2/string:53:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note: initializing argument 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
     basic_string<_CharT, _Traits, _Alloc>::
     ^
src/x86_64-w64-mingw32-mkoctfile.cc:796:31: error: invalid user-defined conversion from ‘const int’ to ‘const string& {aka const std::basic_string<char>&}’ [-fpermissive]
                + quote_path (f) + " -o " + quote_path (o));
                               ^
In file included from /usr/include/c++/4.9.2/string:53:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note: candidate is: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>] <near match>
     basic_string<_CharT, _Traits, _Alloc>::
     ^
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note:   no known conversion for argument 1 from ‘const int’ to ‘const char*’
src/x86_64-w64-mingw32-mkoctfile.cc:796:31: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
                + quote_path (f) + " -o " + quote_path (o));
                               ^
In file included from /usr/include/c++/4.9.2/string:53:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note: initializing argument 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
     basic_string<_CharT, _Traits, _Alloc>::
     ^
src/x86_64-w64-mingw32-mkoctfile.cc:811:20: error: ISO C++ forbids declaration of ‘f’ with no type [-fpermissive]
   for (const auto& f : ccfiles)
                    ^
src/x86_64-w64-mingw32-mkoctfile.cc:811:24: error: range-based ‘for’ loops are not allowed in C++98 mode
   for (const auto& f : ccfiles)
                        ^
src/x86_64-w64-mingw32-mkoctfile.cc:815:44: error: invalid user-defined conversion from ‘const int’ to ‘const string& {aka const std::basic_string<char>&}’ [-fpermissive]
           std::string b = basename (f, true), o;
                                            ^
In file included from /usr/include/c++/4.9.2/string:53:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note: candidate is: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>] <near match>
     basic_string<_CharT, _Traits, _Alloc>::
     ^
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note:   no known conversion for argument 1 from ‘const int’ to ‘const char*’
src/x86_64-w64-mingw32-mkoctfile.cc:815:44: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
           std::string b = basename (f, true), o;
                                            ^
In file included from /usr/include/c++/4.9.2/string:53:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note: initializing argument 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
     basic_string<_CharT, _Traits, _Alloc>::
     ^
src/x86_64-w64-mingw32-mkoctfile.cc:831:31: error: invalid user-defined conversion from ‘const int’ to ‘const string& {aka const std::basic_string<char>&}’ [-fpermissive]
                + quote_path (f) + " -o " + quote_path (o));
                               ^
In file included from /usr/include/c++/4.9.2/string:53:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note: candidate is: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>] <near match>
     basic_string<_CharT, _Traits, _Alloc>::
     ^
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note:   no known conversion for argument 1 from ‘const int’ to ‘const char*’
src/x86_64-w64-mingw32-mkoctfile.cc:831:31: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
                + quote_path (f) + " -o " + quote_path (o));
                               ^
In file included from /usr/include/c++/4.9.2/string:53:0,
                 from src/x86_64-w64-mingw32-mkoctfile.cc:28:
/usr/include/c++/4.9.2/bits/basic_string.tcc:212:5: note: initializing argument 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
     basic_string<_CharT, _Traits, _Alloc>::
     ^
mv -f libgui/graphics/.deps/libgui_src_libgui_src_la-moc-SliderControl.Tpo libgui/graphics/.deps/libgui_src_libgui_src_la-moc-SliderControl.Plo
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-w64-mingw32-g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+  -Iliboctave -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/liboctave -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/liboctave/cruft/misc -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/liboctave/array -Iliboctave/numeric -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/liboctave/numeric -Iliboctave/operators -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/liboctave/operators -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/liboctave/system -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/liboctave/util -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/libinterp/octave-value -Ilibinterp -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/libinterp -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/libinterp/operators -Ilibinterp/parse-tree -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/libinterp/parse-tree -Ilibinterp/corefcn -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/libinterp/corefcn -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/liboctave/wrappers  -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/usr/x86_64-w64-mingw32/include/GraphicsMagick -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/usr/x86_64-w64-mingw32/include/libxml2 -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/usr/x86_64-w64-mingw32/include  -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/usr/x86_64-w64-mingw32/include  -pthread -fopenmp -Wall -W -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -MT libinterp/libinterp_liboctinterp_la-build-env-features.lo -MD -MP -MF libinterp/.deps/libinterp_liboctinterp_la-build-env-features.Tpo -c -o libinterp/libinterp_liboctinterp_la-build-env-features.lo `test -f 'libinterp/build-env-features.cc' || echo '/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/'`libinterp/build-env-features.cc
mv -f libgui/graphics/.deps/libgui_src_libgui_src_la-moc-ToggleTool.Tpo libgui/graphics/.deps/libgui_src_libgui_src_la-moc-ToggleTool.Plo
Makefile:27262: recipe for target 'src/x86_64-w64-mingw32-mkoctfile' failed
make[4]: *** [src/x86_64-w64-mingw32-mkoctfile] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: compile:  x86_64-w64-mingw32-g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+ -Iliboctave -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/liboctave -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/liboctave/cruft/misc -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/liboctave/array -Iliboctave/numeric -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/liboctave/numeric -Iliboctave/operators -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/liboctave/operators -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/liboctave/system -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/liboctave/util -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/libinterp/octave-value -Ilibinterp -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/libinterp -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/libinterp/operators -Ilibinterp/parse-tree -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/libinterp/parse-tree -Ilibinterp/corefcn -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/libinterp/corefcn -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/liboctave/wrappers -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/usr/x86_64-w64-mingw32/include/GraphicsMagick -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/usr/x86_64-w64-mingw32/include/libxml2 -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/usr/x86_64-w64-mingw32/include -I/home/philip/devel/octdev/mxe/mxe_w64_20161107/usr/x86_64-w64-mingw32/include -pthread -fopenmp -Wall -W -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -MT libinterp/libinterp_liboctinterp_la-build-env-features.lo -MD -MP -MF libinterp/.deps/libinterp_liboctinterp_la-build-env-features.Tpo -c libinterp/build-env-features.cc  -DDLL_EXPORT -DPIC -o libinterp/.libs/libinterp_liboctinterp_la-build-env-features.o
mv -f libgui/src/.deps/libgui_src_libgui_src_la-qrc-resource.Tpo libgui/src/.deps/libgui_src_libgui_src_la-qrc-resource.Plo
mv -f libgui/graphics/.deps/libgui_src_libgui_src_la-moc-ToolBar.Tpo libgui/graphics/.deps/libgui_src_libgui_src_la-moc-ToolBar.Plo
libinterp/build-env-features.cc: In function 'octave_scalar_map octave::build_env::features()':
libinterp/build-env-features.cc:15:5: note: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without
     features (void)
     ^
mv -f libinterp/.deps/libinterp_liboctinterp_la-build-env-features.Tpo libinterp/.deps/libinterp_liboctinterp_la-build-env-features.Plo
make[4]: Leaving directory '/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/.build'
Makefile:26115: recipe for target 'install-recursive' failed
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory '/home/philip/devel/octdev/mxe/mxe_w64_20161107/tmp-default-octave/octave-4.3.0+/.build'
Makefile:26416: recipe for target 'install' failed
:


Philip Nienhuis <philipnienhuis>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #39205:  crossgcc.patch added by lostbard (682B - 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 lostbard (Posted a comment)
  • -email is unavailable- added by philipnienhuis
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by philipnienhuis (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-12-13 philipnienhuis StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2016-12-13 lostbard StatusNone Ready For Test
        Assigned toNone lostbard
    2016-12-12 lostbard Attached File- Added crossgcc.patch, #39205
    2016-12-12 philipnienhuis Carbon-Copy- Added lostbard

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code