Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
builtin_va_args_*
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
solafidefarms
n00b
n00b


Joined: 02 Feb 2006
Posts: 69

PostPosted: Tue Mar 03, 2009 7:37 pm    Post subject: builtin_va_args_* Reply with quote

Hi, I've semi-upgraded to gcc-4.3.3, but am running into problems with __builtin_va_args_* not being defined when compiling new things. For instance, compiling binutils-2.19.51.0.2, I run into
Code:
/bin/sh ./libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -pipe -march=athlon64  -Wl,-O1 -o as-new  app.o as.o atof-generic.o cond.o depend.o dwarf2dbg.o dw2gencfi.o ecoff.o ehopt.o expr.o flonum-copy.o flonum-konst.o flonum-mult.o frags.o hash.o input-file.o input-scrub.o listing.o literal.o macro.o messages.o output-file.o read.o remap.o sb.o stabs.o subsegs.o symbols.o write.o tc-i386.o obj-elf.o atof-ieee.o  ../opcodes/libopcodes.la ../bfd/libbfd.la ../libiberty/libiberty.a   
libtool: link: x86_64-pc-linux-gnu-gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -pipe -march=athlon64 -Wl,-O1 -o .libs/as-new app.o as.o atof-generic.o cond.o depend.o dwarf2dbg.o dw2gencfi.o ecoff.o ehopt.o expr.o flonum-copy.o flonum-konst.o flonum-mult.o frags.o hash.o input-file.o input-scrub.o listing.o literal.o macro.o messages.o output-file.o read.o remap.o sb.o stabs.o subsegs.o symbols.o write.o tc-i386.o obj-elf.o atof-ieee.o  ../opcodes/.libs/libopcodes.so -L/vartmp/var/tmp/portage/sys-devel/binutils-2.19.51.0.2/work/build/opcodes/../libiberty/pic ../bfd/.libs/libbfd.so -L/vartmp/var/tmp/portage/sys-devel/binutils-2.19.51.0.2/work/build/bfd/../libiberty/pic -liberty -lz ../libiberty/libiberty.a -Wl,-rpath -Wl,/usr/lib64/binutils/x86_64-pc-linux-gnu/2.19.51.0.2
app.o: In function `do_scrub_chars':
app.c:(.text+0x9ff): undefined reference to `__builtin_va_arg_pack'
dwarf2dbg.o: In function `out_debug_info':
dwarf2dbg.c:(.text+0x12c4): undefined reference to `__builtin_va_arg_pack'
read.o: In function `s_func':
read.c:(.text+0x8cb): undefined reference to `__builtin_va_arg_pack'
read.o: In function `s_incbin':
read.c:(.text+0x1573): undefined reference to `__builtin_va_arg_pack'
read.o: In function `s_mri_common':
read.c:(.text+0x526a): undefined reference to `__builtin_va_arg_pack'
symbols.o:symbols.c:(.text+0x7fc): more undefined references to `__builtin_va_arg_pack' follow
collect2: ld returned 1 exit status


This is not a binutils-specific problem - it happens when compiling gnutls and other things also. Anyone else run into this problem and found a solution?

Code:
server ~ # emerge --info
Portage 2.2_rc23 (default/linux/amd64/2008.0/server, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.26-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-x86_64-AMD_Athlon-tm-_X2_Dual_Core_Processor_BE-2400-with-glibc2.2.5
Timestamp of tree: Fri, 27 Feb 2009 20:10:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:     3.2_p48-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.3.8
sys-devel/autoconf:  2.63
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64 -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=athlon64 -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="distcc distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j10"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 berkdb bzip2 cdr cli cracklib crypt cups curl cvs dri dvd expat fortran gdbm git gnutls gpm guile iconv ipv6 isdnlog java ldap lzo mailwrapper midi mmx mozsha1 mudflap multilib mysql ncurses networking nls nptl nptlonly openmp pam pcre perl pppd python readline reflection ruby session snmp spl sse sse2 ssl subversion sysfs tcpd threads truetype unicode xml xorg 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 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
solafidefarms
n00b
n00b


Joined: 02 Feb 2006
Posts: 69

PostPosted: Thu Mar 05, 2009 5:02 pm    Post subject: Reply with quote

Solved by adding
-fno-builtin
to CFLAGS. Probably a suboptimal solution. I tried to get some variation on -fno-builtin-va-arg-pack to work, but no success yet.
_________________
Ephesians 2:8-9: For by grace are ye saved through faith; and that not of yourselves, it is the gift of God, not of works, lest any man should boast.

Death to Brobdingnagian expressions! On with pulchritude!
Back to top
View user's profile Send private message
jel
Apprentice
Apprentice


Joined: 10 Aug 2005
Posts: 259
Location: Gothenburg

PostPosted: Sun Mar 08, 2009 3:26 pm    Post subject: Re: builtin_va_args_* Reply with quote

solafidefarms wrote:

Code:

MAKEOPTS="-j10"


8O
_________________
# dd if=/dev/urandom of=/dev/sda bs=512
Back to top
View user's profile Send private message
solafidefarms
n00b
n00b


Joined: 02 Feb 2006
Posts: 69

PostPosted: Mon Mar 09, 2009 3:02 am    Post subject: Reply with quote

Quote:

FEATURES="distcc distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"


3 x dualcore machines -> -j9 or 10.
_________________
Ephesians 2:8-9: For by grace are ye saved through faith; and that not of yourselves, it is the gift of God, not of works, lest any man should boast.

Death to Brobdingnagian expressions! On with pulchritude!
Back to top
View user's profile Send private message
jel
Apprentice
Apprentice


Joined: 10 Aug 2005
Posts: 259
Location: Gothenburg

PostPosted: Mon Mar 09, 2009 8:06 pm    Post subject: Reply with quote

solafidefarms wrote:

3 x dualcore machines -> -j9 or 10.


That's a lot of silicon, cool.
_________________
# dd if=/dev/urandom of=/dev/sda bs=512
Back to top
View user's profile Send private message
solafidefarms
n00b
n00b


Joined: 02 Feb 2006
Posts: 69

PostPosted: Wed May 27, 2009 4:31 am    Post subject: Reply with quote

Apologies for bump. Ran into this problem again today and found that replacing -O3 with -O0 worked also (in addition to -fno-builtin).
_________________
Ephesians 2:8-9: For by grace are ye saved through faith; and that not of yourselves, it is the gift of God, not of works, lest any man should boast.

Death to Brobdingnagian expressions! On with pulchritude!
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2779
Location: Pittsburgh, PA, USA

PostPosted: Wed Jun 24, 2009 5:25 pm    Post subject: Reply with quote

Quote:
That's a lot of silicon, cool.


I have over 20 cores in my icecream build farm at work. I usually set j11 to j15


BTW, I am not just wasting bandwith here I have this error as well. Trying -fno-builtin
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2779
Location: Pittsburgh, PA, USA

PostPosted: Wed Jun 24, 2009 5:37 pm    Post subject: Reply with quote

Adding -fno-builtin did not solve this for me.

Code:

minigzip.o: In function `error':
minigzip.c:(.text+0xe): undefined reference to `__builtin_va_arg_pack'
minigzip.o: In function `file_uncompress':
minigzip.c:(.text+0x29e): undefined reference to `__builtin_va_arg_pack'
minigzip.o: In function `file_compress':
minigzip.c:(.text+0x576): undefined reference to `__builtin_va_arg_pack'
libz.a(gzio.o): In function `gz_open':
gzio.c:(.text+0xdc1): undefined reference to `__builtin_va_arg_pack'
libz.a(gzio.o): In function `gzdopen':
gzio.c:(.text+0xe1f): undefined reference to `__builtin_va_arg_pack'
collect2: ld returned 1 exit status
make: *** [minigzip] Error 1
make: *** Waiting for unfinished jobs....
example.o: In function `test_dict_inflate':
example.c:(.text+0xb1): undefined reference to `__builtin_va_arg_pack'
example.c:(.text+0xfa): undefined reference to `__builtin_va_arg_pack'
example.c:(.text+0x129): undefined reference to `__builtin_va_arg_pack'
example.c:(.text+0x145): undefined reference to `__builtin_va_arg_pack'
example.o: In function `test_large_inflate':
example.c:(.text+0x1fa): undefined reference to `__builtin_va_arg_pack'
example.o:example.c:(.text+0x22d): more undefined references to `__builtin_va_arg_pack' follow
collect2: ld returned 1 exit status
make: *** [example] Error 1
 *
 * ERROR: sys-libs/zlib-1.2.3-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2561:  Called die
 * The specific snippet of code:
 *               emake || die
 *  The die message:
 *   (no error message)

_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
shabbychef
n00b
n00b


Joined: 08 Jun 2005
Posts: 43

PostPosted: Thu Jul 02, 2009 8:19 pm    Post subject: getting this with emerge gvfs Reply with quote

running
Code:
emerge -v --deep --update world

on amd64; getting the following in gvfs:
Quote:
/usr/lib64/libbluetooth.so: undefined reference to `__builtin_va_arg_pack'
collect2: ld returned 1 exit status
distcc[21263] ERROR: compile (null) on localhost failed
make[3]: *** [gvfsd-obexftp] Error 1
make[3]: Leaving directory `/var/tmp/portage/gnome-base/gvfs-1.0.3-r2/work/gvfs-1.0.3/daemon'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/gnome-base/gvfs-1.0.3-r2/work/gvfs-1.0.3/daemon'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnome-base/gvfs-1.0.3-r2/work/gvfs-1.0.3'
make: *** [all] Error 2
*
* ERROR: gnome-base/gvfs-1.0.3-r2 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3027: Called gnome2_src_compile
* environment, line 2368: Called die
* The specific snippet of code:
* emake || die "compile failure"
* The die message:
* compile failure
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/gnome-base/gvfs-1.0.3-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/gnome-base/gvfs-1.0.3-r2/temp/environment'.
*


re-emerged bluez-libs, but did not help. ack.
_________________
shabby
Back to top
View user's profile Send private message
shabbychef
n00b
n00b


Joined: 08 Jun 2005
Posts: 43

PostPosted: Thu Jul 02, 2009 11:19 pm    Post subject: gvfs -bluetooth fixes Reply with quote

set USE=-bluetooth, and was able to emerge gvfs up to 1.0.3-r2;
_________________
shabby
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2779
Location: Pittsburgh, PA, USA

PostPosted: Fri Jul 03, 2009 11:26 pm    Post subject: Reply with quote

I believe rebuilding the toolchain fixed this for me.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
RobPearce
n00b
n00b


Joined: 12 Jul 2005
Posts: 49
Location: Cambridge, England

PostPosted: Sun Mar 21, 2010 8:12 pm    Post subject: Reply with quote

I'm having the same problem, with zlib, which is the first or second thing built by
Code:
emerge -eav system
. What tool chain do I need to build before that?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5720

PostPosted: Sun Mar 21, 2010 8:31 pm    Post subject: Reply with quote

IIRC the right toolchain rebuild order is: linux-headers glibc binutils gcc
Back to top
View user's profile Send private message
RobPearce
n00b
n00b


Joined: 12 Jul 2005
Posts: 49
Location: Cambridge, England

PostPosted: Mon Mar 22, 2010 7:36 am    Post subject: Reply with quote

Thanks Ant_P, that seems to have fixed it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum