This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

GCC 3.0 HP-UX 11.00 64bit Build Instructions


Dear gcc-help,

I have been trying to build gcc-3.0 for some time now and want to document a
firm set of instructions for building. Could the HP-UX maintainers please
help me in setting this list of instructions

1. Ensure correct librarys/headers are installed. My system has

	 64-bitDevLibs	B.11.00        Cross Platform Development Kit 
       B8110AA		1.2.2.08.00    Java 2 SDK for HP-UX (700/800), PA1.1
+ PA2.0 Add On 
       B9788AA		1.3.0.01       Java 2 SDK 1.3 for HP-UX (700/800),
PA1.1 + PA2.0 Add On 
       HPUXEng64RT	B.11.00.01     English HP-UX 64-bit Runtime
Environment 
       Integ-Logon	B.11.00        Integrated Logon Bundle 
       KernDev		B.11.00        HPUX Kernel Developers Kit 
       UXCoreMedia	B.11.00.02     HP-UX Media Kit (Reference Only. See
Description) 
       XSWGR1100		B.11.00.53.2   HP-UX General Release
Patches, June 2001 
       XSWHWCR1100	B.11.00.53.8   HP-UX Hardware Enablement and
Critical Patches, June 2001 

2. Login as root/gcc user.
3. export PATH=/usr/bin (so only /usr/bin/cc is used for build)
4. download and build GNU make 3.79.1
5. export PATH=$PATH:/path/to/gnu/make
6. cd /usr/local/src
7. cp <gcc-3.0.tar.gz> /usr/local/src
8. gzcat gcc-3.0.tar.gz | tar xvf -
9. mkdir objdir
10. cd objdir
11. /usr/local/src/gcc-3.0/configure --prefix=/opt/gcc-3.0 \
                                     --enable-shared \
						 --without-gnu-as \
						 --enable-threads=posix \
						 --enable-languages="c"

12. whence make (ensure this matches GNU make)
13. make bootstrap
14. make install
15. build binutils with newly built gcc 3.0 (c compiler only)
16. export PATH=$PATH:/path/to/binutils
17. cd /usr/local/src/objdir
18. /usr/local/src/gcc-3.0/configure --prefix=/opt/gcc-3.0 \
                                     --enable-shared \
						 --with-gnu-as \
						 --enable-threads=posix \
						 --enable-languages="c,c++"
19. whence make (ensure this is GNU make)
20. make bootstrap
21. make install
22. Possibly rebuilt GNU make/GNU binutils with new gcc 3.0.

Can anyone sanity check these steps? Tell me if I have missed anything?
Also - does this build 64bit gcc-3.0 or 32bit ? Do you need to install
both 32-bitDevLibs and 64-bitDevLibs?

Mathew Ericson
CC/Unix System Administrator
Agilent @ND R&D
+613 9210-5956 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]