Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] emerge libsdl error
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
chittoor
n00b
n00b


Joined: 09 Apr 2006
Posts: 35

PostPosted: Sun Feb 18, 2007 4:41 am    Post subject: [SOLVED] emerge libsdl error Reply with quote

libsdl compiled fine before but now it is not. The only change is the use flags used.

New use flags:
Code:
emerge -Npv libsdl

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-libs/libsdl-1.2.11-r1  USE="X alsa dga* fbcon* opengl oss xv -aalib -arts* -directfb -esd* -ggi -libcaca -nas -noaudio -noflagstrip -nojoystick -novideo -svga -xinerama" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


The error
Code:
i686-pc-linux-gnu-gcc -O2 -march=pentium4 -pipe -fno-ident -I./include -D_GNU_SOURCE=1 -fvisibility=hidden -DXTHREADS -D_REENTRANT -DHAVE_LINUX_VERSION_H -c ./src/audio/dummy/SDL_dummyaudio.c -o build/SDL_dummyaudio.o >/dev/null 2>&1
 ./build-scripts/strip_fPIC.sh /usr/bin/yasm -f elf -I ./src/hermes/ -DHIDDEN_VISIBILITY ./src/hermes/mmx_main.asm  -fPIC -DPIC -o build/.libs/mmx_main.o
/usr/bin/yasm -f elf -I ./src/hermes/ -DHIDDEN_VISIBILITY ./src/hermes/mmx_main.asm -o build/.libs/mmx_main.o
./src/hermes/mmx_main.asm:75: invalid argument to [SECTION]
./src/hermes/mmx_main.asm:75: undefined symbol `.note.GNU' (first use)
./src/hermes/mmx_main.asm:75: undefined symbol `stack' (first use)
./src/hermes/mmx_main.asm:75:  (Each undefined symbol is reported only once.)
make: *** [build/mmx_main.lo] Error 1
make: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-gcc -O2 -march=pentium4 -pipe -fno-ident -I./include -D_GNU_SOURCE=1 -fvisibility=hidden -DXTHREADS -D_REENTRANT -DHAVE_LINUX_VERSION_H -c ./src/loadso/dlopen/SDL_sysloadso.c -o build/SDL_sysloadso.o >/dev/null 2>&1

!!! ERROR: media-libs/libsdl-1.2.11-r1 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3603:   Called src_compile
  libsdl-1.2.11-r1.ebuild, line 160:   Called die

!!! emake failed
!!! 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/media-libs/libsdl-1.2.11-r1/temp/build.log'.
 


My emerge --info

Code:
emerge --info
Portage 2.1.2-r9 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r0, 2.6.19-beyond4 i686)
=================================================================
System uname: 2.6.19-beyond4 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.9
Timestamp of tree: Sat, 17 Feb 2007 04:13:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17.50.0.12
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -ffast-math -pipe -fno-ident"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -ffast-math -pipe -fno-ident -fvisibility-inlines-hidden"
DISTDIR="/data/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.gg3.net/"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu"
MAKEOPTS="-j3"
PKGDIR="/data/binpkgs"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/layman/science /usr/local/layman/sunrise /usr/local/layman/custom-kernels /usr/local/layman/armagetron /usr/local/layman/xeffects /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups dbus dga dlloader dri dvd dvdr emboss encode fam fbcon firefox flac fortran gdbm gif gpm gstreamer gtk hal hashstyle iconv isdnlog jack jpeg kde kdeenablefinal kdehiddenvisibility ldap libg++ mad midi mikmod mmx mmxext mp3 mpeg ncurses nls nptl nptlonly nvidia offensive ogg opengl oss pam pcre perl pertty png ppds pppd python qt3 qt4 quicktime readline reflection samba sdl session spell spl sse sse2 ssl tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis win32codecs x86 xcomposite xml xorg 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia nv i810 vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS


EDIT:Solved. Thanks to all.


Last edited by chittoor on Sat Mar 10, 2007 8:37 am; edited 1 time in total
Back to top
View user's profile Send private message
opentaka
l33t
l33t


Joined: 18 Feb 2005
Posts: 840
Location: Japan

PostPosted: Sun Feb 18, 2007 11:58 am    Post subject: Reply with quote

Bug 163053
_________________
"Being defeated is often a temporary condition. Giving up is what makes it permanent" - Marilyn vos Savant
Back to top
View user's profile Send private message
Vorlon
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2003
Posts: 96
Location: West Grove, PA

PostPosted: Thu Mar 08, 2007 8:42 pm    Post subject: emerge libsdl error - Solved Reply with quote

Just setting this link was not enough for me. I also had to downgrade yasm to the previous version 0.4.0. After that, libsdl compiled just fine.
_________________
Casey Bralla
Chief Nerd in Residence
The NerdWorld Organisation
Back to top
View user's profile Send private message
chen0rama
n00b
n00b


Joined: 09 Mar 2007
Posts: 15

PostPosted: Fri Mar 09, 2007 5:33 am    Post subject: Reply with quote

I got the same error :( can anyone help with fix it? how to apply this no-pagesize patch file?
Back to top
View user's profile Send private message
Vorlon
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2003
Posts: 96
Location: West Grove, PA

PostPosted: Fri Mar 09, 2007 5:47 am    Post subject: Reply with quote

Ooops. The "link" idea I spoke about was from another thread for the same problem.

Here is what I did to solve the problem. Try these steps:

emerge =dev-lang/yasm-0.4.0
ln -s /usr/src/linux/include/asm-i386/page.h /usr/include/asm/page.h
ln -s /usr/src/linux/include/asm-i386/page.h /usr/include/asm-generic/page.h
emerge libsdl


good luck!
_________________
Casey Bralla
Chief Nerd in Residence
The NerdWorld Organisation
Back to top
View user's profile Send private message
chen0rama
n00b
n00b


Joined: 09 Mar 2007
Posts: 15

PostPosted: Fri Mar 09, 2007 6:01 am    Post subject: Reply with quote

Vorlon wrote:
Ooops. The "link" idea I spoke about was from another thread for the same problem.

Here is what I did to solve the problem. Try these steps:

emerge =dev-lang/yasm-0.4.0
ln -s /usr/src/linux/include/asm-i386/page.h /usr/include/asm/page.h
ln -s /usr/src/linux/include/asm-i386/page.h /usr/include/asm-generic/page.h
emerge libsdl


good luck!


thank you very much mate, it works! very cool :D :D
Back to top
View user's profile Send private message
ok
Guru
Guru


Joined: 11 Jul 2006
Posts: 376
Location: germany

PostPosted: Sun Mar 18, 2007 6:22 am    Post subject: Reply with quote

for me it was enough to emerge Version 0.4.0 of yasm.
Code:
echo "=dev-lang/yasm-0.5.0" >> /etc/portage/package.mask
emerge yasm

Thank you for the hint.
Back to top
View user's profile Send private message
LoSeR_5150
Guru
Guru


Joined: 20 Mar 2005
Posts: 455
Location: San Francisco, CA

PostPosted: Thu Mar 22, 2007 3:19 am    Post subject: Reply with quote

Only my x86 box was affected by this. Anyways fixed this with


Code:

ln -s /usr/src/linux/include/asm-i386/page.h /usr/include/asm/page.h
ln -s /usr/src/linux/include/asm-i386/page.h /usr/include/asm-generic/page.h
emerge libsdl


Will I eventually need to remove these symlinks???
_________________
Opteron 1356@2.4Ghz
6GB DDR2 800Mhz
128MB Quadro NVS 210S
640GB Western Digital HD
*Gentoo-x86_64-2.6.30-r1

Opteron175@2.2GHz
2GB DDR 400MHz
256MB Quadro 1400 Go
(2) 80GB Segate HDs: RAID0
*Gentoo-x86_64-2.6.30-r1
Back to top
View user's profile Send private message
Eltharion
n00b
n00b


Joined: 23 Feb 2004
Posts: 20
Location: Magdeburg, Germany

PostPosted: Fri Jun 08, 2007 2:07 pm    Post subject: Reply with quote

I currently failed while building media-libs/libsdl-1.2.11 on a new box with 2007.0. It occured due to a missing page.h. I copied the file into the two mentioned directories and libsdl compiled well.

However I'm asking me myself, what the reason for this bug is... The page.h files seems to belong to the "sys-kernel/linux-headers" package. I checked the current version of the source files in 'distfiles/gentoo-headers-base-2.6.21.tar.bz2' and the page files are in the archive. Even in my kernel dir '/usr/src/linux' they are there. But on my box I'm missing a lot of header files below /usr/include/asm/ compared to an older Gentoo system. So I think this may be a second bug which also needs to be fixed. Just fixing the 2 files is enough for libsdl but the next time another package may need other files from these directories ...

While reading '/usr/portage/eclass/kernel-2.eclass' I found that since kernel 2.6.18 the headers are now installed using another method... Is anybody else missing includes below /usr/include/asm?

E*

@LoSeR_5150: make copies, then they can be overwritten if the header installation works again...
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 - 5 Hours
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