help with gcc problem

I’m not sure this is the right place to ask this - but can anyone clue me in what this means? It looks to me like gcc doesn’t like it’s own libm.so or libc.so - this is a vanilla OpenSuSE 12.1 installation. I know NetCDF (from the OpenSuSE repo) has fortran support, so what do the three “skipping” lines (output from the call to compile with gfortran) mean? TIA!!!
(output from a make script)

<…>
make[2]: Entering directory /home/patti/WRF/WRF_V3.4/external/io_netcdf' x=echo "gfortran -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 " | awk ‘{print $1}’; export x ; \ if $x = "gfortran" ] ; then \ echo removing external declaration of iargc for gfortran ; \ /lib/cpp -C -P -C -P -traditional -I/usr/include -I../ioapi_share diffwrf.F90 | sed '/integer *, *external.*iargc/d' > diffwrf.f ;\ else \ /lib/cpp -C -P -C -P -traditional -I/usr/include -I../ioapi_share diffwrf.F90 > diffwrf.f ; \ fi /lib/cpp -C -P -C -P -traditional -I/usr/include -I../ioapi_share diffwrf.F90 /lib/cpp -C -P -C -P -traditional -I/usr/include -I../ioapi_share diffwrf.F90 | sed '/integer *, *external.*iargc/d' > diffwrf.f ;\ else \ /lib/cpp -C -P -C -P -traditional -I/usr/include -I../ioapi_share diffwrf.F90 > diffwrf.f ; \ fi removing external declaration of iargc for gfortran gfortran -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 -c -I/usr/include -I../ioapi_share diffwrf.f diffwrf io_netcdf is being built now. /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/l| sed '/integer *, *external.*iargc/d' > diffwrf.f ;\ else \ /lib/cpp -C -P -C -P -traditional -I/usr/include -I../ioapi_share diffwrf.F90 > diffwrf.f ; \ fi removing external declaration of iargc for gfortran gfortran -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 -c -I/usr/include -I../ioapi_share diffwrf.f diffwrf io_netcdf is being built now. /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/l removing external declaration of iargc for gfortran gfortran -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 -c -I/usr/include -I../ioapi_share diffwrf.f diffwrf io_netcdf is being built now. /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc wrf_io.o: In function__ext_ncd_support_routines_MOD_netcdf_err.part.0’:
<…>

Hi,

IIRC, this often means that you haven’t got the right libraries : you apparently have a 64 bit OS, but Gcc seems to require the 32 bit libraries.

HTH

Lenwolf

>
> I’m not sure this is the right place to ask this

i would have guessed the ‘best’ (if not ‘right’) place would have been
the Programming/Scripting Forum - Questions about programming, bash
scripts, perl, php, cron jobs, ruby, python, etc.

here
http://forums.opensuse.org/english/other-forums/development/programming-scripting/


dd

And please, please, please: computer text between CODE tags: http://forums.opensuse.org/english/information-new-users/advanced-how-faq-read-only/451526-posting-code-tags-guide.html

Thank You!!