Opened 13 years ago

Closed 13 years ago

#33756 closed defect (fixed)

arb: clang from Xcode 4.3.1 crashes

Reported by: matt.cottrell@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: clang haspatch maintainer Cc:
Port: arb

Description

The attached portfile diff now sets llvm-gcc-4.2 as the compiler for the arb port. The version of clang (Apple clang version 3.1) supplied with Xcode 4.3.1 crashes while building arb.

Also, the attached patch-ARB-makefile.diff fixes some problems with graphics libraries that I have now finally gotten around to fixing.

Attachments (3)

Portfile-arb.diff (1.1 KB) - added by matt.cottrell@… 13 years ago.
Now sets llvm-gcc-4.2 as the compiler
patch-ARB-makefile.diff (3.5 KB) - added by matt.cottrell@… 13 years ago.
Solves graphics library problems
patch-ARB-makefile.2.diff (3.4 KB) - added by matt.cottrell@… 13 years ago.
Resolves problem with patch not applying

Download all attachments as: .zip

Change History (8)

Changed 13 years ago by matt.cottrell@…

Attachment: Portfile-arb.diff added

Now sets llvm-gcc-4.2 as the compiler

Changed 13 years ago by matt.cottrell@…

Attachment: patch-ARB-makefile.diff added

Solves graphics library problems

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch maintainer added; crash removed
Summary: clang compiler crashes with arb port and Xcode 4.3.1arb: clang from Xcode 4.3.1 crashes

The new patch does not apply:

--->  Applying /Users/rschmidt/macports/dports/science/arb/files/patch-ARB-makefile.diff
DEBUG: Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_arb/arb/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6' GI_SCANNER_DISABLE_CACHE='1'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_arb/arb/work/arbsrc_8210" && /usr/bin/patch -p0'
DEBUG: Executing command line:  cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_arb/arb/work/arbsrc_8210" && /usr/bin/patch -p0 < '/Users/rschmidt/macports/dports/science/arb/files/patch-ARB-makefile.diff'
patching file Makefile
Hunk #3 FAILED at 191.
Hunk #4 FAILED at 203.
Hunk #5 FAILED at 237.
Hunk #6 FAILED at 254.
Hunk #7 FAILED at 320.
5 out of 8 hunks FAILED -- saving rejects to file Makefile.rej

Is the clang crash something you have already reported to Apple? Is the problem still present in Xcode 4.3.2?

Changed 13 years ago by matt.cottrell@…

Attachment: patch-ARB-makefile.2.diff added

Resolves problem with patch not applying

comment:2 Changed 13 years ago by matt.cottrell@…

The problem still remains with Xcode 4.3.2. I have not reported this to Apple yet, but I will. The focus has been on an immediate fix because I am receiving many messages from arb users who are unable to install arb.

comment:3 Changed 13 years ago by matt.cottrell@…

I am working with the upstream developer to determine if this is a problem with the arb source or Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn).

The key error appears to be:

GEP is not of right type for indices!

Have not found a solution to that one yet.

On the other hand, the solution to the error

warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated

is easy and we have made those adjustments by adding

-x c++

where necessary.

In the mean time, I would very much like to use llvm-gcc-4.2 to compile arb now. That works. We are working on sorting out the clang errors.

comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.