hi!

On Wed, 2011-05-11 at 23:57 -0400, Tyler Strickland wrote:
> Here's the error:
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../slurm -I../.. 
> -DGRES_CONFIG_FILE=\"/usr/local/etc/gres.conf\" -g -O2 -fno-gcse -Wall 
> -fno-strict-aliasing -MT assoc_mgr.lo -MD -MP -MF .deps/assoc_mgr.Tpo -c 
> assoc_mgr.c  -fno-common -DPIC -o .libs/assoc_mgr.o
> /var/tmp//cc8e9u9F.s:6305:non-relocatable subtraction expression, 
> "_slurm_destroy_association_shares_object" minus "L00000000031$pb"
> /var/tmp//cc8e9u9F.s:6305:symbol: 
> "_slurm_destroy_association_shares_object" can't be undefined in a 
> subtraction expression
> make[3]: *** [assoc_mgr.lo] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
it's an assembler error, and I would say it is a toolchain problem.

it seems that the symbol mentioned is not defined, either as global or
local, in the assembler file produced by gcc (/var/tmp/cc8e9u9F.s).
thus, I'd say gcc you're using with xcode is a bit buggy.

you might want to re-run the gcc command line produced by libtool with
the -S (compile only) switch, which will leave you with the assembler
code in the output file. you can then inspect that for the assembler
error you're seeing above.

btw, is the function _slurm_destroy_association_shares_object() declared
in any header that gets included while building assoc_mgr.c? (might
help, however, the behaviour you're seeing here is still plain *wrong*
for gcc, prototype declared or not)

regards,
  jaKa


Reply via email to