Summary
csc -c++ produces executables that hang under Mac OS X
Metadata
- Id: 65cf65cf8cb05ed2c3379c246cd234ce777a2c5e
- Trac id: 781
- Type: defect
- Reporter: iraikov
- Owner: iraikov
- Cc:
- Status: closed
- Component: build system
- Estimated difficulty:
- Resolution: invalid
- Priority: major
- Milestone:
- Version: 4.7.x
- Changetime: 2012-06-01 09:19:45 UTC
- Created: 2012-01-27 08:31:11 UTC
- Keywords:
Description
It appears that compiling programs under Mac OS X with csc -c++ produces executables that hang when run. dtruss shows the following output, over and over:
sigprocmask(0x1, 0x0, 0x7FFF6A635BB0) = 0x0 0 sigaltstack(0x0, 0x7FFF6A635BA0, 0x0) = 0 0 sigprocmask(0x3, 0x7FFF6A635BB0, 0x0) = 0x0 0 sigreturn(0x0, 0x80000000, 0x0) = 0 0
Changes and comments
[2012-01-30 08:49:11 UTC] felix changed status from new to assigned
[2012-01-30 08:49:11 UTC] felix set owner to felix
[2012-01-30 08:49:11 UTC] felix wrote:
Ivan, can you tell me where exactly it hangs? Does the compilation fail, or the execution of the compiled test programs? In the former case you can modify the test-script and add "-verbose -debug p" to the `csc` invocations.
[2012-01-30 13:05:27 UTC] iraikov wrote:
It seems that any program compiled with csc -c++ hangs when it is run, so I am changing the description of this issue. To be clear, compilation succeeds (produces an executable) but the executable hands when it is run.
Replying to felix: > Ivan, can you tell me where exactly it hangs? Does the compilation fail, or the execution of the compiled test programs? In the former case you can modify the test-script and add "-verbose -debug p" to the `csc` invocations.
[2012-01-30 13:07:12 UTC] iraikov changed description
[2012-01-30 13:07:12 UTC] iraikov changed summary
[2012-01-30 13:09:00 UTC] iraikov changed description
[2012-02-19 15:59:01 UTC] zbigniew wrote:
Maybe it's using clang or llvm-gcc. Symptom: running executable with -:d shows a stack at 0x0. If so, try latest stability or master.
[2012-02-19 15:59:01 UTC] zbigniew changed owner from felix to iraikov
[2012-02-20 03:32:51 UTC] iraikov wrote:
Running the executable with -:d gives the following output:
[[debug]|] application startup... [[debug]|] heap resized to 500000 bytes [[debug]|] stack bottom is 0x7fff68e23be0. [[debug]|] entering toplevel toplevel... [[debug]|] entering toplevel toplevel... last line repeats forever
But it is true that while this instance of Chicken is built with C_COMPILER=gcc-4.2, I am not setting the variable CXX_COMPILER. I will try the latest master with llvm-gcc, thanks for your work on this.
[2012-05-04 09:03:47 UTC] felix changed component from compiler to build system
[2012-05-04 09:03:47 UTC] felix removed milestone 4.8.0
[2012-05-04 09:03:47 UTC] felix wrote:
This seems to me more an issue with the Mac OS build tools. I postpone this, unless someone objects.