I am facing one issue with IMX7 Yocto build failure, we have added the Y2038 issue fix patches
in glibc, after this when we build using bitbake we are getting build error in other module, however glibc has no failure.
./.libs/g-ir-compiler:
/data/server/tmp/fsl-community-bsp/build/tmp/work/cortexa7hf-neon-jupiter-linux-gnueabi/gobject-introspection/1.48.0-r0/build/.libs/libgirepository-1.0.so.1:
no version information available (required by
/data/server/tmp/fsl-community-bsp/build/tmp/sysroots/imx7dsabresd-jupiter//usr/lib/libgio-2.0.so.0) ./.libs/g-ir-compiler:
/data/server/tmp/fsl-community-bsp/build/tmp/work/cortexa7hf-neon-jupiter-linux-gnueabi/gobject-introspection/1.48.0-r0/build/.libs/libgirepository-1.0.so.1:
no version information available (required by
/data/server/tmp/fsl-community-bsp/build/tmp/sysroots/imx7dsabresd-jupiter//usr/lib/libgio-2.0.so.0) ./.libs/g-ir-compiler: symbol lookup error:
/data/server/tmp/fsl-community-bsp/build/tmp/sysroots/imx7dsabresd-jupiter//usr/lib/libglib-2.0.so.0:
undefined symbol: pcre_free ./.libs/g-ir-compiler: symbol lookup
error:
/data/server/tmp/fsl-community-bsp/build/tmp/sysroots/imx7dsabresd-jupiter//usr/lib/libglib-2.0.so.0:
undefined symbol: pcre_free ./.libs/g-ir-compiler: symbol lookup
error:
/data/server/tmp/fsl-community-bsp/build/tmp/sysroots/imx7dsabresd-jupiter//usr/lib/libglib-2.0.so.0:
undefined symbol: pcre_free ./.libs/g-ir-compiler: symbol lookup
error:
/data/server/tmp/fsl-community-bsp/build/tmp/sysroots/imx7dsabresd-jupiter//usr/lib/libglib-2.0.so.0:
undefined symbol: pcre_free If the above error message is about
missing .so libraries, then setting up GIR_EXTRA_LIBS_PATH in the
recipe should help. (typically like this:
GIR_EXTRA_LIBS_PATH="${B}/something/.libs" ) make[2]: ***
[gir/libxml2-2.0.typelib] Error 1
Any help will be highly appreciated.
I think backporting these two patches to core might be helpful
glib-2.0
libpcre
Related
I have recently got this problem when building for IOS. First time I got it I was able to restore an old version from Plastic backup and then restore each version until recent and the problem was gone. Now that does not work.
I have been googling a lot but do not understand how to solve this problem and would appreciate some help.
I also have not found a description what U3CPrivateImplementationDetailsU3E ... is.
The errors is:
Undefined symbol: _U3CPrivateImplementationDetailsU3E_tBAB6DC40B1709E21296656960228A17F1BE57FD7____499E4F5C84E20C7347E10100E0EC90C1945EA21C7C80809E4F7F474179B39DF6_12_FieldInfo_var
and
Undefined symbol: _U3CPrivateImplementationDetailsU3E_tBAB6DC40B1709E21296656960228A17F1BE57FD7____9DA6B2C4638D1DC7611B7F458BBFE7FD49FE1B36B67239B00B8A051F4E49558F_22_FieldInfo_var
Here is the Xcode log screenshot with the error part also in text below:
Undefined symbols for architecture arm64:
"_U3CPrivateImplementationDetailsU3E_tBAB6DC40B1709E21296656960228A17F1BE57FD7____499E4F5C84E20C7347E10100E0EC90C1945EA21C7C80809E4F7F474179B39DF6_12_FieldInfo_var", referenced from:
_Parser__cctor_m56CB9BAD206C2D94D0AC23E6E618F2AD736051E9 in libGameAssembly.a(hfu1rd9b20qx.o)
"_U3CPrivateImplementationDetailsU3E_tBAB6DC40B1709E21296656960228A17F1BE57FD7____9DA6B2C4638D1DC7611B7F458BBFE7FD49FE1B36B67239B00B8A051F4E49558F_22_FieldInfo_var", referenced from:
_XsdDateTime__cctor_m4F12859B35713836F38CE50985C1492A7EC4D441 in libGameAssembly.a(hfu1rd9b20qx.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Undefined symbol: _U3CPrivateImplementationDetailsU3E_tBAB6DC40B1709E21296656960228A17F1BE57FD7____499E4F5C84E20C7347E10100E0EC90C1945EA21C7C80809E4F7F474179B39DF6_12_FieldInfo_var
Undefined symbol: _U3CPrivateImplementationDetailsU3E_tBAB6DC40B1709E21296656960228A17F1BE57FD7____9DA6B2C4638D1DC7611B7F458BBFE7FD49FE1B36B67239B00B8A051F4E49558F_22_FieldInfo_var
Build target Unity-iPhone of project Unity-iPhone with configuration ReleaseForRunning
/Users/xxxx/Dropbox/Unity3D/_CONTENT/MyApp/ExecutableIOS/Unity-iPhone.xcodeproj: warning: Building with bitcode is deprecated. Please update your project and/or target settings to disable bitcode. (in target 'Unity-iPhone' from project 'Unity-iPhone')
/Users/xxxx/Dropbox/Unity3D/_CONTENT/MyApp/ExecutableIOS/Unity-iPhone.xcodeproj: Building with bitcode is deprecated. Please update your project and/or target settings to disable bitcode.
UPDATE
I deleted Unity executable folder and it seems to solve the problem. However, anyone knows what the problem is?
i'm having go-cmp undefined module error while trying to build aosp android t dp2, is there any clues on how to resolve this problem?
error: external/golang-protobuf/Android.gen.bp:1252:1: "golang-protobuf-reflect-protorange" depends on undefined module "go-cmp" error: external/golang-protobuf/Android.gen.bp:1252:1: "golang-protobuf-reflect-protorange" depends on undefined module "go-cmp-cmpopts" #### failed to build some targets (2 seconds) ####
Just download: https://android.googlesource.com/platform/external/go-cmp/+/refs/heads/master and put it on external folder, but i recommend you wait for the official release since this error is caused by missing stuff and it's not the only error that you might find.
After updating the Firebase libraries, I'm getting the following errors:
MTOUCH : error MT5210: Native linking failed, undefined symbol: _APMAnalyticsConfiguration. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
Blockquote
MTOUCH : error MT5210: Native linking failed, undefined symbol: _APMAppMeasurementOriginFirebase. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _APMIsAnalyticsCollectionDeactivated. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _APMIsAnalyticsCollectionEnabled. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _APMMonitorLogTagOptionKey. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
MTOUCH : error MT5210: Native linking failed, undefined symbol: _APMSafelistedEventsOptionKey. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
I've tried the following:
Deleting obj and bin folders
Cleaning the project
Initializing Firebase core (Firebase.Core.App.Configure();)
I've tried all linker behavior options.
I'm referencing the following Firebase libraries:
Xamarin.Firebase.iOS.Analytics (6.4.1)
Xamarin.Firebase.iOS.CloudMessaging (4.3.0)
Xamarin.Firebase.iOS.Core (6.6.6)
Xamarin.Firebase.iOS.DynamicLinks (4.0.8)
Xamarin.Firebase.iOS.Installations (1.1.1)
Xamarin.Firebase.iOS.InstanceId (4.3.3)
Does anyone know how to solve this?
Unfortunately, there isn't much that you can do in this case. The error is related to incorrect linking. The guys from Xamarin have messed up the bindings after one of the upgrades. You can read more about using native libraries in Xamarin here & more specifically here.
However, you can still do something to help - isolate which package caused the issue and from which version onwards it happens. Then, report it at the official GitHub repository for Google APIs here.
P.S. I have gone through the issues and haven't seen this exact list of errors. There have been (and still are) a lot of binding issues, which are waiting to be fixed. So, in order to speed things up, discuss it with the devs from the issue and hopefully, they will be able to resolve it quickly.
I am building xamarin.forms project and integrated google analytics for ios and droid.
Currently I used Google Analytics for iOS framework by installed nuget for xamarin.ios. By the way, when I build ios, native library linking failed exception happens.
How can I fix this issue?
Here is exception lists.
Error Native linking failed, undefined symbol: __monodroid_lref_log_delete. This symbol was referenced by the managed member Android.Runtime.JNIEnv._monodroid_lref_log_delete. Please verify that all the necessary frameworks have been referenced and native libraries linked.
Error Native linking failed, undefined symbol: __monodroid_max_gref_get. This symbol was referenced by the managed member Java.Interop.Runtime._monodroid_max_gref_get. Please verify that all the necessary frameworks have been referenced and native libraries linked.
Error Native linking failed, undefined symbol: __monodroid_weak_gref_new. This symbol was referenced by the managed member Android.Runtime.JNIEnv._monodroid_weak_gref_new. Please verify that all the necessary frameworks have been referenced and native libraries linked.
Error Native linking failed, undefined symbol: __monodroid_gref_get. This symbol was referenced by the managed member Android.Runtime.AndroidObjectReferenceManager._monodroid_gref_get. Please verify that all the necessary frameworks have been referenced and native libraries linked.
Error Native linking failed, undefined symbol: __monodroid_getifaddrs. This symbol was referenced by the managed member Android.Runtime.AndroidEnvironment._monodroid_getifaddrs. Please verify that all the necessary frameworks have been referenced and native libraries linked.
Error Native linking failed, undefined symbol: __monodroid_gref_log_new. This symbol was referenced by the managed member Android.Runtime.JNIEnv._monodroid_gref_log_new. Please verify that all the necessary frameworks have been referenced and native libraries linked.
Error Native linking failed, undefined symbol: _monodroid_typemap_managed_to_java. This symbol was referenced by the managed member Android.Runtime.JNIEnv.monodroid_typemap_managed_to_java. Please verify that all the necessary frameworks have been referenced and native libraries linked.
Error Native linking failed, undefined symbol: __monodroid_gc_wait_for_bridge_processing. This symbol was referenced by the managed member Android.Runtime.JNIEnv._monodroid_gc_wait_for_bridge_processing. Please verify that all the necessary frameworks have been referenced and native libraries linked.
Error Native linking failed, undefined symbol: __monodroid_freeifaddrs. This symbol was referenced by the managed member Android.Runtime.AndroidEnvironment._monodroid_freeifaddrs. Please verify that all the necessary frameworks have been referenced and native libraries linked.
Error Native linking failed, undefined symbol: __monodroid_lref_log_delete. This symbol was referenced by the managed member Android.Runtime.JNIEnv._monodroid_lref_log_delete. Please verify that all the necessary frameworks have been referenced and native libraries linked.
Error Native linking failed. Please review the build log.
Error Native linking failed, undefined symbol: __monodroid_detect_cpu_and_architecture. This symbol was referenced by the managed member Android.Runtime.AndroidEnvironment._monodroid_detect_cpu_and_architecture. Please verify that all the necessary frameworks have been referenced and native libraries linked.
Error Native linking failed, undefined symbol: __monodroid_gref_log_delete. This symbol was referenced by the managed member Android.Runtime.JNIEnv._monodroid_gref_log_delete. Please verify that all the necessary frameworks have been referenced and native libraries linked.
Error Native linking failed, undefined symbol: _monodroid_typemap_java_to_managed. This symbol was referenced by the managed member Java.Interop.TypeManager.monodroid_typemap_java_to_managed. Please verify that all the necessary frameworks have been referenced and native libraries linked.
Error Native linking failed, undefined symbol: __monodroid_timezone_get_default_id. This symbol was referenced by the managed member Android.Runtime.AndroidEnvironment._monodroid_timezone_get_default_id. Please verify that all the necessary frameworks have been referenced and native libraries linked.
Error Native linking failed, undefined symbol: __monodroid_lref_log_new. This symbol was referenced by the managed member Android.Runtime.JNIEnv._monodroid_lref_log_new. Please verify that all the necessary frameworks have been referenced and native libraries linked.
Error Native linking failed, undefined symbol: __monodroid_weak_gref_delete. This symbol was referenced by the managed member Android.Runtime.JNIEnv._monodroid_weak_gref_delete. Please verify that all the necessary frameworks have been referenced and native libraries linked.
Error Native linking failed, undefined symbol: __monodroid_get_identity_hash_code. This symbol was referenced by the managed member Android.Runtime.JNIEnv._monodroid_get_identity_hash_code. Please verify that all the necessary frameworks have been referenced and native libraries linked.
Error Native linking failed, undefined symbol: __monodroid_gref_log. This symbol was referenced by the managed member Android.Runtime.JNIEnv._monodroid_gref_log. Please verify that all the necessary frameworks have been referenced and native libraries linked.
I had the same weird error. My fix was to remove the Mono.Android reference from PCL and then clean and rebuild fixed all the above errors.
In my case Mono.Android reference was actually a required reference but, to get rid of these errors, I commented out the code in PCL that was using Mono.Android . After a successful build ( without Mono.Android ), I reverted the code in PCL and added Mono.Android reference back to PCL . Surprisingly a clean and rebuild with Mono.Android as a reference in PCL worked this time ! I have no clue how .
I am trying to install myGui 3.2.1 on kubuntu. However while linking the files the following problems occur:
/usr/bin/ld: CMakeFiles/Demo_Colour.dir/DemoKeeper.cpp.o: undefined reference to enter code here/usr/bin/ld: CMakeFiles/Demo_Gui.dir/DemoKeeper.cpp.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libboost_system.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
symbol '_ZN5boost6system15system_categoryEv'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libboost_system.so: error adding symbols: DSO missing from command/usr line
collect2: error: ld returned 1 exit status
/usr/bin/ld: CMakeFiles/Demo_Controllers.dir/DemoKeeper.cpp.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libboost_system.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
/bin/ld: CMakeFiles/Demo_Console.dir/DemoKeeper.cpp.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libboost_system.so: error adding symbols: DSO missing from command line
I guess there is a problem linking with boost and I found some ways to solve it but those solutions were only for archlinux and didn't work for me. Anyway I have looked through the CMAKE files of myGui and couldn't find anything about boost...
I would appreciate every form of help!
I have looked through the CMAKE files of myGui and couldn't find anything about boost...
You obviously need to link with appropriate Boost libraries. This answer may help.
This problem was fixed in git repository.
Boost is not used in MyGUI, but when you build MyGUI using OgrePlatform OGRE require boost for it's headers.