- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Build gcc 64 on HPUX 11.11 problem
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
тАО06-04-2003 03:18 PM
тАО06-04-2003 03:18 PM
gcc -mpa-risc-2-0 -c -DHAVE_CONFIG_H -O -pipe -I. -I../../src/libiberty/../include -W -Wall -Wtraditional -pedantic ../../src/libiberty/floatformat.c
../../src/libiberty/floatformat.c:24: error: parse error before "size_t"
../../src/libiberty/floatformat.c:25: error: parse error before "size_t"
gmake[1]: *** [floatformat.o] Error 1
gmake[1]: Leaving directory `/usr/local/src/gcc/obj-64/libiberty'
gmake: *** [all-libiberty] Error 2
I did some searching around the forum and found if I added /usr/include ahead of the existing header search directories, I could get floatformat.c program to compile. If I try to put /usr/include in the entire make, then it fails in other places. I compared the stddef.h in /usr/include to the one that came with the gcc source and they are significantly different. Unfortunately, I am not a C programmer and I don't understand what I am looking at or even how to fix it. I gather from other forum messages that HPUX 11.11 system headers are different that 11.0 versions and that the gcc source has to be corrected for this - but I don't even know where to begin. Has anybody actually built gcc 64bit 3.2 on HPUX 11.11 and can they give me some idea of how to proceed?
... Ray Cordoni
Solved! Go to Solution.
- Tags:
- gcc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2003 04:04 PM
тАО06-04-2003 04:04 PM
Re: Build gcc 64 on HPUX 11.11 problem
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x3bfba12d6d27d5118fef0090279cd0f9,00.html
Compiler related manual with error messages.
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B3901-90004/B3901-90004_top.html&con=/hpux/onlinedocs/B3901-90004/00/00/87-con.html&toc=/hpux/onlinedocs/B3901-90004/00/00/87-toc.html&searchterms=error&queryid=20030604-180231
Error Codes general doc.
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B8311-90003/B8311-90003_top.html&con=/hpux/onlinedocs/B8311-90003/00/00/14-con.html&toc=/hpux/onlinedocs/B8311-90003/00/00/14-toc.html&searchterms=error&queryid=20030604-180231
Good Luck.
The first link an itrc thread has a 10 point solution and looks hopeful to me.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2003 11:47 AM
тАО06-07-2003 11:47 AM
Re: Build gcc 64 on HPUX 11.11 problem
To solve the problem in the other way you can download the gcc version compiled for your OS from www.hp.com or from hpux.connect.org.uk
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2005 02:28 AM
тАО02-27-2005 02:28 AM
Re: Build gcc 64 on HPUX 11.11 problem
I am facing exactly the same problem with building 64 bit gcc:
../../gcc-3.3.2/binutils/libiberty/floatformat.c:25: error: parse error before "size_t"
../../gcc-3.3.2/binutils/libiberty/floatformat.c:26: error: parse error before "size_t"
*** Error exit code 1
I also tried installing the precompiled binaries but that gives me this error:
$ /usr/local/pa64/bin/g++ helloWorld.cpp
exec(2): could not load a.out
Any suggestions ?
Warm Regards,
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2005 05:12 AM
тАО02-27-2005 05:12 AM
Re: Build gcc 64 on HPUX 11.11 problem
The solution for me was to wait until a binary version of the 64bit gcc compiler on HPUX 11.11 was available for download. There is one on Merijn's site. If you havn't seen this site before you are missing an excellent resource. Now Merijn has various versions of both gcc and perl both 32bit and 64bit and HPUX 10.20, 11.0, and 11.11. Very impressive! Thank you, Merijn.
http://mirrors.develooper.com/hpux/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2005 07:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2005 06:26 PM
тАО02-28-2005 06:26 PM
Re: Build gcc 64 on HPUX 11.11 problem
Thats a really impressive site. I was really missing a wonderful resource.
But I still have a problem. I tried downloading the following:
gcc 3.3.2 + binutils 2.14 + gdb-6.0
gcc 3.3.3 + binutils 2.14 + gdb-6.0
gcc 3.4.2 + binutils 2.15 + gdb-6.2.1
for 11.11/64.
But all these, when untarred, dont give me any binaries. All the g++ etc. files I get are of 0 bytes. Although the filenames speak of it, the tarballs did not give me the binutils/code.
Please tell me where to find the source for gcc 3.3.2 on 11.11/64 so that I can give building it a try.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2005 06:35 PM
тАО02-28-2005 06:35 PM
Re: Build gcc 64 on HPUX 11.11 problem
I do have a 64 bit g++ on my machine.
But it doesnt work. Please note the following:
$ file g++
g++: ELF-64 executable object file - PA-RISC 2.0 (LP64)
But I still get:
$ ./g++
exec(2): could not load a.out
whereas I should get:
g++: no input files.
My machine is supposed to support this:
$ file /stand/vmunix
/stand/vmunix: ELF-64 executable object file - PA-RISC 2.0 (LP64)
and my memory should be sufficient:
$ grep Physical /var/adm/syslog/syslog.log
Aug 13 11:49:33 sgushp1 vmunix: Physical: 2097152 Kbytes, lockable: 1571912 Kbytes, available: 1812084 Kbytes
Help me out !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2005 03:34 AM
тАО03-01-2005 03:34 AM
Re: Build gcc 64 on HPUX 11.11 problem
You should also put /usr/local/pa20_64/bin ahead of everything else in your PATH. This will make sure that when run gcc, it will run the 64bit version and be able to find all the associated programs ahead of what comes installed with HPUX. I also added /usr/local/pa20_64/man to /etc/MANPATH.
Then unzip and untar the file from Merijin's site to /usr/local - which installs it to /usr/local/pa20_64. I did this a while ago with gcc 3.4.1-64 and my g++ file seems OK.
... Ray