This is the mail archive of the gcc@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]
Other format: [Raw text]

gcc-3.1 build successful in hppa64-hp-hpux11.00


Hi,
    I am able to build gcc-3.1 in PA RISC 64 platform successfully.
However when I use this new compiler (gcc-3.1) am not able to build
shared executables. Instead it always build statically linked 64 bit
executables. I used the below to build the compiler

/* binutils-2.12 64 bit. Used HP-UX compiler to build the binutils*/
%../binutils-2.12/configure --prefix=/user/dkarthik/usr64 --disable-nls
--host=hppa64-hp-hpux11.00

Then built the gcc-3.1 (c only) with HP-UX compiler.

Used the recently built gcc-3.1 (64 bit) to build the gcc-3.1 (c,c++,
etc.)

% ../gcc-3.1/configure --prefix=/tmp/dkarthik/gcc \
?                      --enable-shared \
?                      --with-as=/user/dkarthik/usr64/bin/as \
?                      --with-ld=/user/dkarthik/usr64/bin/ld \
?                      --disable-nls \
?                      --host=hppa64-hp-hpux11.00

% gcc -g -o hello hello.c

% file hello
hello:          ELF-64 executable object file - PA-RISC 2.0 (LP64)

% ldd hello
ldd: "hello" is not a shared executable.

% hello
Hello, World !!

% gcc -v -g -o hello hello.c
Reading specs from
/tmp/dkarthik/gcc/lib/gcc-lib/hppa64-hp-hpux11.00/3.1/specs
Configured with: ../gcc-3.1/configure --prefix=/tmp/dkarthik/gcc
--enable-shared --with-as=/user/dkarthik/usr64/bin/as
--with-ld=/user/dkarthik/usr64/bin/ld --disable-nls
--enable-languagues=all --host=hppa64-hp-hpux11.00
Thread model: single
gcc version 3.1
 /tmp/dkarthik/gcc/lib/gcc-lib/hppa64-hp-hpux11.00/3.1/cc1 -lang-c -v
-D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -Dhppa
-Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D__hppa__
-D__hp9000s800__ -D__hp9000s800 -D__hp9k8__ -D__PWB__ -D__hpux__
-D__unix__ -D__hppa -D__hp9000s800 -D__hp9k8 -D__PWB -D__hpux -D__unix
-Asystem=unix -Asystem=hpux -Acpu=hppa -Amachine=hppa -D__NO_INLINE__
-D__STDC_HOSTED__=1 -D_PA_RISC1_1 -D__hp9000s700 -D_PA_RISC2_0
-D__hp9000s800 -D__LP64__ -D__LONG_MAX__=9223372036854775807L
-D_HPUX_SOURCE -D_HIUX_SOURCE -D__STDC_EXT__ -D_INCLUDE_LONGLONG hello.c
-quiet -dumpbase hello.c -g -version -o /var/tmp//ccbckgzs.s
GNU CPP version 3.1 (cpplib) (hppa)
GNU C version 3.1 (hppa64-hp-hpux11.00)
        compiled by GNU C version 3.1.
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/tmp/dkarthik/gcc/hppa64-hp-hpux11.00/include"
#include "..." search starts here:
#include <...> search starts here:
 /tmp/dkarthik/gcc/include
 /tmp/dkarthik/gcc/lib/gcc-lib/hppa64-hp-hpux11.00/3.1/include
 /usr/include
End of search list.
 /user/dkarthik/usr64/bin/as -o /var/tmp//cc4PnoGR.o
/var/tmp//ccbckgzs.s
 /tmp/dkarthik/gcc/lib/gcc-lib/hppa64-hp-hpux11.00/3.1/collect2 -E -u
main -o hello /usr/ccs/lib/pa20_64/crt0.o
-L/tmp/dkarthik/gcc/lib/gcc-lib/hppa64-hp-hpux11.00/3.1 -L/usr/ccs/bin
-L/usr/ccs/lib/pa20_64 -L/opt/langtools/lib/pa20_64
-L/tmp/dkarthik/gcc/lib/gcc-lib/hppa64-hp-hpux11.00/3.1/../../..
/var/tmp//cc4PnoGR.o -lgcc -lc /usr/lib/pa20_64/milli.a -lgcc
%



Regards,
Karthik

--

________________________________________
Karthikeyan M.D.
Hewlett-Packard, Indian Express Building
Bangalore - 560052, Karnataka
Email: dkarthik@india.hp.com
Phone: +91 080 2863394 Ext. 1730



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