Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45291 - xfree-4.3.0-r5 Elf_RelocateEntry() Unsupported relocation type 10
Summary: xfree-4.3.0-r5 Elf_RelocateEntry() Unsupported relocation type 10
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: Alpha Linux
: High critical (vote)
Assignee: Alpha Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-21 09:31 UTC by Evert
Modified: 2004-12-31 07:13 UTC (History)
2 users (show)

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


Attachments
/var/log/XFree86.0.log (XFree86.0.log,74.50 KB, text/plain)
2004-03-21 09:37 UTC, Evert
Details
/etc/X11/XF86Config (XF86Config,14.59 KB, text/plain)
2004-03-21 09:53 UTC, Evert
Details
/var/log/XFree86.0.log (with BusID in /etc/X11/XF86Config) (XFree86.0.log,175.24 KB, text/plain)
2004-03-22 07:21 UTC, Evert
Details
time added to XFree86.0.log (with BusID, without NoDCC) (XFree86.0.log+BusID,41.73 KB, text/plain)
2004-03-23 03:33 UTC, Evert
Details
time added to XFree86.0.log (with BusID, with NoDCC) (XFree86.0.log+BusID+NoDDC,41.39 KB, text/plain)
2004-03-23 03:33 UTC, Evert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Evert 2004-03-21 09:31:58 UTC
I just upgraded gnome and as a result of that, xfree also upgraded from 4.2.1-r2 to 4.3.0-r5. After a xf86config and startx, I get a fatal server error.
I use a Matrox Millennium (2MB) with an AcerView 33 monitor (31.468 - 38 kHz, 45 - 90 Hz)

Reproducible: Always
Steps to Reproduce:
1. emerge xfree
2. xf86config
3. startx

Actual Results:  
Elf_RelocateEntry() Unsupported relocation type 10
(WW) MGA: No matching Device section for instance (BusID PCI:0:11:0) found
(EE) No devices detected.
 
Fatal server error:
no screens found
 
When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
This can be found in the log file "/var/log/XFree86.0.log".
Please report problems to xfree86@xfree86.org.
 
XIO:  fatal IO error 54 (Connection reset by peer) on X server ":0.0"
      after 0 requests (0 known processed) with 0 events remaining.

I will attach /var/log/XFree86.0.log below...


Expected Results:  
succesfull start of the X server


Gentoo Base System version 1.4.3.13
Portage 2.0.50-r1 (default-alpha-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.24)
=================================================================
System uname: 2.4.24 alpha EV4
distcc 2.12.1 alpha-unknown-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="alpha"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe "
CHOST="alpha-unknown-linux-gnu"
COMPILER="gcc3"
CXXFLAGS="-O2 -pipe "
FEATURES="ccache"
MAKEOPTS="-j2"
USE="X alpha berkdb cdr crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk
gtk2 imlib jpeg libg++ libwww mikmod motif mozilla ncurses oggvorbis opengl oss
pam pdflib perl png python quicktime readline sdl slang ssl tcpd truetype xml2
xmms xv zlib"
Comment 1 Evert 2004-03-21 09:37:18 UTC
Created attachment 27740 [details]
/var/log/XFree86.0.log
Comment 2 Evert 2004-03-21 09:53:40 UTC
Created attachment 27741 [details]
/etc/X11/XF86Config

This file is created after configuring with xf86config
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2004-03-21 13:04:12 UTC
Hi Evert, the Elf_RelocateEntry() messages are unrelated to the problem you're seeing.  You're XF86Config is not correct since there isn't a Device section for the Matrox card in the system.  You should read http://www-106.ibm.com/developerworks/edu/os-dw-linuxxwin-i.html which will help you configure your X server.
Comment 4 Evert 2004-03-22 02:51:22 UTC
Actually, there is a device section for my matrox:

Section "Device"
    Identifier  "Matrox Millennium 2MB"
    Driver      "mga"
    #VideoRam    2048
    VideoRam 2048
    # Insert Clocks lines here if appropriate
EndSection

which is used from:

Section "Screen"
    Identifier  "Screen 1"
    Device      "Matrox Millennium 2MB"
    Monitor     "AcerView 33"
    [...cut...]
EndSection

which is used from:

Section "ServerLayout"
                                                                                                                                                                 Identifier  "Simple Layout"
                                                                                                                                                                 Screen "Screen 1"
                                                                                                                                                                 InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
                                                                                                                                                             EndSection

and the url didn't help me further...
Comment 5 Evert 2004-03-22 07:21:42 UTC
Created attachment 27806 [details]
/var/log/XFree86.0.log (with BusID in /etc/X11/XF86Config)

I compared the XF86Config I used with xfree-4.2.1-r2 with the one I now use.
The actual difference is in Section "Module": Load "freetype" vs. Load
"speedo".
I also tried XF86Config which works for 4.2.1-r2 with no luck.
After some google on internet I decided to add the BusID option to Section
"Device"
like this:
									       
									     
Section "Device"
    Identifier	"Matrox Millennium 2MB"
    #Chipset	 "mga2064w"
    Driver	"mga"
    BusID	"PCI:0:11:0"
    VideoRam	2048
    # Insert Clocks lines here if appropriate
EndSection
									       
									     
Now X does start, but it takes 3 MINUTES to start. With xfree-4.2.1-r2,
starting X
took about 15 seconds, so there's definitely something wrong with
xfree-4.3.0-r5.
Commenting in or out the Chipset option makes no difference (like expected).
									       
									     
Normally the BusID option should not be necessary with only one gfx-card and
it should not take 3 MINUTES for X to start!
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2004-03-22 10:46:27 UTC
Try commenting out the VideoRam line.
Comment 7 Evert 2004-03-22 15:19:12 UTC
Chipset option and VideoRam option both make no difference.
Without BusID it doesn't start at all (Fatal server error: no screens found)
Option "NoDDC" reduced startuptime to 1 minute, still a long time but already better than 3 minutes without the NoDDC option...
So the section now looks like this:

Section "Device"
    Identifier  "Matrox Millennium 2MB"
    #Chipset     "mga2064w"
    Driver      "mga"
    BusID       "PCI:0:11:0"
    #VideoRam    2048
    Option      "NoDDC"
    # Insert Clocks lines here if appropriate
EndSection
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2004-03-22 15:22:04 UTC
I've been reading the man page a little (man mga), seems if you have a millenium II  you _should_ specify VideoRam, otherwise not.
Comment 9 Evert 2004-03-23 03:27:18 UTC
Well, this is a Matrox Millennium, so no need to specify VideoRam.
To trace what takes so long, I created a little perl script which adds date + time to the log.
To be able to start the command I did a remote login to the alpha from another gentoo system.
After that I did the following:
local: startx
remote (1 second later): tail -f -n 1000 --retry /var/log/XFree86.0.log |./add_date.pl

This shows what takes so long (without Option "NoDDC"):

Tue Mar 23 11:19:07 2004  (II) unmapVidMemSparse: unmapping Base 0x2ff01200000 Size 0x8000
Tue Mar 23 11:19:54 2004  (II) MGA(0): VESA BIOS detected
Tue Mar 23 11:19:54 2004  (II) MGA(0): VESA VBE Version 2.0
Tue Mar 23 11:19:54 2004  (II) MGA(0): VESA VBE Total Mem: 2048 kB
Tue Mar 23 11:19:54 2004  (II) MGA(0): VESA VBE OEM: Matrox Graphics Inc.
Tue Mar 23 11:19:54 2004  (II) MGA(0): VESA VBE OEM Software Rev: 1.5
Tue Mar 23 11:19:54 2004  (II) MGA(0): VESA VBE OEM Vendor: Matrox
Tue Mar 23 11:19:54 2004  (II) MGA(0): VESA VBE OEM Product: MILLENNIUM
Tue Mar 23 11:19:54 2004  (II) MGA(0): VESA VBE OEM Product Rev: 00
Tue Mar 23 11:19:54 2004  (II) Loading sub module "ddc"
Tue Mar 23 11:19:54 2004  (II) LoadModule: "ddc"
Tue Mar 23 11:19:54 2004  (II) Reloading /usr/X11R6/lib/modules/libddc.a
Tue Mar 23 11:20:52 2004  (II) MGA(0): VESA VBE DDC supported
Tue Mar 23 11:20:52 2004  (II) MGA(0): VESA VBE DDC Level none
Tue Mar 23 11:20:52 2004  (II) MGA(0): VESA VBE DDC transfer in appr. 0 sec.
Tue Mar 23 11:21:51 2004  (II) MGA(0): VESA VBE DDC read failed
Tue Mar 23 11:21:51 2004  (II) unmapVidMemSparse: unmapping Base 0x2ff000a0000 Size 0x20000


With Option "NoDDC", startuptime is a lot better:

Tue Mar 23 11:26:07 2004  (II) unmapVidMemSparse: unmapping Base 0x2ff01200000 Size 0x8000
Tue Mar 23 11:26:53 2004  (II) MGA(0): VESA BIOS detected
Tue Mar 23 11:26:53 2004  (II) MGA(0): VESA VBE Version 2.0
Tue Mar 23 11:26:53 2004  (II) MGA(0): VESA VBE Total Mem: 2048 kB
Tue Mar 23 11:26:53 2004  (II) MGA(0): VESA VBE OEM: Matrox Graphics Inc.
Tue Mar 23 11:26:53 2004  (II) MGA(0): VESA VBE OEM Software Rev: 1.5
Tue Mar 23 11:26:53 2004  (II) MGA(0): VESA VBE OEM Vendor: Matrox
Tue Mar 23 11:26:53 2004  (II) MGA(0): VESA VBE OEM Product: MILLENNIUM
Tue Mar 23 11:26:53 2004  (II) MGA(0): VESA VBE OEM Product Rev: 00
Tue Mar 23 11:26:53 2004  (II) Loading sub module "ddc"
Tue Mar 23 11:26:53 2004  (II) LoadModule: "ddc"
Tue Mar 23 11:26:53 2004  (II) Reloading /usr/X11R6/lib/modules/libddc.a
Tue Mar 23 11:26:53 2004  (II) unmapVidMemSparse: unmapping Base 0x2ff000a0000 Size 0x20000

It looks like it takes 46 seconds before it detects VESA BIOS.
And without NoDDC it takes almost 2 minutes before it knows it can't read DDC.
I will attach the full outputs below.
Comment 10 Evert 2004-03-23 03:33:04 UTC
Created attachment 27843 [details]
time added to XFree86.0.log (with BusID, without NoDCC)
Comment 11 Evert 2004-03-23 03:33:46 UTC
Created attachment 27844 [details]
time added to XFree86.0.log (with BusID, with NoDCC)
Comment 12 Dr. David Alan Gilbert 2004-09-19 10:48:54 UTC
I also see the RelocateEntry error - but on an xorg-x11 build on Alpha.  My failure mode is however different (on a tdfx)
Comment 13 Jonathan Benson 2004-09-20 16:53:29 UTC
This issue exists in Xorg-X11-6.8 as well.  I found the following patch while googling the problem.  No idea if it made it upstream or not before the project forked from XFree86.

http://groups.google.com/groups?q=Elf_RelocateEntry()+Unsupported+relocation+type+10&hl=en&lr=&ie=UTF-8&selm=1sKRQ-2iH-1531%40gated-at.bofh.it&rnum=1
Comment 14 Evert 2004-09-21 15:04:23 UTC
Just compiled and tested xfree-4.3.0-r7, nothing changed, still loads of "Elf_RelocateEntry() Unsupported relocation type 10" msgs.
Startuptime however is somewhat better, it was 60 seconds with r5, is now 50 seconds, wow!!! ;-) With xfree-4.2 I had startuptime of about 15 seconds, but well, that one disappeared from portage...
Comment 15 meyerm 2004-12-29 04:58:37 UTC
I just updated from a working xorg 6.7 to xorg-6.8.1.901 on my PPC (Pegasos2 with ATI Radeon 9200 SE) and it no longer starts - complaing about unsupported relocations type 18 and 23. It throws the error messages during the loading of the module bitmap.

Sending a SIGTERM to startx leaves a xinit and a X process in the background. Only killable with SIGKILL.

I recompiled without stack-protector (just out of curiosity) but that didn't solve the problem. So I retried again (whew, xorg takes way too long to compile... :-/ ) - this time without the hardened useflag. I will report back (if I don't forget it ;-) ).
Comment 16 Adam Jackson 2004-12-29 09:13:41 UTC
Please also try USE=dlloader.

Re comment #13, the fix for "type 10" relocations on Alpha was committed to Xorg HEAD on November 9:

https://bugs.freedesktop.org/show_bug.cgi?id=1765

But unfortunately that will have no effect on PPC (comment #15).  I'll see what I can do about getting it into 6.8.2 though.
Comment 17 meyerm 2004-12-29 10:56:10 UTC
Thanks for comment #16.

I just tried a fresh compile of xorg-x11-6.8.1 with
CFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
and the USE flag for xorg was set to (using emerge -pvv)
USE="font-server ipv6 minimal nls opengl pam truetype-fonts xprint xv"

It didn't work. Now I will try it as you suggested with ld-linux as loader. Stay tuned... ;-)
Comment 18 Bryan Østergaard (RETIRED) gentoo-dev 2004-12-30 18:45:48 UTC
This bug is about xfree/xorg elf loader issues on alpha which is solved now. Please file a new bug if the issues persist on ppc.
Comment 19 meyerm 2004-12-31 07:13:51 UTC
OK, I will. Thanks and a happy new year!