Re: make and gmake on FreeBSD

2007-07-27 Thread Dima Sorkin
Hi.
 See below.

 Lots of software sources are configured with GNU autotools, which is why
 a lot of third party software will only compile with GNU make. In the
 case of dealii, not only are its sources configured with autotools, but
 I looked at their docs and at http://www.dealii.org/developer/index.html
 you can plainly see that they use GNU make, version 3.78 or later.

 I'm not sure where the confusion is ... but it seems like you think you
   have to invoke GNU make under the moniker 'make'. But you don't, it's
 just a Linux convention to have GNU make installed as 'make'.


 The root of confusion is not in FreeBSD :) but in my thinking.
I totally forgot about the existence of BSD make untill it came
back to me:
 During installation of ATLAS some shell script or C program calls
'make' by the name make, and I totally forgot it can be not the 'make'
I called the build process with.
After I was explained about it (by ATLAS people), everything went just fine.

Thanks,
  Dima.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: make and gmake on FreeBSD

2007-07-27 Thread Reid Linnemann

Written by Dima Sorkin on 07/26/07 16:37

Hi.
Thank you very much. See below.
Regards, Dima.

On 7/27/07, Nikola Lecic  wrote:


No, make (BSD make) is a part of FreeBSD, gmake (GNU make) is a
third-party application, available through devel/gmake port.
They _are_ different.

Yes, I forgot there was an alias. See at the bottom of the message.


 and only with gmake I succeed to build serious projects.

This is very interesting observation, could you expand on this?


Well, I don't want to make claims without basis, as it is based only
on my memories :).
I so completely switched to gmake during the winter that I even forgot
I have an alias.

I didn't succeeded to compile projects from my univ studies, but I
afraid I use all those gnu extensions. I _think_ I didn't succeeded to
compile the DEAL.II lib without gmake.
These are projects that don't use the recursive make paradigm, at 
least not in

all places. They -include makefiles from lower hierarchies, but I
afraid gnu extension
sit there in every place. Not shure, though ...


[EMAIL PROTECTED] /usr/home/dsorkin]$ /usr/bin/make --version
make: illegal option -- -
usage: make [-BPSXeiknqrstv] [-C directory] [-D variable]
   [-d flags] [-E variable] [-f makefile] [-I directory]
   [-j max_jobs] [-m directory] [-V variable]
   [variable=value] [target ...]
[EMAIL PROTECTED] /usr/home/dsorkin]$ alias make
alias make='gmake'
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]


Lots of software sources are configured with GNU autotools, which is why 
a lot of third party software will only compile with GNU make. In the 
case of dealii, not only are its sources configured with autotools, but 
I looked at their docs and at http://www.dealii.org/developer/index.html 
you can plainly see that they use GNU make, version 3.78 or later.


I'm not sure where the confusion is ... but it seems like you think you 
 have to invoke GNU make under the moniker 'make'. But you don't, it's 
just a Linux convention to have GNU make installed as 'make'.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


make and gmake on FreeBSD

2007-07-26 Thread Dima Sorkin

Hi.
I have a FreeBSD 6.2, installed it from the distribution disks, no
changes by me.

There is a make and a gmake installed on it. They report that they
are the same programm, but in fact they behave completely different.
In fact only gmake behaves
like GNU make should behave and only with gmake
I succeed to build serious projects.

What happens here ?  What I the make, where did it come from ?

How do I cause to system make behave as gmake ?

Thanks, regards,
Dima.

P.S.  see their output:
[EMAIL PROTECTED] /usr/home/dsorkin]$ make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-portbld-freebsd6.2
[EMAIL PROTECTED] /usr/home/dsorkin]$ gmake --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-portbld-freebsd6.2
[EMAIL PROTECTED] /usr/home/dsorkin]$ which make
/usr/bin/make
[EMAIL PROTECTED] /usr/home/dsorkin]$ which gmake
/usr/local/bin/gmake
[EMAIL PROTECTED] /usr/home/dsorkin]$ diff /usr/bin/make /usr/local/bin/gmake
Binary files /usr/bin/make and /usr/local/bin/gmake differ
[EMAIL PROTECTED] /usr/home/dsorkin]$
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: make and gmake on FreeBSD

2007-07-26 Thread Dima Sorkin

Hi.
Thank you very much. See below.
Regards, Dima.

On 7/27/07, Nikola Lecic  wrote:


No, make (BSD make) is a part of FreeBSD, gmake (GNU make) is a
third-party application, available through devel/gmake port.
They _are_ different.

Yes, I forgot there was an alias. See at the bottom of the message.


 and only with gmake I succeed to build serious projects.

This is very interesting observation, could you expand on this?


Well, I don't want to make claims without basis, as it is based only
on my memories :).
I so completely switched to gmake during the winter that I even forgot
I have an alias.

I didn't succeeded to compile projects from my univ studies, but I
afraid I use all those gnu extensions. I _think_ I didn't succeeded to
compile the DEAL.II lib without gmake.
These are projects that don't use the recursive make paradigm, at least not in
all places. They -include makefiles from lower hierarchies, but I
afraid gnu extension
sit there in every place. Not shure, though ...


[EMAIL PROTECTED] /usr/home/dsorkin]$ /usr/bin/make --version
make: illegal option -- -
usage: make [-BPSXeiknqrstv] [-C directory] [-D variable]
   [-d flags] [-E variable] [-f makefile] [-I directory]
   [-j max_jobs] [-m directory] [-V variable]
   [variable=value] [target ...]
[EMAIL PROTECTED] /usr/home/dsorkin]$ alias make
alias make='gmake'
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: make and gmake on FreeBSD

2007-07-26 Thread Yuri Pankov
On Thu, Jul 26, 2007 at 11:26:28PM +0300, Dima Sorkin wrote:
 Hi.
 I have a FreeBSD 6.2, installed it from the distribution disks, no
 changes by me.

 There is a make and a gmake installed on it. They report that they
 are the same programm, but in fact they behave completely different.
 In fact only gmake behaves
 like GNU make should behave and only with gmake
 I succeed to build serious projects.

 What happens here ?  What I the make, where did it come from ?

 How do I cause to system make behave as gmake ?

 Thanks, regards,
 Dima.

 P.S.  see their output:
 [EMAIL PROTECTED] /usr/home/dsorkin]$ make --version
 GNU Make 3.81
 Copyright (C) 2006  Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.
 There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
 PARTICULAR PURPOSE.

 This program built for i386-portbld-freebsd6.2
 [EMAIL PROTECTED] /usr/home/dsorkin]$ gmake --version
 GNU Make 3.81
 Copyright (C) 2006  Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.
 There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
 PARTICULAR PURPOSE.

 This program built for i386-portbld-freebsd6.2
 [EMAIL PROTECTED] /usr/home/dsorkin]$ which make
 /usr/bin/make
 [EMAIL PROTECTED] /usr/home/dsorkin]$ which gmake
 /usr/local/bin/gmake
 [EMAIL PROTECTED] /usr/home/dsorkin]$ diff /usr/bin/make /usr/local/bin/gmake
 Binary files /usr/bin/make and /usr/local/bin/gmake differ
 [EMAIL PROTECTED] /usr/home/dsorkin]$

Don't you have shell alias make - gmake, by chance? Try running system
make using full path.


Yuri


pgp3hWCkTbnCg.pgp
Description: PGP signature


Re: make and gmake on FreeBSD

2007-07-26 Thread Nikola Lecic
Hello,

On Thu, 26 Jul 2007 23:26:28 +0300
Dima Sorkin [EMAIL PROTECTED] wrote:

 Hi.
  I have a FreeBSD 6.2, installed it from the distribution disks, no
 changes by me.
 
 There is a make and a gmake installed on it.

No, make (BSD make) is a part of FreeBSD, gmake (GNU make) is a
third-party application, available through devel/gmake port.

 They report that they are the same programm, but in fact they behave
 completely different.

They _are_ different.

 In fact only gmake behaves like GNU make should behave

gmake = GNU make.

 and only with gmake I succeed to build serious projects.

This is very interesting observation, could you expand on this?

  What happens here ?  What I the make, where did it come from ?

Nothing, it happens that you installed FreeBSD. The better question is
where GNU make came from :)

 How do I cause to system make behave as gmake ?

Why would you like to do it?

 P.S.  see their output:
 [EMAIL PROTECTED] /usr/home/dsorkin]$ make --version
 GNU Make 3.81
 Copyright (C) 2006  Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.
 There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
 PARTICULAR PURPOSE.

This is not default behaviour in FreeBSD.
 
Nikola Lečić
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: make and gmake on FreeBSD

2007-07-26 Thread Andrew Falanga

On 7/26/07, Dima Sorkin [EMAIL PROTECTED] wrote:

Hi.
 I have a FreeBSD 6.2, installed it from the distribution disks, no
changes by me.

There is a make and a gmake installed on it. They report that they
are the same programm, but in fact they behave completely different.
In fact only gmake behaves
like GNU make should behave and only with gmake
I succeed to build serious projects.

 What happens here ?  What I the make, where did it come from ?

How do I cause to system make behave as gmake ?

Thanks, regards,
 Dima.

P.S.  see their output:
[EMAIL PROTECTED] /usr/home/dsorkin]$ make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-portbld-freebsd6.2
[EMAIL PROTECTED] /usr/home/dsorkin]$ gmake --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.


make is BSD make, gmake is GNU make (hence the reason it behaves like
GNU make :-).  Others from this list can give you a more in-depth
discussion of the differences.  It's odd that you get the same results
as shown above.  BSD make doesn't have a --version option.  I would
suspect you have an alias, or something similar, setup to link make
to gmake.

I've used gmake extensively for my projects, but never BSD make.  I
believe that BSD make is the version use by many of the ports
packages, and most definitely by the system build environment.  Please
note that many of the ports use gmake as well.

Andy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]