Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#31492 closed defect (fixed)

inkscape: gcc >= 3.0 is needed to compile inkscape

Reported by: fbartolom@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: clang Cc: su-v
Port: inkscape

Description (last modified by ryandesign (Ryan Carsten Schmidt))

When I try to upgrade or reinstall Inkscape I get the following error:

$ sudo port install inkscape
Warning: No port atlas found in the index.
--->  Computing dependencies for py26-numpy
--->  Cleaning py26-numpy
--->  Computing dependencies for inkscape
--->  Configuring inkscape
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Log for inkscape is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_inkscape/inkscape/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

While the log file reports:

:info:configure checking GNU compiler version... 
:info:configure configure: error: gcc >= 3.0 is needed to compile inkscape
:info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_inkscape/inkscape/work/inkscape-0.48.2" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man --with-xft --with-gnome-vfs --with-python --enable-lcms --enable-poppler-cairo " returned error 1
:error:configure Target org.macports.configure returned: configure failure: shell command failed (see log for details)
:debug:configure Backtrace: configure failure: shell command failed (see log for details)
    while executing
"$procedure $targetname"
:info:configure Warning: the following items did not execute (for inkscape): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:configure Log for inkscape is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_inkscape/inkscape/main.log

Attachments (1)

patch-inscape-Portfile.diff (364 bytes) - added by dbevans (David B. Evans) 13 years ago.
Patch to use llvm-gcc-4.2 instead of clang

Download all attachments as: .zip

Change History (9)

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

Description: modified (diff)
Keywords: Inkscape gcc removed
Owner: changed from macports-tickets@… to devans@…
Port: inkscape added; Inkscape removed
Summary: Inkscape does not installinkscape: gcc >= 3.0 is needed to compile inkscape

Please remember to use WikiFormatting and to Cc the maintainer of the affected port.

What version of Xcode is installed? Try reinstalling the latest version of Xcode for your OS version.

comment:2 Changed 13 years ago by takanori@…

I confirmed this problem on Xcode 4.2 GM/Lion.

So I guess the original reporter was using clang 3.0 as a compiler.

$ clang --version
Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.1.0
Thread model: posix

comment:3 Changed 13 years ago by dbevans (David B. Evans)

Status: newassigned

comment:4 Changed 13 years ago by dbevans (David B. Evans)

Although I don't have Lion installed, I was able to confirm the problem on XCode 4.1/SL as well by setting

configure.compiler clang

The gcc version check in configure fails, not because the clang version is 3.0 or less (2.1 in XCode 4.1) but because the check is looking for a line with the string 'gcc version' in the output of 'clang -v' which it never finds. This sets results in the extracted major version being set to 0.

I tried disabling this check in the case where clang is the compiler and configure completed successfully, but the build phase fails miserably using clang.

Attached is a patch for the port file that sets the compiler to llvm-gcc-4.2 if the selected compiler is clang. This works for me but needs to be tested on Lion.

Please let me know if this works on Lion or if not what modifications to make.

Thanks

Changed 13 years ago by dbevans (David B. Evans)

Attachment: patch-inscape-Portfile.diff added

Patch to use llvm-gcc-4.2 instead of clang

comment:5 Changed 13 years ago by takanori@…

Patch to use llvm-gcc-4.2 instead of clang

It works fine on Xcode 4.2/Lion. :-)

comment:6 Changed 13 years ago by dbevans (David B. Evans)

Keywords: clang added
Resolution: fixed
Status: assignedclosed

Fix committed in r85061, thanks.

comment:7 in reply to:  4 Changed 13 years ago by su-v

Replying to devans@…:

I tried disabling this check in the case where clang is the compiler and configure completed successfully, but the build phase fails miserably using clang.

Upstream ticket filed:
Bug 992124 “RFE: clang support”

comment:8 Changed 13 years ago by su-v

Cc: suv-sf@… added

Cc Me!

Note: See TracTickets for help on using tickets.