Opened 13 years ago

Closed 13 years ago

#30339 closed defect (fixed)

tokyocabinet @1.4.47 configuration errors - build failure

Reported by: macports@… Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.0.0
Keywords: Cc:
Port: tokyocabinet

Description

Using Xcode 4.2, I see this:

--->  Configuring tokyocabinet
#================================================================
# Configuring Tokyo Cabinet version 1.4.47.
#================================================================
checking for gcc... /Developer/usr/bin/llvm-gcc-4.2
checking whether the C compiler works... no
configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_tokyocabinet/tokyocabinet/work/tokyocabinet-1.4.47':
configure: error: C compiler cannot create executables
See `config.log' for more details.
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_tokyocabinet/tokyocabinet/work/tokyocabinet-1.4.47" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man --datadir=/opt/local/share/doc " returned error 77
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Warning: the following items did not execute (for tokyocabinet): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Log for tokyocabinet is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_tokyocabinet/tokyocabinet/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments (2)

main.log (9.4 KB) - added by macports@… 13 years ago.
main.log file referenced in config failure error message
config.log (7.0 KB) - added by macports@… 13 years ago.

Download all attachments as: .zip

Change History (8)

Changed 13 years ago by macports@…

Attachment: main.log added

main.log file referenced in config failure error message

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

Owner: changed from macports-tickets@… to stromnov@…

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

Can you also please attach the config.log?

Changed 13 years ago by macports@…

Attachment: config.log added

comment:3 in reply to:  2 Changed 13 years ago by macports@…

Replying to ryandesign@…:

Can you also please attach the config.log?

Done.

comment:4 Changed 13 years ago by jmroot (Joshua Root)

cc1: error: /Users/joni/include: Permission denied

Where would that be coming from? It's not in the command line the configure script runs or the environment that MP sets.

comment:5 in reply to:  4 Changed 13 years ago by macports@…

Replying to jmr@…:

cc1: error: /Users/joni/include: Permission denied

Where would that be coming from? It's not in the command line the configure script runs or the environment that MP sets.

I really don't know! I saw it too and was confused.

Here's my environment:

10:38:29 c57f ~% env
PATH=/Users/joni/Scratch/clojure/leiningen/bin:/Users/joni/Scratch/scala/scala-2.9.0.1/bin:/Users/joni/Scratch/Android/android-sdk-mac_86/tools:/Users/joni/Bin:/opt/local/lib/mysql5/bin:/opt/local/lib/postgresql90/bin:/usr/local/bin:/usr/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin
TMPDIR=/var/folders/g3/vlgv4cms5rl_zjl5cyz388540000gn/T/
SHELL=/opt/local/bin/zsh
HOME=/Users/joni
USER=joni
LOGNAME=joni
SCALA_HOME=/Users/joni/Scratch/scala/scala-2.8.1.final
DISPLAY=/tmp/launch-6Tlyuc/org.x:0
SSH_AUTH_SOCK=/tmp/launch-kQN9co/Listeners
Apple_PubSub_Socket_Render=/tmp/launch-8zsVwt/Render
COMMAND_MODE=unix2003
__CF_USER_TEXT_ENCODING=0x1F5:0:0
TERM_PROGRAM=Apple_Terminal
TERM_PROGRAM_VERSION=297
TERM_SESSION_ID=57330419-F0CE-4425-89AE-48C059FB9450
LANG=en_CA.UTF-8
TERM=xterm-color
SHLVL=1
PWD=/Users/joni
OLDPWD=/Users/joni
LESS=-rqFX
VISUAL=vim
EDITOR=vim
SVNROOT=/Users/joni/Scratch/OMalley/svn/trunk
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
JDK_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
GFLOGDIR=/Users/joni/Scratch/gf2.1/glassfish/domains/domain1/logs
ANDROID_HOME=/Users/joni/Scratch/Android/android-sdk-mac_86
LS_COLORS=no=00:fi=00:di=01;34:ln=01;37:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:tw=01;34:ow=01;34:ex=01;31:*.tar=01;30:*.tgz=01;30:*.arj=01;30:*.taz=01;30:*.lzh=01;30:*.zip=01;30:*.z=01;30:*.Z=01;30:*.gz=01;30:*.bz2=01;30:*.deb=01;30:*.rpm=01;30:*.jar=01;30:*.dmg=01;30:*.jpg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.png=01;35:*.mpg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.pl=00;33:*.PL=00;33:*.pm=00;33:*.tt=00;33:*.yml=00;33:*.sql=00;33:*.html=00;33:*.css=00;33:*.js=00;33:*.rb=00;31:
vcs_info_msg_0_=
vcs_info_msg_1_=%~
_=/usr/bin/env

I tried it with a stripped down PATH (took out everything before /usr/local/bin above), got the same error.

comment:6 Changed 13 years ago by stromnov (Andrey Stromnov)

Resolution: fixed
Status: newclosed

Fixed in r81104.

PS. There's two bugs:

  1. Hardcoded paths in the configure script ($HOME/include, $HOME/libs)
  2. llvm-gcc42 (in some rare cases) doesn't accept forbidden dirs in -I and -L switches
Note: See TracTickets for help on using tickets.