chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Testing on OS X PPC, Intel SMP - Re: A fix for parallel


From: Toby Thain
Subject: [Chicken-users] Testing on OS X PPC, Intel SMP - Re: A fix for parallel build (gmake -j)
Date: Tue, 11 Oct 2011 21:59:21 -0400
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9.2.22) Gecko/20110902 Thunderbird/3.1.14

On 08/10/11 8:29 AM, Vitaly Magerya wrote:
Mario Domenech Goulart<address@hidden>  wrote:
Should I try to adopt the patch from ticket 526 to the latest sources
and repeat the test? I will if this will push the things forward (this
will happen tomorrow though).

I'd suggest the patch from ticket 526, since it's been tested a little
on Linux and MacOSX, AFAIK.

The patch from ticket 526 updated to the latest sources is at [1].

Building from scratch (including boot-chicken) works fine with -j8 on
my machine (FreeBSD 8.2 amd64).

Builds for me on OS X 10.6 64-bit, OS X 10.5 dual-processor G5.

make -j8 reduces the make step from 3:39 to 0:47 on my 8-core system.

However, make check does not pass on either system:



--Toby

g5:chicken-core toby$ git show
commit 6020e97b578b0276018fe7f2bd4608d477ce2bd6
Author: felix <address@hidden>
Date:   Sat Oct 8 15:09:42 2011 +0200


g5:chicken-core toby$ make PLATFORM=macosx checkmake -f ./Makefile.macosx CONFIG= check chicken build-version.scm -optimize-level 2 -include-path . -include-path ./ -inline -ignore-repository -feature chicken-bootstrap -no-warnings -specialize -types ./types.db -explicit-use -no-trace -output-file build-version.c

Warning: invalid compiler option (gnored): "-specialize"
gcc -no-cpp-precomp -fno-strict-aliasing -fwrapv -fno-common -DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -c -Os -fomit-frame-pointer -fPIC -DPIC -DC_BUILDING_LIBCHICKEN build-version.c -o build-version.o -I. -I./ gcc -dynamiclib -compatibility_version 1 -current_version 1.0 -install_name libchicken.dylib \ -o libchicken.dylib library.o eval.o data-structures.o ports.o files.o extras.o lolevel.o utils.o tcp.o srfi-1.o srfi-4.o srfi-13.o srfi-14.o srfi-18.o srfi-69.o posixunix.o irregex.o scheduler.o profiler.o stub.o expand.o modules.o chicken-syntax.o chicken-ffi-syntax.o build-version.o runtime.o apply-hack.ppc.darwin.o -lm gcc -L. chicken.o batch-driver.o compiler.o optimizer.o compiler-syntax.o scrutinizer.o unboxing.o support.o c-platform.o c-backend.o -o chicken \
          -lchicken  -lm
gcc  -L. csi.o  -o csi -lchicken  -lm
gcc  -L. csc.o  -o csc -lchicken  -lm
cd tests; sh runtests.sh
======================================== compiler tests ...
../chicken compiler-tests.scm -output-file a.c -verbose -include-path ..

Note: global variable `bla#blabla' is only locally visible and never used

Note: global variable `foo#bar' is only locally visible and never used
gcc a.c -o a.o -c -no-cpp-precomp -fno-strict-aliasing -fwrapv -fno-common -DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -Os -fomit-frame-pointer -I.. -I"/usr/local/include/chicken"
rm a.c
gcc a.o -o a.out -L.. -L"/usr/local/lib" -lchicken -lm
install_name_tool -change libchicken.dylib /usr/local/lib/libchicken.dylib a.out
rm a.o
12
12
12
12
12
bar
1 2 3
1 2 3 :1:2:3
1 2 3
Good, unrepresentable C strings cause errors
======================================== compiler tests (unboxing) ...
../chicken compiler-tests-3.scm -output-file a.c -verbose -include-path .. -unsafe -unboxing gcc a.c -o a.o -c -no-cpp-precomp -fno-strict-aliasing -fwrapv -fno-common -DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -Os -fomit-frame-pointer -I.. -I"/usr/local/include/chicken"
rm a.c
gcc a.o -o a.out -L.. -L"/usr/local/lib" -lchicken -lm
install_name_tool -change libchicken.dylib /usr/local/lib/libchicken.dylib a.out
rm a.o
======================================== compiler inlining tests  ...
../chicken inlining-tests.scm -output-file a.c -verbose -include-path .. -optimize-level 3

Warning: invalid type specification
blob->s32vector
(procedure blob->s32vector (blob) (strucrt s32vector))

Warning: invalid type specification
s32vector->blob
(procedure s32vector->blob ((structs 32vector)) blob)
gcc a.c -o a.o -c -no-cpp-precomp -fno-strict-aliasing -fwrapv -fno-common -DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -Os -fomit-frame-pointer -I.. -I"/usr/local/include/chicken"
rm a.c
gcc a.o -o a.out -L.. -L"/usr/local/lib" -lchicken -lm
install_name_tool -change libchicken.dylib /usr/local/lib/libchicken.dylib a.out
rm a.o
======================================== scrutiny tests ...
../chicken typematch-tests.scm -output-file a.c -verbose -include-path .. -specialize -no-warnings

Error: at toplevel:
no clause applies in `compiler-typecase' for expression of type `(or input-port output-port)':
    input-port

Error: shell command terminated with non-zero exit status 256: ../chicken typematch-tests.scm -output-file a.c -verbose -include-path .. -specialize -no-warnings
make[1]: *** [check] Error 1
make: *** [check] Error 2


> The tests also pass with the resulting
binaries.

Parallel installation however doesn't work; when NEEDS_RELINKING is
"yes" (which it is by default), install-bin target tries to remove
files that other targets try to install in parallel which leads to
failure. Can someone tell me what is the need for this?

[1] http://tx97.net/~magv/chicken-parallel-build-2011-10-07.diff

_______________________________________________
Chicken-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/chicken-users





reply via email to

[Prev in Thread] Current Thread [Next in Thread]