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

parrot compile error

6 views
Skip to first unread message

Hugues

unread,
Aug 8, 2006, 10:34:28 AM8/8/06
to parrot-...@perl.org

Hi exotical birds,

I'm getting the following error when compiling (trying to) parrot
svn:

Just droping it as is, in case any of you would know an obvious fix
(laziness ...)

I must add that it's been a long time since i last compiled parrot
so the error might be due to something ``old''...

Thanks in advance for any helpful hint.

Feel free to bash me if i've earned it ;-)

hugues$ perl Configure.pl
Parrot Version 0.4.5 Configure 2.0
Copyright (C) 2001-2006, The Perl Foundation.

Hello, I'm Configure. My job is to poke and prod your system to figure out
how to build Parrot. The process is completely automated, unless you passed in
the `--ask' flag on the command line, in which case it'll prompt you for a few
pieces of info.

Since you're running this program, you obviously have Perl 5--I'll be pulling
some defaults from its configuration.

Checking MANIFEST.....................................................done.
Setting up Configure's default values.................................done.
Tweaking settings for miniparrot...................................skipped.
Loading platform and local hints files................................done.
Determining nongenerated header files.................................done.
Determining what C compiler and linker to use.........................done.
Determining whether make is installed..................................yes.
Determining whether lex is installed...............................skipped.
Determining whether yacc is installed..............................skipped.
Determining if your C compiler is actually gcc.........................yes.
Determining if your C compiler is actually Visual C++...................no.
Enabling optimization...................................................no.
Determining flags for building shared libraries......................-fPIC.
Determine if parrot should be linked against a shared library..........yes.
Determining what charset files should be compiled in..................done.
Determining what encoding files should be compiled in.................done.
Determining what types Parrot should use..............................done.
Determining what opcode files should be compiled in...................done.
Determining what pmc files should be compiled in......................done.
Determining your minimum pointer alignment......................... 1 byte.
Probing for C headers.................................................done.
Determining some sizes................................................done.
Computing native byteorder for Parrot's wordsize.............little-endian.
Test the type of va_ptr (this test is likely to segfault)..............x86.
Figuring out how to pack() Parrot's types.............................done.
Figuring out what formats should be used for sprintf..................done.
Determining if your C library has a working S_ISREG....................yes.
Determining architecture, OS and JIT capability.......................done.
Running CPU specific stuff............................................done.
Verifying that the compiler supports function pointer casts............yes.
Determining whether your compiler supports computed goto...............yes.
Determining if your compiler supports inline...........................yes.
Determining what allocator to use.....................................done.
Determining if your C library supports memalign........................yes.
Determining some signal stuff.........................................done.
Asking Perl5 whether there is socklen_t................................yes.
Determining if your C library has setenv / unsetenv...................both.
Determining if your platform supports AIO..............................yes.
Determining if your platform supports GMP..............................yes.
Determining if your platform supports readline.........................yes.
Determining if your platform supports gdbm..............................no.
Testing snprintf......................................................done.
Determining whether perldoc is installed...............................yes.
Determining whether python is installed.........................yes, 2.4.4.
Determining whether GNU bc is installed................................yes.
Determining whether GNU m4 is installed................................yes.
Determining whether ICU is installed....................................no.
Determining Parrot's revision.......................................r13920.
Generating C headers..................................................done.
Generating core pmc list..............................................done.
Generating runtime/parrot/include.....................................done.
Configuring languages.................................................done.
Generating makefiles and other build files............................done.
Moving platform files into place......................................done.
Recording configuration data for later retrieval......................done.
Okay, we're done!

You can now use `make' to build your Parrot.
(NOTE: do not use `make -j <n>'!)
After that, you can use `make test' to run the test suite.

Happy Hacking,
The Parrot Team

phugues$ make
Compiling with:
xx.c
cc -I./include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Winline -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings -Waggregate-return -Winline -Wno-unused -Wsign-compare -falign-functions=16 -Wformat-nonliteral -Wformat-security -Wpacked -Wdisabled-optimization -mno-accumulate-outgoing-args -Wno-shadow -DHAS_JIT -DI386 -DHAVE_COMPUTED_GOTO -fPIC -I. -o xx.o -c xx.c
/usr/bin/perl tools/build/ops2c.pl C --core
/usr/bin/perl tools/build/ops2c.pl CSwitch --core
src/ops/core_ops.c
src/ops/core_ops_switch.c
src/ops/core_ops_cg.c
src/ops/core_ops_cgp.c
src/exec.c
src/exec_cpu.c
src/exec_save.c
src/charset.c
src/encoding.c
src/exceptions.c
src/global_setup.c
src/interpreter.c
src/inter_call.c
src/inter_cb.c
src/inter_create.c
src/inter_misc.c
src/inter_run.c
src/register.c
src/memory.c
src/objects.c
src/packfile.c
src/stacks.c
src/stack_common.c
src/string.c
src/string_primitives.c
src/sub.c
src/runops_cores.c
src/trace.c
src/pmc.c
src/pmc_freeze.c
src/key.c
src/hash.c
src/core_pmcs.c
src/platform.c
src/jit.c
src/jit_cpu.c
src/jit_debug.c
src/jit_debug_xcoff.c
src/intlist.c
src/list.c
src/library.c
src/global.c
src/embed.c
src/warnings.c
src/packout.c
src/debug.c
src/smallobject.c
src/headers.c
src/hll.c
src/dod.c
src/gc_ims.c
src/gc_gms.c
src/exit.c
src/misc.c
src/spf_render.c
src/spf_vtable.c
src/nci.c
src/cpu_dep.c
src/tsq.c
src/longopt.c
src/events.c
src/thread.c
src/dynext.c
src/utils.c
src/vtables.c
src/pic.c
src/pic_jit.c
src/mmd.c
src/builtin.c
src/extend.c
/usr/bin/perl -Ilib tools/build/revision_c.pl > src/revision.c
src/revision.c
src/packfile/pf_items.c
src/resources.c
src/io/io.c
src/io/io_buf.c
src/io/io_layers.c
src/io/io_unix.c
src/io/io_utf8.c
src/io/io_mmap.c
src/io/io_win32.c
src/io/io_stdio.c
src/io/io_string.c
src/io/io_passdown.c
compilers/imcc/imcparser.c
compilers/imcc/imcc.y:1467: warning: unused parameter 'yyscanner'
compilers/imcc/imclexer.c
compilers/imcc/imclexer.c: In function 'yy_get_next_buffer':
compilers/imcc/imclexer.c:4294: warning: comparison between signed and unsigned
compilers/imcc/imclexer.c: At top level:
compilers/imcc/imclexer.c:4902: warning: unused parameter 'yyscanner'
compilers/imcc/imclexer.c:5186: warning: unused parameter 'yyscanner'
compilers/imcc/imclexer.c:5191: warning: unused parameter 'yyscanner'
compilers/imcc/imclexer.c:5203: warning: unused parameter 'yyscanner'
compilers/imcc/imc.c
compilers/imcc/symreg.c
compilers/imcc/instructions.c
compilers/imcc/cfg.c
compilers/imcc/reg_alloc.c
compilers/imcc/sets.c
compilers/imcc/debug.c
compilers/imcc/optimizer.c
compilers/imcc/pbc.c
compilers/imcc/parser_util.c
compilers/imcc/pcc.c
compilers/ast/astparser.c
compilers/ast/astlexer.c
compilers/ast/ast_main.c
compilers/ast/node.c
/usr/bin/perl -MExtUtils::Command -e mkpath blib/lib
ar cr blib/lib/libparrot.a src/ops/core_ops.o src/ops/core_ops_switch.o src/ops/core_ops_cg.o src/ops/core_ops_cgp.o src/exec.o src/exec_cpu.o src/exec_save.o src/charset.o src/encoding.o src/exceptions.o src/global_setup.o src/interpreter.o src/inter_call.o src/inter_cb.o src/inter_create.o src/inter_misc.o src/inter_run.o src/register.o src/memory.o src/objects.o src/packfile.o src/stacks.o src/stack_common.o src/string.o src/string_primitives.o src/sub.o src/runops_cores.o src/trace.o src/pmc.o src/pmc_freeze.o src/key.o src/hash.o src/core_pmcs.o src/platform.o src/jit.o src/jit_cpu.o src/jit_debug.o src/jit_debug_xcoff.o src/intlist.o src/list.o src/library.o src/global.o src/embed.o src/warnings.o src/packout.o src/byteorder.o src/debug.o src/smallobject.o src/headers.o src/hll.o src/dod.o src/gc_ims.o src/gc_gms.o src/exit.o src/misc.o src/spf_render.o src/spf_vtable.o src/datatypes.o src/fingerprint.o src/nci.o src/cpu_dep.o src/tsq.o src/longopt.o src/events.o src/thread.o src/dynext.o src/utils.o src/vtables.o src/pic.o src/pic_jit.o src/mmd.o src/builtin.o src/extend.o src/extend_vtable.o src/revision.o src/packfile/pf_items.o src/resources.o src/charset/ascii.o src/charset/binary.o src/charset/iso-8859-1.o src/charset/tables.o src/charset/unicode.o src/io/io.o src/io/io_buf.o src/io/io_layers.o src/io/io_unix.o src/io/io_utf8.o src/io/io_mmap.o src/io/io_win32.o src/io/io_stdio.o src/io/io_string.o src/io/io_passdown.o src/pmc/default.o src/pmc/null.o src/pmc/env.o src/pmc/key.o src/pmc/random.o src/pmc/unmanagedstruct.o src/pmc/managedstruct.o src/pmc/delegate.o src/pmc/csub.o src/pmc/compiler.o src/pmc/exception.o src/pmc/version.o src/pmc/vtablecache.o src/pmc/parrotio.o src/pmc/parrotlibrary.o src/pmc/parrotinterpreter.o src/pmc/parrotthread.o src/pmc/lexpad.o src/pmc/timer.o src/pmc/pointer.o src/pmc/sub.o src/pmc/closure.o src/pmc/continuation.o src/pmc/retcontinuation.o src/pmc/exception_handler.o src/pmc/coroutine.o src/pmc/eval.o src/pmc/nci.o src/pmc/float.o src/pmc/integer.o src/pmc/bigint.o src/pmc/complex.o src/pmc/string.o src/pmc/boolean.o src/pmc/ref.o src/pmc/sharedref.o src/pmc/array.o src/pmc/fixedintegerarray.o src/pmc/intlist.o src/pmc/iterator.o src/pmc/sarray.o src/pmc/fixedstringarray.o src/pmc/multiarray.o src/pmc/hash.o src/pmc/orderedhash.o src/pmc/tqueue.o src/pmc/parrotclass.o src/pmc/parrotobject.o src/pmc/os.o src/pmc/file.o src/pmc/addrregistry.o src/pmc/bound_nci.o src/pmc/deleg_pmc.o src/pmc/enumerate.o src/pmc/fixedbooleanarray.o src/pmc/fixedfloatarray.o src/pmc/fixedpmcarray.o src/pmc/lexinfo.o src/pmc/multisub.o src/pmc/namespace.o src/pmc/none.o src/pmc/pair.o src/pmc/resizablebooleanarray.o src/pmc/resizablefloatarray.o src/pmc/resizableintegerarray.o src/pmc/resizablepmcarray.o src/pmc/resizablestringarray.o src/pmc/scalar.o src/pmc/slice.o src/pmc/super.o src/pmc/undef.o src/encodings/fixed_8.o src/encodings/ucs2.o src/encodings/utf16.o src/encodings/utf8.o compilers/imcc/imcparser.o compilers/imcc/imclexer.o compilers/imcc/imc.o compilers/imcc/symreg.o compilers/imcc/instructions.o compilers/imcc/cfg.o compilers/imcc/reg_alloc.o compilers/imcc/sets.o compilers/imcc/debug.o compilers/imcc/optimizer.o compilers/imcc/pbc.o compilers/imcc/parser_util.o compilers/imcc/pcc.o compilers/ast/astparser.o compilers/ast/astlexer.o compilers/ast/ast_main.o compilers/ast/node.o
: blib/lib/libparrot.a
/usr/bin/perl -MExtUtils::Command -e mkpath blib/lib
cc -shared -L/usr/local/lib -fPIC -L/usr/local/lib -o blib/lib/libparrot.so.0.4.5 -Wl,-soname=libparrot.so.0.4.5 \
src/ops/core_ops.o src/ops/core_ops_switch.o src/ops/core_ops_cg.o src/ops/core_ops_cgp.o src/exec.o src/exec_cpu.o src/exec_save.o src/charset.o src/encoding.o src/exceptions.o src/global_setup.o src/interpreter.o src/inter_call.o src/inter_cb.o src/inter_create.o src/inter_misc.o src/inter_run.o src/register.o src/memory.o src/objects.o src/packfile.o src/stacks.o src/stack_common.o src/string.o src/string_primitives.o src/sub.o src/runops_cores.o src/trace.o src/pmc.o src/pmc_freeze.o src/key.o src/hash.o src/core_pmcs.o src/platform.o src/jit.o src/jit_cpu.o src/jit_debug.o src/jit_debug_xcoff.o src/intlist.o src/list.o src/library.o src/global.o src/embed.o src/warnings.o src/packout.o src/byteorder.o src/debug.o src/smallobject.o src/headers.o src/hll.o src/dod.o src/gc_ims.o src/gc_gms.o src/exit.o src/misc.o src/spf_render.o src/spf_vtable.o src/datatypes.o src/fingerprint.o src/nci.o src/cpu_dep.o src/tsq.o src/longopt.o src/events.o src/thread.o src/dynext.o src/utils.o src/vtables.o src/pic.o src/pic_jit.o src/mmd.o src/builtin.o src/extend.o src/extend_vtable.o src/revision.o src/packfile/pf_items.o src/resources.o src/charset/ascii.o src/charset/binary.o src/charset/iso-8859-1.o src/charset/tables.o src/charset/unicode.o src/io/io.o src/io/io_buf.o src/io/io_layers.o src/io/io_unix.o src/io/io_utf8.o src/io/io_mmap.o src/io/io_win32.o src/io/io_stdio.o src/io/io_string.o src/io/io_passdown.o src/pmc/default.o src/pmc/null.o src/pmc/env.o src/pmc/key.o src/pmc/random.o src/pmc/unmanagedstruct.o src/pmc/managedstruct.o src/pmc/delegate.o src/pmc/csub.o src/pmc/compiler.o src/pmc/exception.o src/pmc/version.o src/pmc/vtablecache.o src/pmc/parrotio.o src/pmc/parrotlibrary.o src/pmc/parrotinterpreter.o src/pmc/parrotthread.o src/pmc/lexpad.o src/pmc/timer.o src/pmc/pointer.o src/pmc/sub.o src/pmc/closure.o src/pmc/continuation.o src/pmc/retcontinuation.o src/pmc/exception_handler.o src/pmc/coroutine.o src/pmc/eval.o src/pmc/nci.o src/pmc/float.o src/pmc/integer.o src/pmc/bigint.o src/pmc/complex.o src/pmc/string.o src/pmc/boolean.o src/pmc/ref.o src/pmc/sharedref.o src/pmc/array.o src/pmc/fixedintegerarray.o src/pmc/intlist.o src/pmc/iterator.o src/pmc/sarray.o src/pmc/fixedstringarray.o src/pmc/multiarray.o src/pmc/hash.o src/pmc/orderedhash.o src/pmc/tqueue.o src/pmc/parrotclass.o src/pmc/parrotobject.o src/pmc/os.o src/pmc/file.o src/pmc/addrregistry.o src/pmc/bound_nci.o src/pmc/deleg_pmc.o src/pmc/enumerate.o src/pmc/fixedbooleanarray.o src/pmc/fixedfloatarray.o src/pmc/fixedpmcarray.o src/pmc/lexinfo.o src/pmc/multisub.o src/pmc/namespace.o src/pmc/none.o src/pmc/pair.o src/pmc/resizablebooleanarray.o src/pmc/resizablefloatarray.o src/pmc/resizableintegerarray.o src/pmc/resizablepmcarray.o src/pmc/resizablestringarray.o src/pmc/scalar.o src/pmc/slice.o src/pmc/super.o src/pmc/undef.o src/encodings/fixed_8.o src/encodings/ucs2.o src/encodings/utf16.o src/encodings/utf8.o compilers/imcc/imcparser.o compilers/imcc/imclexer.o compilers/imcc/imc.o compilers/imcc/symreg.o compilers/imcc/instructions.o compilers/imcc/cfg.o compilers/imcc/reg_alloc.o compilers/imcc/sets.o compilers/imcc/debug.o compilers/imcc/optimizer.o compilers/imcc/pbc.o compilers/imcc/parser_util.o compilers/imcc/pcc.o compilers/ast/astparser.o compilers/ast/astlexer.o compilers/ast/ast_main.o compilers/ast/node.o -ldl -lm -lpthread -lcrypt -lrt -lgmp -lreadline
( cd blib/lib ; ln -sf libparrot.so.0.4.5 libparrot.so )
compilers/imcc/main.c
/usr/bin/perl tools/build/parrot_config_c.pl --mini > \
src/null_config.c
src/null_config.c
cc -o miniparrot -L/usr/local/lib -Wl,-E compilers/imcc/main.o \
-Wl,-rpath=/usr/local/scm/svn/parrot/blib/lib -L/usr/local/scm/svn/parrot/blib/lib -lparrot -ldl -lm -lpthread -lcrypt -lrt -lgmp -lreadline src/null_config.o
compilers/imcc/main.o: In function `parseflags':
compilers/imcc/main.c:362: undefined reference to `IMCC_fatal_standalone'
compilers/imcc/main.o: In function `do_pre_process':
compilers/imcc/main.c:396: undefined reference to `do_yylex_init'
compilers/imcc/main.o: In function `main':
compilers/imcc/main.c:505: undefined reference to `do_yylex_init'
compilers/imcc/main.c:536: undefined reference to `IMCC_fatal_standalone'
compilers/imcc/main.c:550: undefined reference to `IMCC_fatal_standalone'
compilers/imcc/main.c:565: undefined reference to `yylex_destroy'
compilers/imcc/main.c:589: undefined reference to `IMCC_fatal_standalone'
compilers/imcc/main.c:606: undefined reference to `IMCC_fatal_standalone'
compilers/imcc/main.c:680: undefined reference to `IMCC_fatal_standalone'
compilers/imcc/main.c:684: undefined reference to `IMCC_fatal_standalone'
compilers/imcc/main.c:696: undefined reference to `IMCC_fatal_standalone'
compilers/imcc/main.c:725: undefined reference to `yylex_destroy'
collect2: ld returned 1 exit status
make: *** [miniparrot] Error 1

--
Hugues Lafarge || Email: Hugues....@afp.com
Agence France Presse || Phone: +33 1 40 41 77 15
4 rue de la bourse, 75002 Paris || Fax: +33 1 40 41 79 24
-----------------------

This e-mail, and any file transmitted with it, is confidential and intended solely for the use of the individual or entity to whom it is addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email.

For more information on Agence France-Presse, please visit our web site at http://www.afp.com

-----------------------

Ben. B.

unread,
Aug 8, 2006, 10:44:33 AM8/8/06
to hugues, parrot-...@perl.org
I have been getting the same error on my laptop for several weeks also.

Slackware 10.1, 2.4.26, Intel Celeron 1066.

Mr. Shawn H. Corey

unread,
Aug 8, 2006, 11:15:08 AM8/8/06
to Ben. B., hugues, parrot-...@perl.org
Ben. B. wrote:
> I have been getting the same error on my laptop for several weeks also.
>

Have you tried?

make realclean
perl Configure.pl
make

I got a compiler error earlier that went away when I did this.


--
__END__

Just my 0.00000002 million dollars worth,
--- Shawn

"For the things we have to learn before we can do them, we learn by
doing them."
Aristotle

Ben. B.

unread,
Aug 8, 2006, 11:22:10 AM8/8/06
to Mr. Shawn H. Corey, hugues, parrot-...@perl.org
Yes.

I also completely redownloaded the entire trunk and got the same thing.

I'm supposed to set up vsoni an account on my laptop so he can have a
looksee but I haven't gotten around tuit yet.

Kay-Uwe Hull

unread,
Aug 8, 2006, 11:08:38 AM8/8/06
to perl6-i...@perl.org, hugues....@afp.com
Hi Hugues,

I've had the same error on my notebook. It was because I had installed
('make install') a former parrot version and the linker tried to link to
/usr/local/lib/libparrot.so because
this is in search-path before 'local' blib/lib/libparrot.so. Removing
/usr/local/lib/libparrot.* worked for me.

Regards,

Kiwi (at work)

Hugues

unread,
Aug 8, 2006, 12:04:18 PM8/8/06
to Ben. B., Mr. Shawn H. Corey, hugues, parrot-...@perl.org
>>>>> "Ben" == Ben B <benn...@gmail.com> writes:

Ben> Yes.
Ben> I also completely redownloaded the entire trunk and got the same thing.

Same here.

Ben> I'm supposed to set up vsoni an account on my laptop so he can have a
Ben> looksee but I haven't gotten around tuit yet.

Ben> On 8/8/06, Mr. Shawn H. Corey <shawn...@magma.ca> wrote:
>> Ben. B. wrote:
>> > I have been getting the same error on my laptop for several weeks also.
>> >
>>
>> Have you tried?
>>
>> make realclean
>> perl Configure.pl
>> make
>>
>> I got a compiler error earlier that went away when I did this.
>>

--

Hugues Lafarge || Email: Hugues....@afp.com
Agence France Presse || Phone: +33 1 40 41 77 15
4 rue de la bourse, 75002 Paris || Fax: +33 1 40 41 79 24

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This e-mail, and any file transmitted with it, is confidential and intended solely for the use of the individual or entity to whom it is addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email.

For more information on Agence France-Presse, please visit our web site at http://www.afp.com

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Ben. B.

unread,
Aug 8, 2006, 12:14:47 PM8/8/06
to hugues, Mr. Shawn H. Corey, parrot-...@perl.org
I am going to try fixing it by deleting the installed version of
parrot per Kiwi's advice. That sounds like a reasonable solution. I'll
know for sure when I get home and post the results to the list.

Ben

On 8/8/06, hugues <Hugues....@afp.com> wrote:

Leopold Toetsch

unread,
Aug 8, 2006, 1:07:08 PM8/8/06
to perl6-i...@perl.org
Am Dienstag, 8. August 2006 16:34 schrieb hugues:
> I'm getting the following error when compiling (trying to) parrot
> svn:
>
> Just droping it as is, in case any of you would know an obvious fix
> (laziness ...)

Please don't. it doesn't help at all.

Please (all with this error) post the result of:

$ perl -V
$ grep link lib/Parrot/Config/Generated.pm
$ grep rpath lib/Parrot/Config/Generated.pm

... and your detailed OS description incl. distribution.

As kiwi has noted, the error is due to an installed libparrot. *But* the
problem is that the problem is only exposed on some archs.

Thanks,
leo

Ben. B.

unread,
Aug 8, 2006, 7:57:24 PM8/8/06
to Leopold Toetsch, perl6-i...@perl.org
That certainly fixed the problem.

$ perl -v
This is perl, v5.8.4 built for i486-linux
$ grep link lib/Parrot/Config/Generated.pm
'has_dynamic_linking' => 1,
'has_static_linking' => 1,
'link' => 'cc',
'link_debug' => '',
'link_dynamic' => '-Wl,-E',
'linkflags' => ' -L/usr/local/lib -Wl,-E',
'ncilib_link_extra' => '',

$ grep rpath lib/Parrot/Config/Generated.pm
'rpath' => '-Wl,-rpath=',
'rpath_blib' =>
'-Wl,-rpath=/home/ben/documents/parrot/trunk/blib/lib',

Slackware 10.1
$ cat /proc/version
Linux version 2.4.26 (root@tree) (gcc version 3.3.4) #6 Mon Jun 14
19:07:27 PDT 2004

$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 11
model name : Intel(R) Celeron(TM) CPU 1066MHz
stepping : 1
cpu MHz : 1066.563
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca
cmov pat pse36 mmx fxsr sse
bogomips : 2129.92

Kay-Uwe Hull

unread,
Aug 9, 2006, 2:49:34 AM8/9/06
to perl6-i...@perl.org, l...@toetsch.at
Hi Leo,

I had the link error on Cygwin and on Linux (Debian). The reason for
this problem with compile error is in following definitions in Makefile:

LINKFLAGS = -s -L/usr/local/lib
ALL_PARROT_LIBS = -L/cygdrive/c/Documents\ and\
Settings/khull/work/dev/parrot/trunk/blib/lib -lparrot $(ICU_SHARED)
$(C_LIBS)

$(MINIPARROT) : $(IMCC_DIR)/main$(O) $(GEN_HEADERS) $(LIBPARROT) \
lib/Parrot/OpLib/core.pm $(SRC_DIR)/null_config$(O)
$(LINK) -o $@ $(LINKFLAGS) $(IMCC_DIR)/main$(O) \
$(ALL_PARROT_LIBS) $(SRC_DIR)/null_config$(O)

LINKFLAGS are before ALL_PARROT_LIBS which states /usr/local/lib first
in search path for libraries to link. I do not know how the Makefile
generation works, that is why I do not fix it right now. There may be
many side effects.

Regards, Kiwi

Hugues

unread,
Aug 9, 2006, 5:32:44 PM8/9/06
to Leopold Toetsch, perl6-i...@perl.org, parrot-...@perl.org
>>>>> "Leopold" == Leopold Toetsch <l...@toetsch.at> writes:

Leopold> Am Dienstag, 8. August 2006 16:34 schrieb hugues:
>> I'm getting the following error when compiling (trying to) parrot
>> svn:
>>
>> Just droping it as is, in case any of you would know an obvious fix
>> (laziness ...)

Leopold> Please don't. it doesn't help at all.

Leopold> Please (all with this error) post the result of:

Leopold> $ perl -V
Leopold> $ grep link lib/Parrot/Config/Generated.pm
Leopold> $ grep rpath lib/Parrot/Config/Generated.pm

Leopold> ... and your detailed OS description incl. distribution.

Leopold> As kiwi has noted, the error is due to an installed libparrot. *But* the
Leopold> problem is that the problem is only exposed on some archs.

Leopold> Thanks,
Leopold> leo

Sorry for the delay.

First, i want to confirm that kiwi's fix did it for me.

Here's my setup as requested:

phugues$ perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=linux, osvers=2.6.15-1-686, archname=i486-linux-gnu-thread-multi
uname='linux ulises 2.6.15-1-686 #2 mon mar 6 15:27:08 utc 2006 i686 gnulinux '
config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN -Dcccdlflags=-fPIC -Darchname=i486-linux-gnu -Dprefix=/usr -Dprivlib=/usr/share/perl/5.8 -Darchlib=/usr/lib/perl/5.8 -D
vendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.8.8 -Dsitearch=/usr/local/lib/perl/5.8.8 -Dman1dir=
/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs
-Ud_csh -Uusesfio -Uusenm -Duseshrplib -Dlibperl=libperl.so.5.8.8 -Dd_dosuid -des'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc=ēc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='4.1.2 20060729 (prerelease) (Debian 4.1.1-10)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld=ēc', ldflags ='-L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
perllibs=-ldl -lm -lpthread -lc -lcrypt
libc=/lib/libc-2.3.6.so, so=so, useshrplib=true, libperl=libperl.so.5.8.8
gnulibc_version='2.3.6'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_ITHREADS
USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API
Built under linux
Compiled at Aug 6 2006 15:35:16
@INC:
/etc/perl
/usr/local/lib/perl/5.8.8
/usr/local/share/perl/5.8.8
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.8
/usr/share/perl/5.8
/usr/local/lib/site_perl
/usr/local/lib/perl/5.8.7
/usr/local/share/perl/5.8.7
.

phugues$ grep link lib/Parrot/Config/Generated.pm


'has_dynamic_linking'=> 1,
'has_static_linking'=> 1,

'link'=> ēc',


'link_debug'=> '',
'link_dynamic'=> '-Wl,-E',
'linkflags'=> '-L/usr/local/lib -Wl,-E',
'ncilib_link_extra'=> '',

phugues$ grep rpath lib/Parrot/Config/Generated.pm
'rpath'=> '-Wl,-rpath=',
'rpath_blib'=> '-Wl,-rpath=/usr/local/scm/svn/parrot/blib/lib',


My OS is a debian linux (experimental):

phugues$ uname -a
Linux phugues 2.6.17-1-686 #1 SMP Sat Jul 29 15:32:47 UTC 2006 i686 GNU/Linux

Hope that helps a bit.

Thanks for everybody's help.



--
Hugues Lafarge || Email: Hugues....@afp.com
Agence France Presse || Phone: +33 1 40 41 77 15
4 rue de la bourse, 75002 Paris || Fax: +33 1 40 41 79 24

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This e-mail, and any file transmitted with it, is confidential and intended solely for the use of the individual or entity to whom it is addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email.

For more information on Agence France-Presse, please visit our web site at http://www.afp.com

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

0 new messages