public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Cant cross compile gdb 7.2 _or_ 7.0.1 for a mipsel target board from a X86 PC.
@ 2011-04-28 14:41 harish badrinath
  2011-04-29 12:10 ` harish badrinath
  0 siblings, 1 reply; 2+ messages in thread
From: harish badrinath @ 2011-04-28 14:41 UTC (permalink / raw)
  To: gdb

Hello, when i try to cross compile gdb for a mipsel architecture,
using the commands given below. I run into errors.

<buildHostInfo>
harish@super-micro:~/airspot-build/gdb-7.2.new$ uname -a
Linux super-micro 2.6.31-14-generic-pae #48-Ubuntu SMP Fri Oct 16
15:22:42 UTC 2009 i686 GNU/Linux
harish@super-micro:~/airspot-build/gdb-7.2.new$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 9.10
Release:        9.10
Codename:       karmic
</buildHostInfo>

<commandsRun>
harish@super-micro:export
INCLUDE_PATH=/backed/harish/airspot-build/toolchain/include
harish@super-micro:export
LIBRARY_PATH=/backed/harish/airspot-build/toolchain/lib
harish@super-micro:export
CC=/backed/harish/airspot-build/toolchain/bin/mipsel-linux-cc
harish@super-micro:export
AR=/backed/harish/airspot-build/toolchain/bin/mipsel-linux-ar
harish@super-micro:export
AS=/backed/harish/airspot-build/toolchain/bin/mipsel-linux-as
harish@super-micro:export
LD=/backed/harish/airspot-build/toolchain/bin/mipsel-linux-ld
harish@super-micro:./configure
--includedir=/backed/harish/airspot-build/toolchain/include/
--libdir=/backed/harish/airspot-build/toolchain/lib/
--bindir=/backed/harish/airspot-build/toolchain/bin/
--target=mipsel-linux-uclibc --host=mipsel-linux
--target=mipsel-linux-uclibc
harish@super-micro:make
</commandsRun>

make fails with the following output

<makeOutput>
--SNIP--
make[2]: Entering directory `/backed/harish/airspot-build/gdb-7.2.new/sim'
make[3]: Entering directory `/backed/harish/airspot-build/gdb-7.2.new/sim/mips'
gcc ./../common/gentmap.c -o gentmap -g -O -I. -I. -I../common
-I./../common -I../../include -I./../..//include -I../../bfd
-I./../..//bfd -I../../opcodes -I./../..//opcodes -I../../intl
/usr/bin/ld: /backed/harish/airspot-build/toolchain/lib/../lib/crt1.o:
Relocations in generic ELF (EM: 8)
/backed/harish/airspot-build/toolchain/lib/../lib/crt1.o: could not
read symbols: File in wrong format
collect2: ld returned 1 exit status
<makeOutput>

After descending into /backed/harish/airspot-build/gdb-7.2.new/sim/mips
And making the following changes
<diff1>
harish@super-micro:~/airspot-build/gdb-7.2.new/sim/mips$ diff -u
Makefile.orig Makefile
--- Makefile.orig       2011-04-28 07:01:47.000000000 -0700
+++ Makefile    2011-04-28 07:04:46.000000000 -0700
@@ -40,7 +40,7 @@
 INSTALL_DATA = /usr/bin/install -c -m 644

 CC = /backed/harish/airspot-build/toolchain/bin/mipsel-linux-cc
-CC_FOR_BUILD = gcc
+CC_FOR_BUILD = /backed/harish/airspot-build/toolchain/bin/mipsel-linux-cc
 CFLAGS = -g -O2
 SIM_BSWAP =
 SIM_CFLAGS =
@@ -332,9 +332,9 @@
 targ-vals.h targ-map.c: stamp-tvals
 stamp-tvals: gentmap
        rm -f tmp-tvals.h tmp-tmap.c
-       ./gentmap -h >tmp-tvals.h
+       /backed/harish/airspot-build/toolchain/bin/mipsel-linux-readelf
./gentmap -h >tmp-tvals.h
        $(SHELL) $(srcroot)/move-if-change tmp-tvals.h targ-vals.h
-       ./gentmap -c >tmp-tmap.c
+       /backed/harish/airspot-build/toolchain/bin/mipsel-linux-readelf
./gentmap -c >tmp-tmap.c
        $(SHELL) $(srcroot)/move-if-change tmp-tmap.c targ-map.c
        touch stamp-tvals
</diff1>
<diff2>
harish@super-micro:~/airspot-build/gdb-7.2.new/sim/mips$ diff -u
../common/callback.c.orig ../common/callback.c
--- ../common/callback.c.orig   2011-04-28 07:07:55.000000000 -0700
+++ ../common/callback.c        2011-04-28 07:08:24.000000000 -0700
@@ -59,6 +59,17 @@
 #define PIPE_BUF 512
 #endif

+/*Copied from http://sourceware.org/cgi-bin/cvsweb.cgi/src/sim/cris/traps.c.diff?cvsroot=src&r1=1.5&r2=1.6
*/
+/* This one we treat specially, as it's used in the fcntl syscall.  */
+/* These we treat specially, as they're used in the fcntl F_GETFL
+   syscall.  For consistency, open_map is also manually edited to use
+   these macros.  */
+#define TARGET_O_RDONLY 0x0
+#define TARGET_O_WRONLY 0x1
+#define TARGET_O_RDWR 0x2
+#define TARGET_O_ACCMODE 0x3
+
+
 /* ??? sim_cb_printf should be cb_printf, but until the callback support is
    broken out of the simulator directory, these are here to not require
    sim-utils.h.  */
</diff2>

I am stuck with the following output, saying compilation failed with
the following output
with make done in dir "sim/mips"

</output>
backed/harish/airspot-build/toolchain/bin/mipsel-linux-cc -c
./../common/callback.c -DHAVE_CONFIG_H     -DPROFILE=1
-DWITH_PROFILE=-1   -DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT
-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31
-DWITH_DEFAULT_TARGET_BYTE_ORDER=BIG_ENDIAN
-DWITH_FLOATING_POINT=HARD_FLOATING_POINT
-DWITH_TARGET_FLOATING_POINT_BITSIZE=32 -DWITH_HW=0
-DWITH_HOST_BYTE_ORDER=0 -DDEFAULT_INLINE=0   -DWITH_RESERVED_BITS=1
-DWITH_SMP=0  -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat
-Wparentheses -Wpointer-arith -Wuninitialized
-DMIPS_MACH_DEFAULT=bfd_mach_mips8000   -I. -I. -I../common
-I./../common -I../../include -I./../..//include -I../../bfd
-I./../..//bfd -I../../opcodes -I./../..//opcodes -I../../intl -g -O2
In file included from ./../common/callback.c:50:
./targ-vals.h:1: error: parse error before "Header"
In file included from ./../common/callback.c:50:
./targ-vals.h:2:12: invalid suffix "f" on integer constant
./targ-vals.h:2:18: invalid suffix "c" on integer constant
./targ-vals.h:4: error: missing terminating ' character
make: *** [callback.o] Error 1
harish@super-micro:~/airspot-build/gdb-7.2.new/sim/mips$ cat targ-vals.h
ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           MIPS R3000
  Version:                           0x1
  Entry point address:               0x4005a0
  Start of program headers:          52 (bytes into file)
  Start of section headers:          9692 (bytes into file)
  Flags:                             0x10001007, noreorder, pic, cpic,
o32, mips2
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         6
  Size of section headers:           40 (bytes)
  Number of section headers:         32
  Section header string table index: 29
</output>

Any pointers on moving forward ??, any help would be greatly appreciated.

Regards,
Harish Badrinath

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Cant cross compile gdb 7.2 _or_ 7.0.1 for a mipsel target board from a X86 PC.
  2011-04-28 14:41 Cant cross compile gdb 7.2 _or_ 7.0.1 for a mipsel target board from a X86 PC harish badrinath
@ 2011-04-29 12:10 ` harish badrinath
  0 siblings, 0 replies; 2+ messages in thread
From: harish badrinath @ 2011-04-29 12:10 UTC (permalink / raw)
  To: gdb

[-- Attachment #1: Type: text/plain, Size: 1619 bytes --]

It turned out that  tmp-tvals.h  was not being generated properly. So
I ran gentmap on a proper mips box and then am stuck here

Running igen.

The command in the make file is
        cd ../igen && $(MAKE)
        ../igen/igen \
                $(IGEN_TRACE) \
                -I $(srcdir) \
                -Werror \
                -Wnodiscard \
                -F 32,f -M mipsIV -N 0 \
                -G gen-direct-access \
                -G gen-zero-r0 \
                -B 32 \
                -H 31 \
                -i $(IGEN_INSN) \
                -o $(IGEN_DC) \
                -x \
                -n icache.h    -hc tmp-icache.h \
                -n icache.c    -c  tmp-icache.c \
                -n semantics.h -hs tmp-semantics.h \
                -n semantics.c -s  tmp-semantics.c \
                -n idecode.h   -hd tmp-idecode.h \
                -n idecode.c   -d  tmp-idecode.c \
                -n model.h     -hm tmp-model.h \
                -n model.c     -m  tmp-model.c \
                -n support.h   -hf tmp-support.h \
                -n support.c   -f  tmp-support.c \
                -n itable.h    -ht tmp-itable.h \
                -n itable.c    -t  tmp-itable.c \
                -n engine.h    -he tmp-engine.h \
                -n engine.c    -e  tmp-engine.c \
                -n irun.c      -r  tmp-irun.c
When i run igen with the following command on a mips box, i get the
following error "Must specify a decode table".

I have attached tmp-tmap.c &&  tmp-tvals.h, in case some else wants to
do the same and does not have access to a mipsel box.


Regards,
Harish Badrinath

[-- Attachment #2: tmp-tmap.c --]
[-- Type: text/x-csrc, Size: 7381 bytes --]

/* Target value mapping utilities needed by the simulator and gdb.  */
/* This file is machine generated by gentmap.c.  */

#include <errno.h>
#include <fcntl.h>
#include "ansidecl.h"
#include "gdb/callback.h"
#include "targ-vals.h"

/* syscall mapping table */
CB_TARGET_DEFS_MAP cb_init_syscall_map[] = {
  { -1, -1 }
};

/* errno mapping table */
CB_TARGET_DEFS_MAP cb_init_errno_map[] = {
#ifdef E2BIG
  { E2BIG, TARGET_E2BIG },
#endif
#ifdef EACCES
  { EACCES, TARGET_EACCES },
#endif
#ifdef EADDRINUSE
  { EADDRINUSE, TARGET_EADDRINUSE },
#endif
#ifdef EADDRNOTAVAIL
  { EADDRNOTAVAIL, TARGET_EADDRNOTAVAIL },
#endif
#ifdef EADV
  { EADV, TARGET_EADV },
#endif
#ifdef EAFNOSUPPORT
  { EAFNOSUPPORT, TARGET_EAFNOSUPPORT },
#endif
#ifdef EAGAIN
  { EAGAIN, TARGET_EAGAIN },
#endif
#ifdef EALREADY
  { EALREADY, TARGET_EALREADY },
#endif
#ifdef EBADE
  { EBADE, TARGET_EBADE },
#endif
#ifdef EBADF
  { EBADF, TARGET_EBADF },
#endif
#ifdef EBADFD
  { EBADFD, TARGET_EBADFD },
#endif
#ifdef EBADMSG
  { EBADMSG, TARGET_EBADMSG },
#endif
#ifdef EBADR
  { EBADR, TARGET_EBADR },
#endif
#ifdef EBADRQC
  { EBADRQC, TARGET_EBADRQC },
#endif
#ifdef EBADSLT
  { EBADSLT, TARGET_EBADSLT },
#endif
#ifdef EBFONT
  { EBFONT, TARGET_EBFONT },
#endif
#ifdef EBUSY
  { EBUSY, TARGET_EBUSY },
#endif
#ifdef ECHILD
  { ECHILD, TARGET_ECHILD },
#endif
#ifdef ECHRNG
  { ECHRNG, TARGET_ECHRNG },
#endif
#ifdef ECOMM
  { ECOMM, TARGET_ECOMM },
#endif
#ifdef ECONNABORTED
  { ECONNABORTED, TARGET_ECONNABORTED },
#endif
#ifdef ECONNREFUSED
  { ECONNREFUSED, TARGET_ECONNREFUSED },
#endif
#ifdef ECONNRESET
  { ECONNRESET, TARGET_ECONNRESET },
#endif
#ifdef EDEADLK
  { EDEADLK, TARGET_EDEADLK },
#endif
#ifdef EDEADLOCK
  { EDEADLOCK, TARGET_EDEADLOCK },
#endif
#ifdef EDESTADDRREQ
  { EDESTADDRREQ, TARGET_EDESTADDRREQ },
#endif
#ifdef EDOM
  { EDOM, TARGET_EDOM },
#endif
#ifdef EDOTDOT
  { EDOTDOT, TARGET_EDOTDOT },
#endif
#ifdef EDQUOT
  { EDQUOT, TARGET_EDQUOT },
#endif
#ifdef EEXIST
  { EEXIST, TARGET_EEXIST },
#endif
#ifdef EFAULT
  { EFAULT, TARGET_EFAULT },
#endif
#ifdef EFBIG
  { EFBIG, TARGET_EFBIG },
#endif
#ifdef EHOSTDOWN
  { EHOSTDOWN, TARGET_EHOSTDOWN },
#endif
#ifdef EHOSTUNREACH
  { EHOSTUNREACH, TARGET_EHOSTUNREACH },
#endif
#ifdef EIDRM
  { EIDRM, TARGET_EIDRM },
#endif
#ifdef EINPROGRESS
  { EINPROGRESS, TARGET_EINPROGRESS },
#endif
#ifdef EINTR
  { EINTR, TARGET_EINTR },
#endif
#ifdef EINVAL
  { EINVAL, TARGET_EINVAL },
#endif
#ifdef EIO
  { EIO, TARGET_EIO },
#endif
#ifdef EISCONN
  { EISCONN, TARGET_EISCONN },
#endif
#ifdef EISDIR
  { EISDIR, TARGET_EISDIR },
#endif
#ifdef EL2HLT
  { EL2HLT, TARGET_EL2HLT },
#endif
#ifdef EL2NSYNC
  { EL2NSYNC, TARGET_EL2NSYNC },
#endif
#ifdef EL3HLT
  { EL3HLT, TARGET_EL3HLT },
#endif
#ifdef EL3RST
  { EL3RST, TARGET_EL3RST },
#endif
#ifdef ELBIN
  { ELBIN, TARGET_ELBIN },
#endif
#ifdef ELIBACC
  { ELIBACC, TARGET_ELIBACC },
#endif
#ifdef ELIBBAD
  { ELIBBAD, TARGET_ELIBBAD },
#endif
#ifdef ELIBEXEC
  { ELIBEXEC, TARGET_ELIBEXEC },
#endif
#ifdef ELIBMAX
  { ELIBMAX, TARGET_ELIBMAX },
#endif
#ifdef ELIBSCN
  { ELIBSCN, TARGET_ELIBSCN },
#endif
#ifdef ELNRNG
  { ELNRNG, TARGET_ELNRNG },
#endif
#ifdef ELOOP
  { ELOOP, TARGET_ELOOP },
#endif
#ifdef EMFILE
  { EMFILE, TARGET_EMFILE },
#endif
#ifdef EMLINK
  { EMLINK, TARGET_EMLINK },
#endif
#ifdef EMSGSIZE
  { EMSGSIZE, TARGET_EMSGSIZE },
#endif
#ifdef EMULTIHOP
  { EMULTIHOP, TARGET_EMULTIHOP },
#endif
#ifdef ENAMETOOLONG
  { ENAMETOOLONG, TARGET_ENAMETOOLONG },
#endif
#ifdef ENETDOWN
  { ENETDOWN, TARGET_ENETDOWN },
#endif
#ifdef ENETRESET
  { ENETRESET, TARGET_ENETRESET },
#endif
#ifdef ENETUNREACH
  { ENETUNREACH, TARGET_ENETUNREACH },
#endif
#ifdef ENFILE
  { ENFILE, TARGET_ENFILE },
#endif
#ifdef ENMFILE
  { ENMFILE, TARGET_ENMFILE },
#endif
#ifdef ENOANO
  { ENOANO, TARGET_ENOANO },
#endif
#ifdef ENOBUFS
  { ENOBUFS, TARGET_ENOBUFS },
#endif
#ifdef ENOCSI
  { ENOCSI, TARGET_ENOCSI },
#endif
#ifdef ENODATA
  { ENODATA, TARGET_ENODATA },
#endif
#ifdef ENODEV
  { ENODEV, TARGET_ENODEV },
#endif
#ifdef ENOENT
  { ENOENT, TARGET_ENOENT },
#endif
#ifdef ENOEXEC
  { ENOEXEC, TARGET_ENOEXEC },
#endif
#ifdef ENOLCK
  { ENOLCK, TARGET_ENOLCK },
#endif
#ifdef ENOLINK
  { ENOLINK, TARGET_ENOLINK },
#endif
#ifdef ENOMEM
  { ENOMEM, TARGET_ENOMEM },
#endif
#ifdef ENOMSG
  { ENOMSG, TARGET_ENOMSG },
#endif
#ifdef ENONET
  { ENONET, TARGET_ENONET },
#endif
#ifdef ENOPKG
  { ENOPKG, TARGET_ENOPKG },
#endif
#ifdef ENOPROTOOPT
  { ENOPROTOOPT, TARGET_ENOPROTOOPT },
#endif
#ifdef ENOSPC
  { ENOSPC, TARGET_ENOSPC },
#endif
#ifdef ENOSR
  { ENOSR, TARGET_ENOSR },
#endif
#ifdef ENOSTR
  { ENOSTR, TARGET_ENOSTR },
#endif
#ifdef ENOSYS
  { ENOSYS, TARGET_ENOSYS },
#endif
#ifdef ENOTBLK
  { ENOTBLK, TARGET_ENOTBLK },
#endif
#ifdef ENOTCONN
  { ENOTCONN, TARGET_ENOTCONN },
#endif
#ifdef ENOTDIR
  { ENOTDIR, TARGET_ENOTDIR },
#endif
#ifdef ENOTEMPTY
  { ENOTEMPTY, TARGET_ENOTEMPTY },
#endif
#ifdef ENOTSOCK
  { ENOTSOCK, TARGET_ENOTSOCK },
#endif
#ifdef ENOTSUP
  { ENOTSUP, TARGET_ENOTSUP },
#endif
#ifdef ENOTTY
  { ENOTTY, TARGET_ENOTTY },
#endif
#ifdef ENOTUNIQ
  { ENOTUNIQ, TARGET_ENOTUNIQ },
#endif
#ifdef ENXIO
  { ENXIO, TARGET_ENXIO },
#endif
#ifdef EOPNOTSUPP
  { EOPNOTSUPP, TARGET_EOPNOTSUPP },
#endif
#ifdef EPERM
  { EPERM, TARGET_EPERM },
#endif
#ifdef EPFNOSUPPORT
  { EPFNOSUPPORT, TARGET_EPFNOSUPPORT },
#endif
#ifdef EPIPE
  { EPIPE, TARGET_EPIPE },
#endif
#ifdef EPROCLIM
  { EPROCLIM, TARGET_EPROCLIM },
#endif
#ifdef EPROTO
  { EPROTO, TARGET_EPROTO },
#endif
#ifdef EPROTONOSUPPORT
  { EPROTONOSUPPORT, TARGET_EPROTONOSUPPORT },
#endif
#ifdef EPROTOTYPE
  { EPROTOTYPE, TARGET_EPROTOTYPE },
#endif
#ifdef ERANGE
  { ERANGE, TARGET_ERANGE },
#endif
#ifdef EREMCHG
  { EREMCHG, TARGET_EREMCHG },
#endif
#ifdef EREMOTE
  { EREMOTE, TARGET_EREMOTE },
#endif
#ifdef EROFS
  { EROFS, TARGET_EROFS },
#endif
#ifdef ESHUTDOWN
  { ESHUTDOWN, TARGET_ESHUTDOWN },
#endif
#ifdef ESOCKTNOSUPPORT
  { ESOCKTNOSUPPORT, TARGET_ESOCKTNOSUPPORT },
#endif
#ifdef ESPIPE
  { ESPIPE, TARGET_ESPIPE },
#endif
#ifdef ESRCH
  { ESRCH, TARGET_ESRCH },
#endif
#ifdef ESRMNT
  { ESRMNT, TARGET_ESRMNT },
#endif
#ifdef ESTALE
  { ESTALE, TARGET_ESTALE },
#endif
#ifdef ETIME
  { ETIME, TARGET_ETIME },
#endif
#ifdef ETIMEDOUT
  { ETIMEDOUT, TARGET_ETIMEDOUT },
#endif
#ifdef ETOOMANYREFS
  { ETOOMANYREFS, TARGET_ETOOMANYREFS },
#endif
#ifdef ETXTBSY
  { ETXTBSY, TARGET_ETXTBSY },
#endif
#ifdef EUNATCH
  { EUNATCH, TARGET_EUNATCH },
#endif
#ifdef EUSERS
  { EUSERS, TARGET_EUSERS },
#endif
#ifdef EWOULDBLOCK
  { EWOULDBLOCK, TARGET_EWOULDBLOCK },
#endif
#ifdef EXDEV
  { EXDEV, TARGET_EXDEV },
#endif
#ifdef EXFULL
  { EXFULL, TARGET_EXFULL },
#endif
  { 0, 0 }
};

/* open flags mapping table */
CB_TARGET_DEFS_MAP cb_init_open_map[] = {
#ifdef O_ACCMODE
  { O_ACCMODE, TARGET_O_ACCMODE },
#endif
#ifdef O_APPEND
  { O_APPEND, TARGET_O_APPEND },
#endif
#ifdef O_CREAT
  { O_CREAT, TARGET_O_CREAT },
#endif
#ifdef O_EXCL
  { O_EXCL, TARGET_O_EXCL },
#endif
#ifdef O_NOCTTY
  { O_NOCTTY, TARGET_O_NOCTTY },
#endif
#ifdef O_NONBLOCK
  { O_NONBLOCK, TARGET_O_NONBLOCK },
#endif
#ifdef O_RDONLY
  { O_RDONLY, TARGET_O_RDONLY },
#endif
#ifdef O_RDWR
  { O_RDWR, TARGET_O_RDWR },
#endif
#ifdef O_SYNC
  { O_SYNC, TARGET_O_SYNC },
#endif
#ifdef O_TRUNC
  { O_TRUNC, TARGET_O_TRUNC },
#endif
#ifdef O_WRONLY
  { O_WRONLY, TARGET_O_WRONLY },
#endif
  { -1, -1 }
};


[-- Attachment #3: tmp-tvals.h --]
[-- Type: text/x-chdr, Size: 3656 bytes --]

/* Target header values needed by the simulator and gdb.  */
/* This file is machine generated by gentmap.c.  */

#ifndef TARG_VALS_H
#define TARG_VALS_H

/* syscall values */

/* errno values */
#define TARGET_E2BIG 7
#define TARGET_EACCES 13
#define TARGET_EADDRINUSE 112
#define TARGET_EADDRNOTAVAIL 125
#define TARGET_EADV 68
#define TARGET_EAFNOSUPPORT 106
#define TARGET_EAGAIN 11
#define TARGET_EALREADY 120
#define TARGET_EBADE 50
#define TARGET_EBADF 9
#define TARGET_EBADFD 81
#define TARGET_EBADMSG 77
#define TARGET_EBADR 51
#define TARGET_EBADRQC 54
#define TARGET_EBADSLT 55
#define TARGET_EBFONT 57
#define TARGET_EBUSY 16
#define TARGET_ECHILD 10
#define TARGET_ECHRNG 37
#define TARGET_ECOMM 70
#define TARGET_ECONNABORTED 113
#define TARGET_ECONNREFUSED 111
#define TARGET_ECONNRESET 104
#define TARGET_EDEADLK 45
#define TARGET_EDEADLOCK 56
#define TARGET_EDESTADDRREQ 121
#define TARGET_EDOM 33
#define TARGET_EDOTDOT 76
#define TARGET_EDQUOT 132
#define TARGET_EEXIST 17
#define TARGET_EFAULT 14
#define TARGET_EFBIG 27
#define TARGET_EHOSTDOWN 117
#define TARGET_EHOSTUNREACH 118
#define TARGET_EIDRM 36
#define TARGET_EINPROGRESS 119
#define TARGET_EINTR 4
#define TARGET_EINVAL 22
#define TARGET_EIO 5
#define TARGET_EISCONN 127
#define TARGET_EISDIR 21
#define TARGET_EL2HLT 44
#define TARGET_EL2NSYNC 38
#define TARGET_EL3HLT 39
#define TARGET_EL3RST 40
#define TARGET_ELBIN 75
#define TARGET_ELIBACC 83
#define TARGET_ELIBBAD 84
#define TARGET_ELIBEXEC 87
#define TARGET_ELIBMAX 86
#define TARGET_ELIBSCN 85
#define TARGET_ELNRNG 41
#define TARGET_ELOOP 92
#define TARGET_EMFILE 24
#define TARGET_EMLINK 31
#define TARGET_EMSGSIZE 122
#define TARGET_EMULTIHOP 74
#define TARGET_ENAMETOOLONG 91
#define TARGET_ENETDOWN 115
#define TARGET_ENETRESET 126
#define TARGET_ENETUNREACH 114
#define TARGET_ENFILE 23
#define TARGET_ENMFILE 89
#define TARGET_ENOANO 53
#define TARGET_ENOBUFS 105
#define TARGET_ENOCSI 43
#define TARGET_ENODATA 61
#define TARGET_ENODEV 19
#define TARGET_ENOENT 2
#define TARGET_ENOEXEC 8
#define TARGET_ENOLCK 46
#define TARGET_ENOLINK 67
#define TARGET_ENOMEM 12
#define TARGET_ENOMSG 35
#define TARGET_ENONET 64
#define TARGET_ENOPKG 65
#define TARGET_ENOPROTOOPT 109
#define TARGET_ENOSPC 28
#define TARGET_ENOSR 63
#define TARGET_ENOSTR 60
#define TARGET_ENOSYS 88
#define TARGET_ENOTBLK 15
#define TARGET_ENOTCONN 128
#define TARGET_ENOTDIR 20
#define TARGET_ENOTEMPTY 90
#define TARGET_ENOTSOCK 108
#define TARGET_ENOTSUP 134
#define TARGET_ENOTTY 25
#define TARGET_ENOTUNIQ 80
#define TARGET_ENXIO 6
#define TARGET_EOPNOTSUPP 95
#define TARGET_EPERM 1
#define TARGET_EPFNOSUPPORT 96
#define TARGET_EPIPE 32
#define TARGET_EPROCLIM 130
#define TARGET_EPROTO 71
#define TARGET_EPROTONOSUPPORT 123
#define TARGET_EPROTOTYPE 107
#define TARGET_ERANGE 34
#define TARGET_EREMCHG 82
#define TARGET_EREMOTE 66
#define TARGET_EROFS 30
#define TARGET_ESHUTDOWN 110
#define TARGET_ESOCKTNOSUPPORT 124
#define TARGET_ESPIPE 29
#define TARGET_ESRCH 3
#define TARGET_ESRMNT 69
#define TARGET_ESTALE 133
#define TARGET_ETIME 62
#define TARGET_ETIMEDOUT 116
#define TARGET_ETOOMANYREFS 129
#define TARGET_ETXTBSY 26
#define TARGET_EUNATCH 42
#define TARGET_EUSERS 131
#define TARGET_EWOULDBLOCK 11
#define TARGET_EXDEV 18
#define TARGET_EXFULL 52

/* open flag values */
#define TARGET_O_ACCMODE 0x3
#define TARGET_O_APPEND 0x8
#define TARGET_O_CREAT 0x200
#define TARGET_O_EXCL 0x800
#define TARGET_O_NOCTTY 0x8000
#define TARGET_O_NONBLOCK 0x4000
#define TARGET_O_RDONLY 0x0
#define TARGET_O_RDWR 0x2
#define TARGET_O_SYNC 0x2000
#define TARGET_O_TRUNC 0x400
#define TARGET_O_WRONLY 0x1

#endif /* TARG_VALS_H */


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-29 12:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-28 14:41 Cant cross compile gdb 7.2 _or_ 7.0.1 for a mipsel target board from a X86 PC harish badrinath
2011-04-29 12:10 ` harish badrinath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).