Mail Archives: djgpp/2012/04/26/11:30:16
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f
|
From: | Bob Tanner <tanner AT real-time DOT com>
|
Organization: | Real Time Enterprises, Inc.
|
Newsgroups: | comp.os.msdos.djgpp
|
Date: | Thu, 26 Apr 2012 10:15:34 -0500
|
Message-ID: | <4f996694$0$17213$892e0abb@auth.newsreader.octanews.com>
|
MIME-Version: | 1.0
|
Subject: | Cross-compiling on Lucid (10.04) Linux
|
User-Agent: | Unison/2.1.7
|
Lines: | 132
|
NNTP-Posting-Date: | 26 Apr 2012 10:15:33 CDT
|
X-Complaints-To: | abuse AT octanews DOT net
|
Bytes: | 6333
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Please let me know if this is not the proper place to post this
question. Thanks.
I'm attempting to build a cross-compiler on lucid (10.04) linux and I'm
getting the following error:
make[3]: Entering directory
`/home/rte/tmp/packages2/cross/gnu/binutils-2.13.1-obj/gas'
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.13.1/gas -I.
-D_GNU_SOURCE -I. -I../../binutils-2.13.1/gas -I../bfd
-I../../binutils-2.13.1/gas/config
-I../../binutils-2.13.1/gas/../include -I../../binutils-2.13.1/gas/..
-I../../binutils-2.13.1/gas/../bfd -I../../binutils-2.13.1/gas/../intl
-I../intl
-DLOCALEDIR="\"/usr/local/compiler/cross/djgpp/share/locale\"" -W
-Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c
../../binutils-2.13.1/gas/app.c
In file included from ./targ-cpu.h:1,
from ../../binutils-2.13.1/gas/config/obj-coff.h:38,
from ./obj-format.h:1,
from ../../binutils-2.13.1/gas/config/te-go32.h:16,
from ./targ-env.h:1,
from ../../binutils-2.13.1/gas/as.h:614,
from ../../binutils-2.13.1/gas/app.c:30:
../../binutils-2.13.1/gas/config/tc-i386.h:530: error: array type has
incomplete element type
make[3]: *** [app.o] Error 1
make[3]: Leaving directory
`/home/rte/tmp/packages2/cross/gnu/binutils-2.13.1-obj/gas'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/rte/tmp/packages2/cross/gnu/binutils-2.13.1-obj/gas'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory
`/home/rte/tmp/packages2/cross/gnu/binutils-2.13.1-obj/gas'
make: *** [all-gas] Error 2
I'm using the Linux x86 Host Cross Compilter HOWTO located at
http://www.delorie.com/howto/djgpp/linux-x-djgpp-revised.html
There's a couple differences from documented HOWTO:
The host compiler is different (HOWTO uses gcc-3.2, Lucid has 4.4.3)
lucid $ gcc --version
gcc (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3
I could not find gcc32s2.zip I could only have gcc323s2.zip on ftp.delorie.com
I've tried same things with:
binutils-2.22.tar.gz
djcrx203.zip
gcc462s.zip
gcc-4.7.0.tar.gz
make[4]: Entering directory
`/home/rte/tmp/packages/cross/gnu/gcc-4.7.0-obj/i586-pc-msdosdjgpp/libstdc++-v3/include'
mkdir -p ./i586-pc-msdosdjgpp/bits/stdc++.h.gch
/home/rte/tmp/packages/cross/gnu/gcc-4.7.0-obj/./gcc/xgcc
-shared-libgcc -B/home/rte/tmp/packages/cross/gnu/gcc-4.7.0-obj/./gcc
-nostdinc++
-L/home/rte/tmp/packages/cross/gnu/gcc-4.7.0-obj/i586-pc-msdosdjgpp/libstdc++-v3/src
-L/home/rte/tmp/packages/cross/gnu/gcc-4.7.0-obj/i586-pc-msdosdjgpp/libstdc++-v3/src/.libs
-B/usr/local/compiler/cross/djgpp/i586-pc-msdosdjgpp/bin/
-B/usr/local/compiler/cross/djgpp/i586-pc-msdosdjgpp/lib/ -isystem
/usr/local/compiler/cross/djgpp/i586-pc-msdosdjgpp/include -isystem
/usr/local/compiler/cross/djgpp/i586-pc-msdosdjgpp/sys-include -x
c++-header -nostdinc++ -g -O2
-I/home/rte/tmp/packages/cross/gnu/gcc-4.7.0-obj/i586-pc-msdosdjgpp/libstdc++-v3/include/i586-pc-msdosdjgpp
-I/home/rte/tmp/packages/cross/gnu/gcc-4.7.0-obj/i586-pc-msdosdjgpp/libstdc++-v3/include
-I/home/rte/tmp/packages/cross/gnu/gcc-4.62/libstdc++-v3/libsupc++ -O2
-g -std=gnu++0x
/home/rte/tmp/packages/cross/gnu/gcc-4.62/libstdc++-v3/include/precompiled/stdc++.h
\
-o i586-pc-msdosdjgpp/bits/stdc++.h.gch/O2ggnu++0x.gch
In file included from
/home/rte/tmp/packages/cross/gnu/gcc-4.7.0-obj/i586-pc-msdosdjgpp/libstdc++-v3/include/bits/postypes.h:42:0,
from
/home/rte/tmp/packages/cross/gnu/gcc-4.7.0-obj/i586-pc-msdosdjgpp/libstdc++-v3/include/iosfwd:42,
from
/home/rte/tmp/packages/cross/gnu/gcc-4.7.0-obj/i586-pc-msdosdjgpp/libstdc++-v3/include/ios:39,
from
/home/rte/tmp/packages/cross/gnu/gcc-4.7.0-obj/i586-pc-msdosdjgpp/libstdc++-v3/include/istream:40,
from
/home/rte/tmp/packages/cross/gnu/gcc-4.7.0-obj/i586-pc-msdosdjgpp/libstdc++-v3/include/sstream:39,
from
/home/rte/tmp/packages/cross/gnu/gcc-4.7.0-obj/i586-pc-msdosdjgpp/libstdc++-v3/include/complex:47,
from
/home/rte/tmp/packages/cross/gnu/gcc-4.7.0-obj/i586-pc-msdosdjgpp/libstdc++-v3/include/ccomplex:42,
from
/home/rte/tmp/packages/cross/gnu/gcc-4.62/libstdc++-v3/include/precompiled/stdc++.h:53:
/home/rte/tmp/packages/cross/gnu/gcc-4.7.0-obj/i586-pc-msdosdjgpp/libstdc++-v3/include/cwchar:60:5:
error: conflicting declaration ‘typedef struct mbstate_t mbstate_t’
/usr/local/compiler/cross/djgpp/i586-pc-msdosdjgpp/include/wchar.h:27:3:
error: ‘mbstate_t’ has a previous declaration as ‘typedef struct
mbstate_t mbstate_t’
make[4]: *** [i586-pc-msdosdjgpp/bits/stdc++.h.gch/O2ggnu++0x.gch] Error 1
make[4]: Leaving directory
`/home/rte/tmp/packages/cross/gnu/gcc-4.7.0-obj/i586-pc-msdosdjgpp/libstdc++-v3/include'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/rte/tmp/packages/cross/gnu/gcc-4.7.0-obj/i586-pc-msdosdjgpp/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/rte/tmp/packages/cross/gnu/gcc-4.7.0-obj/i586-pc-msdosdjgpp/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/home/rte/tmp/packages/cross/gnu/gcc-4.7.0-obj'
make: *** [all] Error 2
Any help would be appreciated.
Thanks.
--
Bob Tanner <tanner AT real-time DOT com> | Phone : (952 943-8700
http://www.real-time.com, Linux, OSX, VMware | Fax : (952)943-8500
Key fingerprint = F785 DDFC CF94 7CE8 AA87 3A9D 3895 26F1 0DDB E378
- Raw text -