473,385 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Compiling with 32-bit libraries on a 64-bit HP PA-RISC

I've been tasked with getting software off an usupported 32-bit HP machine. I'm trying the quick and dirty approach of just using the Oracle 32-bit libraries we have on the 32-bit machine and moving them to the 64-bit machine and compiling for a pa-risc 1.1. Unix engineering loaded hp-gcc 4.4.0 on the machine and I've messed a little with a simple hello.cxx file.
If I compile with -march=1.1 I still get an ELF 64 if I try -mportable-runtime I get error: '__size_t' has not been declared. My prgram is:
Expand|Select|Wrap|Line Numbers
  1. #include <stdio.h>
  2.  
  3. int
  4. main(void)
  5. {
  6.   printf("Hello world.\n");
  7.  
  8.   return(0);
  9. }
  10.  
and I compile with:
/opt/hp-gcc64/bin/g++ -mportable-runtime -c tstHello.cxx -o tstHello32gcc.o

I don't really have to stick with gcc but I don't have an HP compiler to do a proof of concept with.
Jun 10 '10 #1
2 2066
Banfa
9,065 Expert Mod 8TB
Have you tried using the -m32 switch?

I have to say when I did something similar on Linux I gave up on cross compiling and installed a 32bit environment I could chroot to for the 32 bit compilations.
Jun 11 '10 #2
@Banfa
-m32 is for Intel processors, I'm on an HP PA-RISC. The -mpa-risc-1-1 or -march=1.1 are the RISC versions of -m32. Duh, so I can load a 32-bit version of gcc on my 64-bit HP? I bet they never loaded the 32-bit version, hence the switch above does nothing, double doh. Do you know if you can download the source and compile in a local dir? I'm pretty sure I'm not going to get anyone from Unix Engineering to create one for me today.
Jun 11 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Gary | last post by:
I am trying to compile the STLPORT 4.5.3 using g++ 3.3 compiler on sun. I have modified the stl_gcc.h file to point to the correct include path for the compiler. I am getting the following errors:...
2
by: Mike Ruskai | last post by:
I've searched Google every way I know how, and came up with two answers that refer to MAX_KEY and MI_MAX_KEY, along with a typedef for key_map. I have the 4.1.1 alpha source (4.0 is no good,...
0
by: mmarkzon | last post by:
I have been struggling compiling linkchecker from http://linkchecker.sourceforge.net/. The last thing I get is "error: command 'gcc' failed with exit status 1" which is not very helpful. This is...
0
by: Norm Wong | last post by:
If anyone is interested in using db2uext2 with Cygwin gcc compiler on Windows, I've modified the IBM provided sample with the attached file. There are two main modifications. The mkdir command...
0
by: RichG | last post by:
I have a problem where DB2 is returning error 'DIA9999E An internal error occurred. Report the following error code : "error code -32"'. This is happening on DB2 for Windows, v7.2.9 when compiling...
4
by: Gary Wessle | last post by:
Hi I have been trying to find out the reason for this error for an 1hr, please look at it for me. thanks **************** error **************** $ make; ./proj g++ -gdwarf-2 -c -o...
0
by: Pucca | last post by:
Hi I'm using vs2005. I am getting a bunch of compiler warnings after I made some changes to my code that was compiling clean. I'm also getting memory errors when I run my program and it's...
1
by: ligong.yang | last post by:
Hi all, I got tortured by a very weird problem when I was using k. wilder's random generator class in my program. PS: wilder's generator class can be found at...
6
by: grbgooglefan | last post by:
I am compiling CPP program which uses CPython API functions from Python 2.5.1 source code First I compiled with this commanline, that time I got "pyconfig.h" not found. g++ -Os -I../../Include...
10
by: Tomás Ó hÉilidhe | last post by:
I'd post this on a gcc newsgroup but I'd be more productive talking to the wall. Anyway, let's say someone throws some source code at you for a particular program and says, "Just compile it, it...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.