Summary: | Stabilize dev-libs/dietlibc-0.33_pre20110403 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Benedikt Böhm (RETIRED) <hollow> |
Component: | New packages | Assignee: | Gentoo VPS Team (OBSOLETE) <vserver-devs+disabled> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | alpha, arm, bertrand, eike, fordfrog, sparc |
Priority: | Normal | Keywords: | STABLEREQ |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 359433 | ||
Attachments: |
disbale dynamic pagesize
Build log ppc build failure |
Description
Benedikt Böhm (RETIRED)
2011-04-19 07:29:26 UTC
Builds fine on x86. Rdeps build fine, no idea how to test further. Please mark stable for x86. amd64 ok amd64 done. Thanks Agostino x86 stable, thanks Myckel Broken on HPPA: make prefix=/usr/diet CC=hppa2.0-unknown-linux-gnu-gcc 'CFLAGS=-O2 -pipe -march=2.0 -nostdinc -W -Wall -Wextra -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wno-switch -Wno-unused -Wredundant-decls -fno-strict-aliasing' STRIP=: mkdir bin-parisc hppa2.0-unknown-linux-gnu-gcc -I. -isystem include -O2 -pipe -march=2.0 -nostdinc -W -Wall -Wextra -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wno-switch -Wno-unused -Wredundant-decls -fno-strict-aliasing -Wa,--noexecstack -c parisc/start.S -o bin-parisc/start.o parisc/start.S:38:4: warning: #warning "MAKE ME PARISC CODE!" parisc/start.S: Assembler messages: parisc/start.S:41: Error: missing expression parisc/start.S:41: Error: junk at end of line, first unrecognized character is `,' Created attachment 272303 [details, diff]
disbale dynamic pagesize
(In reply to comment #5) > Broken on HPPA: > > make prefix=/usr/diet CC=hppa2.0-unknown-linux-gnu-gcc 'CFLAGS=-O2 -pipe > -march=2.0 -nostdinc -W -Wall -Wextra -Wchar-subscripts -Wmissing-prototypes > -Wmissing-declarations -Wno-switch -Wno-unused -Wredundant-decls > -fno-strict-aliasing' STRIP=: > mkdir bin-parisc > hppa2.0-unknown-linux-gnu-gcc -I. -isystem include -O2 -pipe -march=2.0 > -nostdinc -W -Wall -Wextra -Wchar-subscripts -Wmissing-prototypes > -Wmissing-declarations -Wno-switch -Wno-unused -Wredundant-decls > -fno-strict-aliasing -Wa,--noexecstack -c parisc/start.S -o bin-parisc/start.o > parisc/start.S:38:4: warning: #warning "MAKE ME PARISC CODE!" > parisc/start.S: Assembler messages: > parisc/start.S:41: Error: missing expression > parisc/start.S:41: Error: junk at end of line, first unrecognized character is > `,' can you please try the attached patch? dynamic pagesize is an experimental feature i have overlooked. it should be disabled for now. gcc -D__dietlibc__ -I. -isystem include -pipe -nostdinc -Os -fomit-frame-pointer -W -Wall -Wextra -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wno-switch -Wno-unused -Wredundant-decls -Wa,--noexecstack -fno-stack-protector -c lib/__get_elf_aux_value.c -o bin-parisc/__get_elf_aux_value.o -D__dietlibc__ lib/__get_elf_aux_value.c:4:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’ make: *** [bin-parisc/__get_elf_aux_value.o] Error 1 Hi, it doesn't build on AMD64 for me. Tried to re-emerge whole system, just in case, with same result. Should I post any more data (build log etc.) in here? emerge --info =dev-libs/dietlibc-0.33_pre20110403: Portage 2.1.9.42 (hardened/linux/amd64, gcc-4.4.5, libc-0-r0, 2.6.35-vs2.3.0.36.32-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.35-vs2.3.0.36.32-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5410_@_2.33GHz-with-gentoo-2.0.2 Timestamp of tree: Tue, 17 May 2011 00:45:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.1-r1, 3.1.3-r1 dev-util/ccache: 2.4-r9 dev-util/cmake: 2.8.4-r1 sys-apps/baselayout: 2.0.2 sys-apps/openrc: 0.8.2-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.65-r1 sys-devel/automake: 1.5-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.5 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 sys-kernel/linux-headers: 2.6.36.1 sys-libs/glibc: 2.11.3 virtual/os-headers: 0 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=native -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs ccache collision-protect distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo" LANG="cs_CZ.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="cs en" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl amd64 apache2 bash-completion bcmath bzip2 clamav cli cracklib crypt cups curl cxx dri exif gd gdbm geoip gif gmp gnutls gpm hardened iconv icq imagemagick innodb javascript jpeg jpeg2k justify ldap logrotate mhash mime mmx modules msn mudflap multilib mysql mysqli ncurses nls nptl nptlonly openmp oscar pam pcre pdf perl php png pppd python raw readline session smp snmp sql sqlite sqlite3 sse sse2 sse3 sse4_1 ssl ssse3 subversion sysfs threads tidy tiff tokenizer unicode urandom vhosts vim-syntax wddx wmf xml xmlrpc xorg xsl zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS (In reply to comment #9) > Hi, it doesn't build on AMD64 for me. Tried to re-emerge whole system, just in > case, with same result. Should I post any more data (build log etc.) in here? please post the build log (In reply to comment #8) > gcc -D__dietlibc__ -I. -isystem include -pipe -nostdinc -Os > -fomit-frame-pointer -W -Wall -Wextra -Wchar-subscripts -Wmissing-prototypes > -Wmissing-declarations -Wno-switch -Wno-unused -Wredundant-decls > -Wa,--noexecstack -fno-stack-protector -c lib/__get_elf_aux_value.c -o > bin-parisc/__get_elf_aux_value.o -D__dietlibc__ > lib/__get_elf_aux_value.c:4:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or > ‘__attribute__’ before ‘const’ > make: *** [bin-parisc/__get_elf_aux_value.o] Error 1 i've reverted all the experimental ELFINFO patches from my repository. can you please try to build manually: git clone http://github.com/hollow/dietlibc.git cd dietlibc && make thanks! Created attachment 273813 [details]
Build log
(In reply to comment #12) > Created attachment 273813 [details] > Build log > make: *** [bin-x86_64/elftrunc] Error 139 this means your gcc had a segmentation fault ... your CFLAGS seem to be nothing special though. have you tried to build without -march=native? you can also try to build my master branch (see comment 11) and see if that works ... I tried to change -march to "core2" (according to Safe CFLAGS Wiki page) and also tried to remove the march settings. "cc -march=native -E -v - </dev/null 2>&1" selects -march core2 so this should be OK. I tried to build your master branch and everything worked fine. Is there a problem in my gcc? It may be offtopic, but how would that be possible? When problems with dietlibc occured, I rebuild the whole system to be sure the system is in a sane state. > this means your gcc had a segmentation fault ... your CFLAGS seem to be nothing
> special though. have you tried to build without -march=native? you can also try
> to build my master branch (see comment 11) and see if that works ...
I still don't know what the problem might be.
Do you know anything that might help me to find the problem? I tried to build your master branch (as I mentioned earlier) and everything went fine.
Because my "vserver" also segfaults, can this be related somehow to kernel configuration? I recently switched to vserver-sources (but double checked the configuration) so maybe I disabled or enabled something that causes segfaults with some specific applications / memory access / etc.
If you have any advice for me, please :-).
(In reply to comment #15) > > this means your gcc had a segmentation fault ... your CFLAGS seem to be nothing > > special though. have you tried to build without -march=native? you can also try > > to build my master branch (see comment 11) and see if that works ... > > I still don't know what the problem might be. > > Do you know anything that might help me to find the problem? I tried to build > your master branch (as I mentioned earlier) and everything went fine. > > Because my "vserver" also segfaults, can this be related somehow to kernel > configuration? I recently switched to vserver-sources (but double checked the > configuration) so maybe I disabled or enabled something that causes segfaults > with some specific applications / memory access / etc. > > If you have any advice for me, please :-). i have no idea, sorry. gcc shouldn't segfault, even if the dietlibc code is broken. so i suggest you open a seperate bug with the gcc team, they may be able to help you. > i have no idea, sorry. gcc shouldn't segfault, even if the dietlibc code is
> broken. so i suggest you open a seperate bug with the gcc team, they may be
> able to help you.
OK, never mind, I kinda solved the issue. I am still not sure what cause the trouble, but what I did is rebooted to original kernel (hardened), switched to default profile (from hardened), rebuilt gcc, binutils etc. and now dietlibc compiles fine.
It was probably some mess on my server.
Thank you for your help!
Created attachment 280677 [details]
ppc build failure
Fails to build on ppc (ppc64 as well in the same way)
i had problems with dietlibc not compiling, exactly the same issue as aleš (me on amd64). (also, i was able to emerge dietlibc-0.30-r2 but when running util-vserver commands that link against dietlibc, i got segfaults.) compiling sources from git repo worked fine for me here. so i removed some lines from ebuild from the emake line and dietlibc compiled fine. now even util-vserver commands work fine. i hope i did not break something by doing this, but now it works better than before :-) here is the diff: --- dietlibc-0.33_pre20110403.ebuild.old 2011-10-13 22:29:29.000000000 +0200 +++ dietlibc-0.33_pre20110403.ebuild 2011-10-13 22:29:49.000000000 +0200 @@ -47,9 +47,6 @@ src_compile() { emake prefix=${DIETHOME} \ - CC="$(tc-getCC)" \ - CFLAGS="${CFLAGS}" \ - STRIP=":" \ || die "make failed" } It's -hppa: 06 May 2011; Guy Martin <gmsoft@gentoo.org> dietlibc-0.33_pre20110403.ebuild: Marking -hppa as it doesn't build. ppc/ppc64 keywords dropped on following packages: sys-cluster/util-vserver dev-libs/libowfat dev-libs/dietlibc use.mask: sys-fs/dmraid:dietlibc the current snapshot is pretty broken on anything but amd64/x86. i'll upload a new snapshot shortly which can then be tested again on hppa and others. (In reply to comment #21) > ppc/ppc64 keywords dropped on following packages: > dev-libs/libowfat libowfat can be built without dietlibc now, see bug 97185. |