Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69265 - dietlibc-0.26, used by genkernel 3.1.0a, can't build on a ppc system
Summary: dietlibc-0.26, used by genkernel 3.1.0a, can't build on a ppc system
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC Linux
: High major (vote)
Assignee: Gentoo Genkernel Maintainers
URL: http://www.fefe.de/dietlibc/changes-0...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-28 07:08 UTC by Olivier Castan
Modified: 2005-04-02 06:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dietlibc-0.26-ppc.patch, patch to build dietlibc-0.26 on ppc (dietlibc-0.26-ppc.patch,1.76 KB, patch)
2004-10-28 08:13 UTC, Olivier Castan
Details | Diff
Patch for /usr/share/genkernel/gen_compile.sh (genkernel-3.1.0a-gen_compile.patch,658 bytes, patch)
2004-10-28 08:15 UTC, Olivier Castan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Castan 2004-10-28 07:08:44 UTC
This is due to a redefinition of the same structure (pt_regs) between 2 include files :
include/asm/sigcontext.h
and include/sys/ptrace.h


Reproducible: Always
Steps to Reproduce:
#genkernel all
[...]
gcc -I. -isystem include -fno-stack-protector -D__dietlibc__ -c lib/__ptrace.c -o bin-ppc/__ptrace.o
In file included from include/asm/sigcontext.h:25,
                 from include/sys/ucontext.h:4,
                 from include/signal.h:543,
                 from include/sys/select.h:5,
                 from include/unistd.h:8,
                 from lib/__ptrace.c:8:
include/asm/ppc-sigcontext.h:2: erreur: red
Comment 1 Olivier Castan 2004-10-28 07:08:44 UTC
This is due to a redefinition of the same structure (pt_regs) between 2 include files :
include/asm/sigcontext.h
and include/sys/ptrace.h


Reproducible: Always
Steps to Reproduce:
#genkernel all
[...]
gcc -I. -isystem include -fno-stack-protector -D__dietlibc__ -c lib/__ptrace.c -o bin-ppc/__ptrace.o
In file included from include/asm/sigcontext.h:25,
                 from include/sys/ucontext.h:4,
                 from include/signal.h:543,
                 from include/sys/select.h:5,
                 from include/unistd.h:8,
                 from lib/__ptrace.c:8:
include/asm/ppc-sigcontext.h:2: erreur: redéfinition de « struct pt_regs »
make: *** [bin-ppc/__ptrace.o] Erreur 1

Actual Results:  
Build failure

Expected Results:  
Copy patch from
http://www.hu.kernel.org/pub/linux/libs/dietlibc/dietlibc-0.26-0.27.diff
which replace everything between "#elif defined(powerpc) || defined
(__powerpc64__)" and "#elif defined(__hppa__)" with "#include <asm/sigcontext.h>"

Or upgrade to dietlibc-0.27 in genkernel

# emerge info
Portage 2.0.51-r2 (default-ppc-2004.3, gcc-3.4.1, glibc-2.3.4.20040808-r1,
2.6.8-gentoo-r4 ppc)
=================================================================
System uname: 2.6.8-gentoo-r4 ppc 7455, altivec supported
Gentoo Base System version 1.6.4
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.3-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"
DISTDIR="/home/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks"
GENTOO_MIRRORS="http://gentoo.mirror.sdv.fr http://128.213.5.34/gentoo/
http://gentoo.inode.at/ http://ds.thn.htu.se/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="X X509 aac aalib alsa altivec arts async berkdb bitmap-fonts bonobo
cdparanoia cdr chroot crypt cups dga dillo directfb divx4linux dts dv dvd dvdr
dvdread edl encode esd exif f77 faac faad fbcon ffmpeg flac flash gd gdbm ggi
gif gimpprint gnome gnome-libs gphoto2 gpm graphviz gs gstreamer gtk gtk2
gtkhtml imagemagick imlib java javascript jp2 jpeg lcms libcaca live lzo lzw
lzw-tiff mad matroska mime mng motif mozilla moznocompose moznoirc moznomail
mozsvg mp3 mpeg mpeg4 mplayer ncurses network nls nptl ntlm odbc offensive
oggvorbis opengl pam pdflib perl pg-hier physfs png ppc ppds pthreads python
quicktime radeon readline rtc sdl session slang smime spell ssl stencil-buffer
svg tcltk tcpd tga theora tiff truetype usb v4l v4l2 wmf xface xine xmms xosd
xpm xprint xv xvid xvmc yv12 zlib video_cards_radeon"
Comment 2 Olivier Castan 2004-10-28 08:13:32 UTC
Created attachment 42781 [details, diff]
dietlibc-0.26-ppc.patch, patch to build dietlibc-0.26 on ppc

Put in /usr/share/genkernel/pkg/
Comment 3 Olivier Castan 2004-10-28 08:15:03 UTC
Created attachment 42782 [details, diff]
Patch for /usr/share/genkernel/gen_compile.sh

To apply dietlibc-0.26 patch above
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2005-02-05 03:18:37 UTC
Try latest genkernel, that has 0.27...
Comment 5 Lars Weiler (RETIRED) gentoo-dev 2005-04-02 06:34:52 UTC
Closing, as nothing has been added to the bug.