Opened 13 years ago
Closed 13 years ago
#34153 closed defect (invalid)
ghostscript: C compiler cannot create executables
Reported by: | lightoml@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.4 |
Keywords: | Cc: | ||
Port: | ghostscript |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
Hi,
I updated outdated which failed with below error message. Can anybody point out the error of my ways?
Thanks,
Chang-Seong
:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-pipe -O2 -arch x86_64' CPPFLAGS='-isystem/opt/local/include' CXXFLAGS='-pipe -O2 -arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.7' CXX='/usr/bin/llvm-g++-4.2' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_ghostscript/ghostscript/work/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64' OBJC='/usr/bin/clang' FCFLAGS='-pipe -O2 -m64' GI_SCANNER_DISABLE_CACHE='1' INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -O2 -arch x86_64' FFLAGS='-pipe -O2 -m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/clang' :debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostscript-9.05" && ./configure --prefix=/opt/local --disable-compile-inits --disable-cups --disable-gtk --without-luratech --with-system-libtiff' :debug:configure Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostscript-9.05" && ./configure --prefix=/opt/local --disable-compile-inits --disable-cups --disable-gtk --without-luratech --with-system-libtiff :info:configure checking for gcc... /usr/bin/clang :info:configure checking whether the C compiler works... no :info:configure configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostscript-9.05': :info:configure configure: error: C compiler cannot create executables :info:configure See `config.log' for more details :info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostscript-9.05" && ./configure --prefix=/opt/local --disable-compile-inits --disable-cups --disable-gtk --without-luratech --with-system-libtiff " returned error 77 :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 ghostscript): org.macports.install org.macports.configure org.macports.build org.macports.destroot :notice:configure Log for ghostscript is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_ghostscript/ghostscript/main.log
Attachments (3)
Change History (7)
Changed 13 years ago by lightoml@…
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Keywords: | selfupdate ghostscript-9.05 removed |
Port: | ghostscript added |
Summary: | Self update failure related to the ghostscript-9.05 → ghostscript: C compiler cannot create executables |
The output you pasted above shows:
:info:configure configure: error: C compiler cannot create executables :info:configure See `config.log' for more details
So I'd check the config.log for more details. Also read this FAQ entry.
comment:2 Changed 13 years ago by lightoml@…
I attached the config.log file. Please take a look at it. Thanks!
comment:3 Changed 13 years ago by lightoml@…
There was no clang in /usr/bin. So I make a link like below.
sudo ln -s /Developer/usr/bin/clang /usr/bin/clang
Then tried it agian. But other error message is shown like the below. Can anyone help me? Thanks!
configure:2647: checking for gcc configure:2674: result: /usr/bin/clang configure:2903: checking for C compiler version configure:2912: /usr/bin/clang --version >&5 Apple clang version 3.0 (tags/Apple/clang-211.12) (based on LLVM 3.0svn) Target: x86_64-apple-darwin11.3.0 Thread model: posix configure:2923: $? = 0 configure:2912: /usr/bin/clang -v >&5 Apple clang version 3.0 (tags/Apple/clang-211.12) (based on LLVM 3.0svn) Target: x86_64-apple-darwin11.3.0 Thread model: posix configure:2923: $? = 0 configure:2912: /usr/bin/clang -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files configure:2923: $? = 1 configure:2912: /usr/bin/clang -qversion >&5 clang: error: no input files configure:2923: $? = 1 configure:2943: checking whether the C compiler works configure:2965: /usr/bin/clang -pipe -O2 -arch x86_64 -isystem/opt/local/include -L/opt/local/lib -arch x86_64 conftest.c >&5 ld: library not found for -lcrt1.10.6.o clang: error: linker command failed with exit code 1 (use -v to see invocation) configure:2969: $? = 1 configure:3007: result: no configure: failed program was:
Changed 13 years ago by lightoml@…
Attachment: | config.2.log added |
---|
config file for ghostscript-9.05 after making link for clang in /usr/bin
comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
As per the FAQ entry I already referred you to, I don't believe your Xcode is installed properly. Please reinstall Xcode; ask on the macports-users mailing list if you need help doing so.
error log