This is good. But I'd still leave that to apt-cross to decide. Unless 
explicitly specified, apt-cross should be intelligent enough to figure out 
the default choice.

On a normal box, if I'm doing `apt-get install gcc`, apt knows which is the 
default gcc version to be installed for the particular release.
apt-cross should be made smart similarly (maybe it should take that info from 
apt-get), to be able to identify the correct version of gcc.

Ritesh

On Wednesday 05 September 2007, Neil Williams wrote:
> On Wed, 5 Sep 2007 15:24:22 +0100
>
> Neil Williams <[EMAIL PROTECTED]> wrote:
> > apt-cross - apt support for cross compiling libraries
> >
> > *libraries* not applications and even less so complete compilers.
> >
> > > When I do a `apt-cross -a ia64 -i gcc`
> >
> > gcc is not a library - gcc-ia64-cross will not provide anything useful.
> > apt-cross is not able to work with that package anyway.
> >
> > $ apt-cache show gcc
> >
> > "This is a dependency package providing the default GNU C compiler."
> >
> > To get the actual compiler, you would use gcc-4.2 etc. There are no
> > useful files in either gcc or gcc4.2.
>
> Actually, that last paragraph was a tad hasty - gcc-4.2 does provide
> some useful files. gcc does not.
>
> $ dpkg -L gcc
> /.
> /usr
> /usr/bin
> /usr/bin/c89-gcc
> /usr/bin/c99-gcc
> /usr/share
> /usr/share/man
> /usr/share/man/man1
> /usr/share/man/man1/c99-gcc.1.gz
> /usr/share/man/man1/c89-gcc.1.gz
> /usr/share/doc
> /usr/share/doc/cpp
> /usr/bin/gcov
> /usr/bin/x86_64-linux-gnu-gcc
> /usr/bin/gcc
> /usr/share/doc/cpp/README.Bugs
> /usr/share/doc/cpp/FAQ.gz
> /usr/share/doc/gcc
>
> $ ll /usr/bin/x86_64-linux-gnu-gcc
> lrwxrwxrwx 1 root root 7 2007-09-05 04:16 /usr/bin/x86_64-linux-gnu-gcc
> -> gcc-4.2
>
> $ dpkg -L gcc-4.2-arm-cross
> /.
> /usr
> /usr/arm-linux-gnu
> /usr/arm-linux-gnu/lib
> /usr/arm-linux-gnu/lib/gcc
> /usr/arm-linux-gnu/lib/gcc/arm-linux-gnu
> /usr/arm-linux-gnu/lib/gcc/arm-linux-gnu/4.2
> /usr/arm-linux-gnu/lib/gcc/arm-linux-gnu/4.2/include
> /usr/arm-linux-gnu/lib/gcc/arm-linux-gnu/4.2/include/decfloat.h
> /usr/arm-linux-gnu/lib/gcc/arm-linux-gnu/4.2/include/float.h
> /usr/arm-linux-gnu/lib/gcc/arm-linux-gnu/4.2/include/iso646.h
> /usr/arm-linux-gnu/lib/gcc/arm-linux-gnu/4.2/include/limits.h
> /usr/arm-linux-gnu/lib/gcc/arm-linux-gnu/4.2/include/stdarg.h
> /usr/arm-linux-gnu/lib/gcc/arm-linux-gnu/4.2/include/stdbool.h
> /usr/arm-linux-gnu/lib/gcc/arm-linux-gnu/4.2/include/stddef.h
> /usr/arm-linux-gnu/lib/gcc/arm-linux-gnu/4.2/include/syslimits.h
> /usr/arm-linux-gnu/lib/gcc/arm-linux-gnu/4.2/include/unwind.h
> /usr/arm-linux-gnu/lib/gcc/arm-linux-gnu/4.2/include/varargs.h
> /usr/arm-linux-gnu/lib/gcc/arm-linux-gnu/4.2/include/linux
> /usr/arm-linux-gnu/lib/gcc/arm-linux-gnu/4.2/include/linux/a.out.h
> /usr/arm-linux-gnu/lib/gcc/arm-linux-gnu/4.2/include/mmintrin.h
> /usr/arm-linux-gnu/lib/gcc/arm-linux-gnu/4.2/include/omp.h
> /usr/share
> /usr/share/doc
> /usr/share/doc/gcc-4.2-arm-cross
> /usr/share/doc/gcc-4.2-arm-cross/README
> /usr/arm-linux-gnu/lib/gcc/arm-linux-gnu/4.2/libgomp.so
> /usr/arm-linux-gnu/lib/gcc/arm-linux-gnu/4.2/libgcc_s.so
>
> There aren't problems building gcc-4.2-ia64-cross with apt-cross:
>
> $ apt-cross -v -a ia64 -b gcc-4.2
> Filename: gcc-4.2_4.2.1-4_ia64.deb
> FullPath:
> ftp://ftp.uk.debian.org/debian/pool/main/g/gcc-4.2/gcc-4.2_4.2.1-4_ia64.deb
> checking gcc-4.2_4.2.1-4_ia64.deb dependencies . . .
> Calling 'dpkg-cross  -v -b -A --arch ia64' for gcc-4.2_4.2.1-4_ia64.deb
> Excluding: gcc binutils gpm cpp debianutils xfree86-common libpam-runtime
> xlibs-data debconf tzdata Trying to build: gcc-4.2_4.2.1-4_ia64.deb
> Going to convert gcc-4.2_4.2.1-4_ia64.deb
> Extracting gcc-4.2_4.2.1-4_ia64.deb
> Extracting information from control file
> Creating destination package tree
> Creating /usr/share/doc/gcc-4.2-ia64-cross/README
> Creating control file
> Creating md5sums file
> dpkg-deb: building package `gcc-4.2-ia64-cross' in
> `./gcc-4.2-ia64-cross_4.2.1-4_all.deb'.
>
> dpkg -c on that file shows no particular errors - all the expected files
> are there.



-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to