This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


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

hpux cross compilers


Does anybody know if it is possible to create cross compilers where
the target machine is hpux 9.05 or hpux 10.20?

My goal is to build any/all of the following:

aix4.3.2  -> hpux10.20
aix4.3.2  -> hpux9.05
hpux10.20 -> hpux9.05


I have created several cross-compilers in the past (for other
platforms) so I am at least familiar with the process.  But when I try
to build hpux cross compilers I run into some of the following
problems:

(1) binutils 'ld' won't build for hpux systems.  From this I assume
    that the only possibility for an hpux cross compiler would be with
    an hpux host system that can run a version of 'ld' from another os
    release (eg. hpux 10.20 system could run hpux 9.05 ld)

(2) When trying to build the hpux10.20 -> hpux9.05 cross compiler, I
    copied the hpux9.05 versions of ld, as, nm, etc. into my
    /host/f/hppa1.1-hp-hpux9.05/bin directory.  When I try to build the
    cross-compiler I get the following error:

% pwd
~/install/hpux10/gcc-2.8.1

% make
./xgcc -B./ -DCROSS_COMPILE -DIN_GCC    -g -I./include     -c ./libgcc1-test.c
Testing libgcc1.  Ignore linker warning messages.
./xgcc -B./ -DCROSS_COMPILE -DIN_GCC    -g -I./include  libgcc1-test.o -o libgcc1-test \
  -nostartfiles -nostdlib `./xgcc -B./ --print-libgcc-file-name`
collect2: ld returned 1 exit status
/host/f/hppa1.1-hp-hpux9.05/bin/ld: Unsatisfied symbols:
   %1$s (data)
   %1$s
/host/f/hppa1.1-hp-hpux9.05/bin/ld: No $UNWIND_END$ subspace has been defined (probably missing /usr/ccs/lib/crt0.o)
make: ** [libgcc1-test] Error 1

% echo $?
2


I have tried everything I can think of with no luck.  Does anybody
have any ideas?

-- 

    ...Tyler
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.