Unregistered build (was Re: AMD64)

Peter Robinson listener at thaldyron.com
Thu Jun 17 11:29:05 EDT 2004


Well the build finally succeeded but unfortunately I immediately get a 
segfault when running ghc/ghci.
I've attached the output of 
# strace  -o log ./ghc
Cheers
Peter

On Thursday 17 June 2004 15:25, Simon Marlow wrote:
> On 17 June 2004 14:08, Peter Robinson wrote:
>
>
> ------------------------------------------------------------------------
>
> > ==fptools== make all -wr;
> >  in /home/thaldyron/var/ghcbuild/ghc-6.2.20040613/libraries/base
>
> ------------------------------------------------------------------------
>
> > rm -f GHC/Base.o; if [ ! -d GHC/Base_split ]; then mkdir
> > GHC/Base_split; else /usr/bin/find GHC/Base_split -name '*.o' -print
> >
> > | xargs rm -f __rm_food; fi;
> >
> > ../../ghc/compiler/ghc-inplace -H16m -O -fglasgow-exts -cpp -Iinclude
> > -#include HsBase.h -funbox-strict-fields -package-name base -O
> > -Rghc-timing
> > -split-objs    -c GHC/Base.lhs -o GHC/Base.o  -ohi GHC/Base.hi
> > warning: don't know how to  split object files on this architecture
>
> There's the clue: ghc-split isn't set up to handle this platform yet.
> If you don't feel up to fixing it, then just set 'SplitObjs=NO' in
> mk/build.mk and carry on.
>
> Cheers,
> 	Simon
-------------- next part --------------
execve("./ghc", ["./ghc"], [/* 57 vars */]) = 0
uname({sys="Linux", node="athlon64", ...}) = 0
brk(0)                                  = 0x5bd000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9556d000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=102345, ...}) = 0
mmap(NULL, 102345, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a9556e000
close(3)                                = 0
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\35\0"..., 640) = 640
fstat(3, {st_mode=S_IFREG|0755, st_size=12600, ...}) = 0
mmap(NULL, 1058232, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2a9566e000
mprotect(0, 1045944, PROT_NONE)         = -1 ENOMEM (Cannot allocate memory)
mmap(0x2a9576e000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x2a9576e000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\303\1\0"..., 640) = 640
lseek(3, 624, SEEK_SET)                 = 624
read(3, "\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\2\0\0\0\6\0\0\0"..., 32) = 32
fstat(3, {st_mode=S_IFREG|0755, st_size=1245136, ...}) = 0
mmap(NULL, 2236296, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2a95771000
mprotect(0, 1085320, PROT_NONE)         = -1 ENOMEM (Cannot allocate memory)
mmap(0x2a95971000, 122880, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x100000) = 0x2a95971000
mmap(0x2a9598f000, 16264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2a9598f000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95993000
arch_prctl(0x1002, 0x2a95993700)        = 0
munmap(0x2a9556e000, 102345)            = 0
open("/dev/urandom", O_RDONLY)          = 3
read(3, "\2\00008\214\374\352i", 8)     = 8
close(3)                                = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
open("/dev/tty", O_RDWR|O_NONBLOCK)     = 3
close(3)                                = 0
brk(0)                                  = 0x5bd000
brk(0x5de000)                           = 0x5de000
brk(0)                                  = 0x5de000
getuid()                                = 0
getgid()                                = 0
geteuid()                               = 0
getegid()                               = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
open("/etc/mtab", O_RDONLY)             = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=363, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9556e000
read(3, "/dev/hda5 / reiserfs rw,noatime,"..., 131072) = 363
close(3)                                = 0
munmap(0x2a9556e000, 131072)            = 0
open("/proc/meminfo", O_RDONLY)         = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9556e000
read(3, "MemTotal:       509772 kB\nMemFre"..., 1024) = 646
close(3)                                = 0
munmap(0x2a9556e000, 4096)              = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0
uname({sys="Linux", node="athlon64", ...}) = 0
stat("/home/thaldyron/var/ghc-final-build/bin", {st_mode=S_IFDIR|0755, st_size=384, ...}) = 0
stat(".", {st_mode=S_IFDIR|0755, st_size=384, ...}) = 0
getpid()                                = 27441
getppid()                               = 27440
socket(PF_UNIX, SOCK_STREAM, 0)         = 3
connect(3, {sa_family=AF_UNIX, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
open("/etc/nsswitch.conf", O_RDONLY)    = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=498, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9556e000
read(3, "# /etc/nsswitch.conf:\n# $Header:"..., 131072) = 498
read(3, "", 131072)                     = 0
close(3)                                = 0
munmap(0x2a9556e000, 131072)            = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=102345, ...}) = 0
mmap(NULL, 102345, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a9556e000
close(3)                                = 0
open("/lib/libnss_compat.so.2", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\26\0\0"..., 640) = 640
fstat(3, {st_mode=S_IFREG|0755, st_size=32560, ...}) = 0
mmap(NULL, 1079048, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2a95994000
mprotect(0, 1050376, PROT_NONE)         = -1 ENOMEM (Cannot allocate memory)
mmap(0x2a95a94000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x2a95a94000
close(3)                                = 0
open("/lib/libnsl.so.1", O_RDONLY)      = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`Q\0\0\0"..., 640) = 640
fstat(3, {st_mode=S_IFREG|0755, st_size=86552, ...}) = 0
mmap(NULL, 1139016, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2a95a9c000
mprotect(0, 1057096, PROT_NONE)         = -1 ENOMEM (Cannot allocate memory)
mmap(0x2a95b9c000, 81920, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x2a95b9c000
mmap(0x2a95bb0000, 8520, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2a95bb0000
close(3)                                = 0
munmap(0x2a9556e000, 102345)            = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=102345, ...}) = 0
mmap(NULL, 102345, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a9556e000
close(3)                                = 0
open("/lib/libnss_nis.so.2", O_RDONLY)  = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0$\0\0\0"..., 640) = 640
fstat(3, {st_mode=S_IFREG|0755, st_size=41984, ...}) = 0
mmap(NULL, 1088120, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2a95bb3000
mprotect(0, 1047160, PROT_NONE)         = -1 ENOMEM (Cannot allocate memory)
mmap(0x2a95cb3000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x2a95cb3000
close(3)                                = 0
open("/lib/libnss_files.so.2", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320#\0\0"..., 640) = 640
fstat(3, {st_mode=S_IFREG|0755, st_size=42808, ...}) = 0
mmap(NULL, 1089224, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2a95cbd000
mprotect(0, 1048264, PROT_NONE)         = -1 ENOMEM (Cannot allocate memory)
mmap(0x2a95dbd000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x2a95dbd000
close(3)                                = 0
munmap(0x2a9556e000, 102345)            = 0
open("/etc/passwd", O_RDONLY)           = 3
fcntl(3, F_GETFD)                       = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
lseek(3, 0, SEEK_CUR)                   = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=1945, ...}) = 0
mmap(NULL, 1945, PROT_READ, MAP_SHARED, 3, 0) = 0x2a9556e000
lseek(3, 1945, SEEK_SET)                = 1945
munmap(0x2a9556e000, 1945)              = 0
close(3)                                = 0
getpgrp()                               = 27440
rt_sigaction(SIGCHLD, {0x434e70, [], 0x4000000}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
open("./ghc", O_RDONLY)                 = 3
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fbfffee50) = -1 ENOTTY (Inappropriate ioctl for device)
lseek(3, 0, SEEK_CUR)                   = 0
read(3, "#!/bin/sh\nGHCBIN=\"/home/thaldyro"..., 80) = 80
lseek(3, 0, SEEK_SET)                   = 0
getrlimit(0x7, 0x7fbfffee90)            = 0
dup2(3, 255)                            = 255
close(3)                                = 0
fcntl(255, F_SETFD, FD_CLOEXEC)         = 0
fcntl(255, F_GETFL)                     = 0x8000 (flags O_RDONLY|O_LARGEFILE|0x8000)
fstat(255, {st_mode=S_IFREG|0755, st_size=222, ...}) = 0
lseek(255, 0, SEEK_CUR)                 = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "#!/bin/sh\nGHCBIN=\"/home/thaldyro"..., 222) = 222
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, {0x434e70, [], 0x4000000}, 8) = 0
execve("/home/thaldyron/var/ghc-final-build/lib/ghc-6.2.20040613/ghc-6.2.20040613", ["/home/thaldyron/var/ghc-final-bu"..., "-B/home/thaldyron/var/ghc-final-"...], [/* 54 vars */]) = 0
uname({sys="Linux", node="athlon64", ...}) = 0
brk(0)                                  = 0x1833000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9556d000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=102345, ...}) = 0
mmap(NULL, 102345, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a9556e000
close(3)                                = 0
open("/lib/libreadline.so.4", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200)\1\0"..., 640) = 640
fstat(3, {st_mode=S_IFREG|0755, st_size=227680, ...}) = 0
mmap(NULL, 1276784, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2a9566e000
mprotect(0, 1080176, PROT_NONE)         = -1 ENOMEM (Cannot allocate memory)
mmap(0x2a9576e000, 225280, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x2a9576e000
mmap(0x2a957a5000, 2928, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2a957a5000
close(3)                                = 0
open("/lib/libncurses.so.5", O_RDONLY)  = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\371\1\0"..., 640) = 640
fstat(3, {st_mode=S_IFREG|0755, st_size=428559, ...}) = 0
mmap(NULL, 1431656, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2a957a6000
mprotect(0, 1108072, PROT_NONE)         = -1 ENOMEM (Cannot allocate memory)
mmap(0x2a958a6000, 380928, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x2a958a6000
mmap(0x2a95903000, 2152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2a95903000
close(3)                                = 0
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\35\0"..., 640) = 640
fstat(3, {st_mode=S_IFREG|0755, st_size=12600, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95904000
mmap(NULL, 1058232, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2a95905000
mprotect(0, 1045944, PROT_NONE)         = -1 ENOMEM (Cannot allocate memory)
mmap(0x2a95a05000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x2a95a05000
close(3)                                = 0
open("/lib/libm.so.6", O_RDONLY)        = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`>\0\0\0"..., 640) = 640
fstat(3, {st_mode=S_IFREG|0755, st_size=573488, ...}) = 0
mmap(NULL, 1595368, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2a95a08000
mprotect(0, 1046504, PROT_NONE)         = -1 ENOMEM (Cannot allocate memory)
mmap(0x2a95b08000, 548864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x2a95b08000
close(3)                                = 0
open("/usr/lib/libgmp.so.3", O_RDONLY)  = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 at t\0\0\0"..., 640) = 640
fstat(3, {st_mode=S_IFREG|0755, st_size=236336, ...}) = 0
mmap(NULL, 1261024, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2a95b8e000
mprotect(0, 1048032, PROT_NONE)         = -1 ENOMEM (Cannot allocate memory)
mmap(0x2a95c8e000, 212992, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x2a95c8e000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\303\1\0"..., 640) = 640
lseek(3, 624, SEEK_SET)                 = 624
read(3, "\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\2\0\0\0\6\0\0\0"..., 32) = 32
fstat(3, {st_mode=S_IFREG|0755, st_size=1245136, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95cc2000
mmap(NULL, 2236296, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2a95cc3000
mprotect(0, 1085320, PROT_NONE)         = -1 ENOMEM (Cannot allocate memory)
mmap(0x2a95ec3000, 122880, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x100000) = 0x2a95ec3000
mmap(0x2a95ee1000, 16264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2a95ee1000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95ee5000
arch_prctl(0x1002, 0x2a95ee5090)        = 0
munmap(0x2a9556e000, 102345)            = 0
open("/dev/urandom", O_RDONLY)          = 3
read(3, "#\22\354\"\1kK/", 8)           = 8
close(3)                                = 0
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 431535635
brk(0)                                  = 0x1833000
brk(0x1854000)                          = 0x1854000
brk(0)                                  = 0x1854000
mmap(NULL, 2097152, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95ee6000
munmap(0x2a95ee6000, 106496)            = 0
munmap(0x2a96000000, 942080)            = 0
rt_sigaction(SIGVTALRM, {0x103c6e0, [], 0x4000000}, NULL, 8) = 0
setitimer(ITIMER_VIRTUAL, {it_interval={0, 20000}, it_value={0, 20000}}, NULL) = 0
rt_sigaction(SIGINT, {0x103a4da, [], 0x4000000}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, NULL, {0x103a4da, [], 0x4000000}, 8) = 0
rt_sigaction(SIGINT, {0x103a4da, [], 0x4000000}, NULL, 8) = 0
rt_sigaction(SIGCONT, {0x1039fad, [], 0x4000000}, {SIG_DFL}, 8) = 0
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 431535635
rt_sigprocmask(SIG_BLOCK, [QUIT], [], 8) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


More information about the Glasgow-haskell-users mailing list