-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm not sure if it's related, but I just beat my head against a
linking problem for a while running preempt-rt (which is an *AWFUL*
lot like the simulation configuration for regular LinuxCNC).
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
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

Reply via email to