Operating System - HP-UX
1833777 Members
2032 Online
110063 Solutions
New Discussion

Re: Compiling GNU software on HP-UX 11i

 
Pat Allen_1
Advisor

Compiling GNU software on HP-UX 11i

Hi all - I've been trying to do some builds of the GNU software on some new 11i boxes that I have (A500 and J6000). I've got a clean build of binutils 2.12 and gas passes all the test results. (I'm using dejagnu 1.4.2 and expect 5.32 to run the test suites.) But I'm running into some problems building a version of gcc for our software development group. I've tried building a bootstrap compiler for versions 3.0.4, 3.1.1, and 3.2 with similar results. The make completes OK and the object modules compare OK but gcc fails some of the test suites. If I look at the gcc test result page (http://gcc.gnu.org/testresults/rov2.html) there doesn't seem to be any builds which pass all the tests. So... how do you know when you have a good compiler that won't cause problems down the road?

I'm attaching a file that has the failed test results from the 3.1.1 testsuite. Any help in diagnosing these would be extremely appreciated. THANKS!
10 REPLIES 10
Craig Rants
Honored Contributor

Re: Compiling GNU software on HP-UX 11i

Some times it is bes to use gmake and all the other g... comipile tools when compiling gnu software. It is quite a pain to get these to work sometimes because of all the g... dependencies.

Hope you get it working.

C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Pat Allen_1
Advisor

Re: Compiling GNU software on HP-UX 11i

Thanks for the advice. I am using gmake (3.79.1) to do the build and the tests.
H.Merijn Brand (procura
Honored Contributor

Re: Compiling GNU software on HP-UX 11i

Fetch my gcc port(s) from https://www.beepz.com/personal/merijn and use them to rebuild gcc to match your system
Enjoy, Have FUN! H.Merijn
Pat Allen_1
Advisor

Re: Compiling GNU software on HP-UX 11i

Thanks! It was definitely worth a try. But your port was done for HP-UX 11.0 rather than HP-UX 11.11. The versions built for 11.0 don't work for 11.11. (More info at http://bizforums.itrc.hp.com/cm/QuestionAnswer/0,,0xbdd191ccb36bd611abdb0090277a778c,00.html.) This is why I'm trying to build it from scratch. If I try to do a make using your build it fails with 'parse error before "size_t"' when it is compiling floatformat.c.

As a FYI, I'm building the first pass of the compiler with HP's ANSI compiler.

I noticed from your web page that you've done a large number of ports of the GNU software and you're the #2 user in the language forum. So may I ask you a question. The gcc instructions on your web page do a "make bootstrap-lean" followed by a "make install". Have you run the gcc test scripts ("make check") on your build? Did it pass all the tests or did it fail some of them? THANKS!!
H.Merijn Brand (procura
Honored Contributor

Re: Compiling GNU software on HP-UX 11i

Hmmm, why don't they work?

Does my piece of documentation work for you?

If you have a working set for 11i, I could make it available there too.

Can you start with the HP Porting center version, and build your own using that? http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.2/
Their http://hpux.connect.org.uk/hppd/hpux/Gnu/binutils-2.11.2/ is not up to date yet, but might help as a start

I don't use make test on gcc, but I use the gcc built to compile bleading edge perl, which - until 3.1.1 june 11 - caused gcc to crash. They now use perl as a testsuite themselves so I guess that I'm safe there :)

IIRC, the 'make test' (or 'make check' for most GNU utils, annoyingly) requires some extra GNU util (was it dejagnu) that I have not installed. IIRC that uses tcl/tk which I do not *want* to install.

HTH
Enjoy, Have FUN! H.Merijn
Pat Allen_1
Advisor

Re: Compiling GNU software on HP-UX 11i

My (perhaps faulty) understanding is that a number of the system include files changed from 11.0 to 11.11. The 11.0 version of the compiler expects the 11.0 version of the system include files so it gack's. I have a strong feeling after beating my head against the wall for a few weeks that the porting center version won't work either since that's a 11.0 port.

You're absolutely right about the testsuite requiring extra software - dejagnu, expect, and tcl/tk. It's the testsuites which are giving the errors and I'm not sure how many problems you should expect. Like I mentioned in my original post, it doesn't look like anything on the gcc test result page passes all the tests.

I didn't know about using my new gcc to build perl - I'll certainly give that a try. Does the compilation produce any warning messages or are you only worried if it completely bombs?
H.Merijn Brand (procura
Honored Contributor

Re: Compiling GNU software on HP-UX 11i

It did bomb. until they fixed it :)

All the expected warnings are caught. At least in 5.8.0 and up. 5.6.1 cannot deal with gcc-3.x. That is, unless you know how to fix makedepend.PL

How about getting a 11i gcc-3.2 prereslease port from http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html and use that for building your own.

The offer still stands to put your version on my ITRC site (once it works). If you want, please use /usr/local/pa20_32 as prefix
Enjoy, Have FUN! H.Merijn
H.Merijn Brand (procura
Honored Contributor

Re: Compiling GNU software on HP-UX 11i

How are you doing? Did you manage to compile a working version?
Enjoy, Have FUN! H.Merijn
Pat Allen_1
Advisor

Re: Compiling GNU software on HP-UX 11i

Hi - I took your advice and used my gcc-3.2 to build perl 5.8.0. The build went OK and it passed almost all of the tests. (It actually passed more of the tests than when I built it using HP's ANSI compiler.) So I've goine ahead and have been building various other packages with few (if any) problems. I would need to rebuild the compiler under /usr/local/pa_20_32 to put it on your site. Is there any easy way to get in touch with you if I do have a chance to rebuild it?
H.Merijn Brand (procura
Honored Contributor

Re: Compiling GNU software on HP-UX 11i

Todaz from Munchen. Zou can contact me on merijn-at-procura.nl (I cannot find the at-sign on this kezboard)
Enjoy, Have FUN! H.Merijn