Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fresh rakudo fails to build on FreeBSD #792

Closed
p6rt opened this issue Mar 16, 2009 · 9 comments
Closed

Fresh rakudo fails to build on FreeBSD #792

p6rt opened this issue Mar 16, 2009 · 9 comments

Comments

@p6rt
Copy link

p6rt commented Mar 16, 2009

Migrated from rt.perl.org#63922 (status was 'resolved')

Searchable as RT63922$

@p6rt
Copy link
Author

p6rt commented Mar 16, 2009

From kkapp@rambler.ru

Good day!

I just pulled the fresh rakudo sources, Configured them with
--gen-parrot and the parrot build fails​:

Invoking Parrot to generate runtime/parrot/include/config.fpmc --cross
your fingers
./miniparrot config_lib.pasm > runtime/parrot/include/config.fpmc
perl tools/build/parrot_config_c.pl > \
  src/parrot_config.c
src/parrot_config.c
g++ -o parrot \
  src/main.o src/parrot_config.o \
  -Wl,-R/usr/home/kappa/work/rakudo/parrot/blib/lib
-L/usr/home/kappa/work/rakudo/parrot/blib/lib -lparrot -lm -lcrypt
-lutil -pthread -lreadline -Wl,-E
-Wl,-R/usr/local/lib/perl5/5.8.9/mach/CORE
./parrot -o runtime/parrot/include/parrotlib.pbc
runtime/parrot/library/parrotlib.pir
Null PMC access in get_pmc_keyed_str()
gmake​: *** [runtime/parrot/include/parrotlib.pbc] Ошибка 1
Unable to locate parrot_config.
To automatically checkout (svn) and build a copy of parrot,
try re-running Configure.pl with the '--gen-parrot' option.
Or, use the '--parrot-config' option to explicitly specify
the location of parrot_config.

% cat build/PARROT_REVISION
37414

--
Alex Kapranoff.

@p6rt
Copy link
Author

p6rt commented Mar 18, 2009

From not.com@gmail.com

I just pulled the fresh rakudo sources, Configured them with
--gen-parrot and the parrot build fails​:
...
./miniparrot config_lib.pasm > runtime/parrot/include/config.fpmc
...
Null PMC access in get_pmc_keyed_str()
gmake​: *** [runtime/parrot/include/parrotlib.pbc ...

It looks like I'm having the same problem on openbsd, which I posted
about here a few days ago. Trying be a little more helpful, I set up a
cron job to update and smoke-test parrot. The smoke test ran OK with
the older revision of parrot, r37017, then I updated to the current
rev, r37540. That gets the same build error at the "./miniparrot
config_lib.pasm " step.

Thing is, I don't know how to report a build failure to smolder. "make
smoke" won't run if "make" won't run!

So, what's the way to tell smolder "make" failed?

@p6rt
Copy link
Author

p6rt commented Mar 18, 2009

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Mar 18, 2009

From @markjreed

I'm getting further but still failing to get Rakudo working (OS X
10.5.6, gcc 4.0.1), same parrot revision (r37414)​:

...
c++ -o perl6_ops_switch.bundle perl6_ops_switch.o -L/opt/local/lib
-L/usr/local/lib -L/Users/mreed/proj/perl6/rakudo/parrot/blib/lib
-L/sw/lib -L/Users/mreed/proj/perl6/rakudo/parrot/blib/lib -undefined
dynamic_lookup -L/sw/lib -L/opt/local/lib -undefined dynamic_lookup
-bundle -L/Users/mreed/proj/perl6/rakudo/parrot/blib/lib -lparrot
perl -e "" > src/gen_setting.pir
/Users/mreed/proj/perl6/rakudo/parrot/parrot -o perl6_s1.pbc perl6.pir
get_bignum() not implemented in class 'ParrotLibrary'
make​: *** [perl6_s1.pbc] Error 1

On Mon, Mar 16, 2009 at 4​:19 AM, Alex Kapranoff
<perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by В Alex Kapranoff
# Please include the string​: В [perl #​63922]
# in the subject line of all future correspondence about this issue.
# <URL​: http://rt.perl.org/rt3/Ticket/Display.html?id=63922 >

Good day!

I just pulled the fresh rakudo sources, Configured them with
--gen-parrot and the parrot build fails​:

Invoking Parrot to generate runtime/parrot/include/config.fpmc --cross
your fingers
./miniparrot config_lib.pasm > runtime/parrot/include/config.fpmc
perl tools/build/parrot_config_c.pl > \
В  В src/parrot_config.c
src/parrot_config.c
g++ -o parrot \
В  В src/main.o src/parrot_config.o \
В  В -Wl,-R/usr/home/kappa/work/rakudo/parrot/blib/lib
-L/usr/home/kappa/work/rakudo/parrot/blib/lib -lparrot В -lm -lcrypt
-lutil -pthread -lreadline -Wl,-E
-Wl,-R/usr/local/lib/perl5/5.8.9/mach/CORE
./parrot -o runtime/parrot/include/parrotlib.pbc
runtime/parrot/library/parrotlib.pir
Null PMC access in get_pmc_keyed_str()
gmake​: *** [runtime/parrot/include/parrotlib.pbc] Ошибка 1
Unable to locate parrot_config.
To automatically checkout (svn) and build a copy of parrot,
try re-running Configure.pl with the '--gen-parrot' option.
Or, use the '--parrot-config' option to explicitly specify
the location of parrot_config.

% cat build/PARROT_REVISION
37414

--
Alex Kapranoff.

--
Mark J. Reed <markjreed@​gmail.com>

@p6rt
Copy link
Author

p6rt commented Mar 18, 2009

From @markjreed

Nm, installed libparrot was interfering.

On Wed, Mar 18, 2009 at 5​:00 PM, Mark J. Reed <markjreed@​gmail.com> wrote​:

I'm getting further but still failing to get Rakudo working (OS X
10.5.6, gcc 4.0.1), same parrot revision (r37414)​:

...
c++ -o perl6_ops_switch.bundle perl6_ops_switch.o В -L/opt/local/lib
-L/usr/local/lib -L/Users/mreed/proj/perl6/rakudo/parrot/blib/lib
-L/sw/lib В -L/Users/mreed/proj/perl6/rakudo/parrot/blib/lib -undefined
dynamic_lookup -L/sw/lib -L/opt/local/lib -undefined dynamic_lookup
-bundle -L/Users/mreed/proj/perl6/rakudo/parrot/blib/lib -lparrot
perl -e "" > src/gen_setting.pir
/Users/mreed/proj/perl6/rakudo/parrot/parrot В -o perl6_s1.pbc perl6.pir
get_bignum() not implemented in class 'ParrotLibrary'
make​: *** [perl6_s1.pbc] Error 1

On Mon, Mar 16, 2009 at 4​:19 AM, Alex Kapranoff
<perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by В Alex Kapranoff
# Please include the string​: В [perl #​63922]
# in the subject line of all future correspondence about this issue.
# <URL​: http://rt.perl.org/rt3/Ticket/Display.html?id=63922 >

Good day!

I just pulled the fresh rakudo sources, Configured them with
--gen-parrot and the parrot build fails​:

Invoking Parrot to generate runtime/parrot/include/config.fpmc --cross
your fingers
./miniparrot config_lib.pasm > runtime/parrot/include/config.fpmc
perl tools/build/parrot_config_c.pl > \
В  В src/parrot_config.c
src/parrot_config.c
g++ -o parrot \
В  В src/main.o src/parrot_config.o \
В  В -Wl,-R/usr/home/kappa/work/rakudo/parrot/blib/lib
-L/usr/home/kappa/work/rakudo/parrot/blib/lib -lparrot В -lm -lcrypt
-lutil -pthread -lreadline -Wl,-E
-Wl,-R/usr/local/lib/perl5/5.8.9/mach/CORE
./parrot -o runtime/parrot/include/parrotlib.pbc
runtime/parrot/library/parrotlib.pir
Null PMC access in get_pmc_keyed_str()
gmake​: *** [runtime/parrot/include/parrotlib.pbc] Ошибка 1
Unable to locate parrot_config.
To automatically checkout (svn) and build a copy of parrot,
try re-running Configure.pl with the '--gen-parrot' option.
Or, use the '--parrot-config' option to explicitly specify
the location of parrot_config.

% cat build/PARROT_REVISION
37414

--
Alex Kapranoff.

--
Mark J. Reed <markjreed@​gmail.com>

--
Mark J. Reed <markjreed@​gmail.com>

@p6rt
Copy link
Author

p6rt commented Mar 24, 2009

From not.com@gmail.com

I am still getting a "Null PMC access in get_pmc_keyed_str()" error
when building parrot as part of rakudo on my OpenBSD system, same
error Alex had when starting this thread. I've tracked it down to line
170 in runtime/parrot/library/parrotlib.pir

.sub find_file_path
  .param string name
  .param pmc array
  .local string ret
  .local pmc iter
# The following line, creating a new 'Iterator', causes Null PMC access
  iter = new 'Iterator', array
  iter = 0 #ITERATE_FROM_START

NEXT​:
  null ret
  unless iter goto END

  $P0 = shift iter
...

I'd like help on fixing this. I know next to nothing about parrot programming!

Also, it'd be nice if parrot could tell us the line number when it
hits an error compiling a PIR file.

-y

@p6rt
Copy link
Author

p6rt commented Apr 20, 2009

From rg@progtech.net

I've been able to successfully build and test (make test only) rakudo on
FreeBSD 7.1 and OpenBSD 4.4 today. (spectest is a different story, but
that's not part of this ticket.) I suppose this ticket can be closed?

@p6rt
Copy link
Author

p6rt commented Apr 21, 2009

From kkapp@rambler.ru

Yes, I confirm success in building current Rakudo on FreeBSD.

I've been able to successfully build and test (make test only) rakudo
on
FreeBSD 7.1 and OpenBSD 4.4 today. (spectest is a different story, but
that's not part of this ticket.) I suppose this ticket can be closed?

@p6rt
Copy link
Author

p6rt commented Apr 22, 2009

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Apr 22, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant