Navigation Menu

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

Can't compile Perl on AIX with GCC #412

Closed
p5pRT opened this issue Aug 21, 1999 · 7 comments
Closed

Can't compile Perl on AIX with GCC #412

p5pRT opened this issue Aug 21, 1999 · 7 comments

Comments

@p5pRT
Copy link

p5pRT commented Aug 21, 1999

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

Searchable as RT1247$

@p5pRT
Copy link
Author

p5pRT commented Aug 21, 1999

From ccoving@uhc.com

Here are the commands that I use​:

./Configure -Dcc=gcc -Dprefix=/usr/local/perl -Uinstallusrbinperl -des
# That completes OK
make

The make command errors out. Here is where the error starts​:

  gcc -L/usr/local/lib -o miniperl miniperlmain.o libperl.a
-lnsl
-lgdbm -ldbm -ldl -lld -lm -lc -lcrypt -lbsd -lPW
  ./miniperl -w -Ilib -MExporter -e 0 || make minitest
/bin/sh​: 73904 Illegal instruction(coredump)
  rm -f lib/re.pm
  cat ext/re/re.pm > lib/re.pm
You may see some irrelevant test failures if you have been unable
to build lib/Config.pm.
  cd t && (rm -f perl; /usr/bin/ln -s ../miniperl perl) &&
./perl
TEST base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t </dev/tty
base/cond.........ok
base/if...........ok
base/lex..........ok
base/pat..........ok
base/rs...........ok
base/term.........Can't locate Config.pm in @​INC (@​INC contains​: ../lib)
at base/term.t line 10.
BEGIN failed--compilation aborted at base/term.t line 10.
FAILED at test 0
Failed a basic test--cannot continue.
make​: The error code from the last command is 2.
make​: Ignored error code 2 from last command.
  ./miniperl configpm tmp
make​: The signal code from the last command is 4.

Stop.

Any help is appreciated.
Thanks,
Chris Covington, ccoving@​uhc.com

@p5pRT
Copy link
Author

p5pRT commented Aug 21, 1999

From [Unknown Contact. See original ticket]

On Sat, Aug 21, 1999 at 12​:48​:48PM -0500, Chris Covington wrote​:

I am trying to compile perl5.005_03 on AIX 4.3.2 using gcc 2.8.1.

  How about the output of myconfig?

  Peace,
* Kurt Starsinic (Kurt.Starsinic@​isinet.com) --------- Technical Specialist *
| "The universe is change; our life is what our thoughts make it." |
| - Marcus Aurelius |
Institute for Scientific Information http​://www.isinet.com/

@p5pRT
Copy link
Author

p5pRT commented Aug 21, 1999

From [Unknown Contact. See original ticket]

Here it the output of myconfig​:

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration​:
  Platform​:
  osname=aix, osvers=4.3.2.0, archname=aix
  uname='aix yeti 3 4 000018538000 '
  hint=recommended, useposix=true, d_sigaction=define
  usethreads=undef useperlio=undef d_sfio=undef
  Compiler​:
  cc='xlc', optimize='-O', gccversion=2.8.1
  cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-I/usr/local/include'
  ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-I/usr/local/include'
  stdchar='unsigned char', d_stdstdio=define, usevfork=false
  intsize=4, longsize=4, ptrsize=4, doublesize=8
  d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
  alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries​:
  ld='ld', ldflags =' -L/usr/local/lib'
  libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
  libs=-lnsl -lgdbm -ldbm -ldl -lld -lm -lc -lcrypt -lbsd -lPW
  libc=, so=a, useshrplib=false, libperl=libperl.a
  Dynamic Linking​:
  dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Xlinker
-bE​:perl.exp'
  cccdlflags='-fpic', lddlflags='-bhalt​:4 -bM​:SRE
-bI​:$(PERL_INC)/perl.exp -bE​:$(BASEEXT).exp -b noentry -lc
-L/usr/local/lib'

Thanks,
Chris Covington, ccoving@​uhc.com

"Kurt D. Starsinic" wrote​:

On Sat, Aug 21, 1999 at 12​:48​:48PM -0500, Chris Covington wrote​:

I am trying to compile perl5.005_03 on AIX 4.3.2 using gcc 2.8.1.

How about the output of myconfig?

Peace\,

* Kurt Starsinic (Kurt.Starsinic@​isinet.com) --------- Technical Specialist *
| "The universe is change; our life is what our thoughts make it." |
| - Marcus Aurelius |
Institute for Scientific Information http​://www.isinet.com/

@p5pRT
Copy link
Author

p5pRT commented Aug 21, 1999

From [Unknown Contact. See original ticket]

Oops, disregard the previous myconfig I sent - I was experimenting more
after I sent the origional help request. Also I noticed that doing the
./Configure gives a couple of "WHOA THERE"s for "the recommended value
form $d_setueuid on this machine is 'undef'" early on, but does not
cause the configure script to abort. Here is the real myconfig​:

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration​:
  Platform​:
  osname=aix, osvers=4.3.2.0, archname=aix
  uname='aix yeti 3 4 000018538000 '
  hint=recommended, useposix=true, d_sigaction=define
  usethreads=undef useperlio=undef d_sfio=undef
  Compiler​:
  cc='gcc', optimize='-O', gccversion=2.8.1
  cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-I/usr/local/include'
  ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-I/usr/local/include'
  stdchar='unsigned char', d_stdstdio=define, usevfork=false
  intsize=4, longsize=4, ptrsize=4, doublesize=8
  d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
  alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries​:
  ld='ld', ldflags =' -L/usr/local/lib'
  libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
  libs=-lnsl -lgdbm -ldbm -ldl -lld -lm -lc -lcrypt -lbsd -lPW
  libc=, so=a, useshrplib=false, libperl=libperl.a
  Dynamic Linking​:
  dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Xlinker
-bE​:perl.exp'
  cccdlflags='-fpic', lddlflags='-bhalt​:4 -bM​:SRE
-bI​:$(PERL_INC)/perl.exp -bE​:$(BASEEXT).exp -b noentry -lc
-L/usr/local/lib'

Thanks again,
Chris Covington, ccoving@​uhc.com

"Kurt D. Starsinic" wrote​:

On Sat, Aug 21, 1999 at 12​:48​:48PM -0500, Chris Covington wrote​:

I am trying to compile perl5.005_03 on AIX 4.3.2 using gcc 2.8.1.

How about the output of myconfig?

Peace\,

* Kurt Starsinic (Kurt.Starsinic@​isinet.com) --------- Technical Specialist *
| "The universe is change; our life is what our thoughts make it." |
| - Marcus Aurelius |
Institute for Scientific Information http​://www.isinet.com/

@p5pRT
Copy link
Author

p5pRT commented Aug 29, 1999

From [Unknown Contact. See original ticket]

Chris,

  We're getting closer. How about the output of `myconfig', along
with a description of where the compile fails and a few lines of output
leading up to the failure?

  - Kurt

On Sat, Aug 21, 1999 at 09​:55​:03PM -0500, Chris Covington wrote​:

Oops, disregard the previous myconfig I sent - I was experimenting more
after I sent the origional help request. Also I noticed that doing the
./Configure gives a couple of "WHOA THERE"s for "the recommended value
form $d_setueuid on this machine is 'undef'" early on, but does not
cause the configure script to abort. Here is the real myconfig​:

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration​:
Platform​:
osname=aix, osvers=4.3.2.0, archname=aix
uname='aix yeti 3 4 000018538000 '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler​:
cc='gcc', optimize='-O', gccversion=2.8.1
cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-I/usr/local/include'
ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-I/usr/local/include'
stdchar='unsigned char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
alignbytes=8, usemymalloc=n, prototype=define
Linker and Libraries​:
ld='ld', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lnsl -lgdbm -ldbm -ldl -lld -lm -lc -lcrypt -lbsd -lPW
libc=, so=a, useshrplib=false, libperl=libperl.a
Dynamic Linking​:
dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Xlinker
-bE​:perl.exp'
cccdlflags='-fpic', lddlflags='-bhalt​:4 -bM​:SRE
-bI​:$(PERL_INC)/perl.exp -bE​:$(BASEEXT).exp -b noentry -lc
-L/usr/local/lib'

@p5pRT
Copy link
Author

p5pRT commented Apr 4, 2005

From @smpeters

[RT_System - Sun Aug 29 09​:46​:56 1999]​:

Chris,

We're getting closer\.  How about the output of \`myconfig'\, along

with a description of where the compile fails and a few lines of output
leading up to the failure?

\- Kurt

On Sat, Aug 21, 1999 at 09​:55​:03PM -0500, Chris Covington wrote​:

Oops, disregard the previous myconfig I sent - I was experimenting more
after I sent the origional help request. Also I noticed that doing the
./Configure gives a couple of "WHOA THERE"s for "the recommended value
form $d_setueuid on this machine is 'undef'" early on, but does not
cause the configure script to abort. Here is the real myconfig​:

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration​:
Platform​:
osname=aix, osvers=4.3.2.0, archname=aix
uname='aix yeti 3 4 000018538000 '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler​:
cc='gcc', optimize='-O', gccversion=2.8.1
cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-I/usr/local/include'
ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-I/usr/local/include'
stdchar='unsigned char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
alignbytes=8, usemymalloc=n, prototype=define
Linker and Libraries​:
ld='ld', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lnsl -lgdbm -ldbm -ldl -lld -lm -lc -lcrypt -lbsd -lPW
libc=, so=a, useshrplib=false, libperl=libperl.a
Dynamic Linking​:
dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Xlinker
-bE​:perl.exp'
cccdlflags='-fpic', lddlflags='-bhalt​:4 -bM​:SRE
-bI​:$(PERL_INC)/perl.exp -bE​:$(BASEEXT).exp -b noentry -lc
-L/usr/local/lib'

Current smokes are building with experimental gcc 4.0's on AIX. As this
ticket ends with a non-response, it is assumed resolved.

@p5pRT p5pRT closed this as completed Apr 4, 2005
@p5pRT
Copy link
Author

p5pRT commented Apr 4, 2005

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant