Package: dietlibc-dev
Version: 0.29-2
Severity: important
File: /usr/bin/diet

Trying to compile a lean pivot_root:

BTW I had to include <bits/syscall.h> into diet/sys/syscall.h to get the
syscall number defined. This is a bug too IMHO (wheter of libc6 or dietlibc I
dont know ;)).

[EMAIL PROTECTED]:~/tmp/util-linux-2.12p/mount$ diet -v gcc -static -pipe -Os 
-mcpu=i486 -fomit-frame-pointer -I../lib -Wall -Wmissing-prototypes 
-Wstrict-prototypes    -D_FILE_OFFSET_BITS=64 -DSBINDIR=\"/sbin\" 
-DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\" -DVARPATH=\"/var\" 
-DLOCALEDIR=\"/usr/share/locale\" -O2  -s  pivot_root.c   -o pivot_root
gcc -nostdlib -static -L/usr/lib/diet/lib-i386 /usr/lib/diet/lib-i386/start.o 
-static -pipe -Os -mcpu=i486 -fomit-frame-pointer -I../lib -Wall 
-Wmissing-prototypes -Wstrict-prototypes -D_FILE_OFFSET_BITS=64 
-DSBINDIR="/sbin" -DUSRSBINDIR="/usr/sbin" -DLOGDIR="/var/log" -DVARPATH="/var" 
-DLOCALEDIR="/usr/share/locale" -O2 -s pivot_root.c -o pivot_root -isystem 
/usr/lib/diet/include -D__dietlibc__ /usr/lib/diet/lib-i386/libc.a -lgcc 
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
/usr/lib/diet/lib-i386/libc.a(vfprintf.o): In function `vfprintf':
vfprintf.c:(.text+0x36): warning: warning: the printf functions add several 
kilobytes of bloat.
/usr/lib/diet/lib-i386/libc.a(stderr.o): In function `__fflush_stderr':
stderr.c:(.text+0x7): warning: warning: your code uses stdio (7+k bloat).
/tmp/ccKW0io1.o: In function `main':
pivot_root.c:(.text+0x4f): undefined reference to `syscall'
collect2: ld returned 1 exit status

Now with libcompat.a added to the command line generated by diet:

[EMAIL PROTECTED]:~/tmp/util-linux-2.12p/mount$ gcc -nostdlib -static 
-L/usr/lib/diet/lib-i386 /usr/lib/diet/lib-i386/start.o -static -pipe -Os 
-mcpu=i486 -fomit-frame-pointer -I../lib -Wall -Wmissing-prototypes 
-Wstrict-prototypes -D_FILE_OFFSET_BITS=64 -DSBINDIR="/sbin" 
-DUSRSBINDIR="/usr/sbin" -DLOGDIR="/var/log" -DVARPATH="/var" 
-DLOCALEDIR="/usr/share/locale" -O2 -s pivot_root.c -o pivot_root -isystem 
/usr/lib/diet/include -D__dietlibc__ /usr/lib/diet/lib-i386/libc.a -lgcc 
/usr/lib/diet/lib-i386/libcompat.a 
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
/usr/lib/diet/lib-i386/libc.a(vfprintf.o): In function `vfprintf':
vfprintf.c:(.text+0x36): warning: warning: the printf functions add several 
kilobytes of bloat.
/usr/lib/diet/lib-i386/libc.a(stderr.o): In function `__fflush_stderr':
stderr.c:(.text+0x7): warning: warning: your code uses stdio (7+k bloat).
[EMAIL PROTECTED]:~/tmp/util-linux-2.12p/mount$

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.8-2-686
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8)

dietlibc-dev depends on no packages.

Versions of packages dietlibc-dev recommends:
ii  dietlibc                      0.29-2     diet libc shared libraries - a lib

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to