This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On Tue, Jan 20, 2009 at 12:52 PM, Yann E. MORIN <yann.morin.1998@anciens.enib.fr> wrote: > Chuck, > All, > > On Tuesday 20 January 2009 00:07:45 Chuck Tuffli wrote: >> > You need the "ports" addon. Available in the "C library" sub-menu. >> OK, that fixed the first problem (thanks!), but now the build bombs out with >> [ERROR] ../ports/sysdeps/arm/eabi/setfpucw.c:26:26: error: >> asm/procinfo.h: No such file or directory >> [ALL ] ../ports/sysdeps/arm/eabi/setfpucw.c: In function '__setfpucw': > > What kernel headers version are you using? 2.6.26.5 >> I found an old (2006) post from Khem Raj that looks like a patch for >> this problem. > > Pointer? http://sources.redhat.com/ml/crossgcc/2006-12/msg00076.html Attached is the patch that fixed this for me (put 100-ARM-procinfo.patch in patches/glibc/ports-2.5/).
diff -durN glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/fclrexcpt.c glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/fclrexcpt.c
--- glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/fclrexcpt.c 2009-01-19 15:27:23.828122000 -0800
+++ glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/fclrexcpt.c 2009-01-19 15:33:42.227525000 -0800
@@ -23,12 +23,12 @@
#include <unistd.h>
#include <ldsodefs.h>
#include <dl-procinfo.h>
-#include <asm/procinfo.h>
+#include <sysdep.h>
int
__feclearexcept (int excepts)
{
- if (GLRO (dl_hwcap) & HWCAP_VFP)
+ if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
{
unsigned long int temp;
diff -durN glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/fedisblxcpt.c glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/fedisblxcpt.c
--- glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/fedisblxcpt.c 2009-01-19 15:27:23.835122000 -0800
+++ glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/fedisblxcpt.c 2009-01-19 15:33:51.449685000 -0800
@@ -24,12 +24,12 @@
#include <unistd.h>
#include <ldsodefs.h>
#include <dl-procinfo.h>
-#include <asm/procinfo.h>
+#include <sysdep.h>
int
fedisableexcept (int excepts)
{
- if (GLRO (dl_hwcap) & HWCAP_VFP)
+ if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
{
unsigned long int new_exc, old_exc;
diff -durN glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/feenablxcpt.c glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/feenablxcpt.c
--- glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/feenablxcpt.c 2009-01-19 15:27:23.840122000 -0800
+++ glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/feenablxcpt.c 2009-01-19 15:34:07.521974000 -0800
@@ -24,12 +24,12 @@
#include <unistd.h>
#include <ldsodefs.h>
#include <dl-procinfo.h>
-#include <asm/procinfo.h>
+#include <sysdep.h>
int
feenableexcept (int excepts)
{
- if (GLRO (dl_hwcap) & HWCAP_VFP)
+ if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
{
unsigned long int new_exc, old_exc;
diff -durN glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/fegetenv.c glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/fegetenv.c
--- glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/fegetenv.c 2009-01-19 15:27:23.849122000 -0800
+++ glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/fegetenv.c 2009-01-19 15:34:17.981171000 -0800
@@ -23,12 +23,12 @@
#include <unistd.h>
#include <ldsodefs.h>
#include <dl-procinfo.h>
-#include <asm/procinfo.h>
+#include <sysdep.h>
int
__fegetenv (fenv_t *envp)
{
- if (GLRO (dl_hwcap) & HWCAP_VFP)
+ if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
{
unsigned long int temp;
_FPU_GETCW (temp);
diff -durN glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/fegetexcept.c glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/fegetexcept.c
--- glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/fegetexcept.c 2009-01-19 15:27:23.852122000 -0800
+++ glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/fegetexcept.c 2009-01-19 15:34:29.435370000 -0800
@@ -24,12 +24,12 @@
#include <unistd.h>
#include <ldsodefs.h>
#include <dl-procinfo.h>
-#include <asm/procinfo.h>
+#include <sysdep.h>
int
fegetexcept (void)
{
- if (GLRO (dl_hwcap) & HWCAP_VFP)
+ if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
{
unsigned long temp;
diff -durN glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/fegetround.c glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/fegetround.c
--- glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/fegetround.c 2009-01-19 15:27:23.862120000 -0800
+++ glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/fegetround.c 2009-01-19 15:34:55.608838000 -0800
@@ -23,12 +23,12 @@
#include <unistd.h>
#include <ldsodefs.h>
#include <dl-procinfo.h>
-#include <asm/procinfo.h>
+#include <sysdep.h>
int
fegetround (void)
{
- if (GLRO (dl_hwcap) & HWCAP_VFP)
+ if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
{
unsigned int temp;
diff -durN glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/feholdexcpt.c glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/feholdexcpt.c
--- glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/feholdexcpt.c 2009-01-19 15:27:23.874120000 -0800
+++ glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/feholdexcpt.c 2009-01-19 15:35:07.921062000 -0800
@@ -23,12 +23,12 @@
#include <unistd.h>
#include <ldsodefs.h>
#include <dl-procinfo.h>
-#include <asm/procinfo.h>
+#include <sysdep.h>
int
feholdexcept (fenv_t *envp)
{
- if (GLRO (dl_hwcap) & HWCAP_VFP)
+ if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
{
unsigned long int temp;
diff -durN glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/fesetenv.c glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/fesetenv.c
--- glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/fesetenv.c 2009-01-19 15:27:23.880120000 -0800
+++ glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/fesetenv.c 2009-01-19 15:35:15.143222000 -0800
@@ -23,12 +23,12 @@
#include <unistd.h>
#include <ldsodefs.h>
#include <dl-procinfo.h>
-#include <asm/procinfo.h>
+#include <sysdep.h>
int
__fesetenv (const fenv_t *envp)
{
- if (GLRO (dl_hwcap) & HWCAP_VFP)
+ if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
{
unsigned int temp;
diff -durN glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/fesetround.c glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/fesetround.c
--- glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/fesetround.c 2009-01-19 15:27:23.903120000 -0800
+++ glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/fesetround.c 2009-01-19 15:35:23.009404000 -0800
@@ -23,12 +23,12 @@
#include <unistd.h>
#include <ldsodefs.h>
#include <dl-procinfo.h>
-#include <asm/procinfo.h>
+#include <sysdep.h>
int
fesetround (int round)
{
- if (GLRO (dl_hwcap) & HWCAP_VFP)
+ if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
{
fpu_control_t temp;
diff -durN glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/fraiseexcpt.c glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/fraiseexcpt.c
--- glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/fraiseexcpt.c 2009-01-19 15:27:23.939121000 -0800
+++ glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/fraiseexcpt.c 2009-01-19 15:35:31.764613000 -0800
@@ -24,12 +24,12 @@
#include <unistd.h>
#include <ldsodefs.h>
#include <dl-procinfo.h>
-#include <asm/procinfo.h>
+#include <sysdep.h>
int
feraiseexcept (int excepts)
{
- if (GLRO (dl_hwcap) & HWCAP_VFP)
+ if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
{
int fpscr;
const float fp_zero = 0.0, fp_one = 1.0, fp_max = FLT_MAX,
diff -durN glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/fsetexcptflg.c glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/fsetexcptflg.c
--- glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/fsetexcptflg.c 2009-01-19 15:27:23.942120000 -0800
+++ glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/fsetexcptflg.c 2009-01-19 15:35:47.737959000 -0800
@@ -24,12 +24,12 @@
#include <unistd.h>
#include <ldsodefs.h>
#include <dl-procinfo.h>
-#include <asm/procinfo.h>
+#include <sysdep.h>
int
__fesetexceptflag (const fexcept_t *flagp, int excepts)
{
- if (GLRO (dl_hwcap) & HWCAP_VFP)
+ if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
{
fexcept_t temp;
diff -durN glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/ftestexcept.c glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/ftestexcept.c
--- glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/ftestexcept.c 2009-01-19 15:27:23.944122000 -0800
+++ glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/ftestexcept.c 2009-01-19 15:35:55.258140000 -0800
@@ -23,12 +23,12 @@
#include <unistd.h>
#include <ldsodefs.h>
#include <dl-procinfo.h>
-#include <asm/procinfo.h>
+#include <sysdep.h>
int
fetestexcept (int excepts)
{
- if (GLRO (dl_hwcap) & HWCAP_VFP)
+ if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
{
fexcept_t temp;
diff -durN glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/setfpucw.c glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/setfpucw.c
--- glibc-2.5.orig/glibc-ports-2.5/sysdeps/arm/eabi/setfpucw.c 2009-01-19 15:27:23.950120000 -0800
+++ glibc-2.5/glibc-ports-2.5/sysdeps/arm/eabi/setfpucw.c 2009-01-19 15:36:07.541416000 -0800
@@ -23,12 +23,12 @@
#include <unistd.h>
#include <ldsodefs.h>
#include <dl-procinfo.h>
-#include <asm/procinfo.h>
+#include <sysdep.h>
void
__setfpucw (fpu_control_t set)
{
- if (GLRO (dl_hwcap) & HWCAP_VFP)
+ if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
{
fpu_control_t cw;
diff -durN glibc-2.5.orig/glibc-ports-2.5/sysdeps/unix/sysv/linux/arm/ioperm.c glibc-2.5/glibc-ports-2.5/sysdeps/unix/sysv/linux/arm/ioperm.c
--- glibc-2.5.orig/glibc-ports-2.5/sysdeps/unix/sysv/linux/arm/ioperm.c 2009-01-19 15:27:32.312284000 -0800
+++ glibc-2.5/glibc-ports-2.5/sysdeps/unix/sysv/linux/arm/ioperm.c 2009-01-23 12:14:49.948038000 -0800
@@ -45,7 +45,6 @@
#include <sys/mman.h>
#include <linux/version.h>
-#include <asm/page.h>
#include <sys/sysctl.h>
#define PATH_ARM_SYSTYPE "/etc/arm_systype"
-- For unsubscribe information see http://sourceware.org/lists.html#faq
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |