Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <803EBA39C2C5D211BCEE00805F85C0A5C885D1@mailhost> From: "Boyer,Galen" To: "'dony'" , "Boyer,Galen" Cc: "'cygwin AT sourceware DOT cygnus DOT com'" Subject: RE: Making GCC 2.95.2 Problems Date: Tue, 22 Feb 2000 08:22:06 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01BF7D37.D0BF27C8" ------_=_NextPart_000_01BF7D37.D0BF27C8 Content-Type: text/plain; charset="iso-8859-1" I am sorry. The link I referenced was from Earnie Boyd that I got from this group a while back. I spent a decent amount of time there in trying to set up my directory structure and mounting the drives. I followed the links at http://sourceware.cygnus.com/cygwin/ to download gcc 2.95 and the available instruction for setting this up for doing the configuring and making of gcc. Earnie's page had a "good starting point" for my directory structure, but nothing directly related to gcc. I was pretty sure that I didn't have my directories mounted correctly. I wasn't trying anything fancy and the gcc stuff wasn't working. I was trusting that the gcc stuff would work if I followed their instructions, so I was guessing that Cygnus was getting confused with how I had set up my environment. For Dony, the text file attached is Earnie's page that I was referencing. I also spent a good amount of time in http://sourceware.cygnus.com/cygwin/cygwin-ug-net/cygwin-ug-net.html, which you can follow links to from Earnie's page. This is the Cygwin's users guide. Very informative as well. Maybe I am not reading enough or putting the correct readings together? -----Original Message----- From: dony [mailto:dony DOT he AT huawei DOT com DOT cn] Sent: Tuesday, February 22, 2000 2:49 AM To: Boyer,Galen Subject: Re: Making GCC 2.95.2 Problems Hello, I cannot visit http://www.freeyellow.com/members5/gw32/GettingStarted.html Can you download this page and mail a copy to me, please? I will follow this page to build my gcc tools. Thanks very much. dony "Boyer,Galen" wrote: > I downloaded the gcc-2.95.2.tar.bz2, unzipped it into a "src" dir underneath > my "local" dir. My mounting looks like this: > > c:\cygnus\cygwin-b20\etc /etc native text!=binary > d: /d native text!=binary > c: /c native text!=binary > c:\cygnus\cygwin-b20\usr\bin /bin native text!=binary > c:\cygnus\cygwin-b20 / native text!=binary > > The src dir is underneath c:\cygnus\cygwin-b20\usr\local. The full src is > c:\cygnus\cygwin-b20\usr\local\src\gcc\gcc-2.95.2 (I hope I followed the > base directions from the > http://www.freeyellow.com/members5/gw32/GettingStarted.html correctly. I > sure spent a lot of time trying to understand what I was trying to do) > > My operating system is NT. > > >From local, I executed "/src/gcc/gcc-2.95.2/configure" which was successful. > Therefore, from local again, I then executed "make bootstrap" and got back > the error: > > /c: Can't open /c > make: *** [all-libiberty] Error 2 > > Then for a hacking try, I umounted /c and ran the command again. I got this > error: > > make: *** No rule to make target > `/c/cygnus/cygwin-b20/usr/local/src/gcc/gcc-2.95.2/gcc/version.c', needed by > `Makefile'. Stop. > > This one doesn't seem to be a viable option because after umounting /c, the > "/src/gcc/gcc-2.95.2/configure" command brings back "bash.exe: > src/gcc/gcc-2.95.2/configure: No such file or directory". (I am not exactly > sure why this is, but I'm guessing Cygnus resolves relative paths to their > fully qualified paths?) > > So, I am stuck. How can I make the gcc executable from this point? I have > a sneaking suspicion that I am missing something in how I am mounting and I > know that I am still a bit unsure of exactly how cygnus reads the mounted > directory stuctures, and this is causing issues when I am trying to > configure and make, but hopefully someone here would know what I am doing > wrong. > > I have attached the makefile from configure and also a log of the configure > command if that might be helpful (The configure has my mounting structure at > the top. I realized that I might need to let you guys know how that was > configured, and I was mounting, umounting and configuring quite a bit to try > to understand what might have been going on) > > I would greatly appreciate this. I am knew to java coding, but have used > gcc and gdb for c-programming before and would like to be able to integrate > the compiler/debugger for java. > > <> <> > > ------------------------------------------------------------------------ > Name: Makefile > Makefile Type: unspecified type (application/octet-stream) > Encoding: quoted-printable > > Name: configure.log > configure.log Type: LOG Îļþ (application/x-unknown-content-type-log_auto_file) > Encoding: quoted-printable > > ------------------------------------------------------------------------ > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com ------_=_NextPart_000_01BF7D37.D0BF27C8 Content-Type: application/octet-stream; name="GW32 - Getting Started With Cygwin.htm" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="GW32 - Getting Started With Cygwin.htm" GW32 - Getting Started With Cygwin
 =20
Last updated: = 1999.11.06

Here is a set of pointers very useful in getting started. = Please refer=20 to these before posting to the = cygwin AT sourceware DOT cygnus DOT com=20 mail list.=20
DOCUMENTATION: http://sourceware= .cygnus.com/cygwin/docs.html
DLL = HELP:=20 http://w= ww.xraylith.wisc.edu/~khan/software/gnu-win32/
ARCHIVE SEARCH:=20 http://sourceware.cygnu= s.com/ml/cygwin/
http://www.delorie.com/arc= hives/=20
http://www.eGroups.c= om/list/gnu-win32/=20




Get = this updated=20 cygwin1.dll

Ok. You've downloaded full.exe or usertools.exe = from http://sourceware.cygnus.c= om/cygwin/or=20 a related mirror and you want to know what to do next. First let = me say=20 that you'll avoid a lot of errors if you download the cygwin1-19990115= .dll.gz=20 at this location http://sourcewar= e.cygnus.com/cygwin/snapshots/or=20 a related mirror and overlay the cygwin1.dll (MORE=20 INFO) with this version. You really want to do = this if=20 you're using WIN95 or WIN98 as it fixes a lot of problems related = to these=20 OSes. You really want to do this in order to fix = problems=20 related to specifying processing modes for files with open/fopen. = Let me=20 emphasis it again You really want to download and install = cygwin1-19= 990115.dll.gz=20 !!=20


Why = not download=20 the most current snapshot?

The 19990115 snapshot is recognized as a stable = snapshot.=20 More recent snapshots may not even run. The snapshots are made = available=20 for developers who must live on the bleeding edge. There are a = lot of=20 changes in the current snapshots that are for a future release = and some of=20 these changes fix a lot of problems. However, the snapshots are = alpha=20 versions that haven't even been tested. If you're uncomfortable, = or not=20 familiar with administering product revisions including a backout = plan=20 then don't download the snapshots.=20


What to download=20 to try the most current snapshot?

If you're not concerned with development or you = consider=20 yourself just a "user" of Cygwin and you wish to try a recent = snapshot=20 then you will need the cygwin-inst-YYYYMMDD.tar.gz just prior to = the=20 cygwin1-YYYYMMDD.dll.gz file you plan to get. The cygwin-inst = tarball=20 contains a cygwin1.dll so there will be no need to get the = cygwin1.dll=20 zipped file if they both tarballs were created on the same date. = The=20 cygwin-inst tarball contains the installed version of Cygwin = specific=20 binaries, headers and libraries which you'll need for building = you=20 programs against in the event of incompatibility in releases.=20

If you want to help with the development of Cygwin or just = look at the=20 Cygwin's coding for educational purposes then you need to = download these=20 most recent tarballs: cygwin-inst, cygwin-src and winsup-src. = Note that if=20 cygwin-src and winsup-src have the same date, you only need the = cygwin-src=20 as the winsup-src is contained in the cygwin-src tarball.=20


Why = the=20 complicated directory structure?

The cygwin package directory structure is provided = to aid=20 the developers who are responsible for more than one package to = keep the=20 packages in order. This on the other hand isn't very user = friendly and it=20 will be of benefit for you to take a look at the suggestions = listed below=20 for setting up your directory structure. However, before looking = at the=20 examples you need to understand the cygwin = mount=20 command, so please = click=20 here for a definition.
Suggestion = 1:=20 Good getting started layout
Suggestion = 2:=20 Dual Structure: cygwin and mingw32


Important to=20 mount

It is important to mount the other devices you = might be=20 using with the cygwin package. It is also important but not = necessary to=20 have mount points for all directories you mount. E.G.: Assuming = that you=20 have installed the cygwin package on drive C:, you are using the = default=20 C:\ for / and you also want to use drives D:, E: and M: it is = advised that=20 you do the following (I'm executing from MSDOS):
mkdir = c:\d
mount=20 d:\ /d
mkdir c:\e
mount e:\ /e
mkdir c:\m
mount m:\ = /m

This is done in order to aid the resolution of devices. Some = packages=20 don't understand the default //d/pathname for example that will = be used by=20 cygwin if the device isn't mounted. It seems that the // portion = of the=20 path confuses some packages. Mounting the device name will cause = cygwin to=20 report the path as /d/pathname and remove the confusion.

CAUTION: The more mount points you add the more time it takes = to=20 resolve the pathnames.=20


Important=20 environment variables

There are several environment variables that should = be set=20 before starting bash. Most of these are set in the cygwin.bat = file that=20 comes with then package; but, if you choose to change them you = should be=20 aware of there existance.=20
CYGWIN The = CYGWIN=20 environment variable is used to control switchable = modes/methods of=20 processing within the cygwin1.dll itself. See the = documentation for=20 a list of available settings.
HOME On = UNIX the HOME=20 environment variable is set by the startup process. Since = we're=20 emulating UNIX the HOME variable must be set = manually. I=20 typically will do one of two things for the HOME = environment=20 variable: 1) SET HOME=3D/home 2) SET=20 HOME=3D/Winnt/Profiles/MyUserId
MAKE_MODE The = MAKE_MODE=20 environment variable controls the MAKE program in how it = handles=20 paths. If it is not set to the value UNIX (case = insensitive) then=20 the paths are treated as MSDOS/WIN32 style paths, I.E.=20 C:\THIS\IS\A\PATH is considered a path and a ; character is = used to=20 separate paths. If it is set to the value of UNIX then the = paths are=20 treated as POSIX style paths, I.E. /c/this/is/a/path is = considered a=20 path and the : character is used to separate=20 paths.



=