pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Compiler for Tru64 + pkgsrc

Anyone have a newer GCC compiled for tru64 for use with pkgsrc ?

The newest compiler kit I've found pre-compiled for Tru64 is GCC version 4.2.3. Unfortunately, it fails some checks (C99 capability is the biggest one) in a few autoconf scripts of some pretty popular open source apps.

I'd like to create a package for a newer compiler. However, it's made more difficult by a few Tru64 quirks. One is that the varargs.h include file has a couple of macros like va_start() that now rarely match the argument count in more modern open source programs. For example, it seems that folks changed va_start() to have two args instead of one.

I've been able to circumvent that by using the varargs.h that came with gcc and feeding gcc a -I/path/to/gcc/includes at the very first. In some cases -nostdinc is also needed. However, I have to wonder if this will break later on. va_start() isn't a library call, so I'm not sure what the fallout would be, if anything. The other thing I have to do almost every time to avoid linker errors is to pass -Wa,-oldas to gcc. I managed to get binutils compiled so I have a newer 'ld' now, but I'm not sure if that'll fix the latter issue.

So, I'm asking, does anyone have a newer toolkit put together for Tru64? If not do you have any tips on how to get a newer GCC kit compiled? I've tried compiling gcc-4.9.3 and it bombs in the autoconf/configure stage with the last few lines looking like this below. I wonder if I'm just outta luck and they simply don't care about Tru64 at all anymore (which is understandable):

checking whether getc_unlocked is declared... no
checking whether putchar_unlocked is declared... no
checking whether putc_unlocked is declared... no
checking whether getrlimit is declared... yes
checking whether setrlimit is declared... yes
checking whether getrusage is declared... yes
checking whether ldgetname is declared... yes
checking whether times is declared... yes
checking whether sigaltstack is declared... yes
checking whether madvise is declared... no
checking for struct tms... yes
checking for clock_t... yes
checking for F_SETLKW... yes
checking if mkdir takes one argument... no
*** Configuration alphaev6-dec-osf5.1b not supported Makefile:4011: recipe for target 'configure-stage1-gcc' failed
gmake[2]: *** [configure-stage1-gcc] Error 1
gmake[2]: Leaving directory '/home/sgriggs/EPMs/gcc-4.9.3'
Makefile:18740: recipe for target 'stage1-bubble' failed
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory '/home/sgriggs/EPMs/gcc-4.9.3'
Makefile:887: recipe for target 'all' failed
gmake: *** [all] Error 2

Then from config.log:

configure:10880: checking for F_SETLKW
configure:10904: gcc -Wa,-oldas -I/usr/local/gcc4/lib/gcc/alpha-dec-osf5.1b/4.2.3/install-tools/include -I/usr/local/cygnus/tru64-010710/H-alphaev56-dec-osf5.1/lib/gcc-lib/alphaev56-dec-osf5.1/2.97-tru64-010710/include -I/usr/local/include -c -I. -I./../include -I/usr/local/include conftest.c >&5
configure:10904: $? = 0
configure:10911: result: yes
configure:10924: checking if mkdir takes one argument
configure:10950: gcc -Wa,-oldas -I/usr/local/gcc4/lib/gcc/alpha-dec-osf5.1b/4.2.3/install-tools/include -I/usr/local/cygnus/tru64-010710/H-alphaev56-dec-osf5.1/lib/gcc-lib/alphaev56-dec-osf5.1/2.97-tru64-010710/include -I/usr/local/include -c -I/usr/local/include conftest.c >&5
configure:10950: $? = 0
configure:10957: result: no

Any ideas? Thanks,


Home | Main Index | Thread Index | Old Index