Compiling with 32-bit libraries on a 64-bit HP PA-RISC | Bytes (2024)

Home Posts Topics Members FAQ

mark_mattes

Compiling with 32-bit libraries on a 64-bit HP PA-RISC | Bytes (1) 2 New Member

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:

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

Subscribe Reply

2 Compiling with 32-bit libraries on a 64-bit HP PA-RISC | Bytes (2) 2078 Compiling with 32-bit libraries on a 64-bit HP PA-RISC | Bytes (3)

Banfa

9,065 Compiling with 32-bit libraries on a 64-bit HP PA-RISC | Bytes (5) Recognized Expert Moderator Expert

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

reply

mark_mattes

2 Compiling with 32-bit libraries on a 64-bit HP PA-RISC | Bytes (6) New Member

@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

reply

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

Similar topics

1 3267

Problems compiling STLPORT 4.5.3 with g++ 3.3

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: In file included from /opt/nortel/gcc-3.3/backward/iostream.h:31, from /export/home/rch034/garyla/stlport/wrap_std/h/iostream.h:5, from /export/home/rch034/garyla/stlport/iostream.h:107, from...

C / C++

2 587

More than 32 indexes with MyISAM?

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, because it doesn't support subqueries). I changed the two defines in sql/mysql_priv.h and include/myisam.h, respectively. The typedef for key_map is no longer ulong or ulonglong, but instead Bitmap(64);

MySQL Database

1713

error compiling linkchecker

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 with Python 2.4.1 on Solaris 2.8. Can anyone help? Thank you. -> python setup.py build creating /home/kzvbq3/linkchecker-3.2/_linkchecker_configdata.py running build running build_py

Python

2703

Compiling db2uext2.cdisk with Cygwin gcc

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 is the POSIX compliant version as opposed to the MicroSoft C compiler. The second parameter to mkdir is the file mode. In this case, I've made the directories created to be read/write/execute(list) for all users.

DB2 Database

1316

DIA9999E with error code -32

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 COBOL programs using an older MicroFocus COBOL compiler. The error message also references "aps_precompiler_svc". I have thousands of other programs that continue to compile fine, the problem is somehow scoped to just a couple programs. The...

DB2 Database

4 2116

error compiling this code

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 gen_data.o gen_data.cpp

C / C++

2536

Need help with compiling warnings that might cause memory error

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 pinvoking some C++ code, which was working also fine before. I wonder if these warning are causing the problem. I would appreciate some help or suggestions on how to correct these. Thanks. Warning37At least one of the arguments for...

C# / C Sharp

1 1929

Help on compiling K.Wilder's random number generator with Visio C++ .Net

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 http://oldmill.uchicago.edu/~wilder/Code/random/. Firstly, I got the notorious "fatal error C1010: unexpected end of file while looking for precompiled header directive" error when I tried to compile 'randtest.c' provided by wilder.

C / C++

6 2826

Erros when compiling a CPP program which uses CPython API functions

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 ../../libpython2.5.a -lm -ldl -lpthread -lutil testeval.cpp In file included from testeval.cpp:1: .../../Include/Python.h:8:22: pyconfig.h: No such file or directory In file included from ../../Include/Python.h:57, from

Python

10 2210

Compiling source code out of the blue

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 works fine". Now admittedly, I tend to have a phobia of this situation because I recall from my Windows days the numerous times I was given code that was supposedly "good to go", but which failed to compile for some stupid reason. Of course I...

C / C++

10215

Problem With Comparison Operator <=> in G++

by: Oralloy |last post by:

Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...

C / C++

1 9996

The easy way to turn off automatic updates for Windows 10/11

by: Hystou |last post by:

Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...

Windows Server

9865

Discussion: How does Zigbee compare with other wireless protocols in smart home applications?

by: tracyyun |last post by:

Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...

General

8872

AI Job Threat for Devs

by: agi2029 |last post by:

Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...

Career Advice

1 7410

Access Europe - Using VBA to create a class based on a table - Wed 1 May

by: isladogs |last post by:

The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...

Microsoft Access / VBA

6674

Couldn’t get equations in html when convert word .docx file to html file in C#.

by: conductexam |last post by:

I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...

C# / C Sharp

5447

Windows Forms - .Net 8.0

by: adsilva |last post by:

A Windows Forms form does not have the event Unload, like VB6. What one acts like?

Visual Basic .NET

1 3964

transfer the data from one system to another through ip address

by: 6302768590 |last post by:

Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

C# / C Sharp

2 3564

How to add payments to a PHP MySQL app.

by: muto222 |last post by:

How can i add a mobile payment intergratation into php mysql website.

PHP

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

To disable or enable advertisem*nts and analytics tracking please visit the page.

Compiling with 32-bit libraries on a 64-bit HP PA-RISC | Bytes (2024)
Top Articles
Latest Posts
Article information

Author: Tyson Zemlak

Last Updated:

Views: 6031

Rating: 4.2 / 5 (43 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Tyson Zemlak

Birthday: 1992-03-17

Address: Apt. 662 96191 Quigley Dam, Kubview, MA 42013

Phone: +441678032891

Job: Community-Services Orchestrator

Hobby: Coffee roasting, Calligraphy, Metalworking, Fashion, Vehicle restoration, Shopping, Photography

Introduction: My name is Tyson Zemlak, I am a excited, light, sparkling, super, open, fair, magnificent person who loves writing and wants to share my knowledge and understanding with you.