This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: bdf: osf-core.c fails to compile due to lack sys/user.h
- From: Tristan Gingold <gingold at adacore dot com>
- To: Jay K <jay dot krell at cornell dot edu>
- Cc: binutils <binutils at sourceware dot org>
- Date: Mon, 10 May 2010 09:35:28 +0200
- Subject: Re: bdf: osf-core.c fails to compile due to lack sys/user.h
- References: <COL101-W44AC6E08872B9DE441B06E6F70@phx.gbl>
Jay,
I have never tried to build binutils for VMS using gcc. It looks a few adjustments are required: osf-core.c
is always built when the cpu is alpha, which is wrong for vms.
To be fixed!
Tristan.
On May 8, 2010, at 6:23 AM, Jay K wrote:
>
> /bin/sh ./libtool --tag=CC --mode=compile alpha-dec-vms-gcc -DHAVE_CONFIG_H -I. -I/src/binutils/src/bfd -DOSF_CORE -I. -I/src/binutils/src/bfd -I/src/binutils/src/bfd/../include -DBINDIR='"/usr/local/bin"' -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -MT osf-core.lo -MD -MP -MF .deps/osf-core.Tpo -c -o osf-core.lo /src/binutils/src/bfd/osf-core.c
> libtool: compile: alpha-dec-vms-gcc -DHAVE_CONFIG_H -I. -I/src/binutils/src/bfd -DOSF_CORE -I. -I/src/binutils/src/bfd -I/src/binutils/src/bfd/../include -DBINDIR=\"/usr/local/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -MT osf-core.lo -MD -MP -MF .deps/osf-core.Tpo -c /src/binutils/src/bfd/osf-core.c -o osf-core.obj
> /src/binutils/src/bfd/osf-core.c:30:22: fatal error: sys/user.h: No such file or directory
> compilation terminated.
> make[2]: *** [osf-core.lo] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
>
> manually edited Makefile to remove osf-core.c
> Presumably there is a better fix.
>
>
> build=i386-apple-darwin9.8.0
> host=target=alpha-dec-vms
>
>
> - Jay
>