* Re: [Linux-ia64] building an ia64 cross toolchain on debian?
2003-04-28 6:29 [Linux-ia64] building an ia64 cross toolchain on debian? Martin Pool
@ 2003-04-28 6:39 ` Martin Pool
2003-04-28 7:10 ` Martin Pool
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Martin Pool @ 2003-04-28 6:39 UTC (permalink / raw)
To: linux-ia64
On 28 Apr 2003, Martin Pool <mbp@samba.org> wrote:
> ../../src/ld/ldlex.l: In function `yy_input':
> ../../src/ld/ldlex.l:615: `yy_current_buffer' undeclared (first use in this function)
> ../../src/ld/ldlex.l:615: (Each undeclared identifier is reported only once
> ../../src/ld/ldlex.l:615: for each function it appears in.)
> /usr/include/sys/stat.h: At top level:
> lex.yy.c:2973: warning: `yyunput' defined but not used
> make[4]: *** [ldlex.o] Error 1
I tried rolling flex back to the version from Stable, 2.5.4a-24, and
this allowed the build to complete. It looks like ld's lexer was
using an undocumented interface to flex, so it's not really flex's
fault that it broke.
Should I report this as a bug against toolchain-source or flex? I
suppose flex just got too far ahead of gcc as packaged in
toolchain-source?
--
Martin
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [Linux-ia64] building an ia64 cross toolchain on debian?
2003-04-28 6:29 [Linux-ia64] building an ia64 cross toolchain on debian? Martin Pool
2003-04-28 6:39 ` Martin Pool
@ 2003-04-28 7:10 ` Martin Pool
2003-04-28 11:19 ` Peter Chubb
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Martin Pool @ 2003-04-28 7:10 UTC (permalink / raw)
To: linux-ia64
I got a binutils package built and installed,
/home/mbp/work/toolchain-ia64-debian/gcc-ia64-unknown-linux-3.2.3.cvs20030221/build/gcc/xgcc -B/home/mbp/work/toolchain-ia64-debian/gcc-ia64-unknown-linux-3.2.3.cvs20030221/build/gcc/ -B/usr/ia64-unknown-linux/bin/ -B/usr/ia64-unknown-linux/lib/ -isystem /usr/ia64-unknown-linux/include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/config -I../../src/gcc/../include -DL_muldi3 -c ../../src/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from tconfig.h:21,
from ../../src/gcc/libgcc2.c:36:
../../src/gcc/config/ia64/linux.h:57:20: signal.h: No such file or directory
../../src/gcc/config/ia64/linux.h:58:26: sys/ucontext.h: No such file or directory
make[3]: *** [libgcc/./_muldi3.o] Error 1
make[3]: Leaving directory `/home/mbp/work/toolchain-ia64-debian/gcc-ia64-unknown-linux-3.2.3.cvs20030221/build/gcc'
There seems to be a problem that the cross libc produced by
"tpkg-install-libc ia64-unknown-linx" wants to install into
/usr/ia64-linux (sic) whereas the binutils install into
/usr/ia64-unknown-linux. I think this was causing gcc to be unable to
find the header files.
I kludged this up by just symlinking the two together but it seems
like there ought to be a better way.
Anyhow, now I seem to have a working cross toolchain, which is great.
--
Martin
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [Linux-ia64] building an ia64 cross toolchain on debian?
2003-04-28 6:29 [Linux-ia64] building an ia64 cross toolchain on debian? Martin Pool
2003-04-28 6:39 ` Martin Pool
2003-04-28 7:10 ` Martin Pool
@ 2003-04-28 11:19 ` Peter Chubb
2003-04-28 13:33 ` Wichmann, Mats D
2003-04-28 23:03 ` Martin Pool
4 siblings, 0 replies; 6+ messages in thread
From: Peter Chubb @ 2003-04-28 11:19 UTC (permalink / raw)
To: linux-ia64
>>>>> "Martin" = Martin Pool <mbp@samba.org> writes:
Martin> There seems to be a problem that the cross libc produced by
Martin> "tpkg-install-libc ia64-unknown-linx" wants to install into
Martin> /usr/ia64-linux (sic) whereas the binutils install into
Martin> /usr/ia64-unknown-linux. I think this was causing gcc to be
Martin> unable to find the header files.
Yes,I found that too. Version 3.2-7 of the toolchain source didn't
have the problem; an earlier version did; so I thought it was solved
and removed the instructions for working around the problem from the Wiki.
Please feel free to edit the WiKi with any workarounds you needed.
The bad version of flex was released after I last tested the
instructions -- I've logged a bug against binutils, as the native
driver can't build either at present.
--
Dr Peter Chubb http://www.gelato.unsw.edu.au peterc@gelato.unsw.edu.au
You are lost in a maze of BitKeeper repositories, all slightly different.
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [Linux-ia64] building an ia64 cross toolchain on debian?
2003-04-28 6:29 [Linux-ia64] building an ia64 cross toolchain on debian? Martin Pool
` (2 preceding siblings ...)
2003-04-28 11:19 ` Peter Chubb
@ 2003-04-28 13:33 ` Wichmann, Mats D
2003-04-28 23:03 ` Martin Pool
4 siblings, 0 replies; 6+ messages in thread
From: Wichmann, Mats D @ 2003-04-28 13:33 UTC (permalink / raw)
To: linux-ia64
> Please feel free to edit the WiKi with any workarounds you needed.
> The bad version of flex was released after I last tested the
> instructions -- I've logged a bug against binutils, as the native
> driver can't build either at present.
??? there hasn't been a release of flex source since 1997,
according to the date stamps in ftp.gnu.org/non-gnu/flex.
Does this mean that there's a bad build floating around?
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [Linux-ia64] building an ia64 cross toolchain on debian?
2003-04-28 6:29 [Linux-ia64] building an ia64 cross toolchain on debian? Martin Pool
` (3 preceding siblings ...)
2003-04-28 13:33 ` Wichmann, Mats D
@ 2003-04-28 23:03 ` Martin Pool
4 siblings, 0 replies; 6+ messages in thread
From: Martin Pool @ 2003-04-28 23:03 UTC (permalink / raw)
To: linux-ia64
On 28 Apr 2003, "Wichmann, Mats D" <mats.d.wichmann@intel.com> wrote:
> > Please feel free to edit the WiKi with any workarounds you needed.
> > The bad version of flex was released after I last tested the
> > instructions -- I've logged a bug against binutils, as the native
> > driver can't build either at present.
OK, thanks.
I'm just trying to get a whole toolchain up and running first so that
I can be sure I'm documenting the right thing.
In fact I later discovered that since the kernel requires(?) a
cvs-head version of binutils to build, using the debian toolchain
package won't help me anyhow. I might add another page about how to
do a plain source build.
> ??? there hasn't been a release of flex source since 1997,
> according to the date stamps in ftp.gnu.org/non-gnu/flex.
> Does this mean that there's a bad build floating around?
Debian have 2.5.4a-24 (which can build the toolchain) and 2.5.31-3
(which cannot).
http://packages.debian.org/flex
According to the changelog for the new one:
lex (2.5.31-1) unstable; urgency=low
* New upstream release.
-- Manoj Srivastava <srivasta@debian.org> Wed, 9 Apr 2003 14:12:18 -0500
According to the source tarball, the new site is
<http://lex.sourceforge.net/> not gnu.org which as you say only has
older versions.
The ldlex.l source says "FIXME: We should not be using a flex internal
interface in the first place!" (although not in reference to the
particular line that fails.) So it looks like ld depends on an older
version of flex. (Perhaps it forked from GNU?)
Thanks,
--
Martin
^ permalink raw reply [flat|nested] 6+ messages in thread