2 Replies Latest reply on Sep 6, 2012 12:57 AM by jmbeuken

    Illegal instruction with 4.5.2 : again...

    jmbeuken

      HI,

       

      it's very similar as http://devgurus.amd.com/message/1283521#1283521 , but with the right system/OS (  I hope )  :

       

      When testing our code with 4.5.2 the program compiles no problem, but on execution it exits with 'Illegal instruction' error message.

      The same code works fine with 4.5.1 compiler on the same machine.

      Here is a cut down of the (Fortran) code (intsizetest.f90):

       

      program integer_size
        integer    :: i
        integer(8) :: i8
      
        i8 = huge(i)
        select case(i8)
        case(127_8);                 i = 1
        case(32767_8);               i = 2
        case(2147483647_8);          i = 4
        case(9223372036854775807_8); i = 8
        end select
      
        write(*,'(i1)') i
      
      end program integer_size
      

       

      compiled with simply:

       

      openf90  -o intsizetest.x intsizetest.f90

      ./intsizetest.x

      Illegal instruction

      gdb intsizetest.x

      GNU gdb (GDB) Red Hat Enterprise Linux (7.2-48.el6)

      ...

      (gdb) r

      Starting program: /home/buildbot/WorkSpace/trunk_7.0.1_private/fallbacks/sources/libxc-1.1.0.1/intsizetest.x

       

      Program received signal SIGILL, Illegal instruction.

      _s2ui () at /local/home/qa/nightly_build_avx/sandbox/open64/osprey/libu/numconv/mpp/s2uboiz.c:440

      440          /local/home/qa/nightly_build_avx/sandbox/open64/osprey/libu/numconv/mpp/s2uboiz.c: No such file or directory.

                in /local/home/qa/nightly_build_avx/sandbox/open64/osprey/libu/numconv/mpp/s2uboiz.c

      Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.80.el6_3.5.x86_64

       

       

      The compilers are both the RHEL 6 rpm versions, i.e.:

       

      x86_open64-4.5.1-1.x86_64.rpm

      x86_open64-4.5.2-1.x86_64.rpm

       

      and both are installed on a 64-bit machine running  Scientific Linux release 6.1 (Carbon).

       

      openf90 --version

      Open64 Compiler Suite: Version 4.5.2

      Built on: 2012-08-03 01:26:59 -0700

      Thread model: posix

      GNU gcc version 4.2.0 (Open64 4.5.2 driver)

       

      cat /proc/cpuinfo

      processor          : 0

      vendor_id          : AuthenticAMD

      cpu family          : 16

      model                    : 9

      model name          : AMD Opteron(tm) Processor 6140

      stepping          : 1

       

      rpm -qa | grep glibc

      glibc-common-2.12-1.80.el6_3.5.x86_64

      glibc-devel-2.12-1.80.el6_3.5.i686

      glibc-devel-2.12-1.80.el6_3.5.x86_64

      glibc-2.12-1.80.el6_3.5.x86_64

      glibc-headers-2.12-1.80.el6_3.5.x86_64

      glibc-debuginfo-2.12-1.25.el6_1.3.i686

      glibc-2.12-1.80.el6_3.5.i686

       

      regards

       

      jmb