Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
yoctoproject: undefined reference to g_type..
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
schotter
Guru
Guru


Joined: 30 Nov 2004
Posts: 497
Location: Germany, Bavaria, Bayreuth, Pottenstein, Tüchersfeld

PostPosted: Mon Aug 17, 2015 8:44 am    Post subject: yoctoproject: undefined reference to g_type.. Reply with quote

Hi,

I tried to build an image for an ARM target by using yocto and following the wiki. It went quite fine until perl has to be built...here i get:

Code:
~/Projekte/Zeroo/poky/build (dora ✔) ᐅ bitbake core-image-minimal
WARNING: Host distribution "Gentoo" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |########################################################################################################################################################################################################| ETA:  00:00:00
Loaded 1188 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.20.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Gentoo"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "qemuarm"
DISTRO            = "poky"
DISTRO_VERSION    = "1.5.4"
TUNE_FEATURES     = "armv5 thumb dsp"
TARGET_FPU        = "soft"
meta             
meta-yocto       
meta-yocto-bsp    = "dora:8e9e7e8def9b0b728937d34115f7165677c31bed"

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Inode check for /home/thorsten/Projekte/Zeroo/poky/build/tmp is unavaliable, will remove it from disk monitor
NOTE: Inode check for /home/thorsten/Projekte/Zeroo/poky/build/sstate-cache is unavaliable, will remove it from disk monitor
NOTE: Inode check for /home/thorsten/Projekte/Zeroo/poky/build/downloads is unavaliable, will remove it from disk monitor
NOTE: Inode check for /home/thorsten/Projekte/Zeroo/poky/build/tmp is unavaliable, will remove it from disk monitor
NOTE: Inode check for /home/thorsten/Projekte/Zeroo/poky/build/sstate-cache is unavaliable, will remove it from disk monitor
NOTE: Inode check for /home/thorsten/Projekte/Zeroo/poky/build/downloads is unavaliable, will remove it from disk monitor
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_configure (log file is located at /home/thorsten/Projekte/Zeroo/poky/build/tmp/work/x86_64-linux/perl-native/5.14.3-r0/temp/log.do_configure.20055)
ERROR: Logfile of failure stored in: /home/thorsten/Projekte/Zeroo/poky/build/tmp/work/x86_64-linux/perl-native/5.14.3-r0/temp/log.do_configure.20055
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
| First let's make sure your kit is complete.  Checking...
| Would you like to see the instructions? [n]
| Locating common programs...
| Checking compatibility between /bin/echo and builtin echo (if any)...
| Symbolic links are supported.
| Checking how to test for symbolic links...
| You can test for symbolic links with 'test -h'.
| Good, your tr supports [:lower:] and [:upper:] to convert case.
| Using [:upper:] and [:lower:] to convert case.
| 3b1            dragonfly       irix_6_0        opus          super-ux
| aix            dynix            irix_6_1        os2          svr4
| aix_3         dynixptx        isc            os390          svr5
| aix_4         epix            isc_2            os400          ti1500
| altos486      esix4            linux            posix-bc      titanos
| amigaos       fps            lynxos          powerux       ultrix_4
| atheos        freebsd         midnightbsd     qnx          umips
| aux_3         genix            mips            rhapsody      unicos
| beos          gnu            mirbsd          riscos        unicosmk
| bsdos         gnukfreebsd     mpc            sco          unisysdynix
| catamount     gnuknetbsd      mpeix            sco_2_3_0     utekv
| convexos      greenhills      ncr_tower       sco_2_3_1     uts
| cxux          haiku            netbsd          sco_2_3_2     uwin
| cygwin        hpux            newsos4         sco_2_3_3     vmesa
| darwin        i386            next_3          sco_2_3_4     vos
| dcosx         interix         next_3_0        solaris_2
| dec_osf       irix_4          next_4          stellar
| dgux          irix_5          nonstopux       sunos_4_0
| dos_djgpp     irix_6          openbsd         sunos_4_1
| Which of these apply, if any? [linux]
|
| You appear to have ELF support.  I'll try to use it for dynamic loading.
| If dynamic loading doesn't work, read hints/linux.sh for further information.
| nm: /usr/lib/libdb.so: no symbols
| nm: /usr/lib64/libdb.so: no symbols
| nm: /usr/lib64/libdb.so: no symbols
| Operating system name? [linux]
| Operating system version? [4.1.4-gentoo]
| Installation prefix to use? (~name ok)
| [/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr]
| AFS does not seem to be running...
| What installation prefix should I use for installing files? (~name ok)
| [/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr]
| Build Perl for SOCKS? [n]
| Use the PerlIO abstraction layer? [y]
| Getting the current patchlevel...
| Build a threading Perl? [y]
| Use which C compiler? [gcc ]
| Checking for GNU cc in disguise and/or its version number...
| Now, how can we feed standard input to your C preprocessor...
| Directories to use for library searches?
| [/usr/local/lib /lib/../lib64 /usr/lib/../lib64 /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib64]
| What is the file extension used for shared libraries? [so]
| Try to use long doubles if available? [n]
| Checking for optional libraries...
| What libraries to use?
| [-lnsl -lnm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc -lgdbm_compat]
| What optimizer/debugger flag should be used? [-O2]
| Any additional cc flags?
| [-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector]
| Let me guess what the preprocessor flags are...
| Any additional ld flags (NOT including libraries)?
| [-L/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr/lib -L/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath-link,/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath,/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/lib -Wl,-O1 -fstack-protector -L/usr/local/lib]
| Checking your choice of C compiler and flags for coherency...
| I've tried to compile and run the following simple program:
|
| #include <stdio.h>
| int main() { printf("Ok\n"); return(0); }
|
| I used the command:
|
|    gcc -o try -O2 -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -L/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr/lib -L/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath-link,/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath,/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/lib -Wl,-O1 -fstack-protector -L/usr/local/lib try.c -lnsl -lnm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc -lgdbm_compat
|     ./try
|
| and I got the following output:
|
| /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/../../../../lib64/libnm.so: undefined reference to `g_type_add_instance_private'
| /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/../../../../lib64/libnm.so: undefined reference to `g_type_class_adjust_private_offset'
| collect2: error: ld returned 1 exit status
| I can't compile the test program.
| You have a BIG problem.  Shall I abort Configure [y]
| Ok.  Stopping Configure.
| WARNING: /home/thorsten/Projekte/Zeroo/poky/build/tmp/work/x86_64-linux/perl-native/5.14.3-r0/temp/run.do_configure.20055:1 exit 1 from
|   ./Configure -Dcc="gcc " -Dcflags="-isystem/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe" -Dldflags="-L/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr/lib -L/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath-link,/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath,/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/lib -Wl,-O1" -Dcf_by="Open Embedded" -Dprefix=/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr -Dvendorprefix=/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr -Dvendorprefix=/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr -Dsiteprefix=/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr -Dbin=/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr/bin/perl-native -Dprivlib=/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr/lib/perl-native/perl/5.14.3 -Darchlib=/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr/lib/perl-native/perl/5.14.3 -Dvendorlib=/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr/lib/perl-native/perl/5.14.3 -Dvendorarch=/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr/lib/perl-native/perl/5.14.3 -Dsitelib=/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr/lib/perl-native/perl/5.14.3 -Dsitearch=/home/thorsten/Projekte/Zeroo/poky/build/tmp/sysroots/x86_64-linux/usr/lib/perl-native/perl/5.14.3 -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dnoextensions=ODBM_File -Ud_dosuid -Ui_db -Ui_ndbm -Ui_gdbm -Di_shadow -Di_syslog -Duseperlio -Dman3ext=3pm -Dsed=/bin/sed -Uafs -Ud_csh -Uusesfio -Uusenm -des
| ERROR: Function failed: do_configure (log file is located at /home/thorsten/Projekte/Zeroo/poky/build/tmp/work/x86_64-linux/perl-native/5.14.3-r0/temp/log.do_configure.20055)
ERROR: Task 927 (/home/thorsten/Projekte/Zeroo/poky/meta/recipes-devtools/perl/perl-native_5.14.3.bb, do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 938 tasks of which 937 didn't need to be rerun and 1 failed.
No currently running tasks (937 of 1624)

Summary: 1 task failed:
  /home/thorsten/Projekte/Zeroo/poky/meta/recipes-devtools/perl/perl-native_5.14.3.bb, do_configure
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.


Has anyone an idea?

schotter
Back to top
View user's profile Send private message
KarlH420
n00b
n00b


Joined: 25 Apr 2005
Posts: 45

PostPosted: Mon Oct 12, 2015 4:53 pm    Post subject: Reply with quote

Did you find a fix? I'm running into the same issue now on on a yocto dizzy branch, and also on the dora branch. It had been working for over a year until now.
Back to top
View user's profile Send private message
KarlH420
n00b
n00b


Joined: 25 Apr 2005
Posts: 45

PostPosted: Mon Oct 12, 2015 9:40 pm    Post subject: Reply with quote

I fixed it myself. It ended up most likely being related to my gcc installation.

I changed from gcc 4.8.5 to 4.9.3 with gcc-config then did:
Code:
emerge -ve  world"


And it works again. :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum