It seems that using CLK_TCK is obsolete in glibc-2.4-r1
Similar bugs have been already resolved:
http://bugs.gentoo.org/show_bug.cgi?id=126102#c2
http://bugs.gentoo.org/show_bug.cgi?id=126411
>>> Compiling source in /var/tmp/portage/gamess-20060222.2/work/gamess ...
Mon Mar 27 22:30:37 CEST 2006
i686-pc-linux-gnu-gcc -c -DLINUX -m32 source/zunix.c
source/zunix.c: In function `memget_':
source/zunix.c:319: warning: return makes integer from pointer without a cast
source/zunix.c: In function `etime_':
source/zunix.c:346: error: `CLK_TCK' undeclared (first use in this function)
source/zunix.c:346: error: (Each undeclared identifier is reported only once
source/zunix.c:346: error: for each function it appears in.)
unset echo
mv: cannot stat `zunix.o': No such file or directory
[.......]
End of DDI compile script
Mon Mar 27 22:33:40 CEST 2006
4.360u 1.360s 0:05.84 97.9% 0+0k 0+0io 2pf+0w
Mon Mar 27 22:33:40 CEST 2006
GAMESS will be linked into the executable image gamess.00.x.
chdir object
g77 -o ../gamess.00.x gamess.o unport.o zunix.o aldeci.o algnci.o basccn.o
basecp.o basext.o bashuz.o bashz2.o basn21.o basn31.o baspcn.o bassto.o ccaux.o
ccqaux.o ccquad.o ccsdt.o chgpen.o cisgrd.o cosmo.o cphf.o cpmchf.o cprohf.o
ddilib.o delocl.o demrpt.o dft.o dftaux.o dftexc.o dftfun.o dftgrd.o dftint.o
dgeev.o dgesvd.o dmulti.o drc.o ecp.o ecpder.o ecplib.o ecppot.o efchtr.o
efdrvr.o efgrda.o efgrdb.o efgrdc.o efgrd2.o efinp.o efinta.o efintb.o efelec.o
efpaul.o efpcm.o efpcov.o efpfmo.o eigen.o eomcc.o ffield.o fmo.o fmogrd.o
fmoint.o fmoio.o fmolib.o fmoprp.o frfmt.o fsodci.o globop.o gradex.o guess.o
grd1.o grd2a.o grd2b.o grd2c.o gugdga.o gugdgb.o gugdm.o gugdm2.o gugdrt.o
gugem.o gugsrt.o gvb.o hess.o hss1a.o hss1b.o hss2a.o hss2b.o inputa.o inputb.o
inputc.o int1.o int2a.o int2b.o int2c.o int2d.o int2f.o int2g.o int2r.o int2s.o
int2t.o int2u.o int2v.o int2w.o int2x.o iolib.o lagran.o local.o loccd.o
locpol.o mcpinp.o mcpint.o mcpl10.o mcpl20.o mcpl30.o mcpl40.o mcpl50.o
mcpl60.o mcpl70.o mcpl80.o mccas.o mcjac.o mcqdpt.o mcqdwt.o mcqud.o mcscf.o
mctwo.o mdefp.o mexing.o
mm23.o mp2.o mp2ddi.o mp2grd.o mpcdat.o mpcgrd.o mpcint.o mpcmol.o mpcmsc.o
morokm.o mthlib.o nameio.o nmr.o ordint.o ormas1.o parley.o pcm.o pcmcav.o
pcmcv2.o pcmder.o pcmdis.o pcmief.o pcmpol.o pcmvch.o prpel.o prplib.o prppop.o
qeigen.o qfmm.o qmfm.o qrel.o raman.o rhfuhf.o rxncrd.o ryspol.o scflib.o
scfmi.o scrf.o sobrt.o soffac.o solib.o sozeff.o statpt.o surf.o svpchg.o
svpinp.o svpleb.o symorb.o symslc.o tdhf.o tdx.o tdxio.o tdxitr.o tdxni.o
tdxprp.o trans.o trfdm2.o trnstn.o trudge.o umpddi.o vibanl.o vscf.o zapddi.o
zheev.o zmatrx.o qmmm.o vbdum.o neostb.o ../ddi/libddi.a -lpthread -lblas
g77: zunix.o: No such file or directory
unset echo
0.052u 0.008s 0:00.06 83.3% 0+0k 0+0io 0pf+0w
>>> Source compiled.
>>> Test phase [not enabled]: sci-chemistry/gamess-20060222.2
>>> Install gamess-20060222.2 into /var/tmp/portage/gamess-20060222.2/image/ category sci-chemistry
!!! dobin: gamess.00.x does not exist
!!! ERROR: sci-chemistry/gamess-20060222.2 failed.
Call stack:
ebuild.sh, line 1526: Called dyn_install
ebuild.sh, line 999: Called src_install
gamess-20060222.2.ebuild, line 186: Called die
!!! Failed installing binaries
!!! If you need support, post the topmost build error, and the call stack if
relevant.
alkor ~ # emerge --info
Portage 2.1_pre7-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r1,
2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 AMD Sempron(tm) 3000+
Gentoo Base System version 1.12.0_pre16
dev-lang/python: 2.4.2-r1
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils: 2.16.1-r2
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=athlon-xp -mfpmath=sse -mmmx -msse -m3dnow -funroll-loops
-pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/grass60/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c /etc/env.d"
CXXFLAGS="-Os -march=athlon-xp -mfpmath=sse -mmmx -msse -m3dnow -funroll-loops
-pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="pl en de fr it ru ar"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X Xaw3d a52 aac alsa apache2 apm arts avi berkdb bidi
bitmap-fonts blas bonobo bzip2 cairo cdparanoia cdr cli crypt cscope ctype cups
dba dbm dri dts dv dvb dvd dvdr dvdread eds emacs emboss encode esd exif expat
fastbuild fbcon ffmpeg fftw flac foomaticdb force-cgi-redirect fortran ftp gb
gd gdbm gif ginac glut gmp gnome gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml
guile ieee1394 imagemagick imlib ipv6 jack java jpeg kde lapack lcms libg++
libgda libwww lm_sensors mad matroska mbox memlimit mikmod mime mmx mng
mnogosearch mono motif mozilla mp3 mpeg msql mule ncurses netcdf nis nls nodrm
nptl nptlonly nsplugin nvidia ocaml odbc ogg opengl oss pam pcmcia pcre pdflib
perl php plotutils png portaudio posix postgres python qt quicktime readline
recode ruby samba scanner sdl session simplexml sndfile soap sockets speex
spell spl sse ssl svg szip tcltk tcpd tetex theora threads tiff tokenizer
truetype truetype-fonts type1-fonts udev unicode usb vcd vhosts vorbis wifi
win32codecs wmf wxwindows xine xinerama xml xmms xosd xpm xsl xv zeo zlib
elibc_glibc kernel_linux linguas_pl linguas_en linguas_de linguas_fr linguas_it
linguas_ru linguas_ar userland_GNU video_cards_nvidia"
Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS
Created an attachment (id=83262) [details]
patch to fix missing CLK_TCK with glibc-2.4
Hi Jaroslaw,
Thank you very much for your report. I am still using glibc-2.3.6
hence I didn't notice and it is, therefore, a little tricky to debug.
Could you please try the patch and see if that fixes the problem.
Thanks,
Markus
Hi Marcus,
Your patch fixes the problem. Compilation is OK, test results seem to be
correct too. I have not checked if the timing is as it shoud be, as for all the
examples I get TOTAL WALL CLOCK TIME= 0.0 SECONDS and I don't have a
bigger inupt ready...
Thanks,
Jarek
Hi Jarek,
Thank you very much for testing the patch and I have just
committed it to portage CVS.
Best,
Markus