[MLton] Bug#219987: mlton: FTBFS: compile errors

Roland Stigge Roland Stigge <stigge@antcom.de>, 219987@bugs.debian.org
Mon, 10 Nov 2003 16:29:25 +0100


Package: mlton
Version: 20030716-1
Severity: serious

Hi,

when trying to build mlton with pbuilder in a current clean sid
environment, there are hundreds of compile errors. The last lines are as
follows:

==========================================================================
[...]
/usr/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a function)
/usr/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type'
/usr/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type'
/usr/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus'
/usr/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus'
/usr/include/asm/mpspec.h:35: error: parse error before "id"
/usr/include/asm/mpspec.h:36: error: parse error before "address"
/usr/include/asm/mpspec.h:37: error: parse error before "id"
/usr/include/asm/mpspec.h:38: error: parse error before "bus_irq"
/usr/include/asm/mpspec.h:54: error: `MAX_APICS' undeclared here (not in a function)
/usr/include/asm/mpspec.h:54: error: variable-size type declared outside of any function
In file included from /usr/include/asm/smp.h:20,
                 from /usr/include/linux/smp.h:17,
                 from /usr/include/linux/sched.h:23,
                 from /usr/include/linux/mm.h:4,
                 from /usr/include/linux/mman.h:5,
                 from gc.c:32:
/usr/include/asm/io_apic.h:26: error: parse error before "u32"
/usr/include/asm/io_apic.h:28: error: parse error before "u32"
/usr/include/asm/io_apic.h:34: error: parse error before '}' token
/usr/include/asm/io_apic.h:37: error: parse error before "u32"
/usr/include/asm/io_apic.h:39: error: parse error before "u32"
/usr/include/asm/io_apic.h:45: error: parse error before '}' token
/usr/include/asm/io_apic.h:48: error: parse error before "u32"
/usr/include/asm/io_apic.h:50: error: parse error before "u32"
/usr/include/asm/io_apic.h:54: error: parse error before '}' token
/usr/include/asm/io_apic.h:57: error: parse error before "u32"
/usr/include/asm/io_apic.h:59: error: parse error before "u32"
/usr/include/asm/io_apic.h:62: error: parse error before '}' token
/usr/include/asm/io_apic.h:120: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/include/asm/io_apic.h:120: error: conflicting types for `mp_irqs'
/usr/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs'
In file included from /usr/include/linux/smp.h:17,
                 from /usr/include/linux/sched.h:23,
                 from /usr/include/linux/mm.h:4,
                 from /usr/include/linux/mman.h:5,
                 from gc.c:32:
/usr/include/asm/smp.h:73:26: mach_apicdef.h: No such file or directory
In file included from /usr/include/linux/sched.h:23,
                 from /usr/include/linux/mm.h:4,
                 from /usr/include/linux/mman.h:5,
                 from gc.c:32:
/usr/include/linux/smp.h: In function `on_each_cpu':
/usr/include/linux/smp.h:65: error: invalid type argument of `->'
/usr/include/linux/smp.h:68: error: invalid type argument of `->'
/usr/include/linux/smp.h:68: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
In file included from /usr/include/linux/signal.h:4,
                 from /usr/include/linux/sched.h:25,
                 from /usr/include/linux/mm.h:4,
                 from /usr/include/linux/mman.h:5,
                 from gc.c:32:
/usr/include/linux/list.h:576:2: warning: #warning "don't include kernel headers in userspace"
In file included from /usr/include/linux/signal.h:6,
                 from /usr/include/linux/sched.h:25,
                 from /usr/include/linux/mm.h:4,
                 from /usr/include/linux/mman.h:5,
                 from gc.c:32:
/usr/include/asm/signal.h: At top level:
/usr/include/asm/signal.h:29: error: conflicting types for `sigset_t'
/usr/include/signal.h:50: error: previous declaration of `sigset_t'
/usr/include/asm/signal.h:158: error: redefinition of `struct sigaction'
/usr/include/asm/signal.h:173: error: redefinition of `struct sigaltstack'
In file included from /usr/include/asm/siginfo.h:4,
                 from /usr/include/linux/signal.h:7,
                 from /usr/include/linux/sched.h:25,
                 from /usr/include/linux/mm.h:4,
                 from /usr/include/linux/mman.h:5,
                 from gc.c:32:
/usr/include/asm-generic/siginfo.h:7: error: redefinition of `union sigval'
/usr/include/asm-generic/siginfo.h:35: error: redefinition of `struct siginfo'
/usr/include/asm-generic/siginfo.h:242: error: redefinition of `struct sigevent'
In file included from /usr/include/linux/sched.h:29,
                 from /usr/include/linux/mm.h:4,
                 from /usr/include/linux/mman.h:5,
                 from gc.c:32:
/usr/include/linux/completion.h:15: error: parse error before "wait_queue_head_t"
/usr/include/linux/completion.h: In function `init_completion':
/usr/include/linux/completion.h:26: error: dereferencing pointer to incomplete type
/usr/include/linux/completion.h:27: error: dereferencing pointer to incomplete type
In file included from /usr/include/linux/sched.h:30,
                 from /usr/include/linux/mm.h:4,
                 from /usr/include/linux/mman.h:5,
                 from gc.c:32:
/usr/include/linux/pid.h: At top level:
/usr/include/linux/pid.h:18: error: field `task_list' has incomplete type
/usr/include/linux/pid.h:19: error: field `hash_chain' has incomplete type
/usr/include/linux/pid.h:24: error: field `pid_chain' has incomplete type
In file included from /usr/include/linux/sched.h:101,
                 from /usr/include/linux/mm.h:4,
                 from /usr/include/linux/mman.h:5,
                 from gc.c:32:
/usr/include/linux/resource.h:21: error: redefinition of `struct rusage'
/usr/include/linux/resource.h:40: error: redefinition of `struct rlimit'
In file included from /usr/include/linux/sched.h:102,
                 from /usr/include/linux/mm.h:4,
                 from /usr/include/linux/mman.h:5,
                 from gc.c:32:
/usr/include/linux/timer.h:11: error: field `entry' has incomplete type
In file included from gc.c:32:
/usr/include/linux/mman.h: In function `calc_vm_prot_bits':
/usr/include/linux/mman.h:47: error: `VM_READ' undeclared (first use in this function)
/usr/include/linux/mman.h:48: error: `VM_WRITE' undeclared (first use in this function)
/usr/include/linux/mman.h:49: error: `VM_EXEC' undeclared (first use in this function)
/usr/include/linux/mman.h: In function `calc_vm_flag_bits':
/usr/include/linux/mman.h:58: error: `VM_GROWSDOWN' undeclared (first use in this function)
/usr/include/linux/mman.h:59: error: `VM_DENYWRITE' undeclared (first use in this function)
/usr/include/linux/mman.h:60: error: `VM_EXECUTABLE' undeclared (first use in this function)
/usr/include/linux/mman.h:61: error: `VM_LOCKED' undeclared (first use in this function)
In file included from gc.c:42:
/usr/include/sys/time.h: At top level:
/usr/include/sys/time.h:57: error: redefinition of `struct timezone'
/usr/include/sys/time.h:94: error: parse error before numeric constant
/usr/include/sys/time.h:108: error: redefinition of `struct itimerval'
gc.c: In function `setProfTimer':
gc.c:3351: error: `ITIMER_PROF' undeclared (first use in this function)
gc.c: In function `profileTimeInit':
gc.c:3741: warning: passing arg 1 of `sigemptyset' from incompatible pointer type
make[3]: *** [gc.o] Error 1
make[3]: Leaving directory `/tmp/buildd/mlton-20030716/runtime'
make[2]: *** [runtime] Error 2
make[2]: Leaving directory `/tmp/buildd/mlton-20030716'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/buildd/mlton-20030716'
make: *** [build-stamp] Error 2
==========================================================================

I can send more if you can't reproduce it.

bye,
  Roland

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux atari 2.4.20 #1 Fri Apr 4 11:15:24 CEST 2003 i686
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (ignored: LC_ALL set to en_GB.UTF-8)

Versions of packages mlton depends on:
ii  libc6                       2.3.2.ds1-10 GNU C Library: Shared libraries an
ii  libgmp3-dev                 4.1.2-3      Multiprecision arithmetic library 

-- no debconf information