[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hpux-devtools
Subject:    HPUX-DEVTOOLS: RE: IA-32 EL SW does not simulate well on itanium 64 (Redhat)
From:       "Veygel, Mario" <mario.veygel () hp ! com>
Date:       2008-03-27 9:01:11
Message-ID: 1D965D8892DB34459EC3EF1E98F763580D1E9B6C1F () G1W0479 ! americas ! hpqcorp ! net
[Download RAW message or body]

This is not on HP-UX, so hpux-devtools is not the right list to post this.

Mario

> -----Original Message-----
> From: owner-hpux-devtools@cxx.cup.hp.com
> [mailto:owner-hpux-devtools@cxx.cup.hp.com] On Behalf Of Yoon, Gil Gu
> Sent: Donnerstag, 27. März 2008 09:48
> To: hpux-devtools@cxx.cup.hp.com; Techcomm Pdl-bcs-itanium
> Subject: HPUX-DEVTOOLS: RE: IA-32 EL SW does not simulate
> well on itanium 64 (Redhat)
> Importance: High
>
> Hi all
>
> I put more information.
> IA32 EL does not work to me.  If you have any experience,help me.
>
> (THIS IS IA32 LINUX)
> # cat /proc/version
> Linux version 2.4.21-40.ELsmp
> (bhcompile@hs20-bc1-7.build.redhat.com<mailto:bhcompile@hs20-b
> c1-7.build.redhat.com>) (gcc version 3.2.3 20030502 (Red Hat
> Linux 3.2.3-54)) #1 SMP Thu Feb 2 22:22:39 EST 2006
> # gcc vesion
> gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-54)
>
> # gcc -o simpleprint simpleprint.c
> # ./simpleprint
> TEST
> # cat simpleprint.c
> main(){
> printf("TEST\n");
> }
>
> (THIS IS IA64 LINUX)
> # cat /proc/version
> Linux version 2.6.9-55.EL
> (brewbuilder@natasha.build.redhat.com<mailto:brewbuilder@natas
> ha.build.redhat.com>) (gcc version 3.4.6 20060404 (Red Hat
> 3.4.6-3)) #1 SMP Fri Apr 20 16:30:19 EDT 2007
>
> I got the binary of simpleptint from IA32. and run like below.
> [root@linux install]# ./simpleprint                   (This
> is no output. Very Strang. It must print  the strint of "TEST".)
> [root@linux install]#
>
> Regards
> Yoon, Gil Gu
>
> ________________________________
> From: Yoon, Gil Gu
> Sent: Thursday, March 27, 2008 5:34 PM
> To: 'hpux-devtools@cxx.cup.hp.com'; Techcomm Pdl-bcs-itanium
> Subject: IA-32 EL SW does not simulate well on itanium 64 (Redhat)
>
> Hi all
>
> I tested IA-32 EL SW on Itanium-64 installed with Redhat AS 4
> updated 5.
> But the binary compiled on IA-32 Linux does not work well like below.
> Does anyone have the reason ?
>
> # cat /proc/version
> Linux version 2.6.9-55.EL
>
> # uname -a
> Linux linux 2.6.9-55.EL #1 SMP Fri Apr 20 16:30:19 EDT 2007
> ia64 ia64 ia64 GNU/Linux
>
> # /etc/init.d/ia32el  restart
> Shutting down ia32el: [  OK  ]
> Starting ia32el: IA-32 Execution Layer is activated
> [  OK  ]
> # /etc/init.d/ia32el status
> No IA-32 Support                (I think this is just bug of
> IA32 EL of script. It's not critical. Below is explanation
> for the reason.)
>
> # cat /etc/init.d/ia32el
> ~
> is_ia32el_activated() {
>         x=$(/usr/local/bin/is_ia32el 2>/dev/null)
>         if [ $? -ne 0 ]; then
>                 echo "No IA-32 Support"
>                 return 1
>         fi
>
>         if [ $x -eq 0 ];then
>                 echo "IA-32 Execution Layer disabled"
>         else
>                 echo "IA-32 Execution Layer enabled"
>         fi
>         return $x
> }
> ~
>
>   status)
>         is_ia32el_activated
>         RETVAL=$?
> ~
>
> # cat aa.c
> #include <stdio.h>
> #include <netdb.h>
> #include <string.h>
> #include <errno.h>
> main()
> {
>     /*struct hostent* hp = NULL; */
>     struct hostent* hp = NULL;
>     if((hp = gethostbyname((const char*)"localhost")) == NULL) {
>         printf("ERROR [localhost] gethostbyname %s\n",
> strerror(h_errno));
>     }
>     else {
>         printf("SUCCESS [localhost] gethostbyname\n");
>     }
> }
> [root@linux home]# ./a.out                    (a.out was
> compiled at Red Hat Linux release 9 (Shrike))
> ERROR [localhost] gethostbyname No such process
>
> # gcc -o aa_ia64 aa.c  (when I compiled it on IA-64, of
> course it works well like below).
> # ./aa_ia64
> SUCCESS [localhost] gethostbyname
>
>
>
> Thanks & regards!!
> À±±æ±¸
> ++++++++++++++++++++++++
> Competency Center
> HP Korea TSG/Presales
> gilgu.yoon@hp.com
> 82 - 2-2199-1757  (Office)
> 82 - 16-377-1934  (Mobile)
> ++++++++++++++++++++++++
>
>
>
> # [ list software deleted text/html attachment, 11.2 kb ]
>
> # [ 1 attachments dropped, 11.2 kb.]
>
> # [ Please do not post attachments to mailing lists.        ]
> # [ They can generate an immense amount of network traffic  ]
> # [ as they are propagated to many hundreds of recipients.  ]
>
>  _________________________________________________________________
>  To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
>     with the message UNSUBSCRIBE hpux-devtools
>  _________________________________________________________________
>

 _________________________________________________________________
 To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
    with the message UNSUBSCRIBE hpux-devtools
 _________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic