Hi, Bian Thank you very much. It is work after I get rid of "-pie -fpie".
Best regards, Li xin > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of > Bian, Naimeng > Sent: Thursday, November 20, 2014 11:17 AM > To: [email protected] > Subject: Re: [oe] lvm2 compile error > > > -----Original Message----- > > From: [email protected] > > [mailto:[email protected]] On Behalf > > Of Li, Xin > > Sent: Thursday, November 20, 2014 11:02 AM > > To: [email protected] > > Subject: [oe] lvm2 compile error > > > > Hi, > > > > I bitbake lvm2 from meta-oe, but it has the following errors. > > How can I fix it? > > > > Thanks in advance. > > > > Best regards, > > Li xin > > > > ------------------------------------------ > > Build Configuration: > > BB_VERSION = "1.24.0" > > BUILD_SYS = "x86_64-linux" > > NATIVELSBSTRING = "CentOS-6.5" > > TARGET_SYS = "x86_64-fct-linux" > > …… > > | x86_64-fct-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 > > -mfpmath=sse -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed > > -Wl,-z,relro,-z,now > > --sysroot=/yocto/work001/fnst/lixin/work/yocto-ubinux/build_x86-64/tmp > > /sysroots/ubinux-qemux86-64 -shared -Wl,-soname,libdevmapper.so.1.02 \ > > | -O2 -pipe -g -feliminate-unused-debug-types > > -fstack-protector-all -pie -fpie -D_FORTIFY_SOURCE=2 -O2 -pipe -g > > -feliminate-unused-debug-types -fstack-protector-all -pie -fpie > > -D_FORTIFY_SOURCE=2 -fPIC -O2 -O2 -pipe -g > > -feliminate-unused-debug-types -fstack-protector-all -pie -fpie > > -D_FORTIFY_SOURCE=2 -fPIC -O2 -Wl,--version-script,.export.sym > > -L../libdm -L../lib -L../daemons/dmeventd datastruct/bitset.o > > datastruct/hash.o datastruct/list.o libdm-common.o libdm-file.o > > libdm-deptree.o libdm-string.o libdm-report.o libdm-config.o > > mm/dbg_malloc.o mm/pool.o regex/matcher.o regex/parse_rx.o regex/ttree.o > > ioctl/libdm-iface.o -lrt -ludev -o ioctl/libdevmapper.so.1.02 > > I think it's wrong to build shared library with "-shared" and "-pie -fpie" > together. > I guess it will work after get rid of "-pie -fpie". > > Regards > Bian > > > | > > /yocto/work001/fnst/lixin/work/yocto-ubinux/build_x86-64/tmp/sysroots/ > > ubinux-qemux86-64/usr/lib/../lib/Scrt1.o: In function `_start': > > | > > /yocto/work001/fnst/lixin/work/yocto-ubinux/build_x86-64/tmp/work/core > > 2-64-fct-linux/glibc/2.20-r0/git/csu/../sysdeps/x86_64/start.S:108: > > undefined reference to `main' > > | collect2: error: ld returned 1 exit status > > | make[1]: *** [ioctl/libdevmapper.so.1.02] Error 1 > > ---------------------------------------- > > > > > > > > > > -- > > _______________________________________________ > > Openembedded-devel mailing list > > [email protected] > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel > -- > _______________________________________________ > Openembedded-devel mailing list > [email protected] > http://lists.openembedded.org/mailman/listinfo/openembedded-devel -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
