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: John D
Subject: mxe-octave cross-build errors when building native-gcc
Date: Sun, 2 Mar 2014 20:08:10 -0500

Message: 3
Date: Sun, 2 Mar 2014 14:41:30 -0800 (PST)
From: PhilipNienhuis <address@hidden>
To: address@hidden
Subject: mxe-octave cross-build errors when building native-gcc
Message-ID: <address@hidden>
Content-Type: text/plain; charset=UTF-8

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/../in
clude
-I/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/../li
bcpp/include
-I/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/../li
bdecnumber
-I/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/../li
bdecnumber/bid
-I../libdecnumber
-I/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/../li
bbacktrace
-DCLOOG_INT_GMP    \
        -o build/genenums.o
/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/genenum
s.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/genchec
ksum.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/genchec
ksum.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/genchec
ksum.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/genchec
ksum.c:21:
/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/../incl
ude/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/genenum
s.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/genenum
s.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/genenum
s.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/genhook
s.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/genhook
s.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/genhook
s.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/genenum
s.c:21:
/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/../incl
ude/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/genhook
s.c:21:
/home/philip/devel/octdev/mxe/mxe201403/tmp-native-gcc/gcc-4.8.2/gcc/../incl
ude/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


----
I get the same trying to cross compile on my Fedora 20 machine, what OS are
you using?
Attached patch makes it compile for me.
I looks to me that it is trying to pull in some system includes instead of
the mxe build ones, but I couldn't get it to not do that except by compiling
with mpc, mprf etc copied into the gcc build as per the patch.

The other thing needed (on my system as least) has been to copy libgcc.a to
the lib folder when making the dist (Not included in this patch) in order
for gcc to compile programs when installed. 

Attachment: native-gcc3.patch
Description: Binary data


reply via email to

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