Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't get ruby to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
FizzyWidget
Veteran
Veteran


Joined: 21 Nov 2008
Posts: 1133
Location: 127.0.0.1

PostPosted: Tue Dec 06, 2011 9:45 pm    Post subject: Can't get ruby to compile Reply with quote

Using ~amd64

While compiling ruby i get this error


Code:
cp ../.././ext/dl/dl.h ../../.ext/x86_64-linux
ptr.c: In function 'rb_dlptr_inspect':
ptr.c:466:5: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'struct ptr_data *' [-Wformat]
ptr.c:466:5: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'void *' [-Wformat]
ptr.c:466:5: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'struct ptr_data *' [-Wformat]
ptr.c:466:5: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'void *' [-Wformat]
x86_64-pc-linux-gnu-gcc -I. -I../.. -I../../. -I../.././ext/dl -DHAVE_DLFCN_H -DHAVE_DLOPEN -DHAVE_DLCLOSE -DHAVE_DLSYM -DHAVE_DLERROR    -I. -fPIC -march=native -mtune=native -O2 -pipe -fno-strict-aliasing  -fPIC  -fno-defer-pop -fno-omit-frame-pointer  -c sym.c
x86_64-pc-linux-gnu-gcc -I. -I../.. -I../../. -I../.././ext/dl -DHAVE_DLFCN_H -DHAVE_DLOPEN -DHAVE_DLCLOSE -DHAVE_DLSYM -DHAVE_DLERROR    -I. -fPIC -march=native -mtune=native -O2 -pipe -fno-strict-aliasing  -fPIC  -fno-defer-pop -fno-omit-frame-pointer  -c dl.c
cp ../.././ext/dl/lib/dl/types.rb ../../.ext/common/dl
cp ../.././ext/dl/lib/dl/import.rb ../../.ext/common/dl
cp ../.././ext/dl/lib/dl/struct.rb ../../.ext/common/dl
cp ../.././ext/dl/lib/dl/win32.rb ../../.ext/common/dl
sym.c: In function 'rb_dlsym_inspect':
sym.c:275:21: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'struct sym_data *' [-Wformat]
sym.c:275:21: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'void *' [-Wformat]
sym.c:275:21: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'struct sym_data *' [-Wformat]
sym.c:275:21: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'void *' [-Wformat]
In file included from dl.c:104:0:
callback.func:1:1: warning: data definition has no type or storage class [enabled by default]
callback.func:1:7: error: expected identifier or '(' before 'long'
In file included from dl.c:104:0:
callback.func:78:33: error: expected ')' before '(' token
callback.func:79:3: warning: data definition has no type or storage class [enabled by default]
callback.func:79:24: error: 'proc' undeclared here (not in a function)
callback.func:79:39: error: 'argc' undeclared here (not in a function)
callback.func:79:45: error: 'argv' undeclared here (not in a function)
callback.func:82:1: error: expected identifier or '(' before '}' token
dl.c:106:1: error: expected ';', ',' or ')' before 'static'
make[1]: *** [dl.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/dev-lang/ruby-1.8.7_p352/work/ruby-1.8.7-p352/ext/dl'
make: *** [all] Error 1
emake failed
 * ERROR: dev-lang/ruby-1.8.7_p352 failed (compile phase):
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line  84:  Called src_compile
 *   environment, line 3353:  Called die
 * The specific snippet of code:
 *       emake EXTLDFLAGS="${LDFLAGS}" || die "emake failed"


I have tried the patch from the other thread about not being able to compile ruby, but it hasn't helped, I am trying to compile mkvtoolnix.

Anyone have any solution to this?

emerge --info =dev-lang/ruby-1.8.7_p352

Code:
Portage 2.1.10.39 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.2, glibc-2.14.1-r1, 3.1.4-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.1.4-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Tue, 06 Dec 2011 19:45:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.22
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB"
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.uk.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gtk iconv ipv6 jpeg kde kipi lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pppd qt3support qt4 readline sdl session spell sse sse2 sse3 ssl ssse3 startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid 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="kexi words flow plan stage tables krita karbon braindump" 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="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


emerge -pqv =dev-lang/ruby-1.8.7_p352

Code:
[ebuild  N    ] dev-lang/ruby-1.8.7_p352  USE="berkdb gdbm ipv6 ncurses readline ssl -debug -doc -examples -libedit -rubytests -socks5 -threads -tk -xemacs"

_________________
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Back to top
View user's profile Send private message
purak
Apprentice
Apprentice


Joined: 21 Jun 2008
Posts: 160
Location: /dev/urandom

PostPosted: Sat Dec 10, 2011 10:11 pm    Post subject: Reply with quote

I have the same problem and I found this:

https://bugs.gentoo.org/show_bug.cgi?id=370413

Use the patch[0] and fix the issue.

[0] https://bugs.gentoo.org/show_bug.cgi?id=370413#c16
_________________
:)
Back to top
View user's profile Send private message
FizzyWidget
Veteran
Veteran


Joined: 21 Nov 2008
Posts: 1133
Location: 127.0.0.1

PostPosted: Sat Dec 10, 2011 11:07 pm    Post subject: Reply with quote

Thanks Purak, will take a look in the morning, just came in from a night out with friends, best i not touch the machines till the morning :)
_________________
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Back to top
View user's profile Send private message
FizzyWidget
Veteran
Veteran


Joined: 21 Nov 2008
Posts: 1133
Location: 127.0.0.1

PostPosted: Sun Dec 11, 2011 8:14 am    Post subject: Reply with quote

Code:
 * ERROR: sys-libs/glibc-2.14.1-r1 failed (unpack phase):
 *   Failed Patch: 0068_all_glibc-2.14-glibc-revert-fseek-on-fclose.patch!
 *
 * Call stack:
 *          ebuild.sh, line   84:  Called src_unpack
 *        environment, line 3641:  Called eblit-run 'src_unpack'
 *        environment, line 1128:  Called eblit-glibc-src_unpack
 *   src_unpack.eblit, line  164:  Called toolchain-glibc_src_unpack
 *   src_unpack.eblit, line  156:  Called epatch_user
 *        environment, line 1979:  Called epatch
 *        environment, line 1959:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 *


I give up :evil:
_________________
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Back to top
View user's profile Send private message
eronde
n00b
n00b


Joined: 25 Dec 2004
Posts: 73
Location: The Netherlands

PostPosted: Mon Dec 12, 2011 10:40 pm    Post subject: Reply with quote

purak wrote:
I have the same problem and I found this:

https://bugs.gentoo.org/show_bug.cgi?id=370413

Use the patch[0] and fix the issue.

[0] https://bugs.gentoo.org/show_bug.cgi?id=370413#c16


Here I've the same problem.

Dit you put the patch in the /usr/portage/sys-libs/glibc/files direcctory to solve the problem?
Back to top
View user's profile Send private message
FizzyWidget
Veteran
Veteran


Joined: 21 Nov 2008
Posts: 1133
Location: 127.0.0.1

PostPosted: Mon Dec 12, 2011 10:46 pm    Post subject: Reply with quote

eronde wrote:
purak wrote:
I have the same problem and I found this:

https://bugs.gentoo.org/show_bug.cgi?id=370413

Use the patch[0] and fix the issue.

[0] https://bugs.gentoo.org/show_bug.cgi?id=370413#c16


Here I've the same problem.

Dit you put the patch in the /usr/portage/sys-libs/glibc/files direcctory to solve the problem?


not yet, soon to be reinstalling gentoo on 3 pcs after a good read, a lot of questions, and a better understanding of how you should set a system up
_________________
I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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