- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: error Expected EM_IA_64 but found EM_PARISC
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2007 11:29 PM
тАО07-22-2007 11:29 PM
error Expected EM_IA_64 but found EM_PARISC
I'm compiling an application on hp 11.23 Itanium, and i received the following message: Mismatched machine types. Expected EM_IA_64 but found EM_PARISC in file my_prog.out
can someone point me what i did wrong?
- Tags:
- ABI mismatch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2007 10:46 AM
тАО07-23-2007 10:46 AM
Re: error Expected EM_IA_64 but found EM_PARISC
You need to use file(1) on your objects and look for:
ELF-64 relocatable object file - PA-RISC 2.0 (LP64)
This bad object could be in an archive lib.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2007 07:47 PM
тАО07-23-2007 07:47 PM
Re: error Expected EM_IA_64 but found EM_PARISC
i looked what caused the issue,
and i saw that the problem was that i included
i need to add a compilation flag -D_POSIX_C_SOURCE=199506L in a multi threaded application.
Thanks,
Anat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2007 08:16 PM
тАО07-23-2007 08:16 PM
Re: error Expected EM_IA_64 but found EM_PARISC
This won't cause that problem.
If you to use threads with HP compilers, you should use the -mt option.
- Tags:
- -mt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2007 09:06 PM
тАО07-23-2007 09:06 PM
Re: error Expected EM_IA_64 but found EM_PARISC
I'm using the /opt/ansic/bin/cc compiler.
what does the -mt do? Where can I see documentation of that?
Thanks,
Anat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2007 04:54 AM
тАО07-24-2007 04:54 AM
Re: error Expected EM_IA_64 but found EM_PARISC
Likely as not when you changed your makefile (?) to include the -D stuff, you caused something to be recompiled that had not been recompiled before. Just a guess.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2007 09:09 AM
тАО07-24-2007 09:09 AM
Re: error Expected EM_IA_64 but found EM_PARISC
http://docs.hp.com/en/8759/options.htm#opt-mt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2007 10:51 PM
тАО08-12-2007 10:51 PM
Re: error Expected EM_IA_64 but found EM_PARISC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2007 11:02 PM
тАО08-12-2007 11:02 PM
Re: error Expected EM_IA_64 but found EM_PARISC
ASNat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2007 11:04 PM
тАО08-12-2007 11:04 PM
Re: error Expected EM_IA_64 but found EM_PARISC
The "Mismatched machine types" message indicates a file of the wrong architecture on the link line. This is most likely caused by the use of an incorrect directory on a -L option. For example:
% cc +DD64 -L/lib/pa20_64 -lm foo.c
ld: Mismatched machine types. Expected EM_IA_64 but found
EM_PARISC in file /lib/pa20_64/libm.sl
Fatal error.
The error message itself identifies the problem library. In this case /lib/pa20_64/libm.sl is the source of the problem. The correct version of the library for the architecture will need to be located.
go to chap 5 Linkers and Loaders in the link http://h30097.www3.hp.com/docs/porting/tru64-to-hpux/CHPLNKRX.HTM