This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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 build/17007] Check Scanf15 bits/syscall.h No such file


https://sourceware.org/bugzilla/show_bug.cgi?id=17007

--- Comment #4 from naroyce at hotmail dot com ---
(In reply to Andreas Schwab from comment #3)
Hmmm, that "_LIBC" definition seems to contradict with "stubs-hard.h"
$ ../glibc/configure --prefix="/usr" --disable-profile --enable-kernel=3.8.13
--libexecdir="${newPartition_ROOT}/usr/lib/glibc" --enable-obsolete-rpc
--with-headers="${newPartition_ROOT}/usr/include" CFLAGS="-O3 -pipe -mfpu=neon
-mtune=cortex-a9 -march=armv7-a -mfloat-abi=hard" CXXFLAGS="-O3 -pipe
-mfpu=neon -mtune=cortex-a9 -march=armv7-a -mfloat-abi=hard"
$ make
*****
In file included from /armv7l-unknown-linux-gnueabihf/include/gnu/stubs.h:10:0,
                 from /armv7l-unknown-linux-gnueabihf/include/features.h:389,
                 from ./sysdeps/arm/sysdep.h:20,
                 from ./sysdeps/unix/arm/sysdep.h:19,
                 from sysdeps/unix/sysv/linux/arm/sysdep.h:24,
                 from <stdin>:1:
/armv7l-unknown-linux-gnueabihf/include/gnu/stubs-hard.h:7:3: error: #error
Applications may not define the macro _LIBC
  #error Applications may not define the macro _LIBC
   ^
*****
config.log
 #define HAVE_ARM_PCS_VFP 1

stubs.h
 #if defined __ARM_PCS_VFP
 # include <gnu/stubs-hard.h>
 #endif

stubs-hard.h
 #ifdef _LIBC
  #error Applications may not define the macro _LIBC
 #endif

However, if I add 'CPPFLAGS="-I${newPartition_ROOT}/usr/include"' (which
contains the linux headers) to "configure", the _LIBC error does not occur, but
I'd still run into the scanf15 error during check unless I change that
Makefile.

If I may ask, what could I be doing wrong or what am I missing?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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