Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 253449

Summary: dev-scheme/plt-scheme-4.1.3 USE=backtrace - ./newgc.c:891: error: too few arguments to function 'free_pages'
Product: Gentoo Linux Reporter: Anatol <farengeit0273>
Component: [OLD] DevelopmentAssignee: Scheme Project <scheme>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Anatol 2009-01-02 14:09:59 UTC
>>> Unpacking source...
>>> Unpacking plt-4.1.3-src-unix.tgz to /var/tmp/portage/dev-scheme/plt-scheme-4.1.3/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-scheme/plt-scheme-4.1.3/work/plt-4.1.3 ...
 * econf: updating plt-4.1.3/src/wxcommon/jpeg/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating plt-4.1.3/src/wxcommon/jpeg/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating plt-4.1.3/src/lt/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating plt-4.1.3/src/lt/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating plt-4.1.3/src/mzscheme/gc/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating plt-4.1.3/src/mzscheme/gc/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating plt-4.1.3/src/foreign/gcc/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating plt-4.1.3/src/foreign/gcc/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-mred --enable-shared --disable-perl --enable-backtrace --enable-cairo --enable-llvm --enable-gl --disable-gprof --enable-xft --enable-xrender --build=i686-pc-linux-gnu


...

make[4]: Entering directory `/var/tmp/portage/dev-scheme/plt-scheme-4.1.3/work/plt-4.1.3/src/mzscheme/gc2'
env XFORM_USE_PRECOMP=xsrc/precomp.h ../mzschemecgc -cqu ./xform.ss --setup . --cpp "i686-pc-linux-gnu-gcc -E -DMZ_GC_BACKTRACE -DNEWGC_BTC_ACCOUNT  -DMZ_USES_SHARED_LIB -I./.. -I./../include"  -o xsrc/jit.c ./../src/jit.c
/var/tmp/portage/dev-scheme/plt-scheme-4.1.3/work/plt-4.1.3/src/lt/libtool --mode=compile --tag=CC i686-pc-linux-gnu-gcc -O2 -march=prescott -mtune=generic -msse -msse2 -msse3 -fomit-frame-pointer -pipe -DMZ_GC_BACKTRACE -DNEWGC_BTC_ACCOUNT  -DMZ_USES_SHARED_LIB -I./.. -I./../include   -I./.. -c ./gc2.c -o gc2.lo
 i686-pc-linux-gnu-gcc -O2 -march=prescott -mtune=generic -msse -msse2 -msse3 -fomit-frame-pointer -pipe -DMZ_GC_BACKTRACE -DNEWGC_BTC_ACCOUNT -DMZ_USES_SHARED_LIB -I./.. -I./../include -I./.. -c ./gc2.c  -fPIC -DPIC -o .libs/gc2.o
In file included from ./gc2.c:16:
./newgc.c: In function 'free_backtrace':
./newgc.c:891: warning: passing argument 1 of 'free_pages' from incompatible pointer type
./newgc.c:891: warning: passing argument 2 of 'free_pages' makes pointer from integer without a cast
./newgc.c:891: error: too few arguments to function 'free_pages'
In file included from ./newgc.c:1790,
                 from ./gc2.c:16:
./backtrace.c: In function 'print_out_pointer':
./backtrace.c:48: warning: assignment makes pointer from integer without a cast
./backtrace.c: In function 'print_traced_objects':
./backtrace.c:97: error: 'avoid_collection' undeclared (first use in this function)
./backtrace.c:97: error: (Each undeclared identifier is reported only once
./backtrace.c:97: error: for each function it appears in.)
make[4]: *** [gc2.lo] Error 1


emerge --info
Portage 2.1.6.4 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.26-gentoo i686)
=================================================================
System uname: Linux-2.6.26-gentoo-i686-Genuine_Intel-R-_CPU_T2300_@_1.66GHz-with-glibc2.0
Timestamp of tree: Fri, 02 Jan 2009 01:15:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48
dev-lang/python:     2.4.4-r13, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1-r1
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -mtune=generic -msse -msse2 -msse3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -mtune=generic -msse -msse2 -msse3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.relinfo.ru/gentoo ftp://ftp.chg.ru/mirrors/gentoo.org http://distfiles.gentoo.bg http://gentoo.inode.at"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="ru en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="/usr/local/portage/layman/x11 /usr/local/portage/layman/arcon /usr/local/portage/layman/sunrise /usr/local/portage/layman/rostov /usr/local/portage/my"
SYNC="rsync://mirror.relinfo.ru/gentoo-portage/"
USE="X acl acpi alsa bash-completion berkdb bzip2 cli cracklib crypt cups curl dbus dri flac fortran gdbm gif gpm hal iconv ipv6 isdnlog jpeg midi mmx mp3 mudflap ncurses nls nptl nptlonly ogg openmp pam pcre perl png pppd python readline reflection session spl sse sse2 ssl svg sysfs tcpd tiff unicode vorbis x86 xorg xscreensaver xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


So when I've disabled 'backtrace' USE-flag, plt-scheme emerged successfully.

Reproducible: Always
Comment 1 Marijn Schouten (RETIRED) gentoo-dev 2009-02-02 17:30:48 UTC
I could not reproduce the failure with 4.1.4 and backtrace use flag enabled.
Comment 2 Marijn Schouten (RETIRED) gentoo-dev 2009-02-02 17:34:46 UTC
4.1.4(18:27:45 02-02-09)(X backtrace cairo cgc opengl -llvm -profile)
Comment 3 Marijn Schouten (RETIRED) gentoo-dev 2009-06-04 15:39:16 UTC
please reopen if you can reproduce with 4.2 and include the use flags you use for plt-scheme.