LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 09-26-2010, 07:19 AM   #1
wackman
LQ Newbie
 
Registered: Jan 2003
Location: Nevada
Distribution: Usually Arch
Posts: 22

Rep: Reputation: 0
CLFS: Can't compile temporary perl: "Can't figure out your cwd!"


Hello,

I've had the problem for the last few days and can't find any solutions on the web. I've tried google, LQ.org, the LFS mailing lists. The few results I've found refer to a simply "I figured it out" without cluing me in to the solution, an "experts exchange" where I would have to pay for the solution, and editing a makefile (which makefile? what edit?). I just now found one on here, but no real solution.

I'm trying to build CLFS (multilib x86_64). This is the email I sent to the mailing list, but it hasn't been approved yet:

I'm currently working on chapter 10.4 "Temporary Perl-5.12.1" version SVN-20100828-x86_64-Multilib. My host system is Arch Linux x64. An AthlonII x4 with 4GB RAM.

Originally, I was trying to build perl-5.12.2 when I started to get this error. I decided to back down to 5.12.1, but I'm still getting the same error.

Code:
Running Makefile.PL in cpan/Encode
../../miniperl Makefile.PL INSTALLDIRS=perl INSTALLMAN1DIR=none INSTALLMAN3DIR=none PERL_CORE=1 LIBPERL_A=libperl.a LINKTYPE=dynamic
Checking if your kit is complete...
Looks good
Can't figure out your cwd! at ../../cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm line 195.
512 from cpan/Encode's Makefile.PL at make_ext.pl line 390.
Warning: No Makefile!
make[1]: Entering directory `/sources/perl-5.12.1/cpan/Encode'
make[1]: *** No rule to make target `config'.  Stop.
make[1]: Leaving directory `/sources/perl-5.12.1/cpan/Encode'
 make config PERL_CORE=1 LIBPERL_A=libperl.a LINKTYPE=dynamic failed, continuing anyway...
Making all in cpan/Encode
 make all PERL_CORE=1 LIBPERL_A=libperl.a LINKTYPE=dynamic
make[1]: Entering directory `/sources/perl-5.12.1/cpan/Encode'
make[1]: *** No rule to make target `all'.  Stop.
make[1]: Leaving directory `/sources/perl-5.12.1/cpan/Encode'
Unsuccessful make(cpan/Encode): code=512 at make_ext.pl line 449.
make: *** [lib/auto/Encode/Encode.so] Error 2
root:/sources/perl-5.12.1#
I can't find any helpful solutions on google. I did see something about editing either Encode's Makefile.PL or MakeMaker's Makefile.PL, but didn't see anything that looked like it would help. Someone somewhere on the web also suggested doing an ln from my host system to the chroot directory for pwd (I prefer to temporarily copy), but that didn't help.

If I didn't provide all the info I needed, let me know.

Wackman
 
Old 09-27-2010, 07:04 AM   #2
wackman
LQ Newbie
 
Registered: Jan 2003
Location: Nevada
Distribution: Usually Arch
Posts: 22

Original Poster
Rep: Reputation: 0
maybe solved?

I think I may have solved my own problem. It was a boneheaded mistake. Despite my best efforts to be anal about following every step, I missed an important one.

I somehow missed chapter 8.7 about essential symlinks. I'm trying over from that chapter on out. We'll see how it goes.

If this fixes it, I'll marked this solved.

Wackman
 
Old 09-28-2010, 01:02 AM   #3
wackman
LQ Newbie
 
Registered: Jan 2003
Location: Nevada
Distribution: Usually Arch
Posts: 22

Original Poster
Rep: Reputation: 0
Well, I started over from scratch and got past that error. I'm pretty much convinced the problems were due to missing the symlinks.

On that 2nd try, I ran into another problem. In chapter 10 when you're building the 32 bit, then 64 bit eglibc, 32bit failed a few tests, but seemed OK. 64 bit failed many more. In trying to backtrack and compile the correct packages to get past, my gcc no longer can make executables.

Back to the drawing board. On to the 3rd time. I hope it's the charm.

Wackman
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CLFS ch10.43: module-init-tools-3.4 testing fails - "Unknown endian" Bolts Linux From Scratch 1 10-29-2010 05:04 AM
Urgent help on "Glibc make error with clfs" rushadrenaline Linux From Scratch 11 03-01-2010 01:14 PM
Command "mail" returns "panic: temporary file seek" kenneho Linux - Software 5 12-23-2008 04:27 AM
Cedega from Fat32 (Invalid path "." given for "--use-dos-cwd") bdox Linux - Software 0 03-30-2005 12:24 PM
Cedega and Fat32 (Invalid path "." given for "--use-dos-cwd") bdox Linux - Games 0 03-26-2005 03:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration