Experimental Physics and Industrial Control System
|
Hi, there,
After I installed bison and flex, it worked. Now I run "./mkCrossGCC
CPU=<cpu> build", it has an error message as below. Could you
tell me how I could fix it?
Thank you.
Chen
make[3]: *** No rule to make target `../intl/libintl.a', needed by
`ld-new'. Stop.
make[3]: Leaving directory
`/root/cross-compiler-build-dir/obj-ppc/ld'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/root/cross-compiler-build-dir/obj-ppc/ld'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory
`/root/cross-compiler-build-dir/obj-ppc/ld'
make[1]: Entering directory
`/root/cross-compiler-build-dir/obj-ppc/ld'
Making install in po
make[2]: Entering directory
`/root/cross-compiler-build-dir/obj-ppc/ld/po'
if test -r /home/chen/Cross-Compiler/host/src/gnu.ppc/ld/po/../../mkinstalldirs; then \
/home/chen/Cross-Compiler/host/src/gnu.ppc/ld/po/../../mkinstalldirs
/home/chen/Cross-Compiler/host/x86-linux/share; \
else \
/home/chen/Cross-Compiler/host/src/gnu.ppc/ld/mkinstalldirs
/home/chen/Cross-Compiler/host/x86-linux/share; \
fi
if test "ld" = "gettext"; then \
if test -r /home/chen/Cross-Compiler/host/src/gnu.ppc/ld/po/../../mkinstalldirs; then \
/home/chen/Cross-Compiler/host/src/gnu.ppc/ld/po/../../mkinstalldirs
/home/chen/Cross-Compiler/host/x86-linux/share/gettext/po; \
else \
/home/chen/Cross-Compiler/host/src/gnu.ppc/ld/mkinstalldirs
/home/chen/Cross-Compiler/host/x86-linux/share/gettext/po; \
fi; \
/usr/bin/install -c -m 644
/home/chen/Cross-Compiler/host/src/gnu.ppc/ld/po/Makefile.in.in \
/home/chen/Cross-Compiler/host/x86-linux/share/gettext/po/Makefile.in.in;
\
else \
: ; \
fi
make[2]: Leaving directory
`/root/cross-compiler-build-dir/obj-ppc/ld/po'
make[2]: Entering directory
`/root/cross-compiler-build-dir/obj-ppc/ld'
make[2]: *** No rule to make target `../intl/libintl.a', needed by
`ld-new'. Stop.
make[2]: Leaving directory
`/root/cross-compiler-build-dir/obj-ppc/ld'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory
`/root/cross-compiler-build-dir/obj-ppc/ld'
make: *** [ld.build] Error 2
On 6/3/2011 10:24 AM, Jeff Hill wrote:
Hi,
you may need to install flex and bison
Jeff
______________________________________________________
Jeffrey O. Hill Email [email protected]
LANL MS H820 Voice 505 665 1831
Los Alamos NM 87545 USA FAX 505 665 5107
Message content: TSPA
With sufficient thrust, pigs fly just fine. However, this is
not necessarily a good idea. It is hard to be sure where they
are going to land, and it could be dangerous sitting under them
as they fly overhead. -- RFC 1925
-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Chen Xue
Sent: Friday, June 03, 2011 9:06 AM
To: [email protected]
Subject: cross compiler error
Hi, there,
I will install the EPICS Server under vxWorks version 5.4.2 (for
Motorola MVME 5100). I downloaded the cross-compiler file,
cross-gcc-2.9.6.tar.gz, for linux from http://ics-web.sns.ornl.gov/dht/.
Untar it and configured WIND_BASE in mkCrossGCC file. When I run
./mkCrossGCC CPU=ppc, I got the following error message. Could someone
help me?
Fixing /root/cross-compiler-build-dir/obj-ppc/cpp/gcc/Makefile to add CPU
cd /root/cross-compiler-build-dir/obj-ppc/cpp/gcc ; mv Makefile
Makefile.orig ;\
sed 's/^CROSS=/CROSS=-DCPU=PPC603 /' <Makefile.orig >Makefile
========= Building gas.config
mkdir -p /root/cross-compiler-build-dir/obj-ppc/gas
cd /root/cross-compiler-build-dir/obj-ppc/gas ;\
/home/chen/Cross-Compiler/host/src/gnu.ppc/gas/configure
--with-cpu=603 --prefix=/home/chen/Cross-Compiler/host/x86-linux
--target=powerpc-wrs-vxworks --host=i386-redhat-linux
--with-headers=/home/chen/Cross-Compiler/target/h -enable-bfd-assembler
loading cache ./config.cache
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking host system type... i386-redhat-linux-gnu
checking target system type... powerpc-wrs-vxworks
checking build system type... i386-redhat-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for POSIXized ISC... no
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking how to recognise dependant libraries... (cached) pass_all
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
loading cache ./config.cache within ltconfig
checking whether -lc should be explicitly linked in... (cached) no
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... (cached) yes
checking if gcc static flag -static works... (cached) yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -fno-rtti -fno-exceptions ... no
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking command to parse /usr/bin/nm -B output... ok
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for bison... no
checking for byacc... no
checking how to run the C preprocessor... gcc -E
checking for flex... no
checking for lex... no
/home/chen/Cross-Compiler/host/src/gnu.ppc/gas/configure: 3437: flex:
not found
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root...
/home/chen/Cross-Compiler/host/src/gnu.ppc/gas/configure: 1: lex: not
found
configure: error: cannot find output from lex; giving up
make: *** [gas.config] Error 1
Thank you!
Chen
|
- Replies:
- RE: cross compiler error Jeff Hill
- References:
- cross compiler error Chen Xue
- RE: cross compiler error Jeff Hill
- Navigate by Date:
- Prev:
Re: cross compiler error J. Lewis Muir
- Next:
Mutex at the record level? Steiner, Mathias
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: cross compiler error Jeff Hill
- Next:
RE: cross compiler error Jeff Hill
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|
ANJ, 18 Nov 2013 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|