mxe-octave error on Ubuntu 12.04

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

mxe-octave error on Ubuntu 12.04

tmacchant
Hello

I have tried to build mxe-octave on Ubuntu 12.04 (32bit)  by the following instruction

http://wiki.octave.org/Windows_Installer

In building native-gcc, I have met the following error.

g++ -c   -g -O2 -DIN_GCC   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/build -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/../include -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/../libcpp/include  -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/../libdecnumber -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/../libdecnumber/bid -I../libdecnumber -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/../libbacktrace -DCLOOG_INT_GMP    \
                -o build/genconstants.o /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/genconstants.c
In file included from /usr/include/i386-linux-gnu/sys/resource.h:25:0,
                 from /usr/include/i386-linux-gnu/sys/wait.h:32,
                 from /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/system.h:352,
                 from /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/genconstants.c:28:
/usr/include/i386-linux-gnu/bits/resource.h:135:20: error: declaration does not declare anything [-fpermissive]
In file included from /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/genconstants.c:28:0:
/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/system.h:448:48: error: new declaration 'char* strstr(const char*, const char*)'
/usr/include/string.h:335:1: error: ambiguates old declaration 'const char* strstr(const char*, const char*)'
In file included from /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/genconstants.c:28:0:
/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/system.h:500:34: error: declaration of C function 'const char* strsignal(int)' conflicts with
/usr/include/string.h:566:14: error: previous declaration 'char* strsignal(int)' here
In file included from /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/system.h:645:0,
                 from /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/genconstants.c:28:
/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/../include/libiberty.h:110:36: error: new declaration 'char* basename(const char*)'
/usr/include/string.h:603:28: error: ambiguates old declaration 'const char* basename(const char*)'
cc1plus: warning: unrecognized command line option "-Wno-narrowing" [enabled by default]
make[4]: *** [build/genconstants.o] Error 1
make[4]: Leaving directory `/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2.build/gcc'
make[3]: *** [all-gcc] Error 2
make[3]: Leaving directory `/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2.build'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2.build'
make[1]: *** [build-only-native-gcc] Error 2
make[1]: Leaving directory `/home/tatsuromatsuoka/work/octave/mxe-octave'

Any suggestions?

Regards

Tatsuro
Reply | Threaded
Open this post in threaded view
|

Re: mxe-octave error on Ubuntu 12.04

Philip Nienhuis
tmacchant wrote
Hello

I have tried to build mxe-octave on Ubuntu 12.04 (32bit)  by the following instruction

http://wiki.octave.org/Windows_Installer

In building native-gcc, I have met the following error.

g++ -c   -g -O2 -DIN_GCC   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/build -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/../include -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/../libcpp/include  -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/../libdecnumber -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/../libdecnumber/bid -I../libdecnumber -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/../libbacktrace -DCLOOG_INT_GMP    \
                -o build/genconstants.o /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/genconstants.c
In file included from /usr/include/i386-linux-gnu/sys/resource.h:25:0,
                 from /usr/include/i386-linux-gnu/sys/wait.h:32,
                 from /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/system.h:352,
                 from /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/genconstants.c:28:
/usr/include/i386-linux-gnu/bits/resource.h:135:20: error: declaration does not declare anything [-fpermissive]
In file included from /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/genconstants.c:28:0:
/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/system.h:448:48: error: new declaration 'char* strstr(const char*, const char*)'
/usr/include/string.h:335:1: error: ambiguates old declaration 'const char* strstr(const char*, const char*)'
In file included from /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/genconstants.c:28:0:
/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/system.h:500:34: error: declaration of C function 'const char* strsignal(int)' conflicts with
/usr/include/string.h:566:14: error: previous declaration 'char* strsignal(int)' here
In file included from /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/system.h:645:0,
                 from /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/genconstants.c:28:
/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/../include/libiberty.h:110:36: error: new declaration 'char* basename(const char*)'
/usr/include/string.h:603:28: error: ambiguates old declaration 'const char* basename(const char*)'
cc1plus: warning: unrecognized command line option "-Wno-narrowing" [enabled by default]
make[4]: *** [build/genconstants.o] Error 1
make[4]: Leaving directory `/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2.build/gcc'
make[3]: *** [all-gcc] Error 2
make[3]: Leaving directory `/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2.build'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2.build'
make[1]: *** [build-only-native-gcc] Error 2
make[1]: Leaving directory `/home/tatsuromatsuoka/work/octave/mxe-octave'

Any suggestions?
Maybe reading this thread will help:

http://octave.1599824.n4.nabble.com/mxe-octave-cross-build-errors-when-building-native-gcc-tt4662612.html
John D attached some patches there.

Philip
Reply | Threaded
Open this post in threaded view
|

Re: mxe-octave error on Ubuntu 12.04

tmacchant
--- On Thu, 2014/3/13, Philip Nienhuis wrote:

> tmacchant wrote
> > Hello
> >
> > I have tried to build mxe-octave on Ubuntu 12.04 (32bit)  by the following
> > instruction
> >
> > http://wiki.octave.org/Windows_Installer
> >
> > In building native-gcc, I have met the following error.
> >
> > g++ -c   -g -O2 -DIN_GCC   -fno-exceptions -fno-rtti
> > -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
> > -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long
> > -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H
> > -DGENERATOR_FILE -I. -Ibuild
> > -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc
> > -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/build
> > -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/../include
> > -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/../libcpp/include
> > -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/../libdecnumber
> > -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/../libdecnumber/bid
> > -I../libdecnumber
> > -I/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/../libbacktrace
> > -DCLOOG_INT_GMP    \
> >         -o build/genconstants.o
> > /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/genconstants.c
> > In file included from /usr/include/i386-linux-gnu/sys/resource.h:25:0,
> >                  from /usr/include/i386-linux-gnu/sys/wait.h:32,
> >                  from
> > /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/system.h:352,
> >                  from
> > /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/genconstants.c:28:
> > /usr/include/i386-linux-gnu/bits/resource.h:135:20: error: declaration
> > does not declare anything [-fpermissive]
> > In file included from
> > /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/genconstants.c:28:0:
> > /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/system.h:448:48:
> > error: new declaration 'char* strstr(const char*, const char*)'
> > /usr/include/string.h:335:1: error: ambiguates old declaration 'const
> > char* strstr(const char*, const char*)'
> > In file included from
> > /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/genconstants.c:28:0:
> > /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/system.h:500:34:
> > error: declaration of C function 'const char* strsignal(int)' conflicts
> > with
> > /usr/include/string.h:566:14: error: previous declaration 'char*
> > strsignal(int)' here
> > In file included from
> > /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/system.h:645:0,
> >                  from
> > /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/genconstants.c:28:
> > /home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2/gcc/../include/libiberty.h:110:36:
> > error: new declaration 'char* basename(const char*)'
> > /usr/include/string.h:603:28: error: ambiguates old declaration 'const
> > char* basename(const char*)'
> > cc1plus: warning: unrecognized command line option "-Wno-narrowing"
> > [enabled by default]
> > make[4]: *** [build/genconstants.o] Error 1
> > make[4]: Leaving directory
> > `/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2.build/gcc'
> > make[3]: *** [all-gcc] Error 2
> > make[3]: Leaving directory
> > `/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2.build'
> > make[2]: *** [all] Error 2
> > make[2]: Leaving directory
> > `/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2.build'
> > make[1]: *** [build-only-native-gcc] Error 2
> > make[1]: Leaving directory `/home/tatsuromatsuoka/work/octave/mxe-octave'
> >
> > Any suggestions?
>
> Maybe reading this thread will help:
>
> http://octave.1599824.n4.nabble.com/mxe-octave-cross-build-errors-when-building-native-gcc-tt4662612.html
> John D attached some patches there.
>
> Philip

Philip

With native-gcc4.patch obtained from the thread suggeted by you, the native-gcc was successfully built and finally octave-3.8.1 installer was bbtained.

I appreciate for your advise.

BTE, will the patch by John D be included in the hg repository?

Regards

Tatsuro
Reply | Threaded
Open this post in threaded view
|

Re: mxe-octave error on Ubuntu 12.04

PhilipNienhuis
<John Donoghue added in To:>

Tatsuro MATSUOKA wrote:

> --- On Thu, 2014/3/13, Philip Nienhuis wrote:
>
>> tmacchant wrote
>>> Hello
>>>
>>> I have tried to build mxe-octave on Ubuntu 12.04 (32bit)  by the following
>>> instruction
>>>
>>> http://wiki.octave.org/Windows_Installer
>>>
>>> In building native-gcc, I have met the following error.
>>>
>>> g++ -c   -g -O2 -DIN_GCC   -fno-exceptions -fno-rtti
>>> -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
:
<looong snip>
:

>>> cc1plus: warning: unrecognized command line option "-Wno-narrowing"
>>> [enabled by default]
>>> make[4]: *** [build/genconstants.o] Error 1
>>> make[4]: Leaving directory
>>> `/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2.build/gcc'
>>> make[3]: *** [all-gcc] Error 2
>>> make[3]: Leaving directory
>>> `/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2.build'
>>> make[2]: *** [all] Error 2
>>> make[2]: Leaving directory
>>> `/home/tatsuromatsuoka/work/octave/mxe-octave/tmp-native-gcc/gcc-4.8.2.build'
>>> make[1]: *** [build-only-native-gcc] Error 2
>>> make[1]: Leaving directory `/home/tatsuromatsuoka/work/octave/mxe-octave'
>>>
>>> Any suggestions?
>>
>> Maybe reading this thread will help:
>>
>> http://octave.1599824.n4.nabble.com/mxe-octave-cross-build-errors-when-building-native-gcc-tt4662612.html
>> John D attached some patches there.
:
> Philip
>
> With native-gcc4.patch obtained from the thread suggeted by you, the native-gcc was successfully built and finally octave-3.8.1 installer was bbtained.
>
> I appreciate for your advise.
>
> BTE, will the patch by John D be included in the hg repository?

I don't know if it is specific to some Linux distros.
But as you needed it on Ubuntu, John D on Fedora, and me on Mageia, I'd
say it is needed somehow.

Philip