- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: GCC PA-RISC1.1 in PA-RISC2.0 Build Outputs
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
тАО05-29-2005 08:14 PM
тАО05-29-2005 08:14 PM
I have installed GCC 4.0.0 with PA-RISC2.0 32-bit on HPUX 11.00. To verify:
sh # find /usr/local/pa20_32/ | xargs file | grep 2.0 | grep gcc:
/usr/local/pa20_32/bin/gcc: PA-RISC2.0 shared executable dynamically linked -not stripped
/usr/local/pa20_32/bin/hppa2.0w-hp-hpux11.00-gcc: PA-RISC2.0 shared executable dynamically linked -not stripped
I feel concerned, however, by the existence of PA-RISC1.1 files, because I want my entire distribution to be consistently PA-RISC2.0:
sh # find /usr/local/pa20_32/ | xargs file | grep 1.1
/usr/local/pa20_32/lib/gcc/hppa2.0w-hp-hpux11.00/4.0.0/libgcc.a: archive file -PA-RISC1.1 relocatable library
/usr/local/pa20_32/lib/gcc/hppa2.0w-hp-hpux11.00/4.0.0/libgcov.a: archive file -PA-RISC1.1 relocatable library
/usr/local/pa20_32/lib/libiberty.a: archive file -PA-RISC1.1 relocatable library
/usr/local/pa20_32/lib/libsupc++.a: archive file -PA-RISC1.1 relocatable library
/usr/local/pa20_32/lib/libstdc++.a: archive file -PA-RISC1.1 relocatable library
/usr/local/pa20_32/lib/libobjc.a: archive file -PA-RISC1.1 relocatable library
I am running on HPUX 11.00:
uname -a
HP-UX voltaire B.11.00 U 9000/785 2015073023 unlimited-user license
Here are the configure options from my last compile:
sh # /usr/local/bin/gcc -v
Using built-in specs.
Target: hppa2.0w-hp-hpux11.00
Configured with: ../gcc-4.0.0/configure --prefix=/usr/local/pa20_32 --with-gnu-as --with-as=/usr/local/pa20_32/bin/as --disable-nls --enable-threads=posix95 --with-gmp=/usr/local/pa20_32 --with-mpfr=/usr/local/pa20_32 --disable-shared --enable-languages=c,c++,objc
Thread model: posix95
gcc version 4.0.0
Here is the full configure line I used at the command prompt (/opt/bin/cc is HP Ansi C):
PATH=/usr/local/pa20_32/bin:$PATH CC=/opt/bin/cc ../gcc-4.0.0/configure --prefix=/usr/local/pa20_32 --with-gnu-as --with-as=/usr/local/pa20_32/bin/as --disable-nls --enable-threads=posix95 --with-gmp=/usr/local/pa20_32 --with-mpfr=/usr/local/pa20_32 --disable-shared --enable-languages=c,c++,objc 2>&1 | tee ~/tmp/cgcc.out
Here is the gmake command:
PATH=/usr/local/pa20_32/bin:$PATH gmake -j2 2>&1 | tee ~/tmp/mgcc.out
Is this behavior expected? Thanks for any feedback.
Best regards,
Kevin Schultz
Roseville, CA
Solved! Go to Solution.
- Tags:
- gcc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2005 09:04 PM
тАО05-29-2005 09:04 PM
SolutionThe *archive* is in that form. If you want to know about the *objects* in the archive, extract them and check
# cd /tmp
# mkdir test
# cd test
# ar x /usr/local/pa20_32/lib/gcc/hppa2.0w-hp-hpux11.00/4.0.0/libgcc.a
# file *
If I'm back at work, I'll check what it shows in my situation.
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2005 09:14 PM
тАО05-29-2005 09:14 PM
Re: GCC PA-RISC1.1 in PA-RISC2.0 Build Outputs
schultkl@voltaire: /tmp/test $ file *
__gcc_bcmp.o: PA-RISC1.1 relocatable object
__main.o: PA-RISC1.1 relocatable object
_absvdi2.o: PA-RISC1.1 relocatable object
_absvsi2.o: PA-RISC1.1 relocatable object
_addvdi3.o: PA-RISC1.1 relocatable object
_addvsi3.o: PA-RISC1.1 relocatable object
_ashldi3.o: PA-RISC1.1 relocatable object
_ashrdi3.o: PA-RISC1.1 relocatable object
_clear_cache.o: PA-RISC1.1 relocatable object
_clz.o: PA-RISC1.1 relocatable object
_clzdi2.o: PA-RISC1.1 relocatable object
_clzsi2.o: PA-RISC1.1 relocatable object
...
Best regards,
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2005 04:17 AM
тАО05-31-2005 04:17 AM
Re: GCC PA-RISC1.1 in PA-RISC2.0 Build Outputs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2005 08:21 AM
тАО05-31-2005 08:21 AM
Re: GCC PA-RISC1.1 in PA-RISC2.0 Build Outputs
Yes, I did more compiling with gcc Monday evening and you seem to be correct with saying that gcc by default produces PA-RISC1.1 code instead of PA-RISC2.0 code. I seem to have forgotten this flag, hehehe
Here is my latest compilation:
PATH=/usr/local/pa20_64/bin:$PATH CFLAGS="-O2 -mpa-risc-2-0 -mschedule=8000 -munix=95 -fPIC -static -Dhpux -DSYSV -D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L -D_POSIX_D10_THREADS" CC=/usr/local/bin/gcc ../gcc-4.0.0/configure --prefix=/usr/local/pa20_64 --enable-threads --enable-threads=posix95 --with-gnu-as --with-as=/usr/local/pa20_64/bin/as --disable-nls --with-gmp=/usr/local/pa20_64 --with-mpfr=/usr/local/pa20_64 --disable-shared --enable-languages=c,c++ 2>&1 | tee ~/tmp/cgcc.out
Unfortunately, this still compiles and installs libiberty as PA-RISC-1.1. Ugh! I must be doing something wrong but I do not know what.
Best regards,
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2005 08:24 AM
тАО05-31-2005 08:24 AM
Re: GCC PA-RISC1.1 in PA-RISC2.0 Build Outputs
Best regards,
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2005 08:35 AM
тАО05-31-2005 08:35 AM
Re: GCC PA-RISC1.1 in PA-RISC2.0 Build Outputs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2005 08:40 AM
тАО05-31-2005 08:40 AM
Re: GCC PA-RISC1.1 in PA-RISC2.0 Build Outputs
Best regards,
Kevin