This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB 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]

gdb/486: GDB 5.2 doesn't build using ``cc'' on HP/UX 10.20 (FAQ)



>Number:         486
>Category:       gdb
>Synopsis:       GDB 5.2 doesn't build using ``cc'' on HP/UX 10.20 (FAQ)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 15 09:48:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     ac131313@redhat.com
>Release:        2002-04-15
>Organization:
>Environment:
HP/UX 10.20, possibly HP/UX 11.00
>Description:
See gdb/391.

The top level configury, on a HP/UX system, defaults CC to ``cc''.
GDB's configury, thanks to AM_PROG_CC_STDC, sets it to ``cc -Ae''.

Unfortunatly, when doing a top level (GNU) make, the sub directories are updated using something equivalent to:
  cd gdb; $(MAKE) CC=$(CC)
i.e.
  cd gdb; make CC=cc
so GDB's correctly set CC make variable (CC=cc -Ae) is overridden with CC=cc.  Ulgh.

Workaround 1:

After the build dies; cd to the GDB directory and run make from there:
  cd gdb && make


Workaround 2:

Configure using:
  CC='cc -Ae' ..../configure
which forces the correct compiler everywhere.


The fix would involve changing the top level configury so that it configures everything to ``cc -Ae'' on a HP/UX system.

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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