Skip to content

Compile/install from source: Configure does not create a Makefile #9071

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

Open
p5pRT opened this issue Oct 19, 2007 · 7 comments
Open

Compile/install from source: Configure does not create a Makefile #9071

p5pRT opened this issue Oct 19, 2007 · 7 comments

Comments

@p5pRT
Copy link

p5pRT commented Oct 19, 2007

Migrated from rt.perl.org#46549 (status was 'stalled')

Searchable as RT46549$

@p5pRT
Copy link
Author

p5pRT commented Oct 19, 2007

From [email protected]

Hi,

I am trying to compile perl 5.8.8 from source.
sh Configure -de
appears to work, ending with

Doing variable substitutions on .SH files...
Extracting cflags (with variable substitutions)
Extracting config.h (with variable substitutions)
Extracting makeaperl (with variable substitutions)
Extracting makedepend (with variable substitutions)
Extracting makedir (with variable substitutions)
Extracting Makefile (with variable substitutions)
Extracting myconfig (with variable substitutions)
Extracting pod/Makefile (with variable substitutions)
Extracting Policy.sh (with variable substitutions)
Extracting writemain (with variable substitutions)
Extracting x2p/cflags (with variable substitutions)
Extracting x2p/Makefile (with variable substitutions)
Configure done.

but Makefile, and x2p/Makefile are missing. (other file are created)

./myconfig returns​:

Summary of my perl5 (revision 5 version 8 subversion 8) configuration​:
  Platform​:
  osname=linux, osvers=2.6.20-1.2320.fc5, archname=i686-linux
  uname='linux fc5phlap.office.local 2.6.20-1.2320.fc5 #1 tue jun
12 18​:50​:38 edt 2007 i686 i686 i386 gnulinux '
  config_args='-de'
  hint=previous, useposix=true, d_sigaction=define
  usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
  useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
  use64bitint=undef use64bitall=undef uselongdouble=undef
  usemymalloc=n, bincompat5005=undef
  Compiler​:
  cc='gcc', ccflags ='-fno-strict-aliasing -pipe -Wdeclaration-
after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -
D_FILE_OFFSET_BITS=64',
  optimize='-O2',
  cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-
statement -I/usr/local/include -fno-strict-aliasing -pipe -
Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64'
  ccversion='', gccversion='4.1.1 20070105 (Red Hat 4.1.1-51)',
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='gcc', ldflags =' -L/usr/local/lib'
  libpth=/usr/local/lib /lib /usr/lib
  libs=-lnsl -ldl -lm -lcrypt -lutil -lc
  perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
  libc=/lib/libc-2.4.so, so=so, useshrplib=false, libperl=libperl.a
  gnulibc_version='2.4'
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
  cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

any help gratefully received.

@p5pRT
Copy link
Author

p5pRT commented Oct 19, 2007

From @doughera88

On Fri, 19 Oct 2007, Peter Hill wrote​:

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

Hi,

I am trying to compile perl 5.8.8 from source.
sh Configure -de
appears to work, ending with

Doing variable substitutions on .SH files...
Extracting cflags (with variable substitutions)
Extracting config.h (with variable substitutions)
Extracting makeaperl (with variable substitutions)
Extracting makedepend (with variable substitutions)
Extracting makedir (with variable substitutions)
Extracting Makefile (with variable substitutions)
Extracting myconfig (with variable substitutions)
Extracting pod/Makefile (with variable substitutions)
Extracting Policy.sh (with variable substitutions)
Extracting writemain (with variable substitutions)
Extracting x2p/cflags (with variable substitutions)
Extracting x2p/Makefile (with variable substitutions)
Configure done.

but Makefile, and x2p/Makefile are missing. (other file are created)

This is very strange. I don't ever recall seeing this problem before.
It claims to have extracted Makefile. Can you try manually running

  sh Makefile.SH

and see what happens? That should create Makefile.
Is there anything unusual about the particular filesystem you are using?

The only other thing I notice is that you have previously run Configure
in this same directory, so there was an existing config.sh file.

 hint=previous\, useposix=true\, d\_sigaction=define

Was that config.sh created on this exact same system?
Configure tries to check and use such a config.sh file only if it
seems likely to work, but I suppose it could have been fooled somehow.

Puzzled,

--
  Andy Dougherty doughera@​lafayette.edu

@p5pRT
Copy link
Author

p5pRT commented Oct 19, 2007

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

@p5pRT
Copy link
Author

p5pRT commented Oct 22, 2007

From @doughera88

On Mon, 22 Oct 2007, Peter Hill wrote​:

I am trying to compile perl 5.8.8 from source.
sh Configure -de
appears to work, ending with

Extracting Makefile (with variable substitutions)

but Makefile, and x2p/Makefile are missing. (other file are created)

This is very strange. I don't ever recall seeing this problem before.
It claims to have extracted Makefile. Can you try manually running

sh Makefile.SH
Nothing happens - no stderr or stdout, no file.

Ah! Good question - I was compiling from a samba share. Works fine
when I copy everything local. Some strange permissions issue? I say
strange because other files are created and I don't have problems
compiling. Thanks for your help.

Ah. I'll guess that the samba share is case-insensitive. On Unix, the
perl build system uses both a 'Makefile' and a 'makefile'. Part of the
extraction process of Makefile.SH removes the 'makefile'. Unfortunately,
it looks like that's actually removing 'Makefile' in your case.

The workaround is simple​: Tell Configure to use a different name instead
of 'makefile'. One that should work is the following​:

  sh Configure -Dfirstmakefile=GNUmakefile

(assuming you're using GNU make, which you probably are on Linux.)
(If you already have a config.sh file, you can just edit it and change
the one entry for firstmakefile by hand, and then run
  sh Configure -S
to re-extract everything.)

Configure probably ought to automatically detect this problem in advance,
but it doesn't.

Hope this helps,

--
  Andy Dougherty doughera@​lafayette.edu

@p5pRT
Copy link
Author

p5pRT commented May 4, 2012

From @jkeenan

On Mon Oct 22 10​:21​:49 2007, doughera wrote​:

On Mon, 22 Oct 2007, Peter Hill wrote​:

I am trying to compile perl 5.8.8 from source.
sh Configure -de
appears to work, ending with

Extracting Makefile (with variable substitutions)

but Makefile, and x2p/Makefile are missing. (other file are created)

This is very strange. I don't ever recall seeing this problem before.
It claims to have extracted Makefile. Can you try manually running

sh Makefile.SH
Nothing happens - no stderr or stdout, no file.

Ah! Good question - I was compiling from a samba share. Works fine
when I copy everything local. Some strange permissions issue? I say
strange because other files are created and I don't have problems
compiling. Thanks for your help.

Ah. I'll guess that the samba share is case-insensitive. On Unix, the
perl build system uses both a 'Makefile' and a 'makefile'. Part of the
extraction process of Makefile.SH removes the 'makefile'. Unfortunately,
it looks like that's actually removing 'Makefile' in your case.

The workaround is simple​: Tell Configure to use a different name instead
of 'makefile'. One that should work is the following​:

sh Configure \-Dfirstmakefile=GNUmakefile

(assuming you're using GNU make, which you probably are on Linux.)
(If you already have a config.sh file, you can just edit it and change
the one entry for firstmakefile by hand, and then run
sh Configure -S
to re-extract everything.)

Configure probably ought to automatically detect this problem in advance,
but it doesn't.

Hope this helps,

Andy D​:

We never heard further from the original poster. Do you think there are
Configure issues still needing addressing here?

Thank you very much.
Jim Keenan

@p5pRT
Copy link
Author

p5pRT commented May 4, 2012

From @doughera88

On Thu, 3 May 2012, James E Keenan via RT wrote​:

On Mon Oct 22 10​:21​:49 2007, doughera wrote​:

On Mon, 22 Oct 2007, Peter Hill wrote​:

I am trying to compile perl 5.8.8 from source.
sh Configure -de
appears to work, ending with

Extracting Makefile (with variable substitutions)

but Makefile, and x2p/Makefile are missing. (other file are created)

This is very strange. I don't ever recall seeing this problem before.
It claims to have extracted Makefile. Can you try manually running

sh Makefile.SH
Nothing happens - no stderr or stdout, no file.

Ah! Good question - I was compiling from a samba share. Works fine
when I copy everything local. Some strange permissions issue? I say
strange because other files are created and I don't have problems
compiling. Thanks for your help.

Ah. I'll guess that the samba share is case-insensitive. On Unix, the
perl build system uses both a 'Makefile' and a 'makefile'. Part of the
extraction process of Makefile.SH removes the 'makefile'. Unfortunately,
it looks like that's actually removing 'Makefile' in your case.

The workaround is simple​: Tell Configure to use a different name instead
of 'makefile'. One that should work is the following​:

sh Configure \-Dfirstmakefile=GNUmakefile

(assuming you're using GNU make, which you probably are on Linux.)
(If you already have a config.sh file, you can just edit it and change
the one entry for firstmakefile by hand, and then run
sh Configure -S
to re-extract everything.)

Configure probably ought to automatically detect this problem in advance,
but it doesn't.

Hope this helps,

Andy D​:

We never heard further from the original poster. Do you think there are
Configure issues still needing addressing here?

I'm pretty sure the original issue is still there (I certainly haven't
fixed it) but I don't think it's very pressing, and would guess that it's
unlikely that anyone will do anything about it anytime soon. I'd be
inclined to mark this as "stalled".

--
  Andy Dougherty doughera@​lafayette.edu

@p5pRT
Copy link
Author

p5pRT commented Jul 3, 2012

@doy - Status changed from 'open' to 'stalled'

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

3 participants