{"id":3937,"date":"2015-09-02T07:18:25","date_gmt":"2015-09-02T07:18:25","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=3937"},"modified":"2015-09-02T07:27:27","modified_gmt":"2015-09-02T07:27:27","slug":"fedora-development-problems","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=3937","title":{"rendered":"Fedora Development Problems"},"content":{"rendered":"<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nar - create, modify, and extract from archives\r\nranlib - generate index to archive\r\nnm - list symbols from object files\r\n\r\n$ ar -r libmine.a mine.o yours.o\r\n$ ranlib libmine.a\r\nor\r\n$ ar -s -r libmine.a mine.o yours.o\r\n<\/pre>\n<h3>32-bit\/64-bit Problem<\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nranlib \/home\/andreas\/src\/software\/lib\/libCompany.xa\r\ng++ -L\/home\/andreas\/src\/software\/lib -m32 -lpthread -lrt  -ldl -shared -o \/home\/andreas\/src\/software\/lib\/libCompany.so -Wl,-whole-archive \/home\/andreas\/src\/software\/lib\/libCompany.xa -Wl,-no-whole-archive\r\n\/usr\/bin\/ld: cannot find crti.o: No such file or directory\r\n\/usr\/bin\/ld: skipping incompatible \/usr\/lib64\/libpthread.so when searching for -lpthread\r\n\/usr\/bin\/ld: cannot find -lpthread\r\n\/usr\/bin\/ld: skipping incompatible \/usr\/lib64\/librt.so when searching for -lrt\r\n\/usr\/bin\/ld: cannot find -lrt\r\n\/usr\/bin\/ld: skipping incompatible \/usr\/lib64\/libdl.so when searching for -ldl\r\n\/usr\/bin\/ld: cannot find -ldl\r\n\/usr\/bin\/ld: skipping incompatible \/usr\/lib64\/libm.so when searching for -lm\r\n\/usr\/bin\/ld: cannot find -lm\r\n\/usr\/bin\/ld: skipping incompatible \/usr\/lib64\/libc.so when searching for -lc\r\n\/usr\/bin\/ld: cannot find -lc\r\n\/usr\/bin\/ld: cannot find crtn.o: No such file or directory\r\ncollect2: error: ld returned 1 exit status\r\nmake&#x5B;1]: *** &#x5B;\/home\/andreas\/src\/software\/lib\/libCompany.so] Error 1\r\nmake: *** &#x5B;\/home\/andreas\/src\/software\/common\/ipc] Error 2\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n-Wl,option\r\nPass option as an option to the linker. If option contains commas,\r\nit is split into multiple options at the commas. You can use thi\r\nsyntax to pass an argument to the option.\r\nFor example, -Wl,-Map,output.map passes -Map output.map to the linker.\r\nWhen using the GNU linker, you can also get the same effect\r\nwith `-Wl,-Map=output.map'.\r\n\r\n--whole-archive\r\nFor each archive mentioned on the command line after the\r\n`--whole-archive' option, include every object file in the archive\r\nin the link, rather than searching the archive for the required\r\nobject files. This is normally used to turn an archive file into\r\na shared library, forcing every object to be included in the\r\nresulting shared library. This option may be used more than once.\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nranlib \/home\/andreas\/src\/software\/lib\/libCompany.xa\r\ng++ -L\/home\/andreas\/src\/software\/lib -L\/home\/andreas\/src\/software\/lib -m32 -lpthread -lrt  -ldl -shared -o \/home\/andreas\/src\/software\/lib\/libCompany.so -Wl,-whole-archive \/home\/andreas\/src\/software\/lib\/libCompany.xa -Wl,-no-whole-archive\r\n\/usr\/bin\/ld: i386:x86-64 architecture of input file `\/home\/andreas\/src\/software\/lib\/libCompany.xa(Ipc.xo)' is incompatible with i386 output\r\n\/usr\/bin\/ld: i386:x86-64 architecture of input file `\/home\/andreas\/src\/software\/lib\/libCompany.xa(IpcEndpoint.xo)' is incompatible with i386 output\r\n\/usr\/bin\/ld: i386:x86-64 architecture of input file `\/home\/andreas\/src\/software\/lib\/libCompany.xa(IpcSock.xo)' is incompatible with i386 output\r\n\/usr\/bin\/ld: i386:x86-64 architecture of input file `\/home\/andreas\/src\/software\/lib\/libCompany.xa(IpcBaseTransport.xo)' is incompatible with i386 output\r\n\/usr\/bin\/ld: i386:x86-64 architecture of input file `\/home\/andreas\/src\/software\/lib\/libCompany.xa(IpcFifoTransport.xo)' is incompatible with i386 output\r\n\/usr\/bin\/ld: i386:x86-64 architecture of input file `\/home\/andreas\/src\/software\/lib\/libCompany.xa(IpcMsgQTransport.xo)' is incompatible with i386 output\r\n\/usr\/bin\/ld: i386:x86-64 architecture of input file `\/home\/andreas\/src\/software\/lib\/libCompany.xa(IpcUdpTransport.xo)' is incompatible with i386 output\r\n\/usr\/bin\/ld: i386:x86-64 architecture of input file `\/home\/andreas\/src\/software\/lib\/libCompany.xa(IpcRelUdpTransport.xo)' is incompatible with i386 output\r\n\/usr\/bin\/ld: i386:x86-64 architecture of input file `\/home\/andreas\/src\/software\/lib\/libCompany.xa(IpcTcpTransport.xo)' is incompatible with i386 output\r\n\/usr\/bin\/ld: i386:x86-64 architecture of input file `\/home\/andreas\/src\/software\/lib\/libCompany.xa(IpcTransportInfo.xo)' is incompatible with i386 output\r\n\/usr\/bin\/ld: i386:x86-64 architecture of input file `\/home\/andreas\/src\/software\/lib\/libCompany.xa(IpcStatus.xo)' is incompatible with i386 output\r\n\/usr\/bin\/ld: i386:x86-64 architecture of input file `\/home\/andreas\/src\/software\/lib\/libCompany.xa(IpcTimer.xo)' is incompatible with i386 output\r\n\/usr\/bin\/ld: i386:x86-64 architecture of input file `\/home\/andreas\/src\/software\/lib\/libCompany.xa(IpcMonotonicTime.xo)' is incompatible with i386 output\r\n\/usr\/bin\/ld: i386:x86-64 architecture of input file `\/home\/andreas\/src\/software\/lib\/libCompany.xa(IpcHeader.xo)' is incompatible with i386 output\r\n\/usr\/bin\/ld: i386:x86-64 architecture of input file `\/home\/andreas\/src\/software\/lib\/libCompany.xa(IpcLog.xo)' is incompatible with i386 output\r\n\/usr\/bin\/ld: i386:x86-64 architecture of input file `\/home\/andreas\/src\/software\/lib\/libCompany.xa(IpcGuard.xo)' is incompatible with i386 output\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>ar &#8211; create, modify, and extract from archives ranlib &#8211; generate index to archive nm &#8211; list symbols from object files $ ar -r libmine.a mine.o yours.o $ ranlib libmine.a or $ ar -s -r libmine.a mine.o yours.o 32-bit\/64-bit Problem ranlib \/home\/andreas\/src\/software\/lib\/libCompany.xa g++ -L\/home\/andreas\/src\/software\/lib -m32 -lpthread -lrt -ldl -shared -o \/home\/andreas\/src\/software\/lib\/libCompany.so -Wl,-whole-archive \/home\/andreas\/src\/software\/lib\/libCompany.xa -Wl,-no-whole-archive \/usr\/bin\/ld: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3937","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/3937","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3937"}],"version-history":[{"count":5,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/3937\/revisions"}],"predecessor-version":[{"id":3942,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/3937\/revisions\/3942"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3937"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3937"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}