Results 1 to 5 of 5

Thread: help with gcc problem

  1. #1
    Join Date
    Jun 2008
    Location
    Prescott, AZ
    Posts
    1,175

    Default 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':
    <...>

  2. #2

    Default Re: help with gcc problem

    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

  3. #3
    dd@home.dk NNTP User

    Default Re: help with gcc problem

    >
    > 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/o...ing-scripting/

    --
    dd


  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,290

    Default Re: help with gcc problem

    And please, please, please: computer text between CODE tags: http://forums.opensuse.org/english/i...ags-guide.html
    Henk van Velden

  5. #5
    Join Date
    Jun 2008
    Location
    Prescott, AZ
    Posts
    1,175

    Default Re: help with gcc problem

    Thank You!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •