This is the mail archive of the gdb-prs@sourceware.org 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]

[Bug gdb/12003] New: Compilation problem on Solaris 10


Description:
------------
The GDB compilation does not work. It displays the message:
make: Fatal error: Command failed for target `all'

By investigating and trying to compile a sub directory, I got the error:
remote.c: In function `extended_remote_attach_1':
remote.c:2859: warning: unsigned int format, pid_t arg (arg 3)
*** Error code 1
make: Fatal error: Command failed for target `remote.o'


How to reproduce the problem:
-----------------------------
gunzip gdb-6.8.tar.gz
tar -xf gdb-6.8.tar
cd gdb-6.8
./configure
make


Workaround:
-----------
In the file "gdb/remote.c", you can replace the line 2859:
  sprintf (rs->buf, "vAttach;%x", pid);
with:
  sprintf (rs->buf, "vAttach;%x", (int)pid);
Then it works :)


Configuration:
--------------
OS: SPARC/Solaris 10
Compilator: gcc 3.4.3
gdb sources: gdb-6.8.tar.gz from http://www.sunfreeware.com
ftp://ftp.sunfreeware.com/pub/freeware/SOURCES/gdb-6.8.tar.gz

-- 
           Summary: Compilation problem on Solaris 10
           Product: gdb
           Version: 6.8
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: jm dot varenne at free dot fr
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=12003

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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