Ticket #1392: bug.txt

File bug.txt, 5.7 KB (added by flw, 12 years ago)

BUG Description

Line 
1Summary: build parrot failed on CentOS 4.5
2Reported by: su2admin@gmail.com
3---
4error message:
5
6---------------------------
7/usr/bin/perl tools/build/parrot_config_c.pl --mini > \
8    src/null_config.c
9src/null_config.c
10gcc -o miniparrot src/main.o src/null_config.o \
11        -Wl,-rpath=/home/flw/soft/rakudo-rakudo-8dc1895/parrot/blib/lib -L/home/flw/soft/rakudo-rakudo-8dc1895/parrot/blib/lib -lparrot  -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lrt -lgmp -lreadline -lncurses  -L/usr/local/lib -Wl,-E
12src/main.o(.text+0x46): In function `main':
13src/main.c:51: undefined reference to `Parrot_new'
14src/main.o(.text+0x50):src/main.c:52: undefined reference to `imcc_initialize'
15src/main.o(.text+0x69):src/main.c:57: undefined reference to `Parrot_str_new'
16src/main.o(.text+0x75):src/main.c:57: undefined reference to `Parrot_set_executable_name'
17src/main.o(.text+0x8b):src/main.c:59: undefined reference to `parseflags'
18src/main.o(.text+0xa5):src/main.c:60: undefined reference to `imcc_run'
19src/main.o(.text+0xad):src/main.c:64: undefined reference to `Parrot_destroy'
20src/main.o(.text+0xbd):src/main.c:65: undefined reference to `Parrot_exit'
21src/null_config.o(.text+0x24): In function `Parrot_set_config_hash':
22src/null_config.c:29: undefined reference to `Parrot_set_config_hash_internal'
23collect2: ld returned 1 exit status
24gmake: *** [miniparrot] error 1
25Command failed (status 512): gmake install-dev
26===SORRY!===
27Unable to locate parrot_config
28
29To automatically checkout (svn) and build a copy of parrot r43076,
30try re-running Configure.pl with the '--gen-parrot' option.
31Or, use the '--parrot-config' option to explicitly specify
32the location of parrot_config to be used to build Rakudo Perl.
33---------------------------
34
35I can fix it on my machine via following changes:
36
37---------------------------
38$ LANG=C svn info
39Path: .
40URL: https://svn.parrot.org/parrot/trunk
41Repository UUID: d31e2699-5ff4-0310-a27c-f18f2fbe73fe
42Revision: 43076
43Node Kind: directory
44Schedule: normal
45Last Changed Author: barney
46Last Changed Rev: 43075
47Last Changed Date: 2009-12-16 03:24:30 +0800 (Wed, 16 Dec 2009)
48Properties Last Updated: 2009-12-24 11:01:48 +0800 (Thu, 24 Dec 2009)
49
50$ LANG=C svn diff
51Index: config/auto/warnings.pm
52===================================================================
53--- config/auto/warnings.pm     (revision 43076)
54+++ config/auto/warnings.pm     (working copy)
55@@ -38,7 +38,6 @@
56     # sorted as "-Wfoo", so we can turn off/on as needed.
57     my @potential_warnings = qw(
58         -falign-functions=16
59-        -fvisibility=hidden
60         -funit-at-a-time
61         -maccumulate-outgoing-args
62         -W
63$
64---------------------------
65
66
67---
68osname= linux
69osvers= 2.6.9-42.elsmp
70arch=   i386-linux-thread-multi
71cc=     gcc
72---
73Flags:
74    category=install
75    severity=medium
76    ack=no
77---
78Summary of my parrot 1.9.0 (r43076) configuration:
79  configdate='Thu Dec 24 03:26:11 2009 GMT'
80  Platform:
81    osname=linux, archname=i386-linux-thread-multi
82    jitcapable=0, jitarchname=nojit,
83    jitosname=linux, jitcpuarch=i386
84    execcapable=0
85    perl=/usr/bin/perl
86  Compiler:
87    cc='gcc', ccflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING  -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DHASATTRIBUTE_CONST  -DHASATTRIBUTE_DEPRECATED  -DHASATTRIBUTE_MALLOC  -DHASATTRIBUTE_NONNULL  -DHASATTRIBUTE_NORETURN  -DHASATTRIBUTE_PURE  -DHASATTRIBUTE_UNUSED  -DHASATTRIBUTE_WARN_UNUSED_RESULT  -falign-functions=16 -funit-at-a-time -maccumulate-outgoing-args -W -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wdisabled-optimization -Wendif-labels -Wextra -Wformat -Wformat-extra-args -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimplicit -Wimport -Winit-self -Winline -Winvalid-pch -Wmissing-braces -Wno-missing-format-attribute -Wpacked -Wparentheses -Wpointer-arith -Wreturn-type -Wsequence-point -Wno-shadow -Wsign-compare -Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch -Wswitch-default -Wtrigraphs -Wundef -Wunknown-pragmas -Wno-unused -Wwrite-strings -Wbad-function-cast -Wdeclaration-after-statement -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wnonnull -DHAS_GETTEXT',
88  Linker and Libraries:
89    ld='gcc', ldflags=' -L/usr/local/lib',
90    cc_ldflags='',
91    libs='-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lrt -lgmp -lreadline -lncurses '
92  Dynamic Linking:
93    share_ext='.so', ld_share_flags='-shared -L/usr/local/lib -fPIC',
94    load_ext='.so', ld_load_flags='-shared -L/usr/local/lib -fPIC'
95  Types:
96    iv=long, intvalsize=4, intsize=4, opcode_t=long, opcode_t_size=4,
97    ptrsize=4, ptr_alignment=1 byteorder=1234,
98    nv=double, numvalsize=8, doublesize=8, longdoublesize=12
99
100---
101Environment:
102    HOME =/home/flw
103    LANG =zh_CN
104    LANGUAGE  (unset)
105    LD_LIBRARY_PATH  (unset)
106    LOGDIR  (unset)
107    PATH =/home/flw/bin:.:/usr/local/squid/sbin:/usr/local/squid/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/sbin:/sbin:.
108    SHELL =/bin/bash
109
110$ lsb_release -a
111LSB Version:    :core-3.0-ia32:core-3.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch
112Distributor ID: CentOS
113Description:    CentOS release 4.5 (Final)
114Release:        4.5
115Codename:       Final
116$ gcc -v
117Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
118Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
119Thread model: posix
120gcc version 3.4.6 20060404 (Red Hat 3.4.6-10)
121$