Am 07.10.2012 um 17:21 schrieb Charles Steinkuehler: > -----BEGIN PGP SIGNED MESSAGE----- > ... > Something in the recent redis commits seems to have broken linking for > HAL modules. I first thought it was my specific HAL code, but on a
your issue seems to be related to -fPIC, which I added in d0ccaabb88cb5f4b471f238a47de6bd3333cdce7 so it would build on an amd64 see http://stackoverflow.com/questions/6679846/what-is-i686-get-pc-thunk-bx-why-we-need-this-call Which architecture, is this an amd64 or x86? - Michael > clean build (with preempt-rt patches applied), I get the same errors > trying to build the supplied HAL modules (like abs.comp). The code > compiles, but refuses to link with the error: > > Linking ../rtlib/abs.so > ld -r -o objects/abs.tmp objects/rtobjects/hal/components/abs.o > gcc -shared -Bsymbolic -L/home/maker/linuxcnc-dev/lib > - -Wl,-rpath,/home/maker/linuxcnc-dev/lib -o ../rtlib/abs.so > objects/abs.tmp -lm > `__x86.get_pc_thunk.bx' referenced in section `.text' of > objects/abs.tmp: defined in discarded section > `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of objects/abs.tmp > `__x86.get_pc_thunk.bx' referenced in section `.text' of > objects/abs.tmp: defined in discarded section > `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of objects/abs.tmp > `__x86.get_pc_thunk.bx' referenced in section `.text' of > objects/abs.tmp: defined in discarded section > `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of objects/abs.tmp > `__x86.get_pc_thunk.bx' referenced in section `.text' of > objects/abs.tmp: defined in discarded section > `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of objects/abs.tmp > collect2: error: ld returned 1 exit status > make: *** [../rtlib/abs.so] Error 1 > > I haven't had time to isolate the problem yet, and I'm not sure it > affects anything that isn't using the preempt-rt patches, but it's > somewhere between the following two commits: > > Works: > 85599fcd501ae3c0db6abd5bc2037b4f229743c6 > interp/remap: fix handling of 'n' argspec > > Fails: > d0ccaabb88cb5f4b471f238a47de6bd3333cdce7 > redis-integration: compile libredisglue with -fPIC > > On 10/7/2012 9:54 AM, Jan de Kruyf wrote: >> "man ld" is a good start. Then, I think in the top make file, you >> add some interesting warning switches to $LDFLAGS. (line 180 or 182 >> depending what you are upto) Like " --verbose" "--warn-common" >> "--warn-unresolved-symbols" and so on. By the looks of it there is >> a symbol problem of the third kind, i.e. not the regular missing >> symbol because a missing lib. >> >> Have fun, >> >> j. >> >> On Sun, Oct 7, 2012 at 3:26 AM, andy pugh <[email protected]> >> wrote: >> >>> I don't know where to go from here. >>> >>> I can build LinuxCNC including my new component using "make" in >>> both realtime and sim modes. >>> >>> I can create debs in realtime mode. >>> >>> I can't create debs in sim mode. But the error messages give no >>> clue why. >>> >>> My work is currently in a branch off of 2.5. I can build sim-2.5 >>> debs. >>> >>> I really don't know where to go from here. >>> >>> -- atp If you can't fix it, you don't own it. >>> http://www.ifixit.com/Manifesto > > - -- > Charles Steinkuehler > [email protected] > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAlBxnfYACgkQLywbqEHdNFwAqgCgs/RLCW7fGxxLyELD7H3IG5Zj > OSUAoOfUzNUdxL8z7tzbSXyCYWiamjMS > =R56z > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------------ > Don't let slow site performance ruin your business. Deploy New Relic APM > Deploy New Relic app performance management and know exactly > what is happening inside your Ruby, Python, PHP, Java, and .NET app > Try New Relic at no cost today and get our sweet Data Nerd shirt too! > http://p.sf.net/sfu/newrelic-dev2dev > _______________________________________________ > Emc-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-developers ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
