Re: [racket-dev] Racket head fails to compile
On 20/02/14 14:19, Matthew Flatt wrote: At Sun, 09 Feb 2014 08:35:03 +, Paulo J. Matos wrote: On 09/02/14 00:03, Matthew Flatt wrote: There should be many more flags passed to `gcc`, including some -I flags and some -D flags. Is something in your environment overriding the CFLAGS definition in the makefile? Normally, a definition in the makefile would take precedence over an environment variable, but maybe something else is taking precedence over the definition? Doh, right. I assumed for no good reason racket would behave the same way my usual project does and use env CFLAGS as the optimization flags used for compilation. Any other env variable the racket build system uses for me to add additional compilation flags? (for example to build with `-O2 -ftree-vectorize` or `-O0 -g3`) After some thought shouldn't -D... and -I... flags be controlled by CPPFLAGS and not CFLAGS such that overriding CFLAGS would still leave CPPFLAGS intact? I've changed the makefiles so that setting CFLAGS (or CPPFLAGS) will hopefully work the way you expect. By the way Matthew, this is now working as I expected it to. Thanks. -- PMatos _ Racket Developers list: http://lists.racket-lang.org/dev
Re: [racket-dev] Racket head fails to compile
On 20/02/14 14:19, Matthew Flatt wrote: At Sun, 09 Feb 2014 08:35:03 +, Paulo J. Matos wrote: On 09/02/14 00:03, Matthew Flatt wrote: There should be many more flags passed to `gcc`, including some -I flags and some -D flags. Is something in your environment overriding the CFLAGS definition in the makefile? Normally, a definition in the makefile would take precedence over an environment variable, but maybe something else is taking precedence over the definition? Doh, right. I assumed for no good reason racket would behave the same way my usual project does and use env CFLAGS as the optimization flags used for compilation. Any other env variable the racket build system uses for me to add additional compilation flags? (for example to build with `-O2 -ftree-vectorize` or `-O0 -g3`) After some thought shouldn't -D... and -I... flags be controlled by CPPFLAGS and not CFLAGS such that overriding CFLAGS would still leave CPPFLAGS intact? I've changed the makefiles so that setting CFLAGS (or CPPFLAGS) will hopefully work the way you expect. I might have spoken too soon: make[7]: Entering directory `/home/pmatos/projects/BUILDS/racket/foreign' gcc -O3 -Wall -Werror -c ../../../racket/racket/src/foreign/foreign.c -o foreign.o ../../../racket/racket/src/foreign/foreign.c:9:21: fatal error: schpriv.h: No such file or directory #include schpriv.h When compiling foreign with CFLAGS=-O3 -Wall -Werror, the include paths disappear. -- PMatos _ Racket Developers list: http://lists.racket-lang.org/dev
Re: [racket-dev] Racket head fails to compile
At Wed, 12 Mar 2014 20:37:14 +, Paulo Matos wrote: make[7]: Entering directory `/home/pmatos/projects/BUILDS/racket/foreign' gcc -O3 -Wall -Werror -c ../../../racket/racket/src/foreign/foreign.c -o foreign.o ../../../racket/racket/src/foreign/foreign.c:9:21: fatal error: schpriv.h: No such file or directory #include schpriv.h When compiling foreign with CFLAGS=-O3 -Wall -Werror, the include paths disappear. I missed a makefile; repair pushed. _ Racket Developers list: http://lists.racket-lang.org/dev
Re: [racket-dev] Racket head fails to compile
On 20/02/14 14:19, Matthew Flatt wrote: At Sun, 09 Feb 2014 08:35:03 +, Paulo J. Matos wrote: On 09/02/14 00:03, Matthew Flatt wrote: There should be many more flags passed to `gcc`, including some -I flags and some -D flags. Is something in your environment overriding the CFLAGS definition in the makefile? Normally, a definition in the makefile would take precedence over an environment variable, but maybe something else is taking precedence over the definition? Doh, right. I assumed for no good reason racket would behave the same way my usual project does and use env CFLAGS as the optimization flags used for compilation. Any other env variable the racket build system uses for me to add additional compilation flags? (for example to build with `-O2 -ftree-vectorize` or `-O0 -g3`) After some thought shouldn't -D... and -I... flags be controlled by CPPFLAGS and not CFLAGS such that overriding CFLAGS would still leave CPPFLAGS intact? I've changed the makefiles so that setting CFLAGS (or CPPFLAGS) will hopefully work the way you expect. Thanks for the fix. I will give it a try. -- PMatos _ Racket Developers list: http://lists.racket-lang.org/dev
Re: [racket-dev] Racket head fails to compile
At Sun, 09 Feb 2014 08:35:03 +, Paulo J. Matos wrote: On 09/02/14 00:03, Matthew Flatt wrote: There should be many more flags passed to `gcc`, including some -I flags and some -D flags. Is something in your environment overriding the CFLAGS definition in the makefile? Normally, a definition in the makefile would take precedence over an environment variable, but maybe something else is taking precedence over the definition? Doh, right. I assumed for no good reason racket would behave the same way my usual project does and use env CFLAGS as the optimization flags used for compilation. Any other env variable the racket build system uses for me to add additional compilation flags? (for example to build with `-O2 -ftree-vectorize` or `-O0 -g3`) After some thought shouldn't -D... and -I... flags be controlled by CPPFLAGS and not CFLAGS such that overriding CFLAGS would still leave CPPFLAGS intact? I've changed the makefiles so that setting CFLAGS (or CPPFLAGS) will hopefully work the way you expect. _ Racket Developers list: http://lists.racket-lang.org/dev
Re: [racket-dev] Racket head fails to compile
On 09/02/14 00:03, Matthew Flatt wrote: There should be many more flags passed to `gcc`, including some -I flags and some -D flags. Is something in your environment overriding the CFLAGS definition in the makefile? Normally, a definition in the makefile would take precedence over an environment variable, but maybe something else is taking precedence over the definition? Doh, right. I assumed for no good reason racket would behave the same way my usual project does and use env CFLAGS as the optimization flags used for compilation. Any other env variable the racket build system uses for me to add additional compilation flags? (for example to build with `-O2 -ftree-vectorize` or `-O0 -g3`) After some thought shouldn't -D... and -I... flags be controlled by CPPFLAGS and not CFLAGS such that overriding CFLAGS would still leave CPPFLAGS intact? -- PMatos _ Racket Developers list: http://lists.racket-lang.org/dev
[racket-dev] Racket head fails to compile
Hello, If I grab racket HEAD and try to compile it with: git clone ... racket.git cd racket/racket/src mkdir build cd build ../configure --prefix=... make -j16 I get: make[6]: Entering directory `/home/pmatos/work/racket/racket/src/build/racket/gc' gcc -O0 -g3 -c ../../../racket/gc/alloc.c gcc -O0 -g3 -c ../../../racket/gc/reclaim.c gcc -O0 -g3 -c ../../../racket/gc/allchblk.c ../../../racket/gc/alloc.c:19:30: fatal error: private/gc_priv.h: No such file or directory # include private/gc_priv.h gc/ has an include/private directory so I would have expected the command line to gcc to be something like: gcc -O0 -g3 -c ../../../racket/gc/alloc.c -Iinclude/ Also, when I try simply: make I get: make[6]: Entering directory `/home/pmatos/work/racket/racket/src/build/racket/gc' rm -f mach_dep.o ./if_mach SPARC SOLARIS gcc -c -o mach_dep2.o ../../../racket/gc/sparc_mach_dep.S make[6]: ./if_mach: Command not found make[6]: *** [mach_dep.o] Error 127 The if_mach script exists in racket/gc but not in the build/racket/gc so I guess somewhere there needs to be a copy of the script onto the build directory. I am curious how you guys usually do the build if not like this... -- PMatos _ Racket Developers list: http://lists.racket-lang.org/dev
Re: [racket-dev] Racket head fails to compile
There should be many more flags passed to `gcc`, including some -I flags and some -D flags. Is something in your environment overriding the CFLAGS definition in the makefile? Normally, a definition in the makefile would take precedence over an environment variable, but maybe something else is taking precedence over the definition? At Sat, 08 Feb 2014 21:46:37 +, Paulo J. Matos wrote: Hello, If I grab racket HEAD and try to compile it with: git clone ... racket.git cd racket/racket/src mkdir build cd build ../configure --prefix=... make -j16 I get: make[6]: Entering directory `/home/pmatos/work/racket/racket/src/build/racket/gc' gcc -O0 -g3 -c ../../../racket/gc/alloc.c gcc -O0 -g3 -c ../../../racket/gc/reclaim.c gcc -O0 -g3 -c ../../../racket/gc/allchblk.c ../../../racket/gc/alloc.c:19:30: fatal error: private/gc_priv.h: No such file or directory # include private/gc_priv.h gc/ has an include/private directory so I would have expected the command line to gcc to be something like: gcc -O0 -g3 -c ../../../racket/gc/alloc.c -Iinclude/ Also, when I try simply: make I get: make[6]: Entering directory `/home/pmatos/work/racket/racket/src/build/racket/gc' rm -f mach_dep.o ./if_mach SPARC SOLARIS gcc -c -o mach_dep2.o ../../../racket/gc/sparc_mach_dep.S make[6]: ./if_mach: Command not found make[6]: *** [mach_dep.o] Error 127 The if_mach script exists in racket/gc but not in the build/racket/gc so I guess somewhere there needs to be a copy of the script onto the build directory. I am curious how you guys usually do the build if not like this... -- PMatos _ Racket Developers list: http://lists.racket-lang.org/dev _ Racket Developers list: http://lists.racket-lang.org/dev