[M3devel] build problems on freebsd 6
Kaspar Schleiser
kschleiser at elego.de
Mon Oct 15 19:15:30 CEST 2007
Hey Tony & all,
that was fast, thanks! The errors about MyHeapState are gone, but these
are still there:
1.:
new source -> compiling Umman.i3
"../src/unix/freebsd-4/Umman.i3", line 41: undefined (off_t)
I think off_t needs to be imported at the top of the file.
2.:
new source -> compiling Unix.i3
"../src/unix/freebsd-4/Unix.i3", line 145: VAL: second argument must be
an ordinal type
"../src/unix/freebsd-4/Unix.i3", line 145: VAL: value out of range
"../src/unix/freebsd-4/Unix.i3", line 145: default is not a constant
(l_start)
"../src/unix/freebsd-4/Unix.i3", line 146: VAL: second argument must be
an ordinal type
"../src/unix/freebsd-4/Unix.i3", line 146: VAL: value out of range
"../src/unix/freebsd-4/Unix.i3", line 146: default is not a constant (l_len)
Looks like something simple, too...
Cheers,
Kaspar
Tony Hosking wrote:
> I just checked in the fix -- missing declaration of MyHeapState in
> ThreadF.i3.
>
> On Oct 15, 2007, at 5:19 AM, Kaspar Schleiser wrote:
>
>> Hey all,
>>
>> I'm having problems bootstrapping the cm3 cvs version.
>>
>> The cm3 5.4.0 minimal release is being used on a FreeBSD
>> 6.2-RELEASE-p3-machine for the first step.
>>
>> "./do-pkg.sh buildship m3cc m3middle m3linker m3front m3quake cm3"
>> builds the compiler just fine, but the new compiler fails to compile the
>> m3core libs:
>>
>> CM3C =
>> /tmp/test-cm3-20071015-004410/build/cm3/scripts/pkgmap.sh -c
>> "/tmp/test-cm3-20071015-0044
>> 10/build/cm3bin/pkg/cm3/FreeBSD4/cm3 -build -override
>> -DROOT='/tmp/test-cm3-20071015-0044
>> 10/build/cm3' " m3core libm3
>> === package /tmp/test-cm3-20071015-004410/build/cm3/m3-libs/m3core ===
>> +++ /tmp/test-cm3-20071015-004410/build/cm3bin/pkg/cm3/FreeBSD4/cm3
>> -build -override -DR
>> OOT='/tmp/test-cm3-20071015-004410/build/cm3' +++
>> --- building in FreeBSD4 ---
>>
>> new source -> compiling RTHooks.i3
>> new source -> compiling RT0.i3
>> new source -> compiling RuntimeError.i3
>> new source -> compiling WordRep.i3
>> new source -> compiling Word.i3
>> new source -> compiling RTException.i3
>> new source -> compiling RTHooks.m3
>> new source -> compiling RT0.m3
>> new source -> compiling Compiler.i3
>> new source -> compiling RuntimeError.m3
>> new source -> compiling Compiler.m3
>> new source -> compiling RTAllocator.i3
>> new source -> compiling RTType.i3
>> new source -> compiling Csetjmp.i3
>> new source -> compiling LongRep.i3
>> new source -> compiling Long.i3
>> new source -> compiling BasicCtypes.i3
>> new source -> compiling Ctypes.i3
>> new source -> compiling RTMachine.i3
>> new source -> compiling RTHeapRep.i3
>> new source -> compiling Thread.i3
>> new source -> compiling FloatMode.i3
>> new source -> compiling ThreadF.i3
>> new source -> compiling RTOS.i3
>> new source -> compiling RTMisc.i3
>> new source -> compiling RTHeap.i3
>> new source -> compiling Cstdlib.i3
>> new source -> compiling Cstddef.i3
>> new source -> compiling RTAllocCnts.i3
>> new source -> compiling RTAllocator.m3
>> "../src/runtime/common/RTAllocator.m3", line 190: warning: variable has
>> type NULL (state)
>> "../src/runtime/common/RTAllocator.m3", line 190: unknown qualification
>> '.' (MyHeapState)
>> "../src/runtime/common/RTAllocator.m3", line 215: warning: variable has
>> type NULL (state)
>> "../src/runtime/common/RTAllocator.m3", line 215: unknown qualification
>> '.' (MyHeapState)
>> "../src/runtime/common/RTAllocator.m3", line 300: warning: variable has
>> type NULL (state)
>> "../src/runtime/common/RTAllocator.m3", line 300: unknown qualification
>> '.' (MyHeapState)
>> 3 errors and 3 warnings encountered
>> new source -> compiling RTAllocStats.i3
>> new source -> compiling Convert.i3
>> new source -> compiling TextClass.i3
>> new source -> compiling Text.i3
>> new source -> compiling RTProcedureSRC.i3
>> new source -> compiling Fingerprint.i3
>> new source -> compiling RTProcedure.i3
>> new source -> compiling RTStack.i3
>> new source -> compiling RTAllocStats.m3
>> new source -> compiling TextLiteral.i3
>> new source -> compiling RTHeap.m3
>> new source -> compiling RTHeapInfo.i3
>> new source -> compiling Cstring.i3
>> new source -> compiling RTPerfTool.i3
>> new source -> compiling RTParams.i3
>> new source -> compiling RTHeapInfo.m3
>> new source -> compiling RTHeapMap.i3
>> new source -> compiling RTIO.i3
>> new source -> compiling RTTypeMap.i3
>> new source -> compiling RTMapOp.i3
>> new source -> compiling RTModule.i3
>> new source -> compiling RTHeapMap.m3
>> new source -> compiling RTHeapRep.m3
>> new source -> compiling RTHeapStats.i3
>> new source -> compiling RTTypeSRC.i3
>> new source -> compiling RTCollector.i3
>> new source -> compiling RTHeapStats.m3
>> new source -> compiling Time.i3
>> new source -> compiling Scheduler.i3
>> new source -> compiling RTLinker.i3
>> new source -> compiling RTProcess.i3
>> new source -> compiling RTHeapEvent.i3
>> new source -> compiling RTWeakRef.i3
>> new source -> compiling RTCollectorSRC.i3
>> new source -> compiling RTCollector.m3
>> "../src/runtime/common/RTCollector.m3", line 594: unknown qualification
>> '.' (MyHeapState)
>> "../src/runtime/common/RTCollector.m3", line 600: unknown qualification
>> '.' (MyHeapState)
>> "../src/runtime/common/RTCollector.m3", line 1403: unknown qualification
>> '.' (MyHeapState
>> )
>> "../src/runtime/common/RTCollector.m3", line 1407: unknown qualification
>> '.' (MyHeapState
>> )
>> "../src/runtime/common/RTCollector.m3", line 1440: unknown qualification
>> '.' (MyHeapState
>> )
>> "../src/runtime/common/RTCollector.m3", line 1506: unknown qualification
>> '.' (MyHeapState
>> )
>> 6 errors encountered
>> new source -> compiling RTIO.m3
>> new source -> compiling RTLinkerX.i3
>> new source -> compiling RTSignal.i3
>> new source -> compiling RTDebug.i3
>> new source -> compiling RTLinker.m3
>> new source -> compiling RTDebug.m3
>> new source -> compiling RTError.i3
>> new source -> compiling RTError.m3
>> new source -> compiling M3toC.i3
>> new source -> compiling RTException.m3
>> new source -> compiling RTMapOp.m3
>> new source -> compiling RTMisc.m3
>> new source -> compiling RTPacking.i3
>> new source -> compiling RTPacking.m3
>> new source -> compiling RTArgs.i3
>> new source -> compiling RTParams.m3
>> new source -> compiling RTProcedure.m3
>> new source -> compiling RTProcess.m3
>> new source -> compiling RTTipe.i3
>> new source -> compiling RTTipe.m3
>> new source -> compiling RTType.m3
>> new source -> compiling RTTypeFP.i3
>> new source -> compiling RTTypeFP.m3
>> new source -> compiling RTTypeMap.m3
>> new source -> compiling RTutils.i3
>> new source -> compiling RTutils.m3
>> new source -> compiling RTHeapDebug.i3
>> new source -> compiling WeakRef.i3
>> new source -> compiling RTHeapDebug.m3
>> new source -> compiling RTArgs.m3
>> new source -> compiling Utypes.i3
>> new source -> compiling Umman.i3
>> "../src/unix/freebsd-4/Umman.i3", line 41: undefined (off_t)
>> 1 error encountered
>> new source -> compiling Uuio.i3
>> new source -> compiling Unix.i3
>> "../src/unix/freebsd-4/Unix.i3", line 145: VAL: second argument must be
>> an ordinal type
>> "../src/unix/freebsd-4/Unix.i3", line 145: VAL: value out of range
>> "../src/unix/freebsd-4/Unix.i3", line 145: default is not a constant
>> (l_start)
>> "../src/unix/freebsd-4/Unix.i3", line 146: VAL: second argument must be
>> an ordinal type
>> "../src/unix/freebsd-4/Unix.i3", line 146: VAL: value out of range
>> "../src/unix/freebsd-4/Unix.i3", line 146: default is not a constant
>> (l_len)
>> 6 errors encountered
>> new source -> compiling RTOS.m3
>> "../src/runtime/POSIX/RTOS.m3", line 9: imported interface contains
>> errors (Unix)
>> "../src/runtime/POSIX/RTOS.m3", line 9: imported interface contains
>> errors (Umman)
>> 2 errors encountered
>> new source -> compiling Utime.i3
>> new source -> compiling Uresource.i3
>> new source -> compiling Uexec.i3
>> new source -> compiling RTPerfTool.m3
>> "../src/runtime/POSIX/RTPerfTool.m3", line 10: imported interface
>> contains errors (Unix)
>> 1 error encountered
>> new source -> compiling RTProcessPosix.m3
>> new source -> compiling Usignal.i3
>> new source -> compiling RTThread.i3
>> new source -> compiling RTThreadStk.m3
>> new source -> compiling Uprocess.i3
>> new source -> compiling RTSignal.m3
>> new source -> compiling RTThread.m3
>> "../src/runtime/FreeBSD4/RTThread.m3", line 12: imported interface
>> contains errors (Unix)
>> "../src/runtime/FreeBSD4/RTThread.m3", line 12: imported interface
>> contains errors (Umman
>> )
>> 2 errors encountered
>> new source -> compiling RTExFrame.i3
>> new source -> compiling RTExFrame.m3
>> new source -> compiling MutexRep.i3
>> new source -> compiling ThreadEvent.i3
>> new source -> compiling SchedulerPosix.i3
>> new source -> compiling TimePosix.i3
>> new source -> compiling Cerrno.i3
>> new source -> compiling ThreadPosix.m3
>> "../src/thread/POSIX/ThreadPosix.m3", line 19: imported interface
>> contains errors (Unix)
>> 1 error encountered
>> new source -> compiling Udir.i3
>> new source -> compiling Uerror.i3
>> new source -> compiling Ugrp.i3
>> new source -> compiling Uin.i3
>> new source -> compiling Usocket.i3
>> new source -> compiling Uin.m3
>> new source -> compiling Uipc.i3
>> new source -> compiling Umsg.i3
>> new source -> compiling Umsg.m3
>> new source -> compiling Unetdb.i3
>> new source -> compiling Unetdb.m3
>> new source -> compiling Upwd.i3
>> new source -> compiling Usem.i3
>> new source -> compiling Ushm.i3
>> new source -> compiling Usignal.m3
>> new source -> compiling Ustat.i3
>> new source -> compiling Usyslog.i3
>> new source -> compiling Utypes.m3
>> new source -> compiling Uugid.i3
>> new source -> compiling Uutmp.i3
>> new source -> compiling Uutsname.i3
>> new source -> compiling Text8CString.i3
>> new source -> compiling Text8.i3
>> new source -> compiling M3toC.m3
>> new source -> compiling Cstdarg.i3
>> new source -> compiling Cstdarg.m3
>> new source -> compiling Csignal.i3
>> new source -> compiling Cstdio.i3
>> new source -> compiling Cstdio.m3
>> new source -> compiling Real.i3
>> new source -> compiling RealFloat.i3
>> new source -> compiling LongReal.i3
>> new source -> compiling LongFloat.i3
>> new source -> compiling Extended.i3
>> new source -> compiling ExtendedFloat.i3
>> new source -> compiling IEEESpecial.i3
>> new source -> compiling LongRealRep.i3
>> new source -> compiling RealRep.i3
>> new source -> compiling IEEESpecial.m3
>> new source -> compiling Real.m3
>> new source -> compiling LongReal.m3
>> new source -> compiling Extended.m3
>> new source -> compiling DragonInt.i3
>> new source -> compiling DragonInt.m3
>> new source -> compiling DragonT.i3
>> new source -> compiling DragonT.m3
>> new source -> compiling FPU.i3
>> new source -> compiling RealFloat.m3
>> new source -> compiling LongFloat.m3
>> new source -> compiling ExtendedFloat.m3
>> new source -> compiling FPU.m3
>> new source -> compiling FloatMode.m3
>> new source -> compiling Tick.i3
>> new source -> compiling Date.i3
>> new source -> compiling FmtTime.i3
>> new source -> compiling FmtTime.m3
>> new source -> compiling TickPortable.m3
>> new source -> compiling DateBsd.m3
>> new source -> compiling TimePosix.m3
>> new source -> compiling CConvert.i3
>> new source -> compiling CConvert.m3
>> new source -> compiling Convert.m3
>> new source -> compiling String8.i3
>> new source -> compiling String8.m3
>> new source -> compiling String16.i3
>> new source -> compiling String16.m3
>> new source -> compiling Text16.i3
>> new source -> compiling Text.m3
>> new source -> compiling TextClass.m3
>> new source -> compiling TextLiteral.m3
>> new source -> compiling Text8Short.i3
>> new source -> compiling Text8.m3
>> new source -> compiling Text8Short.m3
>> new source -> compiling Text8CString.m3
>> new source -> compiling Text16Short.i3
>> new source -> compiling Text16.m3
>> new source -> compiling Text16Short.m3
>> new source -> compiling TextSub.i3
>> new source -> compiling TextCat.i3
>> new source -> compiling TextSub.m3
>> new source -> compiling TextCat.m3
>> new source -> compiling TextConv.i3
>> new source -> compiling TextConv.m3
>> new source -> compiling Poly.i3
>> new source -> compiling Fingerprint.m3
>> new source -> compiling Poly.m3
>> new source -> compiling PolyBasis.i3
>> new source -> compiling PolyBasis.m3
>> new source -> compiling Main.i3
>> new source -> compiling WeakRef.m3
>> new source -> compiling Word.m3
>> new source -> compiling Long.m3
>> new source -> compiling hand.c
>> new source -> compiling dtoa.c
>> new source -> compiling RTThreadC.c
>> new source -> compiling _fpsetjmp.s
>> new source -> compiling RTStackC.c
>> new source -> compiling CerrnoC.c
>> new source -> compiling CstdioC.c
>> new exporters -> recompiling RTHooks.i3
>> new exporters -> recompiling RTAllocator.i3
>> new exporters -> recompiling RTCollector.i3
>> new exporters -> recompiling RTException.i3
>> new exporters -> recompiling RTModule.i3
>> new exporters -> recompiling RTProcess.i3
>> new exporters -> recompiling RTProcedureSRC.i3
>> new exporters -> recompiling RTTypeSRC.i3
>> new exporters -> recompiling RTOS.i3
>> new exporters -> recompiling RTPerfTool.i3
>> new exporters -> recompiling RTThread.i3
>> new exporters -> recompiling Time.i3
>> new exporters -> recompiling Tick.i3
>> new exporters -> recompiling Date.i3
>> new exporters -> recompiling Text.i3
>> compilation failed => not building library "libm3core.a"
>> Fatal Error: package build failed
>> *** execution of failed ***
>> new.elego.de [/tmp/test-cm3-20071015-004410/build/cm3/scripts] kschleiser
>> %
>>
>> I could solve Umman.i3 missing off_t by importing it.
>>
>> Thanks in advance,
>> Kaspar
>
More information about the M3devel
mailing list