Error when release compile with a thrid party library in monotouch - release

Update III:
After googling around I've found that this is not an uncommon problem. But I seem not to be able to resolve it. I've tried:
"-no_order_inits"
-v -v -v -gcc_flags "-no_order_inits -L${ProjectDir}/libs/iPhone -lCorePlot -force_load ${ProjectDir}/libs/iPhone/libCorePlot.a"
I also have tried to set it to "not link". But same problem occurs. Following the pages:
Error while compiling the Xcode project (IPhone)
http://www.galloway.me.uk/2009/12/ldr-12-bit-displacement-out-of-range/
http://answers.unity3d.com/questions/4095/iphone-enable-internal-profiler-doesnt-work
Update II:
I've removed all (one actually - _hostingView.Layer.SublayerTransform = CATransform3D.MakeScale(1.0f, -1.0f, 1.0f) ) CGAffineTransform from the source files and rebuilt, but same problem exists. I also (in desperation) removed all transforms at all from source but same problem occurs.
Cheers,
Mario
Update:
I'm using the -v -v -v (on correct place as well ;) - thanks to geoff and replaced the output with the new more verbose output:
"-gcc_flags " -v -v -L${ProjectDir}/libs/iPhone -lCorePlot -force_load ${ProjectDir}/libs/iPhone/libCorePlot.a".
It seems that this is causing the error, but I have no clue how to fix this:
ld: ldr 12-bit displacement out of range (4344 max +/-4096) in _CATransform3DGetAffineTransform$stub in _CATransform3DGetAffineTransform$stub from /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/CurrentCost
collect2: ld returned 1 exit status
Cheers,
Mario
Hi, I've decorated and created a wrapper for coreplot. It works in the simulator debug/release and iPhone (device) debug. But I cannot make it build in iPhone release. I get the following error while compiling in it release mode (in to native step). Does anyone know why this issiue occurs?
I use the following following extra arguments:
iPhoneSimulator|Debug -> -gcc_flags " -L${ProjectDir}/libs/iPhoneSimulator -lCorePlot -force_load ${ProjectDir}/libs/iPhoneSimulator/libCorePlot.a" [Works]
iPhoneSimulator|Release -> -gcc_flags " -L${ProjectDir}/libs/iPhoneSimulator -lCorePlot -force_load ${ProjectDir}/libs/iPhoneSimulator/libCorePlot.a" [Works]
iPhone|Debug -> -gcc_flags " -L${ProjectDir}/libs/iPhone -lCorePlot -force_load ${ProjectDir}/libs/iPhone/libCorePlot.a" [Works]
iPhone|Release -> -gcc_flags " -v -v -L${ProjectDir}/libs/iPhone -lCorePlot -force_load ${ProjectDir}/libs/iPhone/libCorePlot.a" [Do not work]
I use SDK version: 4.1
Cheers,
Mario
Output for build (trimmed):
-----------------------------------------------------------------------------------------------------
/Developer/MonoTouch/usr/bin/mtouch -v --nomanifest --nosign -dev "/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app" -r="/Users/mariotoffia/Projects/Effect/Project/Common/Effect.Core/bin/iPhone/Release/EffectCore.dll" -r="/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" -r="/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" -r="/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" -r="/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" -r="/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/libs/CorePlotWrapper.dll" -sdk="4.1" -targetver="3.1.2" -v -v -v -gcc_flags "-L/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/libs/iPhone -lCorePlot -force_load /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/libs/iPhone/libCorePlot.a" "/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/CurrentCost.exe"
Framework is: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk
Copied /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/CurrentCost.exe to /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/CurrentCost.exe
Copied /Developer/MonoTouch/usr/lib/mono/2.1/mscorlib.dll to /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/mscorlib.dll
Copied /Users/mariotoffia/Projects/Effect/Project/Common/Effect.Core/bin/iPhone/Release/EffectCore.dll to /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/EffectCore.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.dll to /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/System.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/Mono.Security.dll to /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/Mono.Security.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Web.Services.dll to /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/System.Web.Services.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll to /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/System.Xml.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll to /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/System.Core.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll to /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/monotouch.dll
Copied /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/libs/CorePlotWrapper.dll to /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/CorePlotWrapper.dll
Linking assembly /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/CurrentCost.exe into /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app
MONO_PATH=/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.Web.Services.dll.s "/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/System.Web.Services.dll"
Mono Ahead of Time compiler - compiling assembly /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/System.Web.Services.dll
Code: 87164 Info: 2095 Ex Info: 2235 Unwind Info: 1957 Class Info: 2628 PLT: 337 GOT Info: 5472 GOT Info Offsets: 2660 GOT: 2664 Offsets: 5112
Output file: '/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.Web.Services.dll.s'.
Linking symbol: '_mono_aot_module_System_Web_Services_info'.
Compiled 397 out of 397 methods (100%)
Methods without GOT slots: 211 (53%)
Direct calls: 71 (36%)
JIT time: 143 ms, Generation time: 72 ms, Assembly+Link time: 0 ms.
MONO_PATH=/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/EffectCore.dll.s "/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/EffectCore.dll"
Mono Ahead of Time compiler - compiling assembly /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/EffectCore.dll
Code: 68408 Info: 1735 Ex Info: 2523 Unwind Info: 1388 Class Info: 1664 PLT: 245 GOT Info: 6439 GOT Info Offsets: 1844 GOT: 1848 Offsets: 6468
Output file: '/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/EffectCore.dll.s'.
Linking symbol: '_mono_aot_module_EffectCore_info'.
Compiled 467 out of 467 methods (100%)
Methods without GOT slots: 277 (59%)
Direct calls: 17 (26%)
JIT time: 119 ms, Generation time: 74 ms, Assembly+Link time: 0 ms.
MONO_PATH=/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.dll.s "/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/System.dll"
Mono Ahead of Time compiler - compiling assembly /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/System.dll
Code: 552096 Info: 14092 Ex Info: 16283 Unwind Info: 4427 Class Info: 13833 PLT: 1324 GOT Info: 17300 GOT Info Offsets: 10584 GOT: 10588 Offsets: 34464
Output file: '/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.dll.s'.
Linking symbol: '_mono_aot_module_System_info'.
Compiled 2649 out of 2649 methods (100%)
Methods without GOT slots: 1512 (57%)
Direct calls: 1312 (43%)
JIT time: 874 ms, Generation time: 493 ms, Assembly+Link time: 79 ms.
MONO_PATH=/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/monotouch.dll.s "/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/monotouch.dll"
Mono Ahead of Time compiler - compiling assembly /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/monotouch.dll
Code: 237196 Info: 8510 Ex Info: 8393 Unwind Info: 2398 Class Info: 7162 PLT: 731 GOT Info: 15564 GOT Info Offsets: 6516 GOT: 6520 Offsets: 23136
Output file: '/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/monotouch.dll.s'.
Linking symbol: '_mono_aot_module_monotouch_info'.
Compiled 1601 out of 1601 methods (100%)
Methods without GOT slots: 668 (41%)
Direct calls: 377 (29%)
JIT time: 358 ms, Generation time: 218 ms, Assembly+Link time: 0 ms.
MONO_PATH=/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/CorePlotWrapper.dll.s "/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/CorePlotWrapper.dll"
Mono Ahead of Time compiler - compiling assembly /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/CorePlotWrapper.dll
Code: 213780 Info: 10041 Ex Info: 5673 Unwind Info: 1281 Class Info: 9090 PLT: 247 GOT Info: 7462 GOT Info Offsets: 6444 GOT: 6448 Offsets: 14904
Output file: '/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/CorePlotWrapper.dll.s'.
Linking symbol: '_mono_aot_module_CorePlotWrapper_info'.
Compiled 1150 out of 1150 methods (100%)
Methods without GOT slots: 170 (14%)
Direct calls: 166 (57%)
JIT time: 311 ms, Generation time: 147 ms, Assembly+Link time: 0 ms.
MONO_PATH=/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/mscorlib.dll.s "/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/mscorlib.dll"
Mono Ahead of Time compiler - compiling assembly /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/mscorlib.dll
Code: 1438420 Info: 36834 Ex Info: 43961 Unwind Info: 5964 Class Info: 24479 PLT: 2341 GOT Info: 57333 GOT Info Offsets: 19752 GOT: 36652 Offsets: 91356
Output file: '/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/mscorlib.dll.s'.
Linking symbol: '_mono_aot_module_mscorlib_info'.
Compiled 6743 out of 6743 methods (100%)
Methods without GOT slots: 4307 (63%)
Direct calls: 5191 (48%)
JIT time: 1569 ms, Generation time: 872 ms, Assembly+Link time: 353 ms.
MONO_PATH=/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.Xml.dll.s "/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/System.Xml.dll"
Mono Ahead of Time compiler - compiling assembly /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/System.Xml.dll
Code: 903780 Info: 22355 Ex Info: 20643 Unwind Info: 5370 Class Info: 18282 PLT: 1394 GOT Info: 20584 GOT Info Offsets: 14016 GOT: 14020 Offsets: 46332
Output file: '/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.Xml.dll.s'.
Linking symbol: '_mono_aot_module_System_Xml_info'.
Compiled 3687 out of 3687 methods (100%)
Methods without GOT slots: 2215 (60%)
Direct calls: 2620 (43%)
JIT time: 1026 ms, Generation time: 455 ms, Assembly+Link time: 187 ms.
MONO_PATH=/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.Core.dll.s "/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/System.Core.dll"
Mono Ahead of Time compiler - compiling assembly /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/System.Core.dll
Code: 7736 Info: 139 Ex Info: 1698 Unwind Info: 339 Class Info: 233 PLT: 61 GOT Info: 3186 GOT Info Offsets: 328 GOT: 332 Offsets: 708
Output file: '/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.Core.dll.s'.
Linking symbol: '_mono_aot_module_System_Core_info'.
Compiled 50 out of 50 methods (100%)
Methods without GOT slots: 40 (80%)
Direct calls: 15 (62%)
JIT time: 12 ms, Generation time: 19 ms, Assembly+Link time: 0 ms.
MONO_PATH=/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/Mono.Security.dll.s "/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/Mono.Security.dll"
Mono Ahead of Time compiler - compiling assembly /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/Mono.Security.dll
Code: 247904 Info: 5041 Ex Info: 6559 Unwind Info: 3199 Class Info: 6723 PLT: 534 GOT Info: 7068 GOT Info Offsets: 4240 GOT: 4244 Offsets: 13824
Output file: '/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/Mono.Security.dll.s'.
Linking symbol: '_mono_aot_module_Mono_Security_info'.
Compiled 1091 out of 1091 methods (100%)
Methods without GOT slots: 616 (56%)
Direct calls: 723 (40%)
JIT time: 299 ms, Generation time: 152 ms, Assembly+Link time: 0 ms.
MONO_PATH=/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --aot=full,static,asmonly,nodebug,outfile=/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/CurrentCost.exe.s "/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/CurrentCost.exe"
Mono Ahead of Time compiler - compiling assembly /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/bin/iPhone/Release/Effect.IPhone.app/CurrentCost.exe
Code: 126312 Info: 2658 Ex Info: 3158 Unwind Info: 2001 Class Info: 1899 PLT: 407 GOT Info: 8209 GOT Info Offsets: 3076 GOT: 3080 Offsets: 7236
Output file: '/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/CurrentCost.exe.s'.
Linking symbol: '_mono_aot_module_CurrentCost_info'.
Compiled 561 out of 561 methods (100%)
Methods without GOT slots: 314 (55%)
Direct calls: 77 (31%)
JIT time: 189 ms, Generation time: 100 ms, Assembly+Link time: 0 ms.
Generated /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/main.m
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.1.2 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk -c /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.Web.Services.dll.s -o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.Web.Services.dll.o
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.1.2 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk -c /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/EffectCore.dll.s -o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/EffectCore.dll.o
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.1.2 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk -c /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.dll.s -o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.dll.o
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.1.2 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk -c /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/monotouch.dll.s -o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/monotouch.dll.o
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.1.2 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk -c /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/CorePlotWrapper.dll.s -o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/CorePlotWrapper.dll.o
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.1.2 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk -c /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/mscorlib.dll.s -o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/mscorlib.dll.o
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.1.2 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk -c /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.Xml.dll.s -o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.Xml.dll.o
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.1.2 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk -c /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.Core.dll.s -o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.Core.dll.o
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.1.2 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk -c /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/Mono.Security.dll.s -o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/Mono.Security.dll.o
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.1.2 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk -c /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/CurrentCost.exe.s -o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/CurrentCost.exe.o
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.1.2 -std=c99 -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk -c /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/main.m -o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/main.o
/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/main.m: In function 'main':
/var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/main.m:1831: warning: implicit declaration of function 'chdir'
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.1.2 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.Web.Services.dll.o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/EffectCore.dll.o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.dll.o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/monotouch.dll.o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/CorePlotWrapper.dll.o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/mscorlib.dll.o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.Xml.dll.o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.Core.dll.o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/Mono.Security.dll.o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/CurrentCost.exe.o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/registrar.m -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/main.o -o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/CurrentCost -framework CFNetwork -framework Foundation -framework QuartzCore -framework CoreGraphics -framework UIKit -lz -u _catch_exception_raise -u _CreateZStream -u _CloseZStream -u _Flush -u _ReadZStream -u _WriteZStream -liconv -lmono -lmonotouch -L/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/lib -L/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/libs/iPhone -lCorePlot -force_load /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/libs/iPhone/libCorePlot.a
ld: ldr 12-bit displacement out of range (4344 max +/-4096) in _CATransform3DGetAffineTransform$stub in _CATransform3DGetAffineTransform$stub from /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/CurrentCost
collect2: ld returned 1 exit status
Process exited with code 1, command:
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -gdwarf-2 -miphoneos-version-min=3.1.2 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.Web.Services.dll.o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/EffectCore.dll.o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.dll.o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/monotouch.dll.o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/CorePlotWrapper.dll.o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/mscorlib.dll.o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.Xml.dll.o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/System.Core.dll.o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/Mono.Security.dll.o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/CurrentCost.exe.o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/registrar.m -I/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/include /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/main.o -o /var/folders/kB/kBtPA5MIFKO6PNUFCu8T8U+++TI/-Tmp-/tmp14340273.tmp/CurrentCost -framework CFNetwork -framework Foundation -framework QuartzCore -framework CoreGraphics -framework UIKit -lz -u _catch_exception_raise -u _CreateZStream -u _CloseZStream -u _Flush -u _ReadZStream -u _WriteZStream -liconv -lmono -lmonotouch -L/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/lib -L/Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/libs/iPhone -lCorePlot -force_load /Users/mariotoffia/Projects/Effect/Project/Platform/iPhone/libs/iPhone/libCorePlot.a
---------------------- Done ----------------------
Build: 1 error, 3 warnings

The issue you have now is that your native library is a thumb library, and apples linker has issues linking thumb into larger projects. You want to disable the thumb build for libCorePlot.a
You can find this setting in Xcode at Project->Edit Project Settings. Search for "thumb" in All Configurations and uncheck the "Compile for Thumb" box. Rebuild your native library, and you should be able to compile.

As Geoff pointed out, I'm using coreplot is a thumbs library and thus re-compile with disabled thumbs build fixes the problem. If you don't want to do that and have the possibility to build using iOS SDK 3.2 (and set iphoneMinOsVersion to 3.0) it works for me anyway.
Cheers,
Mario

Related

OMS Agent not heart beating with error certificate verify failed (unable to get local issuer certificate)

On an Ubuntu 20 machine, OMS Agent not heart beating. In the OMS Agent log, we have the below error message.
Error sending the telemetry request to OMS agent management service: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)
The openssl is customized on the box. Few steps are not configured while upgrading openssl but I verified that should not be the issue.
$ openssl version -a
OpenSSL 1.1.1f 31 Mar 2020 (Library: OpenSSL 1.1.1n 15 Mar 2022)
built on: Thu Dec 22 14:25:22 2022 UTC
platform: linux-x86_64
options: bn(64,64) rc4(16x,int) des(int) blowfish(ptr)
compiler: gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DNDEBUG
OPENSSLDIR: "/usr/local/ssl"
ENGINESDIR: "/usr/local/lib/
If we use root user, we are able to connect to ODS endpoint and bing.com without any issues using openssl client.
But if we use omsagent user, we are not running into the same problem connecting to ODS endpoint and bing.com with opensssl client.
I verified that the /etc/ssl/certs has the proper certs configured.

Pyinstaller not calling local hook

In my directory I have two files:
print.py, which contains:
import client
print('I work')
and hook-client.py, which contains:
raise RuntimeError
When I run pyinstaller --additional-hooks-dir=. print.py within said directory, no traceback/error message is outputted to the terminal (The hook file raises an error for testing reasons).
Am I missing something?
This is the output in the terminal - as you can see, there is no mention of hook-client.py:
18 INFO: PyInstaller: 4.0
18 INFO: Python: 3.8.2
24 INFO: Platform: Linux-5.4.0-42-generic-x86_64-with-glibc2.29
24 INFO: wrote /home/riz/Desktop/testing_hook/print.spec
25 INFO: UPX is not available.
26 INFO: Extending PYTHONPATH with paths
['/home/riz/Desktop/testing_hook', '/home/riz/Desktop/testing_hook']
29 INFO: checking Analysis
32 INFO: Building because hookspath changed
32 INFO: Initializing module dependency graph...
33 INFO: Caching module graph hooks...
36 INFO: Analyzing base_library.zip ...
1338 INFO: Processing pre-find module path hook distutils from '/home/riz/.local/lib/python3.8/site-packages/PyInstaller/hooks/pre_find_module_path/hook-distutils.py'.
1338 INFO: distutils: retargeting to non-venv dir '/usr/lib/python3.8'
2631 INFO: Caching module dependency graph...
2689 INFO: running Analysis Analysis-00.toc
2712 INFO: Analyzing /home/riz/Desktop/testing_hook/print.py
2713 INFO: Processing module hooks...
2714 INFO: Loading module hook 'hook-_tkinter.py' from '/home/riz/.local/lib/python3.8/site-packages/PyInstaller/hooks'...
2762 INFO: checking Tree
2766 INFO: checking Tree
2768 INFO: Loading module hook 'hook-lib2to3.py' from '/home/riz/.local/lib/python3.8/site-packages/PyInstaller/hooks'...
2774 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from '/home/riz/.local/lib/python3.8/site-packages/PyInstaller/hooks'...
2774 INFO: Loading module hook 'hook-sysconfig.py' from '/home/riz/.local/lib/python3.8/site-packages/PyInstaller/hooks'...
2778 INFO: Loading module hook 'hook-xml.py' from '/home/riz/.local/lib/python3.8/site-packages/PyInstaller/hooks'...
2815 INFO: Loading module hook 'hook-distutils.py' from '/home/riz/.local/lib/python3.8/site-packages/PyInstaller/hooks'...
2815 INFO: Loading module hook 'hook-encodings.py' from '/home/riz/.local/lib/python3.8/site-packages/PyInstaller/hooks'...
2855 INFO: Looking for ctypes DLLs
2872 INFO: Analyzing run-time hooks ...
2874 INFO: Including run-time hook '/home/riz/.local/lib/python3.8/site-packages/PyInstaller/hooks/rthooks/pyi_rth__tkinter.py'
2874 INFO: Including run-time hook '/home/riz/.local/lib/python3.8/site-packages/PyInstaller/hooks/rthooks/pyi_rth_multiprocessing.py'
2878 INFO: Looking for dynamic libraries
3228 INFO: Looking for eggs
3228 INFO: Python library not in binary dependencies. Doing additional searching...
3248 INFO: Using Python library /lib/x86_64-linux-gnu/libpython3.8.so.1.0
3252 INFO: Warnings written to /home/riz/Desktop/testing_hook/build/print/warn-print.txt
3270 INFO: Graph cross-reference written to /home/riz/Desktop/testing_hook/build/print/xref-print.html
3278 INFO: checking PYZ
3280 INFO: Building because toc changed
3280 INFO: Building PYZ (ZlibArchive) /home/riz/Desktop/testing_hook/build/print/PYZ-00.pyz
3551 INFO: Building PYZ (ZlibArchive) /home/riz/Desktop/testing_hook/build/print/PYZ-00.pyz completed successfully.
3553 INFO: checking PKG
3553 INFO: Building because toc changed
3553 INFO: Building PKG (CArchive) PKG-00.pkg
3569 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
3569 INFO: Bootloader /home/riz/.local/lib/python3.8/site-packages/PyInstaller/bootloader/Linux-64bit/run
3569 INFO: checking EXE
3570 INFO: Building because toc changed
3570 INFO: Building EXE from EXE-00.toc
3570 INFO: Appending archive to ELF section in EXE /home/riz/Desktop/testing_hook/build/print/print
3576 INFO: Building EXE from EXE-00.toc completed successfully.
3577 INFO: checking COLLECT
WARNING: The output directory "/home/riz/Desktop/testing_hook/dist/print" and ALL ITS CONTENTS will be REMOVED! Continue? (y/N)y
On your own risk, you can use the option `--noconfirm` to get rid of this question.
6136 INFO: Removing dir /home/riz/Desktop/testing_hook/dist/print
6146 INFO: Building COLLECT COLLECT-00.toc
6179 INFO: Building COLLECT COLLECT-00.toc completed successfully.

specify pocketsphinx language model or grammar

On Debian I'm trying to launch pocketsphinx_continuous with this arguments:
pocketsphinx_continuous -inmic yes -hmm /usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k -adcdev plughw:0,0 -dict /usr/share/pocketsphinx/model/lm/en_US/cmu07a.dic
Here the last part of the output:
INFO: dict.c(320): Allocating 137543 * 20 bytes (2686 KiB) for word entries
INFO: dict.c(333): Reading main dictionary: /usr/share/pocketsphinx/model/lm/en_US/cmu07a.dic
INFO: dict.c(213): Allocated 1010 KiB for strings, 1664 KiB for phones
INFO: dict.c(336): 133436 words read
INFO: dict.c(358): Reading filler dictionary: /usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/noisedict
INFO: dict.c(213): Allocated 0 KiB for strings, 0 KiB for phones
INFO: dict.c(361): 11 words read
INFO: dict2pid.c(396): Building PID tables for dictionary
INFO: dict2pid.c(406): Allocating 50^3 * 2 bytes (244 KiB) for word-initial triphones
INFO: dict2pid.c(132): Allocated 30200 bytes (29 KiB) for word-final triphones
INFO: dict2pid.c(196): Allocated 30200 bytes (29 KiB) for single-phone word triphones
INFO: continuous.c(305): pocketsphinx_continuous COMPILED ON: May 22 2016, AT: 22:01:16
ERROR: "pocketsphinx.c", line 957: No search module is selected, did you forget to specify a language model or grammar?
FATAL: "continuous.c", line 250: Failed to start utterance
I don't know how to specify the language model or grammar as requested.
i also have these files but I don't know if they are related:
ls -l ~/phonetisaurus/
totale 318644
-rwxr-xr-x 1 pi pi 498 mag 15 2012 compile-fst.sh
-rw-r--r-- 1 pi pi 68172496 mag 15 2012 g014b2b.arpa
-rw-r--r-- 1 pi pi 3544610 mag 15 2012 g014b2b.corpus
-rw-r--r-- 1 pi pi 51190845 lug 4 08:49 g014b2b.fst
-rw-r--r-- 1 pi pi 163490139 mag 15 2012 g014b2b.fst.txt
-rw-r--r-- 1 pi pi 380388 mag 15 2012 g014b2b.hyp
-rw-r--r-- 1 pi pi 1223 mag 15 2012 g014b2b.isyms
-rw-r--r-- 1 pi pi 1128 mag 15 2012 g014b2b.osyms
-rw-r--r-- 1 pi pi 299283 mag 15 2012 g014b2b.ref
-rw-r--r-- 1 pi pi 35625073 mag 15 2012 g014b2b.ssyms
-rw-r--r-- 1 pi pi 3452982 mag 15 2012 g014b2b.train
-rw-r--r-- 1 pi pi 101264 mag 15 2012 g014b2b.words
-rw-r--r-- 1 pi pi 1327 mag 15 2012 README.txt
I read the documentation and the help provided launching the command without any arguments but I cannot understand what I'm actually missing.
EDIT:
as suggested I compiled from sources:
wget http://downloads.sourceforge.net/project/cmusphinx/sphinxbase/5prealpha/sphinxbase-5prealpha.tar.gz
wget http://downloads.sourceforge.net/project/cmusphinx/pocketsphinx/5prealpha/pocketsphinx-5prealpha.tar.gz
For each file:
tar xzf <filename>
./configure
make
sudo make install
To be sure it's installed:
which pocketsphinx_continuous
/usr/local/bin/pocketsphinx_continuous
and:
To check that pocketsphinx is installed properly, just run pkg-config –cflags –libs pocketsphinx sphinxbase
pkg-config --cflags --libs pocketsphinx sphinxbase
-I/usr/local/include -I/usr/local/include/sphinxbase -I/usr/local/include/pocketsphinx -I/usr/local/include -I/usr/local/include/sphinxbase -L/usr/local/lib -lpocketsphinx -lsphinxbase -lsphinxad -lpulse -lpulse-simple -lpthread -lm
The tutorial says:
To test installation, run 'pocketsphinx_continuous -inmic yes' and check that it recognizes words you are saying to the microphone.
But:
ERROR: "acmod.c", line 80: Acoustic model definition is not specified either with -mdef option or with -hmm
[full log: http://pastebin.com/HK6xBgVk ]
With this command I'm able to start it:
pocketsphinx_continuous -inmic yes -hmm model/en-us/en-us -lm model/en-us/en-us.lm.bin -dict model/en-us/cmudict-en-us.dict -adcdev plughw:0,0
(without the adcdev field it cannot find the default audio input)
but it doesn't recognize any word (I was saying: "what's the weather like?")
[full log: http://pastebin.com/nfst5NQD ]
You need to remove the outdated pocketsphinx packages from Debian, it is going to have zero accuracy anyway.
You need to install pocketsphinx from source as described in tutorial and follow the tutorial further. To understand the models in speech recognition you can read other part of tutorial.

ejabberd show error while configure at time of installation

I am trying to configure eJabberd on my server.
I have installed all dependencies and other needed things. ERL also installed success fully through RPM with run result
root#sXX-XX-XX-XX [~]# erl -smp disable
Erlang/OTP 18 [erts-7.1] [source-2882b0c] [64-bit] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V7.1 (abort with ^G)
1>
For final installation of eJabberd i have followed below link :
http://docs.ejabberd.im/admin/guide/installation/
I have tried make clean also for it and after try ./configure --enable-mysql than also i am facing continue below error.
root#sXX-XX-XX-XX [/etc/ejabberd_downloads/ejabberd]# ./configure
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for a sed that does not truncate output... /bin/sed
checking for erl... /usr/bin/erl
checking for erlc... /usr/bin/erlc
checking for erl... /usr/bin/erl
checking for erlc... /usr/bin/erlc
checking Erlang/OTP version...
Crash dump is being written to: erl_crash.dump...
Failed to create aux thread
./configure: line 2523: 1636 Aborted $ERLC conftest.erl
configure: error: "Could not compile Erlang/OTP version check program using '/usr/bin/erlc'"
For erl_crash.dump few lines as below from top
=erl_crash_dump:0.3
Thu Nov 19 01:31:57 2015
Slogan: Failed to create aux thread
System version: Erlang/OTP 18 [erts-7.1] [source-2882b0c] [64-bit] [smp:64:24] [async-threads:0] [hipe] [kernel-poll:false]
Compiled: Wed Sep 23 15:34:00 2015
Taints:
Atoms: 2005
Calling Thread: beam.smp
=scheduler:1
Scheduler Sleep Info Flags: SLEEPING | TSE_SLEEPING
Scheduler Sleep Info Aux Work: SET_TMO
Current Port:
Run Queue Max Length: 0
Run Queue High Length: 0
Run Queue Normal Length: 1
Run Queue Low Length: 0
Run Queue Port Length: 0
Run Queue Flags: NONEMPTY_NORMAL | NONEMPTY
Current Process:
=scheduler:2
which erl result as below :
/usr/bin/erl
I am not able to trace the issue, Any reference will be very helpful. Thanks in advence.
It seems that your Erlang version is corrupted or Old, Reinstall it and try again. For Ejabberd 16.x version 6.1 (Erlang/OTP 17.1) is required.
You can uninstall Erlang with following command:
$ sudo apt-get purge erlang*
And install latest Erlang from http://www.erlang.org/

oprofile 0.9.8 failing under Ubuntu 12.10 with Pentium D

I am trying to use oprofile 0.9.8 under Ubuntu 12.10 running on a Pentium D processor (Dell OptiPlex-GX620 desktop). When I try something simple like "operf ls" I get
perf_event_open failed with Invalid argument
Caught runtime_error: Internal Error. Perf event setup failed.
Error running profiler
I have success running oprofile in legacy mode using opcontrol commands under sudo by installing the module with timer=1 (see below).
It appears that operf is unhappy in this configuration - which is the new preferred method.
I have verified that all the dependent packages are loaded.
On the oprofile website they do not call out pentium D as a seperate architucture so not sure if it is using regular Pentium architecture.
I have searched everywhere and can't find anything like this reported. Any help would be appreciated in identifying the problem here.
P.S. When I run with legacy mode using opcontrol I have some success:
denham#denham-OptiPlex-GX620:~$ sudo opcontrol --start
ATTENTION: Use of opcontrol is discouraged. Please see the man page for operf.
Using default event: GLOBAL_POWER_EVENTS:100000:1:1:1
Error: counter 0 not available nmi_watchdog using this resource ? Try:
opcontrol --deinit
echo 0 > /proc/sys/kernel/nmi_watchdog
**When I force the module to be installed with timer=1**
denham#denham-OptiPlex-GX620:~$ sudo opcontrol --deinit
Unloading oprofile module
denham#denham-OptiPlex-GX620:~$ sudo modprobe oprofile timer=1
denham#denham-OptiPlex-GX620:~$ sudo opcontrol --no-vmlinux
denham#denham-OptiPlex-GX620:~$ sudo opcontrol --start
ATTENTION: Use of opcontrol is discouraged. Please see the man page for operf.
Using 2.6+ OProfile kernel interface.
Using log file /var/lib/oprofile/samples/oprofiled.log
Daemon started.
Profiler running.
denham#denham-OptiPlex-GX620:~$ ./a
^C
denham#denham-OptiPlex-GX620:~$ sudo opcontrol --shutdown
Stopping profiling.
Killing daemon.
denham#denham-OptiPlex-GX620:~$ opreport --callgraph
Using /var/lib/oprofile/samples/ for samples directory.
warning: /no-vmlinux could not be found.
warning: [vdso] (tgid:1697 range:0xb77ab000-0xb77ac000) could not be found.
warning: [vdso] (tgid:1728 range:0xb77b6000-0xb77b7000) could not be found.
warning: [vdso] (tgid:3310 range:0xb7702000-0xb7703000) could not be found.
CPU: CPU with timer interrupt, speed 2992.41 MHz (estimated)
Profiling through timer interrupt
samples % image name app name symbol name
-------------------------------------------------------------------------------
31878 81.1868 no-vmlinux no-vmlinux /no-vmlinux
31878 100.000 no-vmlinux no-vmlinux /no-vmlinux [self]
-------------------------------------------------------------------------------
2820 7.1820 a a main
2820 100.000 a a main [self]
-------------------------------------------------------------------------------
1065 2.7123 vino-server vino-server /usr/lib/vino/vino-server
1065 100.000 vino-server vino-server /usr/lib/vino/vino-server [self]
-------------------------------------------------------------------------------
1056 2.6894 a a b
1056 100.000 a a b [self]
-------------------------------------------------------------------------------
1013 2.5799 a a c
1013 100.000 a a c [self]
-------------------------------------------------------------------------------
968 2.4653 a a d
968 100.000 a a d [self]
-------------------------------------------------------------------------------
264 0.6724 libc-2.15.so libc-2.15.so /lib/i386-linux-gnu/libc-2.15.so
. . . . .
Don't know if this is the main problem but the error message says -
"Error: counter 0 not available nmi_watchdog using this resource.
Try: opcontrol --deinit echo 0 > /proc/sys/kernel/nmi_watchdog".
To get rid of this you have to disable NMI watchdog kernel parameter. On Ubuntu it is done via grub -
Edit /etc/default/grub and add “nmi_watchdog=0” to the GRUB_CMDLINE_LINUX.
Then run sudo update-grub and check the value with
cat /proc/sys/kernel/nmi_watchdog (should be "0"). Reboot to install new config if needed.

Resources