octave-maintainers
[Top][All Lists]
Advanced

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

mxe-octave cross-build errors when building native-gcc


From: PhilipNienhuis
Subject: mxe-octave cross-build errors when building native-gcc
Date: Sun, 2 Mar 2014 14:41:30 -0800 (PST)

With mxe-octave

(hg summary:  
parent: 3556:22b42ac3fd68 tip
 native-gcc: remove unintended changes to native-gcc.mk from cs
b1ca68ddd02c)

the cross-build consistently stops at native-gcc with (from the log):

:
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/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc
-I/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/build
-I/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/../include
-I/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/../libcpp/include
 
-I/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/../libdecnumber
-I/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/../libdecnumber/bid
-I../libdecnumber
-I/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/../libbacktrace
-DCLOOG_INT_GMP    \
        -o build/genenums.o
/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/genenums.c
In file included from /usr/include/sys/resource.h:25:0,
                 from /usr/include/sys/wait.h:32,
                 from
/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/system.h:352,
                 from
/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/genchecksum.c:21:
/usr/include/bits/resource.h:135:20: error: declaration does not declare
anything [-fpermissive]
In file included from
/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/genchecksum.c:21:0:
/home/philip/devel/octdev/mxe/mxe201403/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/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/genchecksum.c:21:0:
/home/philip/devel/octdev/mxe/mxe201403/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/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/system.h:645:0,
                 from
/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/genchecksum.c:21:
/home/philip/devel/octdev/mxe/mxe201403/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*)’
In file included from /usr/include/sys/resource.h:25:0,
                 from /usr/include/sys/wait.h:32,
                 from
/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/system.h:352,
                 from
/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/genenums.c:21:
/usr/include/bits/resource.h:135:20: error: declaration does not declare
anything [-fpermissive]
In file included from
/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/genenums.c:21:0:
/home/philip/devel/octdev/mxe/mxe201403/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*)’
cc1plus: warning: unrecognized command line option "-Wno-narrowing" [enabled
by default]
make[4]: *** [build/genchecksum.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from
/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/genenums.c:21:0:
/home/philip/devel/octdev/mxe/mxe201403/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 /usr/include/sys/resource.h:25:0,
                 from /usr/include/sys/wait.h:32,
                 from
/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/system.h:352,
                 from
/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/genhooks.c:21:
/usr/include/bits/resource.h:135:20: error: declaration does not declare
anything [-fpermissive]
In file included from
/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/genhooks.c:21:0:
/home/philip/devel/octdev/mxe/mxe201403/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/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/genhooks.c:21:0:
/home/philip/devel/octdev/mxe/mxe201403/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/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/system.h:645:0,
                 from
/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/genenums.c:21:
/home/philip/devel/octdev/mxe/mxe201403/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*)’
In file included from
/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/system.h:645:0,
                 from
/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/genhooks.c:21:
/home/philip/devel/octdev/mxe/mxe201403/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/genenums.o] Error 1
cc1plus: warning: unrecognized command line option "-Wno-narrowing" [enabled
by default]
make[4]: *** [build/genhooks.o] Error 1
/bin/sh
/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/../move-if-change
tmp-optionlist optionlist
echo timestamp > s-options
make[4]: Leaving directory
`/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2.build/gcc'
make[3]: *** [all-gcc] Error 2
make[3]: Leaving directory
`/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2.build'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2.build'
make[1]: *** [build-only-native-gcc] Error 2
make[1]: Leaving directory `/home/philip/devel/octdev/mxe/mxe201403'


Philip



--
View this message in context: 
http://octave.1599824.n4.nabble.com/mxe-octave-cross-build-errors-when-building-native-gcc-tp4662601.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.


reply via email to

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