Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 286980 - building realpath while trying to emerge clisp fails
Summary: building realpath while trying to emerge clisp fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 OS X
: High major
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-29 21:34 UTC by steve
Modified: 2009-10-15 18:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description steve 2009-09-29 21:34:02 UTC
After successfully setting up portage on my OS X (snow leopard) laptop I tried to emerge clisp and the 9th package in the list of dependancies realpath fails to build. Here is the list of things being built:

<emerge list>
[lambda: Gentoo]$ emerge -a clisp

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-lisp/cl-asdf-1.89 
[ebuild  N    ] dev-libs/libsigsegv-2.6 
[ebuild  N    ] dev-libs/ffcall-1.10-r2 
[ebuild  N    ] dev-libs/libiconv-1.13.1 
[ebuild  N    ] dev-libs/libpcre-7.9-r1  USE="cxx (unicode) zlib -bzip2 -doc -static-libs" 
[ebuild  N    ] dev-libs/libxml2-2.7.4-r1  USE="readline -debug -doc -examples -ipv6 -python -test" 
[ebuild  N    ] virtual/libiconv-0 
[ebuild  N    ] sys-devel/gettext-0.17  USE="(-acl) -doc -emacs -nls -nocxx -openmp" 
[ebuild  N    ] virtual/libintl-0 
[ebuild  N    ] app-admin/realpath-1.15  USE="-nls" 
[ebuild  N    ] dev-lisp/common-lisp-controller-5.13-r1 
[ebuild  N    ] dev-lisp/cl-asdf-binary-locations-20061018 
[ebuild  N    ] dev-lisp/gentoo-init-0.1 
[ebuild  N    ] dev-lisp/clisp-2.48  USE="pcre readline unicode zlib -X -dbus -fastcgi -gdbm -gtk -hyperspec -new-clx -pari -postgres -svm" 

Would you like to merge these packages? [Yes/No] Yes
</emerge list>


Here is the build error:
<build>
>>> Emerging (10 of 14) app-admin/realpath-1.15
 * realpath_1.15.tar.gz RMD160 SHA1 SHA256 size ;-) ...                  [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
>>> Unpacking source...
>>> Unpacking realpath_1.15.tar.gz to /Users/steves/Library/Gentoo/var/tmp/portage/app-admin/realpath-1.15/work
>>> Source unpacked in /Users/steves/Library/Gentoo/var/tmp/portage/app-admin/realpath-1.15/work
>>> Preparing source in /Users/steves/Library/Gentoo/var/tmp/portage/app-admin/realpath-1.15/work/realpath-1.15 ...
 * Applying realpath-1.14-build.patch ...                                 [ ok ]
 * Applying realpath-1.14-no-po4a.patch ...                               [ ok ]
 * Applying realpath-1.14-prefix.patch ...                                [ ok ]
 * Adjusting to prefix
 *   common.mk ...                                                        [ ok ]
>>> Source prepared.
>>> Configuring source in /Users/steves/Library/Gentoo/var/tmp/portage/app-admin/realpath-1.15/work/realpath-1.15 ...
>>> Source configured.
>>> Compiling source in /Users/steves/Library/Gentoo/var/tmp/portage/app-admin/realpath-1.15/work/realpath-1.15 ...
make VERSION=1.15 'SUBDIRS=src man ' 
** Making ./src/_build ...
** Compiling _build/realpath.o ...
** Linking _build/realpath ...
collect2: ld terminated with signal 11 [Segmentation fault]
Undefined symbols:
  "_libintl_textdomain", referenced from:
      _main in realpath.o
  "_libintl_bindtextdomain", referenced from:
      _main in realpath.o
  "_libintl_gettext", referenced from:
      _show_usage in realpath.o
      _main in realpath.o
      _main in realpath.o
      _main in realpath.o
      _main in realpath.o
make[1]: *** [_build/realpath] Error 1
make: *** [all] Error 2
 * ERROR: app-admin/realpath-1.15 failed:
 *   emake failed
 * 
 * Call stack:
 *               ebuild.sh:  51: <call call-ebuildshell 'src_compile'>
 *             environment: 285: <call src_compile>
 *             environment:2341:     emake VERSION="${PV}" SUBDIRS="src man $(use nls && echo po)" || die "emake failed"
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.

>>> Failed to emerge app-admin/realpath-1.15, Log file:

>>>  '/Users/steves/Library/Gentoo/var/tmp/portage/app-admin/realpath-1.15/temp/build.log'

 * Messages for package dev-libs/libiconv-1.13.1:

 * correcting install_name from /Users/steves/Library/Gentoo/usr/lib/libiconv.2.dylib to /Users/steves/Library/Gentoo/lib/libiconv.2.dylib in /Users/steves/Library/Gentoo/usr/bin/iconv

 * Messages for package dev-libs/libpcre-7.9-r1:

 * This version of libpcre has stopped installing .la files. This may
 * cause compilation failures in other packages. To fix this problem,
 * install dev-util/lafilefixer and run:
 * lafilefixer --justfixit
 * correcting install_name from /Users/steves/Library/Gentoo/usr/lib/libpcre.0.dylib to /Users/steves/Library/Gentoo/lib/libpcre.0.dylib in /Users/steves/Library/Gentoo/usr/bin/pcregrep
 * correcting install_name from /Users/steves/Library/Gentoo/usr/lib/libpcre.0.dylib to /Users/steves/Library/Gentoo/lib/libpcre.0.dylib in /Users/steves/Library/Gentoo/usr/bin/pcretest
 * correcting install_name from /Users/steves/Library/Gentoo/usr/lib/libpcre.0.dylib to /Users/steves/Library/Gentoo/lib/libpcre.0.dylib in /Users/steves/Library/Gentoo/usr/lib/libpcrecpp.0.0.0.dylib
 * correcting install_name from /Users/steves/Library/Gentoo/usr/lib/libpcre.0.dylib to /Users/steves/Library/Gentoo/lib/libpcre.0.dylib in /Users/steves/Library/Gentoo/usr/lib/libpcreposix.0.0.0.dylib

 * Messages for package app-admin/realpath-1.15:

 * ERROR: app-admin/realpath-1.15 failed:
 *   emake failed
 * 
 * Call stack:
 *               ebuild.sh:  51: <call call-ebuildshell 'src_compile'>
 *             environment: 285: <call src_compile>
 *             environment:2341:     emake VERSION="${PV}" SUBDIRS="src man $(use nls && echo po)" || die "emake failed"
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.

 * GNU info directory index is up-to-date.
[lambda: Gentoo]$ 
</build>



Reproducible: Always

Steps to Reproduce:
1. emerge -a clisp
2.
3.

Actual Results:  
realpath fails to build

Expected Results:  
realpath builds successfully

I am using a current gen 13" Macbook pro

specs from system profiler:
Hardware Overview:

  Model Name:   MacBook Pro
  Model Identifier:     MacBookPro5,5
  Processor Name:       Intel Core 2 Duo
  Processor Speed:      2.26 GHz
  Number Of Processors: 1
  Total Number Of Cores:        2
  L2 Cache:     3 MB
  Memory:       4 GB
  Bus Speed:    1.07 GHz
  Boot ROM Version:     MBP55.00AC.B03
  SMC Version (system): 1.47f2
  Serial Number (system):       W8933U2666D
  Hardware UUID:        65F059BC-FC7C-5D19-9503-2D70BE5182DC
  Sudden Motion Sensor:
  State:        Enabled

<make.conf>
CFLAGS="-O2 -pipe -march=nocona"
CXXFLAGS="${CFLAGS}"
</make.conf>

It is probably worth noting that I did NOT set my CHOST for a 64 bits native
prefix.

If there is anything that would be helpful please let me know.
Comment 1 steve 2009-09-30 13:27:41 UTC
Since this was a linking error I thought I would post some information about 'ld'
<ld info>
[lambda: Gentoo]$ /Users/steves/Library/Gentoo/usr/bin/ld -v
@(#)PROGRAM:ld  PROJECT:ld64-85.2.1 (Gentoo binutils-apple-3.2)
Library search paths:
	/Users/steves/Library/Gentoo/usr/i686-apple-darwin10/lib/gcc
	/Users/steves/Library/Gentoo/usr/i686-apple-darwin10/lib
	/Users/steves/Library/Gentoo/usr/lib
	/Users/steves/Library/Gentoo/lib
	/usr/lib
	/usr/local/lib
Framework search paths:
	/Library/Frameworks/
	/System/Library/Frameworks/
ld warning: -arch not specified
ld: no object files specified for inferred architecture i386
</ld info>

But while I was trying to get that info I noticed ld likes to Segfault often.

[lambda: Gentoo]$ ~/Library/Gentoo/usr/bin/ld --version
Segmentation fault

Should I close this bug and re-open a new bug for binutils/ld?

Also adding emerge --info (because the parenthesis told me to)
ystem uname: Darwin-10.0.0-i386-32bit
Timestamp of tree: Wed, 30 Sep 2009 12:50:49 +0000
distcc 2.18.5-Apple.1 i386-apple-darwin10.0 (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     4.0_p33
dev-lang/python:     2.6.2-r2
sys-devel/autoconf:  2.63-r01.1
sys-devel/automake:  1.10.2-r00.1, 1.11
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.6a-r00.1
ACCEPT_KEYWORDS="~x86-macos"
CBUILD="i686-apple-darwin10"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="i686-apple-darwin10"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/terminfo"
CPPFLAGS="-I/Users/steves/Library/Gentoo/usr/include"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/Users/steves/Library/Gentoo/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-search_paths_first -L/Users/steves/Library/Gentoo/usr/lib -L/Users/steves/Library/Gentoo/lib"
PKGDIR="/Users/steves/Library/Gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/Users/steves/Library/Gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/Users/steves/Library/Gentoo/var/tmp"
PORTDIR="/Users/steves/Library/Gentoo/usr/portage"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="aqua coreaudio cracklib mmx mmxext modules ncurses objc objc++ prefix readline sse sse2 ssl x86-macos zlib" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Fabian Groffen gentoo-dev 2009-10-15 18:50:47 UTC
-lintl is just missing on the linkline
Comment 3 Fabian Groffen gentoo-dev 2009-10-15 18:57:08 UTC
Problem found, nls handling was not really correct in this case.  Thanks.