develooper Front page | perl.perl6.internals | Postings from January 2008

[perl #50066] [BUG] $LIBPARROT_STATIC macro not expanded properly when building pbc_to_exe

Thread Next
From:
Paul Cochrane
Date:
January 21, 2008 08:58
Subject:
[perl #50066] [BUG] $LIBPARROT_STATIC macro not expanded properly when building pbc_to_exe
# New Ticket Created by  Paul Cochrane 
# Please include the string:  [perl #50066]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=50066 >


Hullo,

when building parrot on Solaris I get most of the way through the
build, but right at the end, building pbc_to_exe fails with the
following output:

./parrot -o pbc_to_exe.pbc pbc_to_exe.pir
./parrot pbc_to_exe.pir pbc_to_exe.pbc
/opt/SUNWspro/bin/cc -Fopbc_to_exe.o -I/home/cochrane/parrot/include
-I/usr/local/include -I/opt/local/include -I/opt/gnu/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c pbc_to_exe.c
cc: Warning: option -F passed to ld
Compiled: pbc_to_exe.o
/opt/SUNWspro/bin/cc -o pbc_to_exe pbc_to_exe.o  -L/usr/lib
-L/usr/ccs/lib -L/export/lvd20/tool/solaris/opt/SUNWspro/prod/lib/v8plus
-L/export/lvd20/tool/solaris/opt/SUNWspro/prod/lib -L/lib
-L/usr/local/lib -L/opt/local/lib -L/opt/gnu/lib  -xlibmieee
$(LIBPARROT_STATIC)  -lsocket -lnsl -ldl -lm -lpthread -lrt
/home/cochrane/parrot/src/parrot_config.o
sh: syntax error at line 1: `(' unexpected
linking failed
current instr.: 'link_file' pc 752 (pbc_to_exe.pir:365)
called from Sub 'main' pc 124 (pbc_to_exe.pir:32)
*** Error code 1
make: Fatal error: Command failed for target `pbc_to_exe'

It seems that the Makefile macro $(LIBPARROT_STATIC) isn't being
expanded.  I had a bit of a look around and found the following lines
in config_lib.pasm (which is used for the configuration information
necessary to build pbc_to_exe):

set P0["libparrot"], "$(LIBPARROT_STATIC)"
set P0["libparrot_ldflags"], "$(LIBPARROT_STATIC)"

further digging showed that these values are set within
config/inter/libparrot.pm, and the code in there seems perfectly sane
(especially considering that the value would be later expanded by
make).  Unfortunately, from here I don't know where else to look to
solve the problem, however it is stopping me from building parrot on
the Solaris platform at present.

Paul

Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About