Caleb Cushing | 9 Oct 23:56

trying to build msys from source

msysCORE-1.0.11-20080826

I run

$ ./msysbld.sh
Configuring for a i686-pc-mingw32 host.
Created "Makefile" in
/c/PortableGNU/src/msysCORE-1.0.11-20080826/src/MSYS-1.0.11-20080821/build
using "mh-frag"
Configuring etc...
creating cache ../config.cache
checking for a BSD compatible install... /bin/install -c
updating cache ../config.cache
creating ./config.status
creating Makefile
make[1]: Entering directory
`/c/PortableGNU/src/msysCORE-1.0.11-20080826/src/MSYS-1.0.11-20080821/build/etc'
rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log
rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs
rm -f configdev.txt configbuild.txt configdev.eps configbuild.eps
rm -f configdev.jpg configbuild.jpg
make[1]: Leaving directory
`/c/PortableGNU/src/msysCORE-1.0.11-20080826/src/MSYS-1.0.11-20080821/build/etc'
rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
make[1]: Entering directory
`/c/PortableGNU/src/msysCORE-1.0.11-20080826/src/MSYS-1.0.11-20080821/build/etc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/c/PortableGNU/src/msysCORE-1.0.11-20080826/src/MSYS-1.0.11-20080821/build/etc'
/bin/sh ../source/mkinstalldirs
(Continue reading)

Cesar Strauss | 10 Oct 02:32

Re: trying to build msys from source

Caleb Cushing wrote:
> msysCORE-1.0.11-20080826
> 
> I run
> 
> $ ./msysbld.sh
> Configuring for a i686-pc-mingw32 host.

[...]

> ==================
> MSYS Build failed.
> ==================
> 
> not sure why it won't build or what it might be missing any help would
> be appreciated.

Sorry, I forgot to include the building instructions.

Before building MSYS, you must create an MSYS build environment.
Currently, the best resource is:

HOWTO Create an MSYS Build Environment
http://www.mingw.org/node/43

Regards,
Cesar

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
(Continue reading)

Caleb Cushing | 10 Oct 03:57

Re: trying to build msys from source

> Sorry, I forgot to include the building instructions.
>
>  Before building MSYS, you must create an MSYS build environment.
>  Currently, the best resource is:
>
>  HOWTO Create an MSYS Build Environment
>  http://www.mingw.org/node/43

ah thanks... well I have it building more healthily after that.

however now I have some actual build errors.

../../../../source/winsup/cygwin/tty.cc: In method `int
tty_list::allocate_tty(int)':
../../../../source/winsup/cygwin/tty.cc:217: implicit declaration of
function `int GetConsoleWindow(...)'
../../../../source/winsup/cygwin/tty.cc:217: assignment to `HWND__ *'
from `int' lacks a cast
make[2]: *** [tty.o] Error 1
make[2]: Leaving directory
`/c/PortableGNU/src/msysCORE-1.0.11-20080826/src/MSYS-1.0.11-20080821/build/i686-pc-msys/winsup/cygwin'
make[1]: *** [cygwin] Error 2
make[1]: Leaving directory
`/c/PortableGNU/src/msysCORE-1.0.11-20080826/src/MSYS-1.0.11-20080821/build/i686-pc-msys/winsup'
make: *** [all-target-winsup] Error 2

extra info
$ gcc -v
Reading specs from /bin/../lib/gcc-lib/i686-pc-msys/2.95.3-1/specs
gcc version 2.95.3
(Continue reading)

Cesar Strauss | 10 Oct 04:50

Re: trying to build msys from source

Caleb Cushing wrote:
>> Sorry, I forgot to include the building instructions.
>>
>>  Before building MSYS, you must create an MSYS build environment.
>>  Currently, the best resource is:
>>
>>  HOWTO Create an MSYS Build Environment
>>  http://www.mingw.org/node/43
> 
> ah thanks... well I have it building more healthily after that.
> 
> however now I have some actual build errors.
> 
> ../../../../source/winsup/cygwin/tty.cc: In method `int
> tty_list::allocate_tty(int)':
> ../../../../source/winsup/cygwin/tty.cc:217: implicit declaration of
> function `int GetConsoleWindow(...)'

[...]

Ah, yes, you must also copy the file /mingw/include/wincon.h to /include

> 
> extra info
> $ gcc -v
> Reading specs from /bin/../lib/gcc-lib/i686-pc-msys/2.95.3-1/specs
> gcc version 2.95.3
> 
> hmm.... is this supposed to be building with 2.9.5? I have 3.4.5 installed.
> 
(Continue reading)

Caleb Cushing | 10 Oct 05:14

Re: trying to build msys from source

>  Ah, yes, you must also copy the file /mingw/include/wincon.h to /include

ok that fixed that

> This version of gcc is currently required to build MSYS. It was
>  installed on /bin by the msysDVLPR package.

I find this strange. just because gcc 2.x is so old.

ok... so more errors....
./msysrlsbld: line 55: lndir: command not found

maybe I didn't copy a package right? what package is lndir supposed to be in?
--

-- 
Caleb Cushing

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Cesar Strauss | 10 Oct 11:44

Re: trying to build msys from source

Caleb Cushing wrote:
> ok... so more errors....
> ./msysrlsbld: line 55: lndir: command not found
> 
> maybe I didn't copy a package right? what package is lndir supposed to be in?

You can find it on:

MSYS Supplementary Tools
http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=67879

Look for lndir-6.8.1.0-MSYS-1.0.11-1.tar.bz2

Regards,
Cesar

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Caleb Cushing | 11 Oct 00:09

Re: trying to build msys from source

oh yay more errors... I actually had one before this about missing
autopoint and I installed
gettext-0.16.1-MSYS-1.0.11-1.tar.bz2.tar I noticed several gettext
tarballs so I'm making sure I grabbed the right one.

so it's trying to remove rm? I can't imagine why it would have issues
unless the rm that's running is trying to remove itself and that
doesn't make sense.

  DEPDIR=.deps depmode=gcc /bin/sh ../../build-aux/depcomp \
        gcc -DHAVE_CONFIG_H -I. -I../../src -I..  -I.. -I../../src
-I../../lib -I../lib   -O2 -s -fnative-struct -fgnu-linker
-finline-functions  -mcpu=pentium -c ../../src/readlink.c
gcc  -O2 -s -fnative-struct -fgnu-linker -finline-functions
-mcpu=pentium   -o readlink.exe  readlink.o ../lib/libcoreutils.a
../lib/libcoreutils.a
source='../../src/rm.c' object='rm.o' libtool=no \
        DEPDIR=.deps depmode=gcc /bin/sh ../../build-aux/depcomp \
        gcc -DHAVE_CONFIG_H -I. -I../../src -I..  -I.. -I../../src
-I../../lib -I../lib   -O2 -s -fnative-struct -fgnu-linker
-finline-functions  -mcpu=pentium -c ../../src/rm.c
rm: cannot remove `rm.exe': Permission denied
make[3]: *** [rm.exe] Error 1
make[3]: Leaving directory
`/c/PortableGNU/src/msysCORE-1.0.11-20080826/src/coreutils-5.97-MSYS-1.0.11-1/build/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/c/PortableGNU/src/msysCORE-1.0.11-20080826/src/coreutils-5.97-MSYS-1.0.11-1/build/src'

--

-- 
(Continue reading)

Brian Dessent | 11 Oct 02:44
Favicon

Re: trying to build msys from source

Caleb Cushing wrote:

> source='../../src/rm.c' object='rm.o' libtool=no \
>         DEPDIR=.deps depmode=gcc /bin/sh ../../build-aux/depcomp \
>         gcc -DHAVE_CONFIG_H -I. -I../../src -I..  -I.. -I../../src
> -I../../lib -I../lib   -O2 -s -fnative-struct -fgnu-linker
> -finline-functions  -mcpu=pentium -c ../../src/rm.c
> rm: cannot remove `rm.exe': Permission denied

The depcomp script is calling rm and it's finding the one in the current
directory instead of /bin/rm.  Take . out of your PATH.  (That MSYS
ships with . in PATH by default is a real mistake, IMHO.)

Brian

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Caleb Cushing | 12 Oct 05:41

Re: trying to build msys from source

strange... I installed autopoint earlier with gettext right... now
it's complaining I don't have it again.

installed from gettext-0.16.1-MSYS-1.0.11-1.tar.bz2.tar

autoreconf: running: autopoint --force
Can't spawn "autopoint": No such file or directory at
/usr/share/autoconf/Autom4te/FileUtils.pm line 290.
autoreconf: failed to run autopoint: No such file or director

scrolling up a little bit looks like it just successfully finished
building make. is it trying to use a non existant autopoint that maybe
it thinks just got built? I removed . from my path btw.

echo $PATH
/usr/local/bin:/bin:/mingw/bin:/local/bin:/mingw/bin:/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/Program
Files/ATI Technologies/ATI Control Panel:/c/Program
Files/Java/jdk1.6.0_07/bin

thanks for all the help. I appreciate it. I'll be sure to update the
wiki once I get it working.
--
Caleb Cushing

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
(Continue reading)

Caleb Cushing | 12 Oct 13:34

Re: trying to build msys from source

>  installed from gettext-0.16.1-MSYS-1.0.11-1.tar.bz2.tar

ok seems to be in the devel package of gettext. why there are 4 non
source packages for gettext of the same version I don't know.

another very stranger error though, which leaves me once again
clueless. why woudn't tar be able to get the cwd.

ake-3.81-MSYS-1.0.11-1/_inst/usr/bin/make.exe'
test -z "/usr/share/man/man1" || /bin/mkdir -p
"/c/PortableGNU/src/msysCORE-1.0.11-20080826/src/cpmake-3.81-MSYS-1.0.11-1/_inst/usr/share/man/man1"
 /bin/install -c -m 644
'/c/PortableGNU/src/msysCORE-1.0.11-20080826/src/cpmake-3.81-MSYS-1.0.11-1/make-3.81/make.1'
'/c/PortableGNU/src/msysCORE-1.0.11-20080826/src/cpmake-3.81-MSYS-1.0.11-1/_inst/usr/share/man/man1/make.1'
make[2]: Leaving directory
`/c/PortableGNU/src/msysCORE-1.0.11-20080826/src/cpmake-3.81-MSYS-1.0.11-1/_build'
make[1]: Leaving directory
`/c/PortableGNU/src/msysCORE-1.0.11-20080826/src/cpmake-3.81-MSYS-1.0.11-1/_build'
tar: unable to record current working directory: No such file or directory

--

-- 
Caleb Cushing

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Cesar Strauss | 12 Oct 18:44

Re: trying to build msys from source

Caleb Cushing wrote:
> `/c/PortableGNU/src/msysCORE-1.0.11-20080826/src/cpmake-3.81-MSYS-1.0.11-1/_build'
> tar: unable to record current working directory: No such file or directory

Strange. Please try upgrading the Tar tool:

MSYS Base System
http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=24963

Look for:
tar-1.19.90-MSYS-1.0.11-1-bin.tar.gz

Failing that, try upgrading the MSYS runtime with:
MSYS-1.0.11-20080821-dll.tar.gz

You could also do a full upgrade to the latest MSYS 1.0.11 snapshot:
msysCORE-1.0.11-20080826.tar.gz

Regards,
Cesar

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Caleb Cushing | 12 Oct 23:37

Re: trying to build msys from source

> Strange. Please try upgrading the Tar tool:
>
>  MSYS Base System
>  http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=24963
>
>  Look for:
>  tar-1.19.90-MSYS-1.0.11-1-bin.tar.gz
>
>  Failing that, try upgrading the MSYS runtime with:
>  MSYS-1.0.11-20080821-dll.tar.gz
>
>  You could also do a full upgrade to the latest MSYS 1.0.11 snapshot:
>  msysCORE-1.0.11-20080826.tar.gz

msysCORE-1.0.11-20080826.tar.gz includes all of the above updates
right? I'm already running it. tar shows as version 1.19.90

--

-- 
Caleb Cushing

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Cesar Strauss | 13 Oct 02:05

Re: trying to build msys from source

Caleb Cushing wrote:
> msysCORE-1.0.11-20080826.tar.gz includes all of the above updates
> right? I'm already running it. tar shows as version 1.19.90
> 
Right.

Let's disable it for the moment, it is not really needed, we can debug 
it later. For now, edit the msys-build-cpmake script in the 
src/cpmake-3.81-MSYS-1.0.11-1 directory and comment all lines after line 
151 (beginning with cd ${instdir}${PREFIX} upto cd "$savedir").

Cesar

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Caleb Cushing | 14 Oct 07:51

Re: trying to build msys from source

moving on...

patching file debian/lzma.1
*** Info: applying debian patch: 01_large_files.diff
patching file C/7zip/Compress/LZMA_Alone/makefile.gcc
Hunk #1 FAILED at 3.
1 out of 1 hunk FAILED -- saving rejects to file
C/7zip/Compress/LZMA_Alone/makefile.gcc.rej
*** ERROR: unable to apply patch!

--

-- 
Caleb Cushing

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Cesar Strauss | 14 Oct 18:45

Re: trying to build msys from source

Caleb Cushing wrote:
> moving on...
> 
> patching file debian/lzma.1
> *** Info: applying debian patch: 01_large_files.diff
> patching file C/7zip/Compress/LZMA_Alone/makefile.gcc
> Hunk #1 FAILED at 3.
> 1 out of 1 hunk FAILED -- saving rejects to file
> C/7zip/Compress/LZMA_Alone/makefile.gcc.rej
> *** ERROR: unable to apply patch!

Please temporarily replace /bin/patch.exe with the version from MSYS-1.0.10.

The MSYS LZMA source package tries to apply some patches to the original
source, but it has CRLF line terminators while the patches expect LF
only. It seems that the patch tool from MSYS-1.0.11 no longer accepts this.

Cesar

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Chris Saunders | 17 Oct 07:01
Favicon

Attempting to put MSYS together from the binary files

I have:

bash-3.1-MSYS-1.0.11-1.tar.bz2
bzip2-1.0.3-MSYS-1.0.11-1.tar.bz2
coreutils-5.97-MSYS-1.0.11-snapshot.tar.bz2
cpmake-3.81-MSYS-1.0.11-1-bin.tar.gz
csmake-3.81-MSYS-1.0.11-2.tar.bz2
diffutils-2.8.7-MSYS-1.0.11-1.tar.bz2
findutils-4.3.0-MSYS-1.0.11-3-bin.tar.gz
gawk-3.1.5-MSYS-1.0.11-1.tar.bz2
lzma-4.43-MSYS-1.0.11-1-bin.tar.gz
make-3.81-MSYS-1.0.11-2.tar.bz2
MSYS-1.0.11-20080821-dll.tar.gz
msysCORE-1.0.11-20080826.tar.gz
tar-1.19.90-MSYS-1.0.11-1-bin.tar.gz
texinfo-4.11-MSYS-1.0.11-1.tar.bz2

I have extracted each of these into its own directory so that I can tell
what's in the directory.  I'm not sure that what I have done so far makes
any sense but I'm hoping to find out what the MSYS directory structure is
supposed to look like so that I can hopefully put together a working system.
Anyone care to pitch in?

Regards
Chris Saunders

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
(Continue reading)

Cesar Strauss | 17 Oct 11:40

Re: Attempting to put MSYS together from the binary files

Chris Saunders wrote:
> I have:
> 
[...]
> msysCORE-1.0.11-20080826.tar.gz
[..]
> I have extracted each of these into its own directory so that I can tell
> what's in the directory.  I'm not sure that what I have done so far makes
> any sense but I'm hoping to find out what the MSYS directory structure is
> supposed to look like so that I can hopefully put together a working system.
> Anyone care to pitch in?
> 

You only need msysCORE-1.0.11-20080826.tar.gz. The others are only
needed if you were upgrading incrementally from an earlier 1.0.11
snapshot, and could probably be removed at some point.

To use it, run msys.bat. If you have MinGW installed, you should also
type something like:

mount c:/mingw /mingw

Regards
Cesar

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
(Continue reading)

Caleb Cushing | 19 Oct 00:13

Re: trying to build msys from source

decided to take a few days break from this.

I'm not really sure whether I'm supposed to be saying yes or no to
these questions. after reading the man page on patch I'm going to try
yes. but confirmation would be nice.

*** Info: removing pre-compiled native win32 lzma.exe from src directory
*** Info: applying debian patch: 06_sqlzma.diff
The next patch would create the file `C/7zip/Compress/LZMA_C/kmod.mk',
which already exists!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to C/7zip/Compress/LZMA_C/kmod.mk.rej
The next patch would create the file `C/7zip/Compress/LZMA_C/sqlzma.mk',
which already exists!  Assume -R? [n]

--

-- 
Caleb Cushing

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Caleb Cushing | 19 Oct 01:10

Re: trying to build msys from source

The next patch would create the file `C/7zip/Compress/LZMA_C/kmod/Makefile',
which already exists!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to
C/7zip/Compress/LZMA_C/kmod/Makefile.rej
The next patch would create the file `C/7zip/Compress/LZMA_C/kmod/module.c',
which already exists!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to
C/7zip/Compress/LZMA_C/kmod/module.c.rej
patching file `C/7zip/Compress/LZMA_Alone/comp.cc'
The next patch would create the file `C/7zip/Compress/LZMA_Alone/sqlzma.mk',
which already exists!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to
C/7zip/Compress/LZMA_Alone/sqlzma.mk.rej
*** ERROR: unable to apply patch!

I also tried going with yes... which gave me an error on the last
about expecting a file to be empty and it wasn't.

--

-- 
Caleb Cushing

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
(Continue reading)

Cesar Strauss | 19 Oct 20:06

Re: trying to build msys from source

Hello Caleb

Caleb Cushing wrote:

[...]
> The next patch would create the file `C/7zip/Compress/LZMA_Alone/sqlzma.mk',
> which already exists!  Assume -R? [n]
> Apply anyway? [n]
> Skipping patch.
> 1 out of 1 hunk ignored -- saving rejects to
> C/7zip/Compress/LZMA_Alone/sqlzma.mk.rej
> *** ERROR: unable to apply patch!

Please clean up the build directory and try again:

rm -r src/lzma-4.43-MSYS-1.0.11-1/lzma-4.43
rm -r src/lzma-4.43-MSYS-1.0.11-1/_build

Also, to avoid the next hurdle, be sure you have the following installed:

 From MSYS Supplementary Tools: regex-0.12-MSYS-1.0.11-1.tar.bz2
 From MSYS System Builder: termcap-20050421-MSYS-1.0.11-1.tar.bz2

Regards,
Cesar

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
(Continue reading)

Caleb Cushing | 19 Oct 22:28

Re: trying to build msys from source

> Please clean up the build directory and try again:
>
>  rm -r src/lzma-4.43-MSYS-1.0.11-1/lzma-4.43
>  rm -r src/lzma-4.43-MSYS-1.0.11-1/_build
>
>  Also, to avoid the next hurdle, be sure you have the following installed:
>
>   From MSYS Supplementary Tools: regex-0.12-MSYS-1.0.11-1.tar.bz2
>   From MSYS System Builder: termcap-20050421-MSYS-1.0.11-1.tar.bz2

did all that....

In file included from /usr/include/g++-3/alloc.h:18,
                 from /usr/include/g++-3/std/bastring.h:39,
                 from /usr/include/g++-3/string:6,
                 from lzmp.cpp:34:
/usr/include/g++-3/stl_config.h:151: _G_config.h: No such file or directory
make[1]: *** [lzmp.o] Error 1
make[1]: Leaving directory
`/c/PortableGNU/src/msysCORE-1.0.11-20080826/src/lzma-4.43-MSYS-1.0.11-1/_build/C/7zip/Compress/LZMA_Alone'
make: *** [lzma] Error 2

--

-- 
Caleb Cushing

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
(Continue reading)

Cesar Strauss | 20 Oct 13:57

Re: trying to build msys from source

Caleb Cushing wrote:

[...]

> /usr/include/g++-3/stl_config.h:151: _G_config.h: No such file or directory
> make[1]: *** [lzmp.o] Error 1

Please download _G_config.h from MSYS System Builder and install it in
/usr/include.

Regards,
Cesar

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Caleb Cushing | 21 Oct 17:16

Re: trying to build msys from source

now I'm getting that tar can't get cwd error for the lzma package.

--

-- 
Caleb Cushing

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Cesar Strauss | 21 Oct 17:41

Re: trying to build msys from source

Caleb Cushing wrote:
> now I'm getting that tar can't get cwd error for the lzma package.
> 
> 

For the moment, please edit the msys-build-lzma script in the
src/lzma-4.43-MSYS-1.0.11-1 directory and comment all lines after line
157 (beginning with cd ${instdir}${PREFIX} upto cd "$savedir").

Eventually, we can try to find out why Tar is failing for you.

Cesar

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Caleb Cushing | 24 Oct 21:03

Re: trying to build msys from source

#cd ${instdir}/usr
#tar cvzf ${abovedir}/${PKG}-MSYS-1.0.11-1-bin.tar.gz *
#
# --line 157
#cd ${abovedir}
#tar cvzf ./${PKG}-MSYS-1.0.11-1-src.tar.gz \
#  ${PKG}.tar.bz2 \
#  ${DEBIAN_PATCHES}.tar.bz2 \
#  ${PKG}.patch \
#  msys-build-lzma
#
#cd "$savedir"

I'm just wondering if their's some chance we don't have the same file?

--

-- 
Caleb Cushing

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Cesar Strauss | 24 Oct 21:34

Re: trying to build msys from source

Caleb Cushing wrote:
[...]
> # --line 157
[...]
> 
> I'm just wondering if their's some chance we don't have the same file?
> 
It was a typo. The correct line number to start commenting is 153, the 
way you did.

Regards,
Cesar

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Caleb Cushing | 24 Oct 22:38

Re: trying to build msys from source

sorry for list spam but I'm going to use this thread as notes for
writing documentation

tar has same tar cwd issue.

need unix2dos in mingw-utils

--

-- 
Caleb Cushing

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Keith Marshall | 25 Oct 01:33

Re: trying to build msys from source

On Friday 24 October 2008 21:38:16 Caleb Cushing wrote:
> need unix2dos in mingw-utils

IIRC, (don't use Windoze at home, so can't check till Monday):

<script name=dos2unix>
#!/bin/sh
sed -n p "$@"
</script>

<script name=unix2dos>
#!/bin/sh
sed -n p "$@" | awk '{print $0"\r"}'
</script>

will do the trick, in MSYS.

Regards,
Keith.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Caleb Cushing | 25 Oct 02:28

Re: trying to build msys from source

I got it built...

now I'm trying to understand the output of everything...

basically everything get's output to store? what's the purpose of var,
pkg, and noarch?

trying to understand it so I can put it all together into something useful.

--

-- 
Caleb Cushing

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Cesar Strauss | 25 Oct 03:27

Re: trying to build msys from source

Caleb Cushing wrote:
> I got it built...

Congratulations!

> now I'm trying to understand the output of everything...
> 
> basically everything get's output to store? what's the purpose of var,
> pkg, and noarch?
> 

Everything gets output to store/pkg. The job of the msysrls.sh script is
to take the important bits and discard the rest, creating a binary
package of the result.

The files in store/var contain the list of files to be copied, and the
noarch directory contain some extra files to be copied as well. The
selected files are assembled in depot/binary/msysCORE/1.0, forming the
directory tree of MSYS. This directory is then packed into a binary
tarball which is ready to be distributed.

Regards,
Cesar

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
(Continue reading)

John Clizbe | 25 Oct 03:39
X-Face

Re: trying to build msys from source

Caleb Cushing wrote:
> sorry for list spam but I'm going to use this thread as notes for
> writing documentation
> 
> tar has same tar cwd issue.
> 
> need unix2dos in mingw-utils
> 
If you've installed perl, which is probably a safe bet:

jpclizbe <at> yogi:~$ cat << EOF > /usr/local/bin/unix2dos
#!/usr/bin/perl -pi
s/\n/\r\n/;
EOF

jpclizbe <at> yogi:~$ cat << EOF /usr/local/bin/dos2unix
#!/usr/bin/perl -pi
s/\r\n/\n/;
EOF

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Keith Marshall | 27 Oct 17:55

Re: trying to build msys from source

On Saturday 25 October 2008 02:39:06 John Clizbe wrote:
> > need unix2dos in mingw-utils
>
> If you've installed perl, which is probably a safe bet:

I'm no perl expert, and I'm sorry to disappoint, but...

> jpclizbe <at> yogi:~$ cat << EOF > /usr/local/bin/unix2dos
> #!/usr/bin/perl -pi
> s/\n/\r\n/;
> EOF

...this doesn't work; it is broken, for any file which already has 
CRLF line endings.  Correct behaviour is to insert the missing CR 
*only* for those lines which do not already have it in place.

However, ...

> jpclizbe <at> yogi:~$ cat << EOF /usr/local/bin/dos2unix
> #!/usr/bin/perl -pi
> s/\r\n/\n/;
> EOF

...this looks like it should probably be ok.  (The `sed -n p' 
alternative, which I suggested, is also effective).

The script which I actually use is rather more sophisticated, being a 
complete emulation of Cygwin's composite unix2dos/dos2unix tool.  It 
is attached, but for reference, it does the equivalent of:

(Continue reading)


Gmane