Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xorg-x11: Elf_RelocateEntry Unsupported relocation - SOLVED
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
rshetye
n00b
n00b


Joined: 07 Aug 2003
Posts: 42

PostPosted: Wed Nov 24, 2004 10:24 pm    Post subject: xorg-x11: Elf_RelocateEntry Unsupported relocation - SOLVED Reply with quote

When I start X using startx, it fails. The earlier xorg-x11 compiled (non-statically) using gcc-3.4.2-r2 was working. This one is compiled (non-statically) using gcc-3.4.3. I looked at some of the other postings and made sure that gcc-config is using 3.4.3, then logged out, logged in, recompiled xorg-x11 - no change. even rebooted and recompiled - no change. Any ideas anyone ? :?: :(

The system is running udev (non-devfs), and the kernel is
Quote:

Linux gentoo64 2.6.9-gentoo-r5 #1 Wed Nov 24 11:00:03 PST 2004 x86_64 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux


This is the error output from /var/log/Xorg.0.log
Quote:

X Window System Version 6.8.0
Release Date: 8 September 2004
X Protocol Version 11, Revision 0, Release 6.8
Build Operating System: Linux 2.6.9-gentoo-r5 x86_64 [ELF]
Current Operating System: Linux gentoo64 2.6.9-gentoo-r5 #1 Wed Nov 24 11:00:03 PST 2004 x86_64
Build Date: 24 November 2004
Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Nov 24 12:26:45 2004
(==) Using config file: "/etc/xorg.conf"
(==) ServerLayout "X.org Configured"
(**) |-->Screen "Screen0" (0)
(**) | |-->Monitor "Monitor0"
(**) | |-->Device "Card0"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(WW) The directory "/usr/share/fonts/CID/" does not exist.
Entry deleted from font path.
(**) FontPath set to "/usr/share/fonts/misc/,/usr/share/fonts/TTF/,/usr/share/fonts/Type1/,/usr/share/fonts/75dpi/,/usr/share/fonts/100dpi/"
(**) RgbPath set to "/usr/X11R6/lib/X11/rgb"
(**) ModulePath set to "/usr/X11R6/lib64/modules"
(WW) Open APM failed (/dev/apm_bios) (No such file or directory)
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.2
X.Org Video Driver: 0.7
X.Org XInput driver : 0.4
X.Org Server Extension : 0.2
X.Org Font Renderer : 0.4
(II) Loader running on linux
(II) LoadModule: "bitmap"
(II) Loading /usr/X11R6/lib64/modules/fonts/libbitmap.a
Elf_RelocateEntry() Unsupported relocation type 4
Elf_RelocateEntry() Unsupported relocation type 4
Elf_RelocateEntry() Unsupported relocation type 9
Elf_RelocateEntry() Unsupported relocation type 4
..
Elf_RelocateEntry() Unsupported relocation type 4
Elf_RelocateEntry() Unsupported relocation type 9
..
Elf_RelocateEntry() Unsupported relocation type 9
Elf_RelocateEntry() Unsupported relocation type 9
Elf_RelocateEntry() Unsupported relocation type 9
Elf_RelocateEntry() Unsupported relocation type 4

(II) Module bitmap: vendor="X.Org Foundation"
compiled for 6.8.0, module version = 1.0.0
Module class: X.Org Font Renderer
ABI class: X.Org Font Renderer, version 0.4

*** If unresolved symbols were reported above, they might not
*** be the reason for the server aborting.

Fatal server error:
Caught signal 11. Server aborting


Please consult the The X.Org Foundation support
at http://wiki.X.Org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.


This is my emerge info. Also I have LDFLAGS="-Wl,-O1" in my make.conf - emerge info does not show this flag.
Code:

emerge info

Quote:

Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.6
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers: sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -pipe -O2 -ftracer -fweb"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -pipe -O2 -ftracer -fweb"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS=" http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa berkdb bitmap-fonts bootsplash cdr crypt cscope dvd esd fam flac gif gnome gpm gtk gtk2 hardened imagemagick imlib ipv6 jp2 jpeg lzw lzw-tiff mad mikmod motif multitarget ncurses nls nptl nptlonly oggvorbis opengl oss pam perl pic pie png python readline ssl svg tcpd tiff truetype usb userlocales xml2 xpm xrandr xv zlib"


Note that my environment does NOT have multilib.
Code:

emerge -av os-headers glibc binutils gcc


Quote:

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild R ] sys-kernel/linux26-headers-2.6.8.1-r1 -build 0 kB
[ebuild R ] sys-libs/glibc-2.3.4.20041102 -build -debug -erandom +hardened -multilib +nls -nomalloccheck +nptl +nptlonly +pic +userlocales 0 kB
[ebuild R ] sys-devel/binutils-2.15.92.0.2-r1 -bootstrap -build -debug +multitarget +nls (-uclibc) 0 kB
[ebuild R ] sys-devel/gcc-3.4.3 -bootstrap -boundschecking -build -debug -fortran -gcj +gtk +hardened -multilib (-n32) (-n64) +nls -nocxx -objc -static (-uclibc) 0 kB


This is how my xorg-x11 was built.
Code:

emerge -av xorg-x11


Quote:

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild R ] x11-base/xorg-x11-6.8.0-r3 (-3dfx) (-3dnow) +bitmap-fonts -cjk -debug -dlloader -dmx -doc +hardened -insecure-drivers +ipv6 (-mmx) +nls +pam -sdk (-sse) -static -xprint 0 kB


Last edited by rshetye on Sun Dec 05, 2004 8:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
btlee
Apprentice
Apprentice


Joined: 03 Sep 2004
Posts: 168
Location: San Francisco

PostPosted: Thu Nov 25, 2004 6:03 am    Post subject: Reply with quote

Try again without hardened.
I had the same exprience.
Back to top
View user's profile Send private message
rshetye
n00b
n00b


Joined: 07 Aug 2003
Posts: 42

PostPosted: Thu Nov 25, 2004 11:09 am    Post subject: Reply with quote

gcc-3.4.3 causes the problem. gcc-3.4.2-r2 is ok.

xorg-x11-6.8.0-r3 and xorg-x11-6.8.0-r1 work when compiled with gcc-3.4.2, but cause loss of console (CRT freq is out of range) when exiting the GUI. 2.6.9-gentoo-r6 loses console on the first exit from GUI. For 2.6.9-gentoo-r5 and 2.6.9-gentoo-r1, exiting the GUI the first time is fine. Restart the GUI and this time when you exit the GUI, you lose the console.

currently, my xorg-x11 is 6.8.0-r3 compiled with gcc-3.4.2-r2. kernel is 2.6.9-gentoo-r6 and window manager is icewm-1.2.17 with idesk 0.5.6 and rox 2.1.4.

leave hardened out! hmmm :( dont want to do that but I guess I might end up having to. oh well!!
Back to top
View user's profile Send private message
nestal
n00b
n00b


Joined: 11 Apr 2003
Posts: 34
Location: Milky Way

PostPosted: Fri Nov 26, 2004 4:55 pm    Post subject: Reply with quote

I have this problem too...
now falling back to gcc 3.4.2-r2
:(
Back to top
View user's profile Send private message
Esben
Apprentice
Apprentice


Joined: 29 Jun 2002
Posts: 244
Location: Copenhagen/Denmark

PostPosted: Sat Dec 04, 2004 4:14 pm    Post subject: Reply with quote

I had this problem using the hardened gcc, and it went away when I switched gcc profile:
Code:
gcc-config i686-pc-linux-gnu-3.4.2-vanilla

You should be able to switch back when you are done compiling X. I havn't tried 3.4.3 yet, but I will :-D
_________________
regards, Esben
True trade is honest, but not merciful. Politics is dishonest, no matter how merciful... and war is neither honest nor merciful.... therefore, choose trade above politics, but politics above war.
Back to top
View user's profile Send private message
danorris
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 108

PostPosted: Sat Dec 04, 2004 4:34 pm    Post subject: Reply with quote

I'm having the same problem, with gcc 3.4.3 and 3.4.2. But I haven't tried the -vanilla profile yet, I'll do that next.

I submitted bug 73282 but haven't seen any activity yet. I think they had this problem before with xfree and fixed it, and now it's cropping up again in xorg.
Back to top
View user's profile Send private message
danorris
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 108

PostPosted: Sat Dec 04, 2004 7:14 pm    Post subject: Reply with quote

Yes, compiling with the -vanilla profile worked perfectly. Thanks, Esben!
Back to top
View user's profile Send private message
Esben
Apprentice
Apprentice


Joined: 29 Jun 2002
Posts: 244
Location: Copenhagen/Denmark

PostPosted: Sat Dec 04, 2004 8:40 pm    Post subject: Reply with quote

Happy to help. Did you update the bug? :)
_________________
regards, Esben
True trade is honest, but not merciful. Politics is dishonest, no matter how merciful... and war is neither honest nor merciful.... therefore, choose trade above politics, but politics above war.
Back to top
View user's profile Send private message
danorris
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 108

PostPosted: Sat Dec 04, 2004 11:12 pm    Post subject: Reply with quote

Just did... thanks again!
Back to top
View user's profile Send private message
ReeferMac
Guru
Guru


Joined: 30 May 2004
Posts: 389

PostPosted: Sat Feb 26, 2005 12:44 pm    Post subject: Reply with quote

OK, I'll have to ask that everyone dumb-it-down a notch for me... I'm a bit green, and running into the same error...
new install off LiveCD 2004.3r1, AMD64, 2.6.9r14 kernel.

I tried emerging X w/ USE="-hardened" (as hardened _was_ in my use= flags), but that didn't get rid of the error, so then I unmerged it, removed hardened from my use= flags in /etc/make.conf, and did an "emerge -D world" .. yeah, I was scared, but it's a new install, so who care's if I b0rk it - can't get the GUI running anyways! :lol:

That didn't work either. :(

.. So I'm reading about this -vanilla thing. OK, I can type in that command, and try emerging it again, but how do I get it back to whatever it is now, and how do I find out, what my gcc-config is now?

Thanks for the help.

- Mac
Back to top
View user's profile Send private message
danorris
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 108

PostPosted: Sat Feb 26, 2005 4:07 pm    Post subject: Reply with quote

Type "gcc-config -h" for help, it explains all the commandline switches.

Basically, "gcc-config -c" shows the current profile, "gcc-config -l" shows the list of available profiles with a star next to the currently active one, and you already know how to change profiles.
Back to top
View user's profile Send private message
ReeferMac
Guru
Guru


Joined: 30 May 2004
Posts: 389

PostPosted: Sat Feb 26, 2005 4:19 pm    Post subject: Reply with quote

Thanks a bunch Danorris!
That helps me immensely (or is going to cause me a world of headaches, not sure which yet! ;) ).
Thanks again.

- Mac
Back to top
View user's profile Send private message
ReeferMac
Guru
Guru


Joined: 30 May 2004
Posts: 389

PostPosted: Sun Feb 27, 2005 2:51 am    Post subject: Reply with quote

Well, vanilla sources worked again here. I got my nvidia Splash screen the first time too!
I tried emerging X six ways from Sunday, and the gcc -vanilla thing did the trick first try out of the gate.
Thanks for the help. What gives, standard sources are 'optimized' a little too strongly and broke something? Vanilla flavored are less aggressive, and don't suffer from the problem?
Is it a problem, having emerged xorg-x11, nvidia-kernel, and nvidia-glx, while gcc-config was set to vanilla? Will a "Deep" emerge of world b0rk my X-server, now that it's set back to standard? Unless of course they get this 'bug' fixed and an update somewhere's fixes it, right? 8O

- Mac
Back to top
View user's profile Send private message
danorris
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 108

PostPosted: Sun Feb 27, 2005 3:14 am    Post subject: Reply with quote

I think it's a little more complicated than that. X (like many programs) does dynamic module loading. But unlike most programs it uses its own loader, not the system's. (We're talking about Xorg's X server here, but I think the same is true for XFree86.) I'm sure there's a terribly good reason for this, but those reasons are over my head. Anyway, there are a few "new" relocation formats on AMD64, and X's custom module loader doesn't support them. So when gcc compiles those modules, and chooses a new fancy format, X dies because its loader can't load those modules. And for whatever reason, -vanilla causes gcc to use different relocation types that the X loader does support.

This is probably a gross oversimplification, and I have to admit I don't know nearly as much as I'd like about object relocation formats or dynamic loading. But I think the gist is there. Someone jump all over me if I'm horribly mistaken here :)
Back to top
View user's profile Send private message
ReeferMac
Guru
Guru


Joined: 30 May 2004
Posts: 389

PostPosted: Sun Feb 27, 2005 3:20 am    Post subject: Reply with quote

danorris wrote:
This is probably a gross oversimplification...


LOL! Fear not danorris... You're still way over my head! :D
Thanks tho, that helps. ;)

- Mac
Back to top
View user's profile Send private message
ebsbel
n00b
n00b


Joined: 30 May 2005
Posts: 8

PostPosted: Mon May 30, 2005 10:04 pm    Post subject: Gentoo-newbie Reply with quote

I just installed Gentoo from a Mandrake installation.
Everything worked great until I got the X-problem.
My question is, how do I get the gcc-vanilla installed? Do I need to kompile a new vanilla kernel?
That's the only vanilla info I could find out there.

/ # gcc-config -l
[1] x86_64-pc-linux-gnu-3.4.3
[2] x86_64-pc-linux-gnu-3.4.3-hardened *
[3] x86_64-pc-linux-gnu-3.4.3-hardenednopie
[4] x86_64-pc-linux-gnu-3.4.3-hardenednopiessp
[5] x86_64-pc-linux-gnu-3.4.3-hardenednossp

My name is also Esben!
_________________
Amd64 3000+
Asus K8V SE-Deluxe
Geforce 5700 Ultra
Back to top
View user's profile Send private message
danorris
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 108

PostPosted: Tue May 31, 2005 12:50 am    Post subject: Reply with quote

I think the vanilla profile went away. It's not a separate package that you would have to install, it's a separate configuration profile that the gcc ebuild sets up. You could try using the first configuration (non-hardened) which, if not the same as the old vanilla profile, is closer than the hardened profile. But I don't know what the consequences of using non-hardened gcc on a hardened system are...
Back to top
View user's profile Send private message
ebsbel
n00b
n00b


Joined: 30 May 2005
Posts: 8

PostPosted: Tue May 31, 2005 1:38 am    Post subject: Reply with quote

Yup! That worked, but it seems I haven't got any mouse support in X.
/dev/mouse doesn't exist. So X crashed again.:?
Well, I would think that it should be easy enough to recognize a ps2 mouse.
checking my Xorg.0.log...
Goooogling....

So the mouse is in /dev/input/mouse0 probably!
OK try again!!!
_________________
Amd64 3000+
Asus K8V SE-Deluxe
Geforce 5700 Ultra
Back to top
View user's profile Send private message
danorris
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 108

PostPosted: Tue May 31, 2005 5:26 am    Post subject: Reply with quote

You can use /dev/input/mice. Here's my setup:

Code:
Section "InputDevice"
    Identifier      "mouse"
    Driver          "mouse"
    Option          "Protocol"      "ExplorerPS/2"
    Option          "Device"        "/dev/input/mice"
    Option          "Buttons"       "7"
    Option          "ZAxisMapping"  "6 7"
EndSection


I'm using ExplorerPS/2 because it supports the two extra navigation buttons on my mouse. IMPS/2 is much more commonly used. See also the Mouse Scrollwheel Howto and the Mouse Nav Buttons Howto on the Gentoo wiki (if you have such a mouse).
Back to top
View user's profile Send private message
ebsbel
n00b
n00b


Joined: 30 May 2005
Posts: 8

PostPosted: Tue May 31, 2005 11:35 pm    Post subject: Reply with quote

Thanx! Got X up and running. I'll try tweaking the mouse settings.
My scrollwheel moves sideways instead of up and down.
Got to check the scrollwheel howto.
E
_________________
Amd64 3000+
Asus K8V SE-Deluxe
Geforce 5700 Ultra
Back to top
View user's profile Send private message
sheepdog
Guru
Guru


Joined: 14 Oct 2002
Posts: 369
Location: Edison Enterprises Inc., Lake Oswego, Oregon, USA

PostPosted: Mon Jul 11, 2005 3:12 am    Post subject: Reply with quote

I emerged emacs with
Code:
emerge -uD emacs
and since then X won't start. The error is what is reported here. I have rebuilt the tool chain, made sure I was using non-hardened gcc (gcc-3.3.4) and re-emerge xorg-x11 statically. None of this has worked. I need an NVidia for my graphics card, so I didn't try dllloader solution. Anything else I can do?
Back to top
View user's profile Send private message
chebe
Tux's lil' helper
Tux's lil' helper


Joined: 02 Mar 2004
Posts: 101
Location: New Caledonia

PostPosted: Mon Jul 11, 2005 4:59 am    Post subject: Reply with quote

Here is what I manage to do to solve this issue:
https://forums.gentoo.org/viewtopic-t-358268.html

hope this helps
_________________
Unix is user friendly - it's just selective about who its friends are !
Back to top
View user's profile Send private message
sheepdog
Guru
Guru


Joined: 14 Oct 2002
Posts: 369
Location: Edison Enterprises Inc., Lake Oswego, Oregon, USA

PostPosted: Mon Jul 11, 2005 5:19 am    Post subject: Reply with quote

Thank you. That's an interesting solution.

However, I did get around this problem by
Code:
USE="static" emerge xorg-x11
using the gcc-3.3.4 compiler. Now X fails for a different reason, "No screens found". But at least it's a different error :(
Back to top
View user's profile Send private message
libzhark
n00b
n00b


Joined: 13 Jul 2005
Posts: 2

PostPosted: Wed Jul 13, 2005 8:59 pm    Post subject: Reply with quote

Did you get around the no screens problem, sheepdog?

I've just attempted to install gentoo on my system and have gotten through the ati driver loading and elf_relocateentry problems and am now up to no screens found.

Athlon 64 3500+
x800xl 256MB PCI-e (using the DVI output, but the vga also produced the same results)
lspci finds it on 5:00:0 and a secondary entry 5::00:1, tried specifying both in xorg.conf.

I noticed in the xorg log that it doesn't list the x800xl as supported in its list (it doesnt list anything beyond the 800pro and xt), and that x doesn't recognize the type of card it is beyond an ati. I updated lspci (so that it could recognize the card) after re-emerging xorg-x11 with USE="static". Would this effect anything? Would rebuilding xorg now allow it to identify the x800xl?
Back to top
View user's profile Send private message
sheepdog
Guru
Guru


Joined: 14 Oct 2002
Posts: 369
Location: Edison Enterprises Inc., Lake Oswego, Oregon, USA

PostPosted: Thu Jul 14, 2005 2:30 am    Post subject: Reply with quote

I have not found a solution to the "no screens" problem. You can find the full details in https://forums.gentoo.org/viewtopic-t-358633-highlight-.html.

I don't think rebuilding xorg will help in your case, although there is certainly no harm in trying. I think it either does or does not support the driver.

I think this post has the solution you're looking for:https://forums.gentoo.org/viewtopic-t-317771-highlight-x800xl+ati.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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