dpkg-architecture: warning: Specified GNU system type i386-linux does not match gcc system type i486-linux-gnu
Hi experts
I am a newbie when it comes to compiling sources the debian way. So
please bear with me for this stupid question. I wanted to compile
mpich2 using gfortran and gcc. gfortran currently is available only in
gcc-snapshot package. So I am using gcc-snapshot package to build the
packages (even though it is advised not to do that). But when I am
compiling mpich2, I am getting some warnings regarding architecture
inconformance.
I am using Debian Sid, kept upto date with the debian servers. To
reproduce the problem just do the following.
sudo apt-get install gcc-snapshot
LD_LIBRARY_PATH=/usr/lib/gcc-snapshot/lib:$LD_LIBRARY_PATH
PATH=/usr/lib/gcc-snapshot/bin:$PATH
wget http://torvalds.cs.mtsu.edu/~zach/debian/1.0.1/mpich2_1.0.1-1.diff.gz \
http://torvalds.cs.mtsu.edu/~zach/debian/1.0.1/mpich2_1.0.1-1.dsc \
http://torvalds.cs.mtsu.edu/~zach/debian/1.0.1/mpich2_1.0.1-1_i386.deb \
http://torvalds.cs.mtsu.edu/~zach/debian/1.0.1/mpich2_1.0.1.orig.tar.gz
dpkg-source -x mpich2_1.0.1-1.dsc
cd mpich2-1.0.1
dpkg-buildpackage -rfakeroot
At this point you there will be warnings as follows
dpkg-architecture: warning: Unknown gcc system type i486-linux-gnu,
falling back to default (native compilation)
dpkg-architecture: warning: Specified GNU system type i386-linux does
not match gcc system type i486-linux-gnu.
dpkg-architecture: warning: Unknown gcc system type i486-linux-gnu,
falling back to default (native compilation)
dpkg-architecture: warning: Specified GNU system type i386-linux does
not match gcc system type i486-linux-gnu.
dpkg-buildpackage: host architecture is i386
dpkg-architecture: warning: Unknown gcc system type i486-linux-gnu,
falling back to default (native compilation)
dpkg-architecture: warning: Specified GNU system type i386-linux does
not match gcc system type i486-linux-gnu.
dpkg-architecture: warning: Unknown gcc system type i486-linux-gnu,
falling back to default (native compilation)
dpkg-architecture: warning: Specified GNU system type i386-linux does
not match gcc system type i486-linux-gnu.
System information
$gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada
--prefix=/usr/lib/gcc-snapshot --enable-shared --with-system-zlib
--enable-nls --enable-threads=posix --without-included-gettext
--disable-werror --enable-__cxa_atexit --enable-libstdcxx-allocator=mt
--enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr
--enable-java-gc=boehm --enable-java-awt=gtk --enable-gtk-cairo
--enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.0 20050227 (experimental)
$gfortran -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada
--prefix=/usr/lib/gcc-snapshot --enable-shared --with-system-zlib
--enable-nls --enable-threads=posix --without-included-gettext
--disable-werror --enable-__cxa_atexit --enable-libstdcxx-allocator=mt
--enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr
--enable-java-gc=boehm --enable-java-awt=gtk --enable-gtk-cairo
--enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.0 20050227 (experimental)
$which gcc; which gfortran
/usr/lib/gcc-snapshot/bin/gcc
/usr/lib/gcc-snapshot/bin/gfortran
$uname -a
Linux kusumanchi 2.6.9-1-686 #1 Thu Nov 25 03:48:29 EST 2004 i686 GNU/Linux
$dpkg --print-architecture
i386
$dpkg --print-gnu-build-architecture
i486
$dpkg --print-installation-architecture
i386
PS: I am ccing this email Zach Lowry who is providing the source
packages for his kind reference. I hope it is not a problem.
thanks for any ideas
raju
--
friends don't let friends use windows.
Kamaraju S Kusumanchi
Cornell University
http://people.cornell.edu/pages/kk288/
http://groups.yahoo.com/group/flumech
Reply to: