Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #40030] [PATCH] compiler/imcc missing dependency

8 views
Skip to first unread message

Fonseka @ Gmail . Com

unread,
Jul 31, 2006, 4:38:43 PM7/31/06
to bugs-bi...@rt.perl.org
# New Ticket Created by fon...@gmail.com
# Please include the string: [perl #40030]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40030 >


The trunk wasn't compilling in my machines...

After digging into Makefile I found missing depencies linking
miniparrot and parrot

Here's the patch that solved it

server parrot # diffstat imcc_dependency.diff
CREDITS | 5 +++++
config/gen/makefiles/root.in | 2 ++
2 files changed, 7 insertions(+)

--
Will work for bandwidth

imcc_dependency.diff

Leopold Toetsch

unread,
Aug 1, 2006, 6:07:43 AM8/1/06
to perl6-i...@perl.org
Am Montag, 31. Juli 2006 22:38 schrieb fon...@gmail.com:
>
> The trunk wasn't compilling in my machines...
>
> After digging into Makefile I found missing depencies linking
> miniparrot and parrot

+ $(IMCC_DIR)/imclexer$(O) $(IMCC_DIR)/parser_util$(O)
$(IMCC_DIR)/debug$(O)

This isn't correct either. These object files are already part of libparrot
(see also IMCC_O_FILES).

There must be some other problem elsewhere.

leo

fon...@gmail.com

unread,
Aug 2, 2006, 1:52:37 PM8/2/06
to Leopold Toetsch, perl6-i...@perl.org


Found the problem... it was MY problem... I had rests of an old instalation
of parrot in my /usr/local/lib, and gcc was pulling libparrot from there,
making the hole process borked...

Removed the old instalation, and parrot compiles fine now :) sorry for this
wrong patch :)


leo

Leopold Toetsch

unread,
Aug 2, 2006, 2:54:07 PM8/2/06
to perl6-i...@perl.org
Am Mittwoch, 2. August 2006 19:52 schrieb fon...@gmail.com:
> > There must be some other problem elsewhere.
>
> Found the problem... it was MY problem... I had rests of an old instalation
> of parrot in my /usr/local/lib, and gcc was pulling libparrot from there,
> making the hole process borked...

Strange. I tried hard to resolve:
http://rt.perl.org/rt3//Public/Bug/Display.html?id=39742
and didn't see any bad interaction of an installed Parrot (albeit there are a
lot of such reports, that there is one).

leo

fon...@gmail.com

unread,
Aug 2, 2006, 3:42:40 PM8/2/06
to Leopold Toetsch, perl6-i...@perl.org


I don't really know how to solve this problem... AFAIK gcc pulls by default
libs from /usr/local/lib or /usr/lib as soon as you do -l<lib>... You can
pass -L/path to gcc, but maybe the deafult search paths has priority over
the hand-defined ones. Guess I'll have to digg it more...

Nick Glencross

unread,
Aug 3, 2006, 4:55:48 AM8/3/06
to fon...@gmail.com, perl6-i...@perl.org

I think that the comments in this entry are still valid.

http://rt.perl.org/rt3/Public/Bug/Display.html?id=38217#txn-128692

There's was also a stab at a patch in r11320, but I botched it (in the
embedded interface) and it was reverted. It's still a good starting
point for anyone that would like to run with it,

Cheers,

Nick

fon...@gmail.com

unread,
Aug 3, 2006, 7:40:58 PM8/3/06
to Leopold Toetsch, perl6-i...@perl.org

I see this in my generated Makefile:

LINKFLAGS = -L/usr/local/lib -Wl,-E
...
LDFLAGS = -L/usr/local/lib

So gcc is pulling libraries from that dir, and if i got an old
libparrot there, it will probably broke the make process.... is this
helpfull??

0 new messages