I've been dropping by IRC for tips occasionally as I muck around with getting 
fox-gate (cloned from ssh://anon at hg.opensolaris.org/hg/fox/fox-gate) to 
build on the latest Indiana (DP2).  As this is a bit larger of an issue, I 
figured I'd post to a discussion list instead of trying to transcribe over IRC. 
 If there is a more appropriate thread, let me know.

It appears that I'm fairly close to the end of the build process, and the piece 
that is now failing is the linking of the actual Xorg executable within 
XW_NV/open-src/xserver/xorg/build_32/xorg-server-1.3.0.0.hw/xfree86, and it 
fails with a core dump within ld.

I'm very interested in getting a fix for the BadAlloc error in the Xorg build 
included within Developer Preview 2, so I'd appreciate any help in trying to 
move this build forward.

>From log/build-XW:

/usr/sfw/bin/gcc -DHAVE_XORG_CONFIG_H -DXF86PM -Wall -Wpointer-arith 
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations 
-Wnested-externs -fno-strict-aliasing -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT 
-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DXTHREADS -DXUSE_MTSAFE_API -DLG3D 
-I../../include -I../../include -I../../Xext -I../../composite 
-I../../damageext -I../../xfixes -I../../Xi -I../../mi -I../../miext/shadow 
-I../../miext/damage -I../../render -I../../randr -I../../fb -O3 
-fno-omit-frame-pointer -Wall -march=i686 -m32 -rdynamic -Wl,-M 
-Wl,mapfile.scope -Wl,-z -Wl,muldefs -z combreloc -z lazyload -Wl,-M 
-Wl,/usr/lib/ld/map.pagealign -Wl,-M -Wl,/usr/lib/ld/map.noexdata -Wl,-M 
-Wl,/usr/lib/ld/map.bssalign -Wl,-M -Wl,/usr/lib/ld/map.noexstk -Wl,-M 
-Wl,/export/home/awj/src/opensolaris/fox-gate/XW_NV/open-src/xserver/xorg/../../common/mapfiles//map.noexbss
 -Wl,-B -Wl,direct -o Xorg xorg.o ../../dix/dix.O ../../os/os.O  -L/usr/sfw/lib 
-L/usr/X11/lib/X11/xserver common/libinit.a loader/libloader.a 
./.libs/libosandcommon.a rac/librac.a parser/libxf86config.a 
dixmods/.libs/libdixmods.a modes/libxf86modes.a ramdac/libramdac.a ddc/libddc.a 
i2c/libi2c.a ../../composite/.libs/libcomposite.a ../../mi/.libs/libmi.a 
../../xfixes/.libs/libxfixes.a ../../Xext/.libs/libXextbuiltin.a 
../../GL/glx/.libs/libglx.a ../../GL/mesa/.libs/libGLcore.a 
../../render/.libs/librender.a ../../randr/.libs/librandr.a 
../../damageext/.libs/libdamageext.a ../../miext/damage/.libs/libdamage.a 
../../miext/cw/.libs/libcw.a ../../miext/shadow/.libs/libshadow.a 
../../Xi/.libs/libXi.a ../../xkb/.libs/libxkb.a ../../dix/.libs/libxpstubs.a 
-L/usr/X11/lib -lXfont -lXau -lfontenc -lXdmcp dixmods/.libs/libxorgxkb.a -lnsl 
-lsocket -lm -lproject -R/usr/sfw/lib -R/usr/X11/lib/X11/xserver -R/usr/X11/lib
gcc: unrecognized option `-rdynamic'
collect2: ld terminated with signal 11 [Segmentation Fault], core dumped
*** Error code 1
make: Fatal error: Command failed for target `Xorg'
Current working directory 
/export/home/awj/src/opensolaris/fox-gate/XW_NV/open-src/xserver/xorg/build_32/xorg-server-1.3.0.0/hw/xfree86

Also, I tried to augment the command line to remove the -rdynamic flag in the 
final linkage, just in  case that was actually causing the error, but ld still 
segfaulted.

A simple log of my novice attempt at investigating the resulting corefile:

Loading modules: [ ld libc.so.1 ld.so.1 ]
> ::stack
libld.so.4`update_osym+0x1893(cfcf6018)
libld.so.4`ld32_update_outfile+0xbad(cfcf6018)
libld.so.4`ld32_main+0x516(55, 8046810)
main+0x155(55, 8046810, 8046968)
_start+0x7a(55, 8046ab4, 8046ac4, 8046ad3, 8046aee, 8046afd)
> cfcf6018::dis
0xcfcf6018:                     movl   $0x1fcfcf62,%eax
0xcfcf601d:                     imull  $-0x80,(%eax,%ecx),%eax  <0xffffff80>
0xcfcf6021:                     orb    $0x13,%al
0xcfcf6023:                     orb    %ah,(%eax)
0xcfcf6025:                     popl   (%ecx)
0xcfcf6027:                     orb    %ah,0xcfe28b(%eax)
0xcfcf602d:                     incl   %eax
0xcfcf602e:                     pushl  %edi
0xcfcf602f:                     into   
0xcfcf6030:                     xorb   $0x40,%al
0xcfcf6032:                     pushl  %edi


Finally, in case it's useful, the output of gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs
Configured with: /builds2/sfwnv-gate/usr/src/cmd/gcc/gcc-3.4.3/configure 
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as 
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++,f77,objc 
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-20050802)
 
 
This message posted from opensolaris.org

Reply via email to