[darwinbuild] perl_extras
I just went to build perl_extras, and tried: darwinbuild perl_extras `darwinbuild perl` worked, but this did not. I got some errors: *** Fetching Sources ... Found perl-35 in /Volumes/Builds/Buld8C46/Sources *** Copying Sources ... ln: invalid option -- h Try `ln --help' for more information. /usr/local/bin/darwinbuild: line 440: cd: /Volumes/Builds/Buld8C46/BuildRoot/SourceCache/perl_extras/perl_extras-35: No such file or directory And then it ends with: private/var/tmp/perl_extras/build-perl_extras-35~1.sh: line 134: cd: /SourceCache/perl_extras/perl_extras-35: No such file or directory make: *** No rule to make target `installextras'. Stop. Am I doing something wrong? Thanks, -- Chris Nandor pudge@pobox.com http://pudge.net/ Open Source Technology Group pudge@ostg.com http://ostg.com/
Hi Chris, Apparently your version of /bin/ln doesn't accept the -h flag. What system are you running DarwinBuild on? - Kevin On Aug 8, 2005, at 10:06 AM, Chris Nandor wrote:
I just went to build perl_extras, and tried:
darwinbuild perl_extras
`darwinbuild perl` worked, but this did not. I got some errors:
*** Fetching Sources ... Found perl-35 in /Volumes/Builds/Buld8C46/Sources *** Copying Sources ... ln: invalid option -- h Try `ln --help' for more information. /usr/local/bin/darwinbuild: line 440: cd: /Volumes/Builds/Buld8C46/BuildRoot/SourceCache/perl_extras/ perl_extras-35: No such file or directory
And then it ends with:
private/var/tmp/perl_extras/build-perl_extras-35~1.sh: line 134: cd: /SourceCache/perl_extras/perl_extras-35: No such file or directory make: *** No rule to make target `installextras'. Stop.
Am I doing something wrong? Thanks,
-- Chris Nandor pudge@pobox.com http://pudge.net/ Open Source Technology Group pudge@ostg.com http://ostg.com/ _______________________________________________ darwinbuild mailing list darwinbuild@opendarwin.org http://www.opendarwin.org/mailman/listinfo/darwinbuild
At 10:50 -0700 2005.08.08, Kevin Van Vechten wrote:
Apparently your version of /bin/ln doesn't accept the -h flag. What system are you running DarwinBuild on?
Mac OS X 10.4.2. And gah ... `sudo -s` kept my previous user environment (which included /sw, and /sw/bin/ln). I just assumed it wouldn't. I manually fixed my PATH. Now I am getting: Build log begins here: make -C Extras install EXTRAS=/private/var/tmp/perl_extras/perl_extras-35.root/System/Library/Perl/Extras EXTRASPERL=/private/var/tmp/perl_extras/perl_extras-35.root/System/Library/Perl/Extras/5.8.6 \ SLP=/private/var/tmp/perl_extras/perl_extras-35.root/System/Library/Perl/5.8.6 ARCHLIB=darwin-thread-multi-2level OBJROOT=/private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot make -C MLDBM install installarchlib=/System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level installprivlib=/System/Library/Perl/Extras/5.8.6 PLARGS=INSTALLDIRS=perl INSTALLARCHLIB='/System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level' INSTALLPRIVLIB='/System/Library/Perl/Extras/5.8.6' INSTALLBIN='/System/Library/Perl/Extras/bin' INSTALLSCRIPT='/System/Library/Perl/Extras/bin' MAKEARGS=PASTHRU_INC='-pipe -no-cpp-precomp -arch ppc -arch i386' OTHERLDFLAGS='-pipe -no-cpp-precomp -arch ppc -arch i386' DESTDIR=/private/var/tmp/perl_extras/perl_extras-35.root mkdir -p /private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot/MLDBM gnutar xzf MLDBM-2.01.tar.gz -C /private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot/MLDBM tar (child): gzip: Cannot exec: No such file or directory tar (child): Error is not recoverable: exiting now gnutar: Child returned status 2 gnutar: Error exit delayed from previous errors make[2]: *** [/private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot/MLDBM/MLDBM-2.01] Error 2 It's as though the mkdir is failing, as if I ls that directory, it does not exist, but if I make it manually, it works: # ls /private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot ls: /private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot: No such file or directory # mkdir -p /private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot/MLDBM # ls /private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot MLDBM Still trying, -- Chris Nandor pudge@pobox.com http://pudge.net/ Open Source Technology Group pudge@ostg.com http://ostg.com/
This new issue appears to be within the perl_extras makefiles, and is not a DarwinBuild issue per-se. Could you reply with your build log for perl_extras so I can compare it with a known-working build log and see if we can track down the differences? Thanks, - Kevin On Aug 8, 2005, at 11:23 AM, Chris Nandor wrote:
At 10:50 -0700 2005.08.08, Kevin Van Vechten wrote:
Apparently your version of /bin/ln doesn't accept the -h flag. What system are you running DarwinBuild on?
Mac OS X 10.4.2.
And gah ... `sudo -s` kept my previous user environment (which included /sw, and /sw/bin/ln). I just assumed it wouldn't. I manually fixed my PATH.
Now I am getting:
Build log begins here:
make -C Extras install EXTRAS=/private/var/tmp/perl_extras/perl_extras-35.root/System/ Library/Perl/Extras EXTRASPERL=/private/var/tmp/perl_extras/perl_extras-35.root/System/ Library/Perl/Extras/5.8.6 \
SLP=/private/var/tmp/perl_extras/perl_extras-35.root/System/Library/ Perl/5.8.6 ARCHLIB=darwin-thread-multi-2level OBJROOT=/private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot make -C MLDBM install installarchlib=/System/Library/Perl/Extras/5.8.6/darwin-thread- multi-2level installprivlib=/System/Library/Perl/Extras/5.8.6 PLARGS=INSTALLDIRS=perl INSTALLARCHLIB='/System/Library/Perl/Extras/5.8.6/darwin-thread- multi-2level' INSTALLPRIVLIB='/System/Library/Perl/Extras/5.8.6' INSTALLBIN='/System/Library/Perl/Extras/bin' INSTALLSCRIPT='/System/Library/Perl/Extras/bin' MAKEARGS=PASTHRU_INC='-pipe -no-cpp-precomp -arch ppc -arch i386' OTHERLDFLAGS='-pipe -no-cpp- precomp -arch ppc -arch i386' DESTDIR=/private/var/tmp/perl_extras/perl_extras-35.root mkdir -p /private/var/tmp/perl_extras/perl_extras-35.obj/Extras- objroot/MLDBM gnutar xzf MLDBM-2.01.tar.gz -C /private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot/MLDBM tar (child): gzip: Cannot exec: No such file or directory tar (child): Error is not recoverable: exiting now gnutar: Child returned status 2 gnutar: Error exit delayed from previous errors make[2]: *** [/private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot/ MLDBM/MLDBM-2.01] Error 2
It's as though the mkdir is failing, as if I ls that directory, it does not exist, but if I make it manually, it works:
# ls /private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot ls: /private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot: No such file or directory # mkdir -p /private/var/tmp/perl_extras/perl_extras-35.obj/Extras- objroot/MLDBM # ls /private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot MLDBM
Still trying,
-- Chris Nandor pudge@pobox.com http://pudge.net/ Open Source Technology Group pudge@ostg.com http://ostg.com/
If you want to drop your user environment, try using sudo su -l That simulates a root login. _Mark On Aug 8, 2005, at 11:23 AM, Chris Nandor wrote:
At 10:50 -0700 2005.08.08, Kevin Van Vechten wrote:
Apparently your version of /bin/ln doesn't accept the -h flag. What system are you running DarwinBuild on?
Mac OS X 10.4.2.
And gah ... `sudo -s` kept my previous user environment (which included /sw, and /sw/bin/ln). I just assumed it wouldn't. I manually fixed my PATH.
Now I am getting:
Build log begins here:
make -C Extras install EXTRAS=/private/var/tmp/perl_extras/perl_extras-35.root/System/ Library/Perl/Extras EXTRASPERL=/private/var/tmp/perl_extras/perl_extras-35.root/System/ Library/Perl/Extras/5.8.6 \
SLP=/private/var/tmp/perl_extras/perl_extras-35.root/System/Library/ Perl/5.8.6 ARCHLIB=darwin-thread-multi-2level OBJROOT=/private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot make -C MLDBM install installarchlib=/System/Library/Perl/Extras/5.8.6/darwin-thread- multi-2level installprivlib=/System/Library/Perl/Extras/5.8.6 PLARGS=INSTALLDIRS=perl INSTALLARCHLIB='/System/Library/Perl/Extras/5.8.6/darwin-thread- multi-2level' INSTALLPRIVLIB='/System/Library/Perl/Extras/5.8.6' INSTALLBIN='/System/Library/Perl/Extras/bin' INSTALLSCRIPT='/System/Library/Perl/Extras/bin' MAKEARGS=PASTHRU_INC='-pipe -no-cpp-precomp -arch ppc -arch i386' OTHERLDFLAGS='-pipe -no-cpp- precomp -arch ppc -arch i386' DESTDIR=/private/var/tmp/perl_extras/perl_extras-35.root mkdir -p /private/var/tmp/perl_extras/perl_extras-35.obj/Extras- objroot/MLDBM gnutar xzf MLDBM-2.01.tar.gz -C /private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot/MLDBM tar (child): gzip: Cannot exec: No such file or directory tar (child): Error is not recoverable: exiting now gnutar: Child returned status 2 gnutar: Error exit delayed from previous errors make[2]: *** [/private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot/ MLDBM/MLDBM-2.01] Error 2
It's as though the mkdir is failing, as if I ls that directory, it does not exist, but if I make it manually, it works:
# ls /private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot ls: /private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot: No such file or directory # mkdir -p /private/var/tmp/perl_extras/perl_extras-35.obj/Extras- objroot/MLDBM # ls /private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot MLDBM
Still trying,
-- Chris Nandor pudge@pobox.com http://pudge.net/ Open Source Technology Group pudge@ostg.com http://ostg.com/ _______________________________________________ darwinbuild mailing list darwinbuild@opendarwin.org http://www.opendarwin.org/mailman/listinfo/darwinbuild
At 11:44 -0700 2005.08.08, Mark Pauley wrote:
If you want to drop your user environment, try using sudo su -l That simulates a root login.
Yeah; of course, then I need to add /usr/local/bin to my path anyway. -- Chris Nandor pudge@pobox.com http://pudge.net/ Open Source Technology Group pudge@ostg.com http://ostg.com/
Hi Chris, I think I know what the problem is. First, I'd like to point out that DarwinBuild performs all build inside the BuildRoot directory (see chroot(8)). Therefore the reason you didn't see a /private/var/ tmp/perl_extras/perl_extras-35.obj/Extras-objroot directory is because it is actually .../BuildRoot/private/var/tmp/perl_extras/ perl_extras-35.obj/Extras-objroot. In the build log that you provided me, it appears that the gzip project was never loaded into the BuildRoot. This is consistent with the error: "tar (child): gzip: Cannot exec: No such file or directory" This appears to be an oversight in the 8A428.plist. You can edit the database to add the gzip dependency and hopefully it will correct this issue. If you're using the most recent version of DarwinBuild from CVS, you can do: # darwinxref edit 8A428 perl Or if you're using 0.6 or 0.6.1, you can do the following and search for "perl = {": # darwinxref -b 8A428 edit At this point, you'll want to add "gzip" to the build dependencies list for perl: dependencies = { build = ( gzip, ... After saving your changes, when you perform the next build it should automatically load gzip into the BuildRoot. - Kevin On Aug 8, 2005, at 11:23 AM, Chris Nandor wrote:
At 10:50 -0700 2005.08.08, Kevin Van Vechten wrote:
Apparently your version of /bin/ln doesn't accept the -h flag. What system are you running DarwinBuild on?
Mac OS X 10.4.2.
And gah ... `sudo -s` kept my previous user environment (which included /sw, and /sw/bin/ln). I just assumed it wouldn't. I manually fixed my PATH.
Now I am getting:
Build log begins here:
make -C Extras install EXTRAS=/private/var/tmp/perl_extras/perl_extras-35.root/System/ Library/Perl/Extras EXTRASPERL=/private/var/tmp/perl_extras/perl_extras-35.root/System/ Library/Perl/Extras/5.8.6 \
SLP=/private/var/tmp/perl_extras/perl_extras-35.root/System/Library/ Perl/5.8.6 ARCHLIB=darwin-thread-multi-2level OBJROOT=/private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot make -C MLDBM install installarchlib=/System/Library/Perl/Extras/5.8.6/darwin-thread- multi-2level installprivlib=/System/Library/Perl/Extras/5.8.6 PLARGS=INSTALLDIRS=perl INSTALLARCHLIB='/System/Library/Perl/Extras/5.8.6/darwin-thread- multi-2level' INSTALLPRIVLIB='/System/Library/Perl/Extras/5.8.6' INSTALLBIN='/System/Library/Perl/Extras/bin' INSTALLSCRIPT='/System/Library/Perl/Extras/bin' MAKEARGS=PASTHRU_INC='-pipe -no-cpp-precomp -arch ppc -arch i386' OTHERLDFLAGS='-pipe -no-cpp- precomp -arch ppc -arch i386' DESTDIR=/private/var/tmp/perl_extras/perl_extras-35.root mkdir -p /private/var/tmp/perl_extras/perl_extras-35.obj/Extras- objroot/MLDBM gnutar xzf MLDBM-2.01.tar.gz -C /private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot/MLDBM tar (child): gzip: Cannot exec: No such file or directory tar (child): Error is not recoverable: exiting now gnutar: Child returned status 2 gnutar: Error exit delayed from previous errors make[2]: *** [/private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot/ MLDBM/MLDBM-2.01] Error 2
It's as though the mkdir is failing, as if I ls that directory, it does not exist, but if I make it manually, it works:
# ls /private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot ls: /private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot: No such file or directory # mkdir -p /private/var/tmp/perl_extras/perl_extras-35.obj/Extras- objroot/MLDBM # ls /private/var/tmp/perl_extras/perl_extras-35.obj/Extras-objroot MLDBM
Still trying,
-- Chris Nandor pudge@pobox.com http://pudge.net/ Open Source Technology Group pudge@ostg.com http://ostg.com/
At 12:53 -0700 2005.08.08, Kevin Van Vechten wrote:
At this point, you'll want to add "gzip" to the build dependencies list for perl:
dependencies = { build = ( gzip, ...
That worked, except I had to use "gnuzip", not "gzip". Although it doesn't build ... there's (apparently?) other dependencies required for the Mac::Carbon stuff to build, such as the Carbon headers in /Developer/Headers/FlatCarbon/, so I get: cc -c -pipe -no-cpp-precomp -arch ppc -arch i386 -I/Developer/Headers/FlatCarbon/ -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -fpascal-strings -Os -DVERSION=\"1.30\" -DXS_VERSION=\"1.30\" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" AppleEvents.c In file included from AppleEvents.xs:60: ../Carbon.h:58:20: Events.h: No such file or directory ../Carbon.h:59:21: Dialogs.h: No such file or directory ../Carbon.h:60:19: Files.h: No such file or directory ../Carbon.h:61:19: Types.h: No such file or directory ../Carbon.h:62:31: ConditionalMacros.h: No such file or directory -- Chris Nandor pudge@pobox.com http://pudge.net/ Open Source Technology Group pudge@ostg.com http://ostg.com/
Ah yes, since it uses Carbon, perl_extras is no longer truly a Darwin project and DarwinBuild's utility starts to diminish. Kerberos is a similar situation that was discussed earlier. I suggest editing the database again, this time to remove i386 from the target architectures, and then rebuilding with the -nochroot option. # darwinxref -b 8A428 edit environment = { ... RC_ARCHS = "ppc"; # darwinbuild -nochroot perl_extras - Kevin On Aug 8, 2005, at 2:22 PM, Chris Nandor wrote:
At 12:53 -0700 2005.08.08, Kevin Van Vechten wrote:
At this point, you'll want to add "gzip" to the build dependencies list for perl:
dependencies = { build = ( gzip, ...
That worked, except I had to use "gnuzip", not "gzip".
Although it doesn't build ... there's (apparently?) other dependencies required for the Mac::Carbon stuff to build, such as the Carbon headers in /Developer/Headers/FlatCarbon/, so I get:
cc -c -pipe -no-cpp-precomp -arch ppc -arch i386 -I/Developer/Headers/FlatCarbon/ -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -fpascal- strings -Os -DVERSION=\"1.30\" -DXS_VERSION=\"1.30\" "-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" AppleEvents.c In file included from AppleEvents.xs:60: ../Carbon.h:58:20: Events.h: No such file or directory ../Carbon.h:59:21: Dialogs.h: No such file or directory ../Carbon.h:60:19: Files.h: No such file or directory ../Carbon.h:61:19: Types.h: No such file or directory ../Carbon.h:62:31: ConditionalMacros.h: No such file or directory
-- Chris Nandor pudge@pobox.com http://pudge.net/ Open Source Technology Group pudge@ostg.com http://ostg.com/
participants (3)
-
Chris Nandor
-
Kevin Van Vechten
-
Mark Pauley