You are not logged in.

#1 2009-08-27 12:39:48

warped
Member
Registered: 2009-08-19
Posts: 41

Static glibc for minimyth build environment (again)

Hi *

I'm wonder what is targeted/expected Arch community attitude for extending Arch with new packages.

Generally I have feeling that Arch is first Linux distro almost ideally answering my needs, priorities and way to achieve them.

Above attributes were direct reason leading me to switch my home server to Arch and attempt to move my dev environment also to Arch.

Here unfortunately I meet issue which blocking me with moving forward: lack of some packages - namely static glibc.

For reasons by which I need such package pls see:
http://bbs.archlinux.org/viewtopic.php?id=78822 and
http://bbs.archlinux.org/viewtopic.php?id=78343

Unfortunately no any allowing me to move forward, answer was provided, so basically I'm forced to leave Arch as my dev environment.
Before giving up, I decided to give it last chance as I really like Arch - thats why I'm writing this post.

Pls, don't get me wrong: Arch distro and  Arch community are really great and I don't want to be poor guy crying "I need package, give me package, help me...."
On the other hand - my experience leading me to impression that Arch forums where I originally posted are in entushiasm/priding phase and  not successfully addressing cases like my case.

So I'm in deciding phase: if community will help me - I will stay with Arch, if not - I will cry and leave Arch (wich will be really sad form me)

 
br

Offline

#2 2009-08-27 12:51:34

majiq
Member
Registered: 2009-03-06
Posts: 259

Re: Static glibc for minimyth build environment (again)

If you need a static glibc, like it was said in your second link, you really ought to compile it yourself. Post what your PKGBUILD was for trying to compile it statically, and what your /etc/makepkg.conf is. Chances are, though you changed the LDFLAGS, the standard compilation flags for gcc (as stated in makepkg.conf) conflicted with that.

Also, just so you know, it seems like you're doing it wrong. In the three days between your two posts on the second thread, you offered no new information and no indication that you've been struggling to figure it out. Those go a long way in the ArchLinux-I-Need-Help-Please-Please-Please sector, even if it's just spinning your wheels. Just sitting around and waiting for someone to help is generally going to be unfruitful. You should continue trying to solve the problem and post any results that you get.

Offline

#3 2009-08-27 13:08:19

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Static glibc for minimyth build environment (again)

Nothing to discuss about Arch, this is a personal problem, not a flaw of the distro you're using at the moment smile. As such, I am moving this to where it belongs: among the other technical problems.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#4 2009-08-27 13:11:04

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: Static glibc for minimyth build environment (again)

Firstly, go somewhere else if another distro is more suited to your needs.  We just do not care...

Compiling statically to glibc is highly discouraged so Arch does not support it.  If you want, build a glibc-static package (probably just adding extra compiler/linker flags, maybe --enable-static???).   You seem to be the only person wanting it so it is going to be up to you to try and figure out.

Offline

#5 2009-08-27 14:25:14

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: Static glibc for minimyth build environment (again)

Oh, nm.

Last edited by Gen2ly (2009-08-27 14:48:46)


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#6 2009-08-27 17:58:32

warped
Member
Registered: 2009-08-19
Posts: 41

Re: Static glibc for minimyth build environment (again)

majiq wrote:

If you need a static glibc, like it was said in your second link, you really ought to compile it yourself. Post what your PKGBUILD was for trying to compile it statically, and what your /etc/makepkg.conf is. Chances are, though you changed the LDFLAGS, the standard compilation flags for gcc (as stated in makepkg.conf) conflicted with that.

@majiq

So nice that finally somebody is trying to help...
Pls find used: PKGBUILD and makepkg.conf
Basically PKGBUILD is from standard package with added export LDFLAGS="-static".
makepkg.conf is untouched.

PKGBUILD:

# $Id: PKGBUILD 45050 2009-07-06 19:50:59Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Maintainer: Allan McRae <allan@archlinux.org>

# toolchain build order: kernel-headers->glibc->binutils->gcc-libs->gcc->binutils->glibc

pkgname=glibc
pkgver=2.10.1
pkgrel=4
_glibcdate=20090511
install=glibc.install
backup=(etc/locale.gen
    etc/nscd.conf)
pkgdesc="GNU C Library"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL')
url="http://www.gnu.org/software/libc"
groups=('base')
depends=('kernel-headers>=2.6.30.1' 'tzdata')
makedepends=('gcc>=4.4')
replaces=('glibc-xen')
source=(ftp://ftp.archlinux.org/other/glibc/${pkgname}-${pkgver}_${_glibcdate}.tar.bz2
    glibc-2.10-dont-build-timezone.patch
    glibc-2.10-bz4781.patch
    nscd
    locale.gen.txt
    locale-gen)
md5sums=('7a34595abeeedb9aab758aa51d09ed88'
         '4dadb9203b69a3210d53514bb46f41c3'
         '0c5540efc51c0b93996c51b57a8540ae'
         'b587ee3a70c9b3713099295609afde49'
         '07ac979b6ab5eeb778d55f041529d623'
         '476e9113489f93b348b21e144b6a8fcf')

build() {

  # for git checkout
  #mkdir ${srcdir}/glibc-${pkgver}_${_glibcdate}
  #cd ${srcdir}/glibc-${pkgver}_${_glibcdate}
  #git clone git://sourceware.org/git/glibc.git
  #pushd glibc
  #git checkout --track -b glibc-${pkgver} origin/cvs/glibc-2_10-branch
  #popd
  #tar -cvjf ${startdir}/glibc-${pkgver}_${_glibcdate}.tar.bz2 glibc/*
  #return 1

  cd ${srcdir}/glibc

  # timezone data is in separate package (tzdata)
  patch -Np1 -i ${srcdir}/glibc-2.10-dont-build-timezone.patch || return 1

  # http://sources.redhat.com/bugzilla/show_bug.cgi?id=4781
  patch -Np1 -i ${srcdir}/glibc-2.10-bz4781.patch || return 1

  install -dm755 ${pkgdir}/etc
  touch ${pkgdir}/etc/ld.so.conf

  mkdir glibc-build
  cd glibc-build

  if [ "${CARCH}" = "i686" ]; then
    # Hack to fix NPTL issues with Xen, only required on 32bit platforms
    export CFLAGS="${CFLAGS} -mno-tls-direct-seg-refs"
  fi

  export LDFLAGS="-static"

  echo "slibdir=/lib" >> configparms

  ../configure --prefix=/usr \
      --enable-add-ons=nptl,libidn --without-cvs \
      --enable-kernel=2.6.18 --disable-profile \
      --with-headers=/usr/include --libexecdir=/usr/lib \
      --enable-bind-now --with-tls --with-__thread \
      --libdir=/usr/lib --without-gd
              
  make || return 1
  make install_root=${pkgdir} install || return 1

  rm -f ${pkgdir}/etc/ld.so.cache ${pkgdir}/etc/ld.so.conf ${pkgdir}/etc/localtime

  install -dm755 ${pkgdir}/etc/rc.d
  install -dm755 ${pkgdir}/usr/sbin
  install -dm755 ${pkgdir}/usr/lib/locale
  install -m644 ${srcdir}/glibc/nscd/nscd.conf ${pkgdir}/etc/nscd.conf
  install -m755 ${srcdir}/nscd ${pkgdir}/etc/rc.d/nscd
  install -m755 ${srcdir}/locale-gen ${pkgdir}/usr/sbin

  sed -i -e 's/^\tserver-user/#\tserver-user/' ${pkgdir}/etc/nscd.conf || return 1

  # create /etc/locale.gen
  install -m644 ${srcdir}/locale.gen.txt ${pkgdir}/etc/locale.gen
  sed -i "s|/| |g" ${srcdir}/glibc/localedata/SUPPORTED
  sed -i 's|\\| |g' ${srcdir}/glibc/localedata/SUPPORTED
  sed -i "s|SUPPORTED-LOCALES=||" ${srcdir}/glibc/localedata/SUPPORTED
  cat ${srcdir}/glibc/localedata/SUPPORTED >> ${pkgdir}/etc/locale.gen
  sed -i "s|^|#|g" ${pkgdir}/etc/locale.gen

  if [ "${CARCH}" = "x86_64" ]; then
    # fix for the linker
    sed -i '/RTLDLIST/s%/ld-linux.so.2 /lib64%%' ${pkgdir}/usr/bin/ldd
    #Comply with multilib binaries, they look for the linker in /lib64
    mkdir ${pkgdir}/lib64
    cd ${pkgdir}/lib64
    ln -v -s ../lib/ld* .
  fi

  rm -f ${pkgdir}/usr/share/info/dir
  gzip -9 ${pkgdir}/usr/share/info/*
}

makepkg.conf:

#
# /etc/makepkg.conf
#

#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
#  Format: 'protocol::agent'
DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
          'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
          'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
          'rsync::/usr/bin/rsync -z %u %o'
          'scp::/usr/bin/scp -C %u %o')

# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/curl

#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="i686"
CHOST="i686-pc-linux-gnu"

#-- Exclusive: will only run on i686
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CFLAGS="-march=i686 -mtune=generic -O2 -pipe"
CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe"
#LDFLAGS=""
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"

#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Defaults: BUILDENV=(fakeroot !distcc color !ccache)
#  A negated environment option will do the opposite of the comments below.
#
#-- fakeroot: Allow building packages as a non-root user
#-- distcc:   Use the Distributed C/C++/ObjC compiler
#-- color:    Colorize output messages
#-- ccache:   Use ccache to cache compilation
#
BUILDENV=(fakeroot !distcc color !ccache)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""

#########################################################################
# GLOBAL PACKAGE OPTIONS
#   These are default values for the options=() settings
#########################################################################
#
# Default: OPTIONS=(strip docs libtool emptydirs zipman purge)
#  A negated option will do the opposite of the comments below.
#
#-- strip:     Strip symbols from binaries/libraries in STRIP_DIRS
#-- docs:      Save doc directories specified by DOC_DIRS
#-- libtool:   Leave libtool (.la) files in packages
#-- emptydirs: Leave empty directories in packages
#-- zipman:    Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge:     Remove files specified by PURGE_TARGETS
#
OPTIONS=(strip docs libtool emptydirs zipman purge)

#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
INTEGRITY_CHECK=(md5)
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Directories to be searched for the strip option (if strip is specified)
STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)

#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <john@doe.com>"

#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
# WARNING: Do NOT modify these variables unless you know what you are
#          doing.
#
PKGEXT='.pkg.tar.gz'
SRCEXT='.src.tar.gz'

Reported error is:

/usr/bin/ld: attempted static link of dynamic object `/mome/piotro/abs/glibc/src/glibc/glibc-build/libc.so.6`

br

Offline

#7 2009-08-27 19:29:27

gnud
Member
Registered: 2005-11-27
Posts: 182

Re: Static glibc for minimyth build environment (again)

I just have  a quick question:
What library can't you link statically against?

I have a simple c program using these libraries:

        linux-gate.so.1 =>  (0xb7fc2000)
        libc.so.6 => /lib/libc.so.6 (0xb7e5a000)
        /lib/ld-linux.so.2 (0xb7fc3000)

I can re-link the object files with -static. The library grows 500Kb in size, it still works, and ldd reports "not a dynamic object".

Could you find out what library caused your original error message (in the post you linked to)?

Offline

#8 2009-08-27 20:16:18

warped
Member
Registered: 2009-08-19
Posts: 41

Re: Static glibc for minimyth build environment (again)

@gnud

Thx for replay.
I'm not programmer, so forgive me maybe incorrect answer...
I want to use Arch as build environment for minimyth (small distro for diskless myth client).
minimyth is build in cross-compilation environment.
At cross-compile enviroment preparation stage, gcc for compiling target gcc compiler is build. Target gcc compiler is used for building target minimyth.
I'm not sure, but I believe gcc used for building target gcc is statically linked with host glibc. It is probably safer, easier and minimizes incompatibilities.

Below is log from my minimyth build process. This log (and replay of Pablo at http://www.minimyth.org/forum/viewtopic.php?f=14&t=2392) leads me to conclussion that my Arch is missing static glibc.

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ .//../../../work/build_build.d/gcc-4.4.0/configure --prefix=/home/piotro/Desktop/minimyth-dev/images/build/usr --exec_prefix=/home/piotro/Desktop/minimyth-dev/images/build/usr --bindir=/home/piotro/Desktop/minimyth-dev/images/build/usr/bin --sbindir=/home/piotro/Desktop/minimyth-dev/images/build/usr/sbin --libexecdir=/home/piotro/Desktop/minimyth-dev/images/build/usr/libexec --datadir=/home/piotro/Desktop/minimyth-dev/images/build/usr/share --sysconfdir=/home/piotro/Desktop/minimyth-dev/images/build/etc --sharedstatedir=/home/piotro/Desktop/minimyth-dev/images/build/usr/share --localstatedir=/home/piotro/Desktop/minimyth-dev/images/build/var --libdir=/home/piotro/Desktop/minimyth-dev/images/build/usr/lib --infodir=/home/piotro/Desktop/minimyth-dev/images/build/usr/info --includedir=/home/piotro/Desktop/minimyth-dev/images/build/usr/include --oldincludedir=/home/piotro/Desktop/minimyth-dev/images/build/usr/include --mandir=/home/piotro/Desktop/minimyth-dev/images/build/usr/share/man --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-gnu-as --with-gnu-ld --with-local-prefix=/home/piotro/Desktop/minimyth-dev/images/build/usr --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --enable-libgomp --disable-libmudflap --disable-multilib --enable-nls --enable-shared --enable-threads=posix --enable-version-specific-runtime-libs --with-mpfr-include=//home/piotro/Desktop/minimyth-dev/images/build/usr/include --with-mpfr-lib=//home/piotro/Desktop/minimyth-dev/images/build/usr/lib --with-gmp-include=//home/piotro/Desktop/minimyth-dev/images/build/usr/include --with-gmp-lib=//home/piotro/Desktop/minimyth-dev/images/build/usr/lib --with-sysroot=/

## --------- ##
## Platform. ##
## --------- ##

hostname = minimyth-dev
uname -m = i686
uname -r = 2.6.30-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Fri Jul 31 18:10:38 UTC 2009

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: //home/piotro/Desktop/minimyth-dev/images/build/sbin
PATH: //home/piotro/Desktop/minimyth-dev/images/build/bin
PATH: //home/piotro/Desktop/minimyth-dev/images/build/usr/sbin
PATH: //home/piotro/Desktop/minimyth-dev/images/build/usr/bin
PATH: //home/piotro/Desktop/minimyth-dev/images/build/usr/kde/bin
PATH: //home/piotro/Desktop/minimyth-dev/images/build/bin-build-system


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1563: checking build system type
configure:1581: result: i686-pc-linux-gnu
configure:1616: checking host system type
configure:1630: result: i686-pc-linux-gnu
configure:1638: checking target system type
configure:1652: result: i686-pc-linux-gnu
configure:1696: checking for a BSD-compatible install
configure:1762: result: //home/piotro/Desktop/minimyth-dev/images/build/bin-build-system/install -c
configure:1773: checking whether ln works
configure:1795: result: yes
configure:1799: checking whether ln -s works
configure:1803: result: yes
configure:2964: checking for i686-pc-linux-gnu-gcc
configure:2990: result: gcc
configure:3274: checking for C compiler version
configure:3277: gcc --version </dev/null >&5
gcc (GCC) 4.4.0
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3280: $? = 0
configure:3282: gcc -v </dev/null >&5
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: .//../../../work/build_build.d/gcc-4.4.0/configure --prefix=/home/piotro/Desktop/minimyth-dev/images/build/usr --exec_prefix=/home/piotro/Desktop/minimyth-dev/images/build/usr --bindir=/home/piotro/Desktop/minimyth-dev/images/build/usr/bin --sbindir=/home/piotro/Desktop/minimyth-dev/images/build/usr/sbin --libexecdir=/home/piotro/Desktop/minimyth-dev/images/build/usr/libexec --datadir=/home/piotro/Desktop/minimyth-dev/images/build/usr/share --sysconfdir=/home/piotro/Desktop/minimyth-dev/images/build/etc --sharedstatedir=/home/piotro/Desktop/minimyth-dev/images/build/usr/share --localstatedir=/home/piotro/Desktop/minimyth-dev/images/build/var --libdir=/home/piotro/Desktop/minimyth-dev/images/build/usr/lib --infodir=/home/piotro/Desktop/minimyth-dev/images/build/usr/info --includedir=/home/piotro/Desktop/minimyth-dev/images/build/usr/include --oldincludedir=/home/piotro/Desktop/minimyth-dev/images/build/usr/include --mandir=/home/piotro/Desktop/minimyth-dev/images/build/usr/share/man --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-gnu-as --with-gnu-ld --with-local-prefix=/home/piotro/Desktop/minimyth-dev/images/build/usr --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c --disable-libgomp --disable-libmudflap --disable-libssp --disable-multilib --disable-nls --enable-shared --enable-threads=no --enable-version-specific-runtime-libs --with-mpfr-include=//home/piotro/Desktop/minimyth-dev/images/build/usr/include --with-mpfr-lib=//home/piotro/Desktop/minimyth-dev/images/build/usr/lib --with-gmp-include=//home/piotro/Desktop/minimyth-dev/images/build/usr/include --with-gmp-lib=//home/piotro/Desktop/minimyth-dev/images/build/usr/lib
Thread model: single
gcc version 4.4.0 (GCC) 
configure:3285: $? = 0
configure:3287: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:3290: $? = 1
configure:3313: checking for C compiler default output file name
configure:3316: gcc    conftest.c  >&5
/home/piotro/Desktop/minimyth-dev/images/build/usr/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
configure:3319: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3357: error: in `/home/piotro/Desktop/minimyth-dev/script/devel/gcc/work/build_build.d/gcc-4.4.0_build':
configure:3360: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_env_AR_FOR_TARGET_set=
ac_cv_env_AR_FOR_TARGET_value=
ac_cv_env_AR_set=set
ac_cv_env_AR_value=ar
ac_cv_env_AS_FOR_TARGET_set=
ac_cv_env_AS_FOR_TARGET_value=
ac_cv_env_AS_set=set
ac_cv_env_AS_value=as
ac_cv_env_CC_FOR_TARGET_set=
ac_cv_env_CC_FOR_TARGET_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_FOR_TARGET_set=
ac_cv_env_CXX_FOR_TARGET_value=
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=g++
ac_cv_env_DLLTOOL_FOR_TARGET_set=
ac_cv_env_DLLTOOL_FOR_TARGET_value=
ac_cv_env_DLLTOOL_set=
ac_cv_env_DLLTOOL_value=
ac_cv_env_GCC_FOR_TARGET_set=
ac_cv_env_GCC_FOR_TARGET_value=
ac_cv_env_GCJ_FOR_TARGET_set=
ac_cv_env_GCJ_FOR_TARGET_value=
ac_cv_env_GFORTRAN_FOR_TARGET_set=
ac_cv_env_GFORTRAN_FOR_TARGET_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=
ac_cv_env_LD_FOR_TARGET_set=
ac_cv_env_LD_FOR_TARGET_value=
ac_cv_env_LD_set=set
ac_cv_env_LD_value=ld
ac_cv_env_LIPO_FOR_TARGET_set=
ac_cv_env_LIPO_FOR_TARGET_value=
ac_cv_env_LIPO_set=
ac_cv_env_LIPO_value=
ac_cv_env_NM_FOR_TARGET_set=
ac_cv_env_NM_FOR_TARGET_value=
ac_cv_env_NM_set=set
ac_cv_env_NM_value=nm
ac_cv_env_OBJCOPY_set=set
ac_cv_env_OBJCOPY_value=objcopy
ac_cv_env_OBJDUMP_FOR_TARGET_set=
ac_cv_env_OBJDUMP_FOR_TARGET_value=
ac_cv_env_OBJDUMP_set=set
ac_cv_env_OBJDUMP_value=objdump
ac_cv_env_RANLIB_FOR_TARGET_set=
ac_cv_env_RANLIB_FOR_TARGET_value=
ac_cv_env_RANLIB_set=set
ac_cv_env_RANLIB_value=ranlib
ac_cv_env_STRIP_FOR_TARGET_set=
ac_cv_env_STRIP_FOR_TARGET_value=
ac_cv_env_STRIP_set=set
ac_cv_env_STRIP_value=strip
ac_cv_env_WINDMC_FOR_TARGET_set=
ac_cv_env_WINDMC_FOR_TARGET_value=
ac_cv_env_WINDMC_set=
ac_cv_env_WINDMC_value=
ac_cv_env_WINDRES_FOR_TARGET_set=
ac_cv_env_WINDRES_FOR_TARGET_value=
ac_cv_env_WINDRES_set=
ac_cv_env_WINDRES_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-pc-linux-gnu
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=i686-pc-linux-gnu
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_path_install='//home/piotro/Desktop/minimyth-dev/images/build/bin-build-system/install -c'
ac_cv_prog_CC=gcc
ac_cv_target=i686-pc-linux-gnu
ac_cv_target_alias=i686-pc-linux-gnu
acx_cv_prog_LN=ln

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR='ar'
AR_FOR_BUILD='$(AR)'
AR_FOR_TARGET=''
AS='as'
AS_FOR_BUILD='$(AS)'
AS_FOR_TARGET=''
BISON=''
CC='gcc'
CC_FOR_BUILD='$(CC)'
CC_FOR_TARGET=''
CFLAGS=''
CFLAGS_FOR_BUILD=''
CFLAGS_FOR_TARGET=''
COMPILER_AS_FOR_TARGET=''
COMPILER_LD_FOR_TARGET=''
COMPILER_NM_FOR_TARGET=''
CONFIGURE_GDB_TK=''
CPPFLAGS=''
CXX='g++'
CXXFLAGS=''
CXXFLAGS_FOR_BUILD=''
CXXFLAGS_FOR_TARGET=''
CXX_FOR_BUILD='$(CXX)'
CXX_FOR_TARGET=''
DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
DEFS=''
DLLTOOL=''
DLLTOOL_FOR_BUILD='$(DLLTOOL)'
DLLTOOL_FOR_TARGET=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
EXPECT=''
FLAGS_FOR_TARGET=''
FLEX=''
GCC_FOR_TARGET=''
GCC_SHLIB_SUBDIR=''
GCJ_FOR_BUILD='$(GCJ)'
GCJ_FOR_TARGET=''
GDB_TK=''
GFORTRAN_FOR_BUILD='$(GFORTRAN)'
GFORTRAN_FOR_TARGET=''
GNATBIND=''
GNATMAKE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_GDB_TK=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD='ld'
LDFLAGS=''
LDFLAGS_FOR_BUILD=''
LD_FOR_BUILD='$(LD)'
LD_FOR_TARGET=''
LEX=''
LIBOBJS=''
LIBS=''
LIPO=''
LIPO_FOR_TARGET=''
LN='ln'
LN_S='ln -s'
LTLIBOBJS=''
M4=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO=''
NM='nm'
NM_FOR_BUILD='$(NM)'
NM_FOR_TARGET=''
OBJCOPY='objcopy'
OBJDUMP='objdump'
OBJDUMP_FOR_TARGET=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB='ranlib'
RANLIB_FOR_BUILD='$(RANLIB)'
RANLIB_FOR_TARGET=''
RAW_CXX_FOR_TARGET=''
RPATH_ENVVAR=''
RUNTEST=''
SHELL='/bin/sh'
STRIP='strip'
STRIP_FOR_TARGET=''
SYSROOT_CFLAGS_FOR_TARGET=''
TOPLEVEL_CONFIGURE_ARGUMENTS='.//../../../work/build_build.d/gcc-4.4.0/configure --prefix=/home/piotro/Desktop/minimyth-dev/images/build/usr --exec_prefix=/home/piotro/Desktop/minimyth-dev/images/build/usr --bindir=/home/piotro/Desktop/minimyth-dev/images/build/usr/bin --sbindir=/home/piotro/Desktop/minimyth-dev/images/build/usr/sbin --libexecdir=/home/piotro/Desktop/minimyth-dev/images/build/usr/libexec --datadir=/home/piotro/Desktop/minimyth-dev/images/build/usr/share --sysconfdir=/home/piotro/Desktop/minimyth-dev/images/build/etc --sharedstatedir=/home/piotro/Desktop/minimyth-dev/images/build/usr/share --localstatedir=/home/piotro/Desktop/minimyth-dev/images/build/var --libdir=/home/piotro/Desktop/minimyth-dev/images/build/usr/lib --infodir=/home/piotro/Desktop/minimyth-dev/images/build/usr/info --includedir=/home/piotro/Desktop/minimyth-dev/images/build/usr/include --oldincludedir=/home/piotro/Desktop/minimyth-dev/images/build/usr/include --mandir=/home/piotro/Desktop/minimyth-dev/images/build/usr/share/man --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-gnu-as --with-gnu-ld --with-local-prefix=/home/piotro/Desktop/minimyth-dev/images/build/usr --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --enable-libgomp --disable-libmudflap --disable-multilib --enable-nls --enable-shared --enable-threads=posix --enable-version-specific-runtime-libs --with-mpfr-include=//home/piotro/Desktop/minimyth-dev/images/build/usr/include --with-mpfr-lib=//home/piotro/Desktop/minimyth-dev/images/build/usr/lib --with-gmp-include=//home/piotro/Desktop/minimyth-dev/images/build/usr/include --with-gmp-lib=//home/piotro/Desktop/minimyth-dev/images/build/usr/lib --with-sysroot=/'
WINDMC=''
WINDMC_FOR_BUILD='$(WINDMC)'
WINDMC_FOR_TARGET=''
WINDRES=''
WINDRES_FOR_BUILD='$(WINDRES)'
WINDRES_FOR_TARGET=''
YACC=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_GNATBIND=''
ac_ct_GNATMAKE=''
bindir='/home/piotro/Desktop/minimyth-dev/images/build/usr/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_configargs=''
build_configdirs='build-libiberty build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes'
build_cpu='i686'
build_libsubdir='build-i686-pc-linux-gnu'
build_noncanonical='i686-pc-linux-gnu'
build_os='linux-gnu'
build_subdir='build-i686-pc-linux-gnu'
build_tooldir=''
build_vendor='pc'
clooginc=''
clooglibs=''
config_shell='/bin/sh'
configdirs='intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr ppl cloog libiconv texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools'
datadir='/home/piotro/Desktop/minimyth-dev/images/build/usr/share'
datarootdir=''
do_compare=''
docdir='/home/piotro/Desktop/minimyth-dev/images/build/usr/share/doc'
exec_prefix='/home/piotro/Desktop/minimyth-dev/images/build/usr'
gmpinc=''
gmplibs=''
host='i686-pc-linux-gnu'
host_alias='i686-pc-linux-gnu'
host_configargs=''
host_cpu='i686'
host_noncanonical='i686-pc-linux-gnu'
host_os='linux-gnu'
host_subdir='.'
host_vendor='pc'
htmldir=''
includedir='/home/piotro/Desktop/minimyth-dev/images/build/usr/include'
infodir='/home/piotro/Desktop/minimyth-dev/images/build/usr/info'
libdir='/home/piotro/Desktop/minimyth-dev/images/build/usr/lib'
libexecdir='/home/piotro/Desktop/minimyth-dev/images/build/usr/libexec'
localstatedir='/home/piotro/Desktop/minimyth-dev/images/build/var'
mandir='/home/piotro/Desktop/minimyth-dev/images/build/usr/share/man'
oldincludedir='/home/piotro/Desktop/minimyth-dev/images/build/usr/include'
pdfdir=''
pplinc=''
ppllibs=''
prefix='/home/piotro/Desktop/minimyth-dev/images/build/usr'
program_transform_name='s,y,y,'
sbindir='/home/piotro/Desktop/minimyth-dev/images/build/usr/sbin'
sharedstatedir='/home/piotro/Desktop/minimyth-dev/images/build/usr/share'
stage1_cflags=''
stage1_checking=''
stage1_languages=''
stage2_werror_flag=''
sysconfdir='/home/piotro/Desktop/minimyth-dev/images/build/etc'
target='i686-pc-linux-gnu'
target_alias='i686-pc-linux-gnu'
target_configargs=''
target_cpu='i686'
target_noncanonical='i686-pc-linux-gnu'
target_os='linux-gnu'
target_subdir='i686-pc-linux-gnu'
target_vendor='pc'
tooldir=''

## ------------- ##
## Output files. ##
## ------------- ##

alphaieee_frag=''
host_makefile_frag='config/mh-x86omitfp'
ospace_frag=''
serialization_dependencies=''
target_makefile_frag=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""

configure: exit 77

Offline

#9 2009-08-27 21:21:49

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Static glibc for minimyth build environment (again)

Title changed to reflect content of thread.

Offline

#10 2009-08-28 00:32:17

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: Static glibc for minimyth build environment (again)

Looks like this is nothing to do with a static glibc and all to do with the compiler you built being broken.

> locate libc.a
/usr/lib/libc.a

So the library you need is there...

An example (test.c):

int main()
{
  return 0;
}
> gcc -o test test.c
> readelf -d test
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
...
> gcc -o test -static test.c
> readelf -d test
There is no dynamic section in this file.

In fact....   it appears your cross compiled libc/binutils/gcc is broken and this has nothing to to with the Arch toolchain.

Offline

#11 2009-08-28 19:04:07

warped
Member
Registered: 2009-08-19
Posts: 41

Re: Static glibc for minimyth build environment (again)

@Allan

Big thx for Your help !
Issue is probably tracked down (see: http://www.minimyth.org/forum/viewtopic.php?f=14&t=2392)
Once again: thx

Offline

Board footer

Powered by FluxBB