Request for help w/ MUNGE and pthread-related debugging -- compile failures of MOL and benh kernel!


Subject: Request for help w/ MUNGE and pthread-related debugging -- compile failures of MOL and benh kernel!
From: Admin (admin@techpraxis.com)
Date: Tue Jul 17 2001 - 20:15:59 MDT


Hello, folks, I am new to this list today. This is a rel. long post, most of
its length is due to my inclusion of a higher level of machine and problem
detail than I have noticed is the norm on this list recently. This post is
intended specifically for those readers who have experience with the MUNGE
related compile failures, and is a report based on 2.4.7-pre6 kernel
versions, which I choose to run because of my necessity of using Sonnet
Tempo/VST IDE66 card (both with AEC6260 chipset). These failures have
happened on two (mostly identical) G3 "Gossamer" (more commonly known as
"beige" machines, some of whose linux parameters (via cat of /proc nodes) are
listed below. My experience level is: three years of running GNU/Linux,
FreeBSD 4.0 - 4.3, and HP-UX boxen...I am a journeyman Sysadmin and web
developer, among hats...not a kernel developer or C++ programmer. OK, here
goes...
I have spent three days reading the list archives in response to my problems
with the compilation of Mac-On-Linux from sources. Last year, on a yellow dog
champion server, I had a very positive experience with an older version of
MOL. Now, on my graphic production machine at home, thanks to the maturity of
the AEC6260 code in the 2.4.4+ kernels, and the perceived advantage of having
Linux web development tools available, I made the decision to have to get
GNU/Linux working for PPC with Mac OS via Samuel Rydh's code package. I have
several problems, all of which I was able to correct, up to this point, by
updating or changing my configuration. (Unfortunately, I would do the
difficult thing, and decide to pursue this while the development rsync tree
of MOL was unavailable ??!!) I got, finally, to the MUNGE_CONTEXT deadend
failure, so I decided to wait rsync tarballs/bzipballs were posted. (Thank
you, Brice and Derrick, ) Currently, my last compile failure was using the
cvs tree posted by Brice D Ruth this morning. (I also tried to download
Derrick Pates' bzipball, but couldn't resolve his web address or domain as of
9 AM this morning. It was working at the time of writing of this email.
So, if someone can help with these problems, thank you in advance, and much
appreciation and good karma...

Forrest Hawes
here is the output of the end of today's latest failure:

----------------------compiler output -------------------------------
cc -pipe -O3 -Wall -I/misc/mol/sinclude -I./include -I../include -c -o
lex.yy.o lex.yy.c
lex.yy.c:1125: warning: `yyunput' defined but not used
gcc -o molvconfig main.o vmodeparser.o modes.tab.o lex.yy.o
../emulation/obj/res_manager.o
gcc -L/usr/X11R6/lib -lX11 -lXext -lpthread -lm -o mol
emulation/emulation.o drivers/drivers.o booter/booter.o lib/lib.o
debugger/debugger.o
emulation/emulation.o: In function `exit_hook':
emulation/emulation.o(.text+0x4ec): undefined reference to `pthread_kill'
emulation/emulation.o(.text+0x4ec): relocation truncated to fit: R_PPC_REL24
pthread_kill
emulation/emulation.o: In function `threadpool_cleanup':
emulation/emulation.o(.text+0x4980): undefined reference to `pthread_cancel'
emulation/emulation.o(.text+0x4980): relocation truncated to fit: R_PPC_REL24
pthread_cancel
emulation/emulation.o(.text+0x498c): undefined reference to `pthread_join'
emulation/emulation.o(.text+0x498c): relocation truncated to fit: R_PPC_REL24
pthread_join
emulation/emulation.o(.text+0x4a10): undefined reference to `pthread_cancel'
emulation/emulation.o(.text+0x4a10): relocation truncated to fit: R_PPC_REL24
pthread_cancel
emulation/emulation.o(.text+0x4a1c): undefined reference to `pthread_join'
emulation/emulation.o(.text+0x4a1c): relocation truncated to fit: R_PPC_REL24
pthread_join
emulation/emulation.o: In function `threadpool_init':
emulation/emulation.o(.text+0x4ae4): undefined reference to `pthread_sigmask'
emulation/emulation.o(.text+0x4ae4): relocation truncated to fit: R_PPC_REL24
pthread_sigmask
emulation/emulation.o(.text+0x4b00): undefined reference to `pthread_create'
emulation/emulation.o(.text+0x4b00): relocation truncated to fit: R_PPC_REL24
pthread_create
emulation/emulation.o: In function `create_thread':
emulation/emulation.o(.text+0x4bb0): undefined reference to `pthread_create'
emulation/emulation.o(.text+0x4bb0): relocation truncated to fit: R_PPC_REL24
pthread_create
emulation/emulation.o: In function `set_thread_sigmask':
emulation/emulation.o(.text+0x4d88): undefined reference to `pthread_sigmask'
emulation/emulation.o(.text+0x4d88): relocation truncated to fit: R_PPC_REL24
pthread_sigmask
emulation/emulation.o(.text+0x4dac): undefined reference to `pthread_sigmask'
emulation/emulation.o(.text+0x4dac): relocation truncated to fit: R_PPC_REL24
pthread_sigmask
emulation/emulation.o: In function `kill_thread':
emulation/emulation.o(.text+0x4e50): undefined reference to `pthread_cancel'
emulation/emulation.o(.text+0x4e50): relocation truncated to fit: R_PPC_REL24
pthread_cancel
emulation/emulation.o(.text+0x4eac): undefined reference to `pthread_kill'
emulation/emulation.o(.text+0x4eac): relocation truncated to fit: R_PPC_REL24
pthread_kill
emulation/emulation.o(.text+0x4ecc): undefined reference to `pthread_join'
emulation/emulation.o(.text+0x4ecc): relocation truncated to fit: R_PPC_REL24
pthread_join
emulation/emulation.o: In function `thread_entry':
emulation/emulation.o(.text+0x4f2c): undefined reference to
`_pthread_cleanup_push'
emulation/emulation.o(.text+0x4f2c): relocation truncated to fit: R_PPC_REL24
_pthread_cleanup_push
emulation/emulation.o(.text+0x4fc4): undefined reference to
`_pthread_cleanup_pop'
emulation/emulation.o(.text+0x4fc4): relocation truncated to fit: R_PPC_REL24
_pthread_cleanup_pop
emulation/emulation.o: In function `bug_workaround_entry':
emulation/emulation.o(.text+0x5054): undefined reference to `pthread_sigmask'
emulation/emulation.o(.text+0x5054): relocation truncated to fit: R_PPC_REL24
pthread_sigmask
emulation/emulation.o(.text+0x5078): undefined reference to `pthread_sigmask'
emulation/emulation.o(.text+0x5078): relocation truncated to fit: R_PPC_REL24
pthread_sigmask
emulation/emulation.o(.text+0x5088): undefined reference to
`pthread_testcancel'
emulation/emulation.o(.text+0x5088): relocation truncated to fit: R_PPC_REL24
pthread_testcancel
emulation/emulation.o(.text+0x5094): undefined reference to `pthread_kill'
emulation/emulation.o(.text+0x5094): relocation truncated to fit: R_PPC_REL24
pthread_kill
emulation/emulation.o(.text+0x50c0): undefined reference to `pthread_kill'
emulation/emulation.o(.text+0x50c0): relocation truncated to fit: R_PPC_REL24
pthread_kill
emulation/emulation.o: In function `abort_doze':
emulation/emulation.o(.text+0x5bfc): undefined reference to `pthread_kill'
emulation/emulation.o(.text+0x5bfc): relocation truncated to fit: R_PPC_REL24
pthread_kill
emulation/emulation.o: In function `async_init':
emulation/emulation.o(.text+0x902c): undefined reference to `pthread_sigmask'
emulation/emulation.o(.text+0x902c): relocation truncated to fit: R_PPC_REL24
pthread_sigmask
drivers/drivers.o: In function `vt_switch_init':
drivers/drivers.o(.text+0x15ec): undefined reference to `pthread_sigmask'
drivers/drivers.o(.text+0x15ec): relocation truncated to fit: R_PPC_REL24
pthread_sigmask
drivers/drivers.o: In function `dma_wait':
drivers/drivers.o(.text+0x7ee0): undefined reference to
`pthread_cond_timedwait'
drivers/drivers.o(.text+0x7ee0): relocation truncated to fit: R_PPC_REL24
pthread_cond_timedwait
drivers/drivers.o: In function `play_startboing_entry':
drivers/drivers.o(.text+0xe794): undefined reference to `pthread_sigmask'
drivers/drivers.o(.text+0xe794): relocation truncated to fit: R_PPC_REL24
pthread_sigmask
drivers/drivers.o(.text+0xe7d4): undefined reference to `pthread_sigmask'
drivers/drivers.o(.text+0xe7d4): relocation truncated to fit: R_PPC_REL24
pthread_sigmask
drivers/drivers.o: In function `flush_th_entry':
drivers/drivers.o(.text+0xec3c): undefined reference to `pthread_sigmask'
drivers/drivers.o(.text+0xec3c): relocation truncated to fit: R_PPC_REL24
pthread_sigmask
drivers/drivers.o(.text+0xec7c): undefined reference to `pthread_sigmask'
drivers/drivers.o(.text+0xec7c): relocation truncated to fit: R_PPC_REL24
pthread_sigmask
drivers/drivers.o: In function `setcmap':
drivers/drivers.o(.text+0x14244): undefined reference to `pow'
drivers/drivers.o(.text+0x14244): relocation truncated to fit: R_PPC_REL24 pow
drivers/drivers.o(.text+0x142a8): undefined reference to `pow'
drivers/drivers.o(.text+0x142a8): relocation truncated to fit: R_PPC_REL24 pow
drivers/drivers.o(.text+0x14318): undefined reference to `pow'
drivers/drivers.o(.text+0x14318): relocation truncated to fit: R_PPC_REL24 pow
drivers/drivers.o: In function `s53c94_init':
drivers/drivers.o(.text+0x1c120): undefined reference to
`pthread_mutexattr_init'
drivers/drivers.o(.text+0x1c120): relocation truncated to fit: R_PPC_REL24
pthread_mutexattr_init
drivers/drivers.o(.text+0x1c12c): undefined reference to
`pthread_mutexattr_setkind_np'
drivers/drivers.o(.text+0x1c12c): relocation truncated to fit: R_PPC_REL24
pthread_mutexattr_setkind_np
drivers/drivers.o(.text+0x1c140): undefined reference to
`pthread_mutexattr_destroy'
drivers/drivers.o(.text+0x1c140): relocation truncated to fit: R_PPC_REL24
pthread_mutexattr_destroy
drivers/drivers.o: In function `mesh_init':
drivers/drivers.o(.text+0x1e150): undefined reference to
`pthread_mutexattr_init'
drivers/drivers.o(.text+0x1e150): relocation truncated to fit: R_PPC_REL24
pthread_mutexattr_init
drivers/drivers.o(.text+0x1e15c): undefined reference to
`pthread_mutexattr_setkind_np'
drivers/drivers.o(.text+0x1e15c): relocation truncated to fit: R_PPC_REL24
pthread_mutexattr_setkind_np
drivers/drivers.o(.text+0x1e170): undefined reference to
`pthread_mutexattr_destroy'
drivers/drivers.o(.text+0x1e170): relocation truncated to fit: R_PPC_REL24
pthread_mutexattr_destroy
collect2: ld returned 1 exit status
make: *** [mol] Error 1
----------------------<end> compiler output -------------------------------
Okay, here is description of my hardware environment, cat of /proc nodes, and
attached to this email

Hardware environment: a Rev.3 "beige" G3, 333 MHz, w/ OEM Symbios UW SCSI
optino and Mach 3D Rage Pro video
<<cat /proc/cpuinfo>>
processor : 0
cpu : 750
temperature : 0 C
clock : 467MHz
revision : 130.2 (pvr 0008 8202)
bogomips : 933.88
zero pages : total: 0 (0Kb) current: 0 (0Kb) hits: 0/0 (0%)
machine : Power Macintosh
motherboard : AAPL,Gossamer MacRISC
L2 cache : 1024K unified pipelined-syncro-burst
memory : 512MB
l2cr override : 0xb9100000
pmac-generation : OldWorld

Linux kernel: After trying seven times to rsync the kernel on Sat. July 14
thru Mon Jul. 15 to from the penguinppc.org Benh tree (BTW: I discovered that
his kernel is now at 2.4.7, not 2.4.6 as I had thought after reading the MOL
list July 2001, I did this after following Samuel's recommedation originally
for stabilty: ie benh 2.4.6 + MOL rsync) --- Ben H's kernels FAIL on my G3.
No matter how I compile them. So I have switched to using K. Fukui's 2.4.7
kernel and sources,available on linuxppc.org via ftp download. This kernel
works wonderfully on my G3, w/ XFree86 4.1, glibc 2.1.3, and generally a
system that is based on the latest Dec-Jan "stable" update state from
LinuxPPC. the output of /proc/version is:

Linux version 2.4.7-pre6_0a (root@mymachine.net) (gcc version 2.95.3 20010101
(prerelease/franzo/20010101)) #1 Sun Jul 15 21:59:19 PDT 2001

<<cat /proc/devices>>
Character devices:
  1 mem
  2 pty
  3 ttyp
  4 vc/0
  5 ptmx
  7 vcs
 10 misc
 13 input
 14 sound
 21 sg
 29 fb
 56 adb
108 ppp
128 ptm
136 pts
162 raw
166 usb/acm/%d
180 usb

Block devices:
  1 ramdisk
  2 fd
  3 ide0
  7 loop
  8 sd
 34 ide3
 65 sd
 66 sd

# cat /proc/interrupts
           CPU0
  8: 2 PMAC-PIC Edge AWACS out
  9: 0 PMAC-PIC Edge AWACS in
 12: 15 PMAC-PIC Edge MESH
 13: 5 PMAC-PIC Edge ide0
 17: 0 PMAC-PIC Edge AWACS
 18: 154965 PMAC-PIC Edge ADB
 19: 0 PMAC-PIC Edge SWIM3
 20: 0 PMAC-PIC Edge NMI - XMON
 23: 23996 PMAC-PIC Edge ide3
 24: 7362 PMAC-PIC Edge sym53c8xx
 25: 79760 PMAC-PIC Edge usb-ohci
 32: 13830 PMAC-PIC Edge BMAC-txdma
 33: 14880 PMAC-PIC Edge BMAC-rxdma
 42: 28711 PMAC-PIC Edge BMAC-misc
BAD: 0

cat /proc/pci
PCI devices found:
  Bus 0, device 0, function 0:
    Host bridge: Motorola MPC106 [Grackle] (rev 64).
  Bus 0, device 13, function 0:
    SCSI storage controller: Artop Electronic Corp ATP860 (rev 1).
      IRQ 23.
      Master Capable. Latency=128. Min Gnt=6.Max Lat=6.
      I/O at 0x440 [0x447].
      I/O at 0x430 [0x433].
      I/O at 0x420 [0x427].
      I/O at 0x410 [0x413].
      I/O at 0x400 [0x40f].
  Bus 0, device 14, function 0:
    SCSI storage controller: Symbios Logic Inc. (formerly NCR) 53c875 (rev 4).
      IRQ 24.
      Master Capable. Latency=32. Min Gnt=17.Max Lat=64.
      I/O at 0x10000 [0x100ff].
      Non-prefetchable 32 bit memory at 0x81800000 [0x818000ff].
      Non-prefetchable 32 bit memory at 0x81804000 [0x81804fff].
  Bus 0, device 15, function 0:
    USB Controller: OPTi Inc. 82C861 (rev 16).
      IRQ 25.
      Master Capable. Latency=32.
      Non-prefetchable 32 bit memory at 0x81802000 [0x81802fff].
  Bus 0, device 16, function 0:
    Class ff00: Apple Computer Inc. Heathrow Mac I/O (rev 1).
      Master Capable. Latency=32.
      Non-prefetchable 32 bit memory at 0xf3000000 [0xf307ffff].
  Bus 0, device 18, function 0:
    VGA compatible controller: ATI Technologies Inc 3D Rage Pro 215GP (rev
92).
      IRQ 22.
      Master Capable. Latency=32. Min Gnt=8.
      Non-prefetchable 32 bit memory at 0x82000000 [0x82ffffff].
      I/O at 0x1000 [0x10ff].
      Non-prefetchable 32 bit memory at 0x81801000 [0x81801fff].




This archive was generated by hypermail 2a24 : Tue Jul 17 2001 - 19:20:30 MDT