[Vm-beginners] Problems while compiling CogVM

Mariano Martinez Peck marianopeck at gmail.com
Mon Jun 11 08:55:26 UTC 2012


On Mon, Jun 11, 2012 at 3:00 AM, Igor Stasenko <siguctua at gmail.com> wrote:

> what exactly?
>
> it looks like you making these plugins external..
> or maybe main module (VM) missing linker options to link with these
> libraries.
> What version of CMakeVMMaker package you using?
>
>
And which version of the blessed in git?


> On 11 June 2012 02:08, David Leonhardt <davidleonhardt at gmail.com> wrote:
> > The problem is still there, with another plugin, but it's still there.
> >
> >
> >
> > 2012/6/10 Igor Stasenko <siguctua at gmail.com>
> >>
> >> Klatt/libKlatt.a(Klatt.c.o): In function `linearFromdB':
> >> Klatt.c:(.text+0x81): undefined reference to `pow'
> >>
> >> - seems like klatt plugin missing -lm
> >>
> >> Mpeg3Plugin/libMpeg3Plugin.a
> >> this guys seems to be missing
> >> -lpthread -lm
> >>
> >> Try adding following two methods to CogFamilyUnixConfig and rerun the
> >> #generated
> >>
> >>
> >> CogFamilyUnixConfig>>configureMpeg3Plugin: maker
> >>  super configureMpeg3Plugin: maker.
> >>  maker addExternalLibraries: #('m' 'pthread')
> >>
> >> CogFamilyUnixConfig>>configureKlattSynthesizerPlugin: maker
> >>
> >>  maker addExternalLibraries: #('m')
> >>
> >> -- see if this can help.
> >>
> >> you can also just exclude these plugins from build, unless of course
> >> you cannot live w/o them :)
> >>
> >> you can do something like that:
> >> cfg := CogUnixConfig new.
> >> cfg internalPlugins: (cfg internalPlugins difference: #(
> >> KlattSynthesizerPlugin Mpeg3Plugin))
> >> cfg generate
> >>
> >> On 11 June 2012 00:56, David Leonhardt <davidleonhardt at gmail.com>
> wrote:
> >> > Yes, they are installed.
> >> >
> >> >
> >> > 2012/6/10 Igor Stasenko <siguctua at gmail.com>
> >> >>
> >> >> Hmm. that strange.
> >> >> do you have headers installed?
> >> >> /usr/include/pthread.h
> >> >>
> >> >>>>>> When running make, I get this error:
> >> >>>>>>
> >> >>>>>> [ 84%] Built target LocalePlugin
> >> >>>>>> [ 84%] Building C object
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/platforms/unix/vm/sqUnixMain.c.o
> >> >>>>>>
> >> >>>>>>
> /home/david/worksapaces/cogVM/blessed/platforms/unix/vm/sqUnixMain.c:
> >> >>>>>> In function ‘main’:
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> /home/david/worksapaces/cogVM/blessed/platforms/unix/vm/sqUnixMain.c:1718:38:
> >> >>>>>> warning: assignment from incompatible pointer type [enabled by
> >> >>>>>> default]
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> /home/david/worksapaces/cogVM/blessed/platforms/unix/vm/sqUnixMain.c:1723:38:
> >> >>>>>> warning: assignment from incompatible pointer type [enabled by
> >> >>>>>> default]
> >> >>>>>> [ 85%] Building C object
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/platforms/unix/vm/sqUnixMemory.c.o
> >> >>>>>> [ 85%] Building C object
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/platforms/unix/vm/sqUnixThreads.c.o
> >> >>>>>> [ 86%] Building C object
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/platforms/unix/vm/sqUnixVMProfile.c.o
> >> >>>>>> [ 86%] Building C object CMakeFiles/CogVM.dir/version.c.o
> >> >>>>>> Linking C executable
> >> >>>>>> /home/david/worksapaces/cogVM/blessed/results/CogVM
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/platforms/unix/vm/sqUnixMain.c.o:
> >> >>>>>> In function `sigusr1':
> >> >>>>>> sqUnixMain.c:(.text+0x4af): undefined reference to `pthread_kill'
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/src/vm/gcc3x-cointerp.c.o:
> >> >>>>>> In function `primitiveExp':
> >> >>>>>> gcc3x-cointerp.c:(.text+0x9a26): undefined reference to `exp'
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/src/vm/gcc3x-cointerp.c.o:
> >> >>>>>> In function `primitiveLogN':
> >> >>>>>> gcc3x-cointerp.c:(.text+0x9aa6): undefined reference to `log'
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/src/vm/gcc3x-cointerp.c.o:
> >> >>>>>> In function `primitiveArctan':
> >> >>>>>> gcc3x-cointerp.c:(.text+0x9b26): undefined reference to `atan'
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/src/vm/gcc3x-cointerp.c.o:
> >> >>>>>> In function `primitiveSine':
> >> >>>>>> gcc3x-cointerp.c:(.text+0x9ba6): undefined reference to `sin'
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/src/vm/gcc3x-cointerp.c.o:
> >> >>>>>> In function `primitiveSquareRoot':
> >> >>>>>> gcc3x-cointerp.c:(.text+0x9cb2): undefined reference to `sqrt'
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/src/vm/gcc3x-cointerp.c.o:
> >> >>>>>> In function `interpreterAllocationReserveBytes':
> >> >>>>>> gcc3x-cointerp.c:(.text+0xaf66): undefined reference to `pow'
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/src/vm/gcc3x-cointerp.c.o:
> >> >>>>>> In function `printFrameOopindexat':
> >> >>>>>> gcc3x-cointerp.c:(.text+0x124ac): undefined reference to `log10'
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/platforms/unix/vm/sqUnixExternalPrims.c.o:
> >> >>>>>> In function `tryLoading':
> >> >>>>>> sqUnixExternalPrims.c:(.text+0xd2): undefined reference to
> `dlopen'
> >> >>>>>> sqUnixExternalPrims.c:(.text+0xf1): undefined reference to
> >> >>>>>> `dlerror'
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/platforms/unix/vm/sqUnixExternalPrims.c.o:
> >> >>>>>> In function `ioLoadModule':
> >> >>>>>> sqUnixExternalPrims.c:(.text+0x279): undefined reference to
> >> >>>>>> `dlopen'
> >> >>>>>> sqUnixExternalPrims.c:(.text+0x2a1): undefined reference to
> >> >>>>>> `dlerror'
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/platforms/unix/vm/sqUnixExternalPrims.c.o:
> >> >>>>>> In function `ioFindExternalFunctionIn':
> >> >>>>>> sqUnixExternalPrims.c:(.text+0x497): undefined reference to
> `dlsym'
> >> >>>>>> sqUnixExternalPrims.c:(.text+0x543): undefined reference to
> >> >>>>>> `dlerror'
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/platforms/unix/vm/sqUnixExternalPrims.c.o:
> >> >>>>>> In function `ioFreeModule':
> >> >>>>>> sqUnixExternalPrims.c:(.text+0x58b): undefined reference to
> >> >>>>>> `dlclose'
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/platforms/unix/vm/sqUnixHeartbeat.c.o:
> >> >>>>>> In function `prodHighPriorityThread':
> >> >>>>>> sqUnixHeartbeat.c:(.text+0x52e): undefined reference to
> >> >>>>>> `pthread_kill'
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/platforms/unix/vm/sqUnixHeartbeat.c.o:
> >> >>>>>> In function `heartbeat_handler':
> >> >>>>>> sqUnixHeartbeat.c:(.text+0x55a): undefined reference to
> >> >>>>>> `pthread_kill'
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/platforms/unix/vm/sqUnixHeartbeat.c.o:
> >> >>>>>> In function
> `unblockVMThreadAfterYieldToHighPriorityTickerThread':
> >> >>>>>> sqUnixHeartbeat.c:(.text+0x683): undefined reference to
> >> >>>>>> `pthread_mutex_trylock'
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/platforms/unix/vm/sqUnixHeartbeat.c.o:
> >> >>>>>> In function `ioInitHeartbeat':
> >> >>>>>> sqUnixHeartbeat.c:(.text+0x74e): undefined reference to
> >> >>>>>> `pthread_create'
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> CMakeFiles/CogVM.dir/home/david/worksapaces/cogVM/blessed/platforms/unix/vm/sqUnixThreads.c.o:
> >> >>>>>> In function `crashInThisOrAnotherThread':
> >> >>>>>> sqUnixThreads.c:(.text+0x9b): undefined reference to
> >> >>>>>> `pthread_create'
> >> >>>>>> B2DPlugin/libB2DPlugin.a(B2DPlugin.c.o): In function
> >> >>>>>> `accurateLengthOfwith':
> >> >>>>>> B2DPlugin.c:(.text+0x6e82): undefined reference to `sqrt'
> >> >>>>>> B2DPlugin/libB2DPlugin.a(B2DPlugin.c.o): In function
> >> >>>>>> `transformWidth':
> >> >>>>>> B2DPlugin.c:(.text+0x9219): undefined reference to `sqrt'
> >> >>>>>> B2DPlugin.c:(.text+0x9234): undefined reference to `sqrt'
> >> >>>>>> CroquetPlugin/libCroquetPlugin.a(CroquetPlugin.c.o): In function
> >> >>>>>> `primitiveInplaceHouseHolderInvert':
> >> >>>>>> CroquetPlugin.c:(.text+0x8f1): undefined reference to `sqrt'
> >> >>>>>> CroquetPlugin.c:(.text+0x91c): undefined reference to `sqrt'
> >> >>>>>>
> >> >>>>>>
> >> >>>>>>
> FloatArrayPlugin/libFloatArrayPlugin.a(FloatArrayPlugin.c.o):FloatArrayPlugin.c:(.text+0xfb9):
> >> >>>>>> more undefined references to `sqrt' follow
> >> >>>>>> FloatMathPlugin/libFloatMathPlugin.a(k_rem_pio2.c.o): In function
> >> >>>>>> `__kernel_rem_pio2':
> >> >>>>>> k_rem_pio2.c:(.text+0x1e3): undefined reference to `floor'
> >> >>>>>> Klatt/libKlatt.a(Klatt.c.o): In function `linearFromdB':
> >> >>>>>> Klatt.c:(.text+0x81): undefined reference to `pow'
> >> >>>>>> Klatt/libKlatt.a(Klatt.c.o): In function
> >> >>>>>> `antiResonatorfrequencybandwidth':
> >> >>>>>> Klatt.c:(.text+0xc0): undefined reference to `exp'
> >> >>>>>> Klatt.c:(.text+0xe2): undefined reference to `cos'
> >> >>>>>> Klatt/libKlatt.a(Klatt.c.o): In function
> >> >>>>>> `resonatorfrequencybandwidth':
> >> >>>>>> Klatt.c:(.text+0x160): undefined reference to `exp'
> >> >>>>>> Klatt.c:(.text+0x192): undefined reference to `cos'
> >> >>>>>> Klatt/libKlatt.a(Klatt.c.o): In function
> >> >>>>>> `primitiveSynthesizeFrameIntoStartingAt':
> >> >>>>>> Klatt.c:(.text+0xa92): undefined reference to `pow'
> >> >>>>>> Klatt.c:(.text+0xc41): undefined reference to `sin'
> >> >>>>>> Klatt.c:(.text+0xc59): undefined reference to `sin'
> >> >>>>>> Klatt.c:(.text+0xc6f): undefined reference to `sin'
> >> >>>>>> Klatt.c:(.text+0xe3a): undefined reference to `sincosf'
> >> >>>>>> Klatt.c:(.text+0xe6a): undefined reference to `exp'
> >> >>>>>> Klatt.c:(.text+0xef5): undefined reference to `exp'
> >> >>>>>> Klatt.c:(.text+0xf78): undefined reference to `exp'
> >> >>>>>> Klatt.c:(.text+0xffa): undefined reference to `exp'
> >> >>>>>> Klatt.c:(.text+0x1098): undefined reference to `exp'
> >> >>>>>> Klatt.c:(.text+0x10cc): undefined reference to `sincos'
> >> >>>>>> Klatt.c:(.text+0x115e): undefined reference to `exp'
> >> >>>>>> Klatt.c:(.text+0x119b): undefined reference to `pow'
> >> >>>>>> Klatt.c:(.text+0x1db2): undefined reference to `exp'
> >> >>>>>> Klatt.c:(.text+0x1e2e): undefined reference to `exp'
> >> >>>>>> Klatt.c:(.text+0x1ed8): undefined reference to `exp'
> >> >>>>>> Klatt.c:(.text+0x1f3c): undefined reference to `pow'
> >> >>>>>> Klatt.c:(.text+0x1f6e): undefined reference to `pow'
> >> >>>>>> Mpeg3Plugin/libMpeg3Plugin.a(mpeg3video.c.o): In function
> >> >>>>>> `mpeg3video_allocate_struct':
> >> >>>>>> mpeg3video.c:(.text+0x5e5): undefined reference to
> >> >>>>>> `pthread_mutexattr_init'
> >> >>>>>> Mpeg3Plugin/libMpeg3Plugin.a(slice.c.o): In function
> >> >>>>>> `mpeg3_new_slice_buffer':
> >> >>>>>> slice.c:(.text+0x60): undefined reference to
> >> >>>>>> `pthread_mutexattr_init'
> >> >>>>>> Mpeg3Plugin/libMpeg3Plugin.a(slice.c.o): In function
> >> >>>>>> `mpeg3_new_slice_decoder':
> >> >>>>>> slice.c:(.text+0x139a): undefined reference to
> >> >>>>>> `pthread_mutexattr_init'
> >> >>>>>> slice.c:(.text+0x13f2): undefined reference to `pthread_create'
> >> >>>>>> Mpeg3Plugin/libMpeg3Plugin.a(slice.c.o): In function
> >> >>>>>> `mpeg3_delete_slice_decoder':
> >> >>>>>> slice.c:(.text+0x145c): undefined reference to `pthread_join'
> >> >>>>>> Mpeg3Plugin/libMpeg3Plugin.a(tables.c.o): In function
> >> >>>>>> `mpeg3audio_init_layer2':
> >> >>>>>> tables.c:(.text+0x16f): undefined reference to `pow'
> >> >>>>>> Mpeg3Plugin/libMpeg3Plugin.a(tables.c.o): In function
> >> >>>>>> `mpeg3audio_init_layer3':
> >> >>>>>> tables.c:(.text+0x20a): undefined reference to `pow'
> >> >>>>>> tables.c:(.text+0x244): undefined reference to `pow'
> >> >>>>>> tables.c:(.text+0x2ef): undefined reference to `sin'
> >> >>>>>> tables.c:(.text+0x328): undefined reference to `cos'
> >> >>>>>> tables.c:(.text+0x34e): undefined reference to `sin'
> >> >>>>>> tables.c:(.text+0x376): undefined reference to `cos'
> >> >>>>>> tables.c:(.text+0x43d): undefined reference to `cos'
> >> >>>>>> tables.c:(.text+0x466): undefined reference to `cos'
> >> >>>>>> tables.c:(.text+0x491): undefined reference to `sin'
> >> >>>>>> tables.c:(.text+0x4ba): undefined reference to `cos'
> >> >>>>>> tables.c:(.text+0x4e0): undefined reference to `sin'
> >> >>>>>> tables.c:(.text+0x508): undefined reference to `cos'
> >> >>>>>> tables.c:(.text+0x5a8): undefined reference to `cos'
> >> >>>>>> tables.c:(.text+0x5e9): undefined reference to `cos'
> >> >>>>>> tables.c:(.text+0x6da): undefined reference to `cos'
> >> >>>>>> tables.c:(.text+0x729): undefined reference to `sin'
> >> >>>>>> tables.c:(.text+0x75c): undefined reference to `cos'
> >> >>>>>> tables.c:(.text+0x772): undefined reference to `cos'
> >> >>>>>> tables.c:(.text+0x81a): undefined reference to `pow'
> >> >>>>>> tables.c:(.text+0x8a5): undefined reference to `tan'
> >> >>>>>> tables.c:(.text+0x916): undefined reference to `pow'
> >> >>>>>> tables.c:(.text+0x93e): undefined reference to `pow'
> >> >>>>>> tables.c:(.text+0xe3d): undefined reference to `sqrt'
> >> >>>>>> Mpeg3Plugin/libMpeg3Plugin.a(tables.c.o): In function
> >> >>>>>> `mpeg3audio_new_decode_tables':
> >> >>>>>> tables.c:(.text+0xeba): undefined reference to `cos'
> >> >>>>>> tables.c:(.text+0xefd): undefined reference to `cos'
> >> >>>>>> Mpeg3Plugin/libMpeg3Plugin.a(dct.c.o): In function
> >> >>>>>> `mpeg3audio_imdct_init':
> >> >>>>>> dct.c:(.text+0x124f): undefined reference to `sincos'
> >> >>>>>> dct.c:(.text+0x12cf): undefined reference to `sincos'
> >> >>>>>> dct.c:(.text+0x1411): undefined reference to `sincos'
> >> >>>>>> collect2: ld returned 1 exit status
> >> >>>>>> make[2]: ***
> [/home/david/worksapaces/cogVM/blessed/results/CogVM]
> >> >>>>>> Error 1
> >> >>>>>> make[1]: *** [CMakeFiles/CogVM.dir/all] Error 2
> >> >>>>>> make: *** [all] Error 2
> >> >>>>>>
> >> >>>>>> I'm using Ubuntu 12.04
> >> >>>>>>
> >> >>>>>>
> >> >>>>>> Thank you very much.
> >> >>>>>> _______________________________________________
> >> >>>>>> VM-beginners mailing list
> >> >>>>>> VM-beginners at lists.squeakfoundation.org
> >> >>>>>> http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
> >> >>>>>>
> >> >>>>>
> >> >>>>>
> >> >>>>>
> >> >>>>> --
> >> >>>>> Mariano
> >> >>>>> http://marianopeck.wordpress.com
> >> >>>>>
> >> >>>>>
> >> >>>>> _______________________________________________
> >> >>>>> VM-beginners mailing list
> >> >>>>> VM-beginners at lists.squeakfoundation.org
> >> >>>>> http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
> >> >>>>>
> >> >>>>
> >> >>>
> >> >>>
> >> >>> _______________________________________________
> >> >>> VM-beginners mailing list
> >> >>> VM-beginners at lists.squeakfoundation.org
> >> >>> http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
> >> >>>
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Best regards,
> >> >> Igor Stasenko.
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Best regards,
> >> Igor Stasenko.
> >
> >
>
>
>
> --
> Best regards,
> Igor Stasenko.
> _______________________________________________
> VM-beginners mailing list
> VM-beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
>



-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-beginners/attachments/20120611/e33c1012/attachment-0001.htm


More information about the VM-beginners mailing list