[uClibc] Getting an ERROR from getcwd() when MAKING uClibc.

kamal kumar kamal at brothom.nl
Tue Oct 28 16:44:35 UTC 2003


Hello.

After configuring uClibc with menuconfig i do MAKE CLEAN.
And then i type MAKE in the command prompt.
But when making uClibc i get an strange error.
The error looks like:

+ TOPDIR=.
+ CC=m68k-elf-gcc
+ /bin/sh extra/scripts/gen_bits_syscall_h.sh
+ cmp include/bits/sysnum.h include/bits/sysnum.h.new
+ mv -f include/bits/sysnum.h.new include/bits/sysnum.h

make[3]: Leaving directory `/root/uClibc/libc/stdlib/malloc'
make[2]: Leaving directory `/root/uClibc/libc/stdlib'
make -C  sysdeps
make[2]: Entering directory `/root/uClibc/libc/sysdeps'
make -C  linux
make[3]: Entering directory `/root/uClibc/libc/sysdeps/linux'
make -C  common
make[4]: Entering directory `/root/uClibc/libc/sysdeps/linux/common'
m68k-elf-gcc  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing  
-Os  -Wa,--bitwise-or -I/root/uClinux-2.4.x//include   -fno-builtin -nostdinc 
-D_LIBC -I../../../../include -I. 
-I/usr/local/lib/gcc-lib/m68k-elf/2.95.3/include -DNDEBUG -msoft-float -c 
waitpid.c -o waitpid.o
m68k-elf-strip -x -R .note -R .comment waitpid.o
m68k-elf-gcc  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing  
-Os  -Wa,--bitwise-or -I/root/uClinux-2.4.x//include   -fno-builtin -nostdinc 
-D_LIBC -I../../../../include -I. 
-I/usr/local/lib/gcc-lib/m68k-elf/2.95.3/include -DNDEBUG -msoft-float -c 
getdnnm.c -o getdnnm.o
m68k-elf-strip -x -R .note -R .comment getdnnm.o
m68k-elf-gcc  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing  
-Os  -Wa,--bitwise-or -I/root/uClinux-2.4.x//include   -fno-builtin -nostdinc 
-D_LIBC -I../../../../include -I. 
-I/usr/local/lib/gcc-lib/m68k-elf/2.95.3/include -DNDEBUG -msoft-float -c 
gethstnm.c -o gethstnm.o
m68k-elf-strip -x -R .note -R .comment gethstnm.o
m68k-elf-gcc  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing  
-Os  -Wa,--bitwise-or -I/root/uClinux-2.4.x//include   -fno-builtin -nostdinc 
-D_LIBC -I../../../../include -I. 
-I/usr/local/lib/gcc-lib/m68k-elf/2.95.3/include -DNDEBUG -msoft-float -c 
getcwd.c -o getcwd.o
getcwd.c: In function `getcwd':
getcwd.c:14: inconsistent operand constraints in an `asm'
make[4]: *** [getcwd.o] Error 1
make[4]: Leaving directory `/root/uClibc/libc/sysdeps/linux/common'
make[3]: *** [_dir_common] Error 2
make[3]: Leaving directory `/root/uClibc/libc/sysdeps/linux'
make[2]: *** [_dir_linux] Error 2
make[2]: Leaving directory `/root/uClibc/libc/sysdeps'
make[1]: *** [_dir_sysdeps] Error 2
make[1]: Leaving directory `/root/uClibc/libc'
make: *** [_dir_libc] Error 2


Can someone help me with this error?

I use m68k-elf-tools.
And my target system is Motorola Coldfire 5272 C3.
And i configured uClibc as follow:




* uClibc Configuration
*
*
* Target Architecture Features and Options
*
Enable floating point number support (UCLIBC_HAS_FLOATS) [Y/n/?] y
  Target CPU has a floating point unit (FPU) (HAS_FPU) [N/y/?] n
  Enable full C99 math library support (DO_C99_MATH) [N/y/?] n
Compiler Warnings (WARNINGS) [-Wall] -Wall
Linux kernel header location (KERNEL_SOURCE) [/root/uClinux-2.4.x/] 
/root/uClinux-2.4.x/
*
* General Library Settings
*
Generate Position Independent Code (PIC) (DOPIC) [N/y/?] n
Support global constructors and destructors (UCLIBC_CTOR_DTOR) [N/y/?] n
Support gprof profiling (UCLIBC_PROFILING) [N/y/?] n
POSIX Threading Support (UCLIBC_HAS_THREADS) [N/y/?] n
Large File Support (UCLIBC_HAS_LFS) [N/y/?] n
Malloc Implementation
> 1. malloc (MALLOC)
choice[1]: 1
Malloc returns live pointer for malloc(0) (MALLOC_GLIBC_COMPAT) [Y/n/?] y
Dynamic atexit() Support (UCLIBC_DYNAMIC_ATEXIT) [N/y/?] n
Shadow Password Support (HAS_SHADOW) [N/y/?] n
Support only Unix 98 PTYs (UNIX98PTY_ONLY) [Y/n/?] y
Assume that /dev/pts is a devpts or devfs file system (ASSUME_DEVPTS) [N/y/?] 
n
Support 'struct tm' timezone extension fields (UCLIBC_HAS_TM_EXTENSIONS) 
[Y/n/?] y
Enable caching of the last valid timezone 'TZ' string (UCLIBC_HAS_TZ_CACHING) 
[Y/n/?] y
Enable '/etc/TZ' file support to set a default timezone (uClibc-specific) 
(UCLIBC_HAS_TZ_FILE) [Y/n/?] y
  Repeatedly read the '/etc/TZ' file (UCLIBC_HAS_TZ_FILE_READ_MANY) [Y/n/?] y
  Path to the 'TZ' file for setting the global timezone (UCLIBC_TZ_FILE_PATH) 
[/etc/TZ] /etc/TZ
*
* Networking Support
*
IP version 6 Support (UCLIBC_HAS_IPV6) [N/y/?] n
Remote Procedure Call (RPC) support (UCLIBC_HAS_RPC) [Y/n/?] y
  Full RPC support (UCLIBC_HAS_FULL_RPC) [N/y/?] n
*
* String and Stdio Support
*
Use Table Versions Of 'ctype.h' Functions. (UCLIBC_HAS_CTYPE_TABLES) [Y/n/?] y
  Support Signed Characters In 'ctype.h' Functions. (UCLIBC_HAS_CTYPE_SIGNED) 
[Y/n/?] y
  ctype argument checking
  > 1. Do not check -- unsafe (UCLIBC_HAS_CTYPE_UNSAFE)
    2. Detect and handle appropriately (UCLIBC_HAS_CTYPE_CHECKED)
    3. Issue a diagnostic and abort() (UCLIBC_HAS_CTYPE_ENFORCED)
  choice[1-3?]: 1
Wide Character Support (UCLIBC_HAS_WCHAR) [N/y/?] n
Locale Support (UCLIBC_HAS_LOCALE) [N/y/?] n
Support hexadecimal float notation (UCLIBC_HAS_HEXADECIMAL_FLOATS) [N/y/?] n
Support glibc's register_printf_function() (glibc-compat) 
(UCLIBC_HAS_GLIBC_CUSTOM_PRINTF) [N/y/?] n
Use the old vfprintf implementation (USE_OLD_VFPRINTF) [N/y/?] n
Maximum number of positional args.  Either 0 or >= 9. 
(UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS) [9] 9
Support glibc's 'a' flag for scanf string conversions 
(UCLIBC_HAS_SCANF_GLIBC_A_FLAG) [N/y/?] n
Stdio buffer size
  1. none (WARNING - BUFSIZ will be 256 in stdio.h) 
(UCLIBC_HAS_STDIO_BUFSIZ_NONE)
> 2. 256 (minimum ANSI/ISO C99 value) (UCLIBC_HAS_STDIO_BUFSIZ_256)
  3. 512 (UCLIBC_HAS_STDIO_BUFSIZ_512)
  4. 1024 (UCLIBC_HAS_STDIO_BUFSIZ_1024)
  5. 2048 (UCLIBC_HAS_STDIO_BUFSIZ_2048)
  6. 4096 (UCLIBC_HAS_STDIO_BUFSIZ_4096)
  7. 8192 (UCLIBC_HAS_STDIO_BUFSIZ_8192)
choice[1-7?]: 2
Stdio builtin buffer size (uClibc-specific)
> 1. None (UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE)
  2. 4 (UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4)
  3. 8 (UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8)
choice[1-3?]: 1
Provide a macro version of getc() (UCLIBC_HAS_STDIO_GETC_MACRO) [Y/n/?] y
Provide a macro version of putc() (UCLIBC_HAS_STDIO_PUTC_MACRO) [Y/n/?] y
Support auto-r/w transition (UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION) [Y/n/?] y
Support an fopen() 'x' flag for exclusive mode (glibc-compat) 
(UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE) [N/y/?] n
Support fmemopen(), open_memstream(), and fopencookie() (glibc-compat) 
(UCLIBC_HAS_GLIBC_CUSTOM_STREAMS) [N/y/?] n
Support the '%m' specifier in printf format strings (glibc-compat) 
(UCLIBC_HAS_PRINTF_M_SPEC) [N/y/?] n
Include the errno message text in the library (UCLIBC_HAS_ERRNO_MESSAGES) 
[Y/n/?] y
  Support sys_errlist[] (obsolete-compat) (UCLIBC_HAS_SYS_ERRLIST) [N/y/?] n
Include the signum message text in the library (UCLIBC_HAS_SIGNUM_MESSAGES) 
[Y/n/?] y
  Support sys_siglist[] (bsd-compat) (UCLIBC_HAS_SYS_SIGLIST) [N/y/?] n
Support gnu getopt (UCLIBC_HAS_GNU_GETOPT) [Y/n/?] y
*
* Big and Tall
*
Regular Expression Support (UCLIBC_HAS_REGEX) [Y/n/?] y
Support the wordexp() interface (UCLIBC_HAS_WORDEXP) [N/y/?] n
Support the ftw() and nftw() interfaces (UCLIBC_HAS_FTW) [N/y/?] n
Support the glob() interface (UCLIBC_HAS_GLOB) [Y/n/?] y
*
* Library Installation Options
*
uClibc development environment directory (DEVEL_PREFIX) 
[/usr/$(TARGET_ARCH)-linux-uclibc] /usr/$(TARGET_ARCH)-linux-uclibc
uClibc development environment system directory (SYSTEM_DEVEL_PREFIX) 
[$(DEVEL_PREFIX)] $(DEVEL_PREFIX)
uClibc development environment tool directory (DEVEL_TOOL_PREFIX) 
[$(DEVEL_PREFIX)/usr] $(DEVEL_PREFIX)/usr
*
* uClibc development/debugging options
*
Build uClibc with debugging symbols (DODEBUG) [N/y/?] n
Build uClibc with run-time assertion testing (DOASSERTS) [N/y/?] n
Build malloc with debugging support (UCLIBC_MALLOC_DEBUGGING) [N/y/?] n
Manuel's hidden warnings (UCLIBC_MJN3_ONLY) [N/y/?] n


Using kernel headers from 2.4.22-uc0 for architecture 'm68k'
        provided in directory /root/uClinux-2.4.x/



More information about the uClibc mailing list