Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288077 - sys-devel/flex doesn't like to get cross compiled
Summary: sys-devel/flex doesn't like to get cross compiled
Status: RESOLVED DUPLICATE of bug 224685
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-07 17:02 UTC by Prakash Punnoor
Modified: 2009-10-10 17:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
x86 make.conf (make.conf,1.20 KB, text/plain)
2009-10-07 17:04 UTC, Prakash Punnoor
Details
build log (build.log,20.35 KB, text/plain)
2009-10-10 06:17 UTC, Prakash Punnoor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Prakash Punnoor 2009-10-07 17:02:20 UTC
I am on amd64 and set up an x86 cross compiling environment. I started with a naked cross compilation environment (using crossdev-wrappers and following the android guide), ie. no stage images.When emerging flex it fails to properly detect the glibc malloc. I had to hand edit the generated config.h and set the glibc malloc line to 1 and remove the overriding defines for malloc and realloc. Then emerge went fine.
I don't know whether it is really flex' problem or whether I need to set up anything else for cross compilation, but the guides are a bit out-dated and it took me a day to come to this point at least.

Reproducible: Always
Comment 1 Prakash Punnoor 2009-10-07 17:03:36 UTC
I should mention, the cross compilation environment is not fancy. Based on glibc and make.conf attached.
Comment 2 Prakash Punnoor 2009-10-07 17:04:29 UTC
Created attachment 206340 [details]
x86 make.conf
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2009-10-09 18:08:21 UTC
We need an error log.
And emerge --info.
Comment 4 Prakash Punnoor 2009-10-10 06:17:45 UTC
Created attachment 206613 [details]
build log
Comment 5 Prakash Punnoor 2009-10-10 06:20:14 UTC
I am not sure whether the output is all correct. It is mixing host and build environment (or is this intended?)

i686-pc-linux-gnu-emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.31 x86_64)
=================================================================                             
System uname: Linux-2.6.31-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-gentoo-2.0.1
Timestamp of tree: Fri, 09 Oct 2009 10:00:01 +0000                                                
app-shells/bash:     4.0_p33                                                                      
dev-lang/python:     2.6.3, 3.1.1-r1                                                              
dev-util/cmake:      2.6.4-r3                                                                     
sys-apps/baselayout: 2.0.1                                                                        
sys-apps/openrc:     0.4.3-r4                                                                     
sys-apps/sandbox:    2.1                                                                          
sys-devel/autoconf:  2.13, 2.63-r1                                                                
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11                                             
sys-devel/binutils:  2.19.1-r1                                                                    
sys-devel/gcc-config: 1.4.1                                                                       
sys-devel/libtool:   2.2.6a                                                                       
virtual/os-headers:  2.6.30-r1                                                                    
ACCEPT_KEYWORDS="x86 ~x86"                                                                        
CBUILD="x86_64-pc-linux-gnu"                                                                      
CFLAGS="-O2 -pipe -march=athlon-xp -fomit-frame-pointer"                                          
CHOST="i686-pc-linux-gnu"                                                                         
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"                                        
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=athlon-xp -fomit-frame-pointer"                                                                                                                        
DISTDIR="/usr/portage/distfiles"                                                                                                                                                  
EMERGE_DEFAULT_OPTS="-j2"
FEATURES="buildpkg distlocks fixpackages parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://de-mirror.org/distro/gentoo/ ftp://mirror.netcologne.de/gentoo/ "
LANG="de_DE.utf8"
LDFLAGS="-L/usr/i686-pc-linux-gnu/lib -L/usr/i686-pc-linux-gnu/usr/lib -Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/usr/i686-pc-linux-gnu/"
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="a52 aac acpi aften alsa branding bzip2 cairo cddb cdparanoia cdr chm cleartype cli crypt cups dbus djvu dri dts dvd dvdr eds emboss encode evo faad fam ffmpeg firefox flac fortran gif glitz gstreamer hal iconv ipv6 isdnlog jpeg kde kipi libnotify libsamplerate lm_sensors lzma lzo mad mikmod mmap mmx modules moonlight mp3 mp4 mpeg mudflap musepack musicbrainz ncurses network npp nptl nptlonly ogg opengl openmp pam pch pcre pdf phonon plasma png pppd qt3support qt4 quicktime raw readline reflection samba sdl session smp sndfile speex spell spl sqlite sse ssl startup-notification svg sysfs tcpd theora threads thumbnail thunar tiff truetype unicode usb vorbis wavpack win32codecs x264 x86 xcb xcomposite xml xorg xulrunner xv xvid 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" SANE_BACKENDS="nothing plustek" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa vga"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 6 Prakash Punnoor 2009-10-10 06:23:24 UTC
The problem in the build log is this:

checking for GNU libc compatible malloc... no

checking for GNU libc compatible realloc... no

This messes up the build.
Comment 7 SpanKY gentoo-dev 2009-10-10 17:07:48 UTC
not specific to flex.  you need to be using the config.site files that come with crossdev wrappers.  if you dont, then it's up to you to force a sane state when cross-compiling packages.

*** This bug has been marked as a duplicate of bug 224685 ***