Ga naar inhoud


Newcs op NSLU2


Barabas

Aanbevolen berichten

Om newcs te kunnen draaien op de NSLU2 is een nieuwe glibc nodig. Hier is de voortgang te vinden.

 

Allereerst de neiuwe glibc 2.3.5 downloaden, uitpakken en configure draaien!

# ../glibc-2.3.5/configure

checking build system type... armv5b-unknown-linux-gnu

checking host system type... armv5b-unknown-linux-gnu

checking sysdep dirs... sysdeps/arm/elf sysdeps/unix/sysv/linux/arm sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/arm sysdeps/unix sysdeps/posix sysdeps/arm/fpu sysdeps/arm sysdeps/wordsize-32 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic

checking for a BSD-compatible install... /opt/bin/install -c

checking whether ln -s works... yes

checking for gcc... gcc

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ANSI C... none needed

checking how to run the C preprocessor... gcc -E

checking for g++... g++

checking whether we are using the GNU C++ compiler... yes

checking whether g++ accepts -g... yes

checking whether /opt/armeb/lib/gcc-lib/armv5b-softfloat-linux/3.3.5/../../../../armv5b-softfloat-linux/bin/as is GNU as... yes

checking whether /opt/armeb/lib/gcc-lib/armv5b-softfloat-linux/3.3.5/../../../../armv5b-softfloat-linux/bin/ld is GNU ld... yes

checking for /opt/armeb/lib/gcc-lib/armv5b-softfloat-linux/3.3.5/../../../../armv5b-softfloat-linux/bin/as... /opt/armeb/lib/gcc-lib/armv5b-softfloat-linux/3.3.5/../../../../armv5b-softfloat-linux/bin/as

checking version of /opt/armeb/lib/gcc-lib/armv5b-softfloat-linux/3.3.5/../../../../armv5b-softfloat-linux/bin/as... 2.15.94.0.2, ok

checking for /opt/armeb/lib/gcc-lib/armv5b-softfloat-linux/3.3.5/../../../../armv5b-softfloat-linux/bin/ld... /opt/armeb/lib/gcc-lib/armv5b-softfloat-linux/3.3.5/../../../../armv5b-softfloat-linux/bin/ld

checking version of /opt/armeb/lib/gcc-lib/armv5b-softfloat-linux/3.3.5/../../../../armv5b-softfloat-linux/bin/ld... 2.15.94.0.2, ok

checking for pwd... /opt/bin/pwd

checking for gcc... gcc

checking version of gcc... 3.3.5, ok

checking for gnumake... no

checking for gmake... no

checking for make... make

checking version of make... 3.80, ok

checking for gnumsgfmt... no

checking for gmsgfmt... no

checking for msgfmt... no

checking for makeinfo... no

checking for sed... sed

checking version of sed... 4.0, ok

checking for autoconf... no

configure: WARNING:

*** These auxiliary programs are missing or incompatible versions: msgfmt makeinfo autoconf

*** some features will be disabled.

*** Check the INSTALL file for required versions.

checking whether ranlib is necessary... yes

checking LD_LIBRARY_PATH variable... ok

checking whether GCC supports -static-libgcc... -static-libgcc

checking for bash... no

checking for ksh... no

checking for gawk... no

checking for mawk... no

checking for nawk... no

checking for awk... awk

checking for perl... /opt/bin/perl

checking for install-info... no

checking for bison... no

checking for signed size_t type... no

checking for libc-friendly stddef.h... yes

checking whether we need to use -P to assemble .S files... no

checking whether .text pseudo-op must be used... yes

checking for assembler global-symbol directive... .globl

checking for .set assembler directive... yes

checking for assembler .type directive prefix... %

checking for .symver assembler directive... yes

checking for ld --version-script... yes

checking for .previous assembler directive... yes

checking for .protected and .hidden assembler directive... yes

checking whether __attribute__((visibility())) is supported... yes

checking for broken __attribute__((visibility()))... no

checking for broken __attribute__((alias()))... no

checking whether to put _rtld_local into .sdata section... no

checking for .preinit_array/.init_array/.fini_array support... readelf: No such file or directory

no

checking for libunwind-support in compiler... no

checking for -z nodelete option... yes

checking for -z nodlopen option... yes

checking for -z initfirst option... yes

checking for -z relro option... yes

checking for -Bgroup option... yes

checking for libgcc_s suffix...

checking for --as-needed option... yes

checking whether --noexecstack is desirable for .S files... no

checking for -z combreloc... readelf: No such file or directory

no

checking for -z execstack... yes

checking for -fpie... no

checking for -fno-unit-at-a-time... no

checking whether cc puts quotes around section names... no

checking for assembler .weak directive... yes

checking whether CFI directives are supported... no

checking if -g produces usable source locations for assembler-with-cpp... no

checking for ld --no-whole-archive... yes

checking for gcc -fexceptions... yes

checking for DWARF2 unwind info support... static

checking for __builtin_expect... yes

checking for __builtin_memset... no

checking for redirection of built-in functions... no

checking for local label subtraction... yes

checking for __thread... no

checking for libgd... no

checking for is_selinux_enabled in -lselinux... no

checking for egrep... grep -E

checking for ANSI C header files... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking for long double... yes

checking size of long double... 8

running configure fragment for sysdeps/unix/sysv/linux

checking for egrep... (cached) grep -E

checking installed Linux kernel header files... 2.0.10 or later

*** On GNU/Linux systems it is normal to compile GNU libc with the

*** `linuxthreads' add-on. Without that, the library will be

*** incompatible with normal GNU/Linux systems.

*** If you really mean to not use this add-on, run configure again

*** using the extra parameter `--disable-sanity-checks'.

 

So far so good...

Dat zeg ik... lezen!

Link naar reactie
Delen op andere sites


  • Reacties 160
  • Aangemaakt
  • Laatste reactie

Beste reacties in dit topic

Beste reacties in dit topic

Geplaatste afbeeldingen

Citaat:
S*ht,

De eerste Segmentation fault is tijdens het compileren al opgetreden...

Doorgaan...


Ik krijg de volgende fout melding:
[color:"red"]configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details. [/color]
Link naar reactie
Delen op andere sites

Dit staat er in de log,

 

$ ../glibc-2.3.5/configure

 

## --------- ##

## Platform. ##

## --------- ##

 

hostname = nassjaak

uname -m = armv5b

uname -r = 2.4.22-xfs

uname -s = Linux

uname -v = #1 Sun Jun 12 21:17:17 PDT 2005

 

/usr/bin/uname -p = unknown

/bin/uname -X = unknown

 

/bin/arch = unknown

/usr/bin/arch -k = unknown

/usr/convex/getsysinfo = unknown

hostinfo = unknown

/bin/machine = unknown

/usr/bin/oslevel = unknown

/bin/universe = unknown

 

PATH: /sbin

PATH: /bin

PATH: /usr/sbin

PATH: /usr/bin

 

 

## ----------- ##

## Core tests. ##

## ----------- ##

 

configure:1706: checking build system type

configure:1724: result: armv5b-unknown-linux-gnu

configure:1732: checking host system type

configure:1746: result: armv5b-unknown-linux-gnu

configure:1998: checking sysdep dirs

configure:2214: result: sysdeps/generic/elf sysdeps/generic

configure:2233: checking for a BSD-compatible install

configure:2288: result: ../glibc-2.3.5/scripts/install-sh -c

configure:2303: checking whether ln -s works

configure:2307: result: yes

configure:2361: checking for gcc

configure:2390: result: no

configure:2441: checking for cc

configure:2470: result: no

configure:2483: checking for cc

configure:2529: result: no

configure:2582: checking for cl

configure:2611: result: no

configure:2625: error: no acceptable C compiler found in $PATH

See `config.log' for more details.

 

## ---------------- ##

## Cache variables. ##

## ---------------- ##

 

ac_cv_build=armv5b-unknown-linux-gnu

ac_cv_build_alias=armv5b-unknown-linux-gnu

ac_cv_env_CC_set=

ac_cv_env_CC_value=

ac_cv_env_CFLAGS_set=

ac_cv_env_CFLAGS_value=

ac_cv_env_CPPFLAGS_set=

ac_cv_env_CPPFLAGS_value=

ac_cv_env_CPP_set=

ac_cv_env_CPP_value=

ac_cv_env_CXXFLAGS_set=

ac_cv_env_CXXFLAGS_value=

ac_cv_env_CXX_set=

ac_cv_env_CXX_value=

ac_cv_env_LDFLAGS_set=

ac_cv_env_LDFLAGS_value=

ac_cv_env_build_alias_set=

ac_cv_env_build_alias_value=

ac_cv_env_host_alias_set=

ac_cv_env_host_alias_value=

ac_cv_env_target_alias_set=

ac_cv_env_target_alias_value=

ac_cv_host=armv5b-unknown-linux-gnu

ac_cv_host_alias=armv5b-unknown-linux-gnu

 

## ----------------- ##

## Output variables. ##

## ----------------- ##

 

AR=''

AS=''

ASFLAGS_config=''

AUTOCONF=''

AWK=''

BASH='/bin/bash'

BISON=''

BUILD_CC=''

CC=''

CFLAGS=''

CPP=''

CPPFLAGS=''

CXX=''

CXXFLAGS=''

DEFINES=''

DEFS=''

ECHO_C=''

ECHO_N='-n'

ECHO_T=''

EGREP=''

INSTALL_DATA='${INSTALL} -m 644'

INSTALL_INFO=''

INSTALL_PROGRAM='${INSTALL}'

INSTALL_SCRIPT='${INSTALL}'

KSH=''

LD=''

LDFLAGS=''

LIBGD=''

LIBOBJS=''

LIBS=''

LN_S='ln -s'

LTLIBOBJS=''

MAKE=''

MAKEINFO=''

MIG=''

MSGFMT=''

OBJDUMP=''

OBJEXT=''

PACKAGE_BUGREPORT='glibc'

PACKAGE_NAME='GNU C Library'

PACKAGE_STRING='GNU C Library (see version.h)'

PACKAGE_TARNAME='c-library'

PACKAGE_VERSION='(see version.h)'

PATH_SEPARATOR=':'

PERL=''

PWD_P=''

RANLIB=''

RELEASE=''

SED=''

SHELL='/bin/bash'

SYSINCLUDES=''

VERSION=''

VERSIONING=''

ac_ct_CC=''

ac_ct_CXX=''

ac_ct_RANLIB=''

add_ons=''

all_warnings=''

base_machine='arm'

bindir='${exec_prefix}/bin'

bindnow='no'

bounded='no'

build='armv5b-unknown-linux-gnu'

build_alias=''

build_cpu='armv5b'

build_os='linux-gnu'

build_vendor='unknown'

cross_compiling='no'

datadir='${prefix}/share'

elf='yes'

enable_check_abi='no'

exceptions=''

exec_prefix='NONE'

fno_unit_at_a_time=''

force_install='yes'

gnu_as='yes'

gnu_ld='yes'

have_selinux=''

host='armv5b-unknown-linux-gnu'

host_alias=''

host_cpu='armv5b'

host_os='linux-gnu'

host_vendor='unknown'

includedir='${prefix}/include'

infodir='${prefix}/info'

ldd_rewrite_script=''

libc_cv_Bgroup=''

libc_cv_as_needed=''

libc_cv_asm_protected_directive=''

libc_cv_cc_with_libunwind=''

libc_cv_cpp_asm_debuginfo=''

libc_cv_forced_unwind=''

libc_cv_fpie=''

libc_cv_gcc_static_libgcc=''

libc_cv_gcc_unwind_find_fde=''

libc_cv_have_bash2=''

libc_cv_have_initfini=''

libc_cv_have_ksh=''

libc_cv_initfinit_array=''

libc_cv_libgcc_s_suffix=''

libc_cv_localedir=''

libc_cv_rootsbindir=''

libc_cv_slibdir=''

libc_cv_sysconfdir=''

libc_cv_z_combreloc=''

libc_cv_z_execstack=''

libc_cv_z_initfirst=''

libc_cv_z_nodelete=''

libc_cv_z_nodlopen=''

libc_cv_z_relro=''

libdir='${exec_prefix}/lib'

libexecdir='${exec_prefix}/libexec'

linux_doors=''

localstatedir='${prefix}/var'

mach_interface_list=''

mandir='${prefix}/man'

no_whole_archive=''

nopic_initfini=''

old_glibc_headers=''

oldest_abi='default'

oldincludedir='/usr/include'

omitfp='no'

pic_default=''

prefix='NONE'

profile='yes'

program_transform_name='s,x,x,'

sbindir='${exec_prefix}/sbin'

shared='default'

sharedstatedir='${prefix}/com'

sizeof_long_double=''

static='yes'

static_nss='no'

subdirs=' '

sysconfdir='${prefix}/etc'

sysnames=' sysdeps/arm/elf sysdeps/unix/sysv/linux/arm sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/arm sysdeps/unix sysdeps/posix sysdeps/arm/fpu sysdeps/arm sysdeps/wordsize-32 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic'

target_alias=''

uname_release=''

uname_sysname=''

uname_version=''

use_ldconfig=''

with_cvs='yes'

with_fp='yes'

xcoff='no'

 

## ----------- ##

## confdefs.h. ##

## ----------- ##

 

#define PACKAGE_BUGREPORT "glibc"

#define PACKAGE_NAME "GNU C Library"

#define PACKAGE_STRING "GNU C Library (see version.h)"

#define PACKAGE_TARNAME "c-library"

#define PACKAGE_VERSION "(see version.h)"

 

configure: exit 1

Link naar reactie
Delen op andere sites

Citaat:
Citaat:
S*ht,

De eerste Segmentation fault is tijdens het compileren al opgetreden...

Doorgaan...


Ik krijg de volgende fout melding:
[color:"red"]configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details. [/color]


Deze variabelen zetten voordat je gaat compileren, zet ze in een bestandje dan kun je ze de volgende keer weer makkelijk sourcen :
# For gcc
GCC_DIR=/share/hdd/conf/opt/armeb/armv5b-softfloat-linux
GCC_BINDIR=${GCC_DIR}/bin
PATH=${GCC_BINDIR}:${PATH}
LD_LIBRARY_PATH=/opt/lib:${GCC_LIBDIR}:${LD_LIBRARY_PATH}
CC=${GCC_BINDIR}/gcc

# For build system
export PATH=/opt/bin:${PATH}

export PATH
export GCC_LIBDIR
export LD_LIBRARY_PATH
export CC

Misschien ten overvloede maar je moet wel een compiler installeren op de NSLU2.

Dat zeg ik... lezen!

Link naar reactie
Delen op andere sites

Citaat:
Citaat:
dus je zit native te compileren, op de nslu2?
Zou je niet makkelijker met openembedded op je PC kunnen cross-compilen?


Dan moet je die omgeving wel hebben draaien, heb jij dat??? dan wil ik je viendelijk verzoeken om...

Ik ben de branch nu aan het uitchecken. (heb alleen dreambox en dev branch op dit moment)
Link naar reactie
Delen op andere sites

Dit is de volgende fout melding,

 

# ../glibc-2.3.5/configure

checking build system type... armv5b-unknown-linux-gnu

checking host system type... armv5b-unknown-linux-gnu

checking sysdep dirs... sysdeps/arm/elf sysdeps/unix/sysv/linux/arm sysdeps/unix

/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet

sysdeps/unix/sysv sysdeps/unix/arm sysdeps/unix sysdeps/posix sysdeps/arm/fpu sy

sdeps/arm sysdeps/wordsize-32 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysd

eps/ieee754 sysdeps/generic/elf sysdeps/generic

checking for a BSD-compatible install... ../glibc-2.3.5/scripts/install-sh -c

checking whether ln -s works... yes

checking for gcc... /share/hdd/conf/opt/armeb/armv5b-softfloat-linux/bin/gcc

checking for suffix of object files... configure: error: cannot compute suffix o

f object files: cannot compile

See `config.log' for more details.

 

Zal de nslu2 ff helemaal opnieuw installeren.

Link naar reactie
Delen op andere sites

Dat zijn geen compilers, maar de c++ lib en de qt lib.

Ik zou een (niet al te nieuwe) gcc nemen, bijv 3.4.4, of zelfs 3.3.3

(hoe ouder, hoe minder problemen)

 

Ik ben overigens een OE target voor nslu2 aan het inrichten. Er is geen documentatie over te vinden, dus ik ben maar wat aan het knutselen gegaan.

Als ik een glibc-2.3.5 heb gecompileerd, meld ik me wel.

Link naar reactie
Delen op andere sites

Hier is al vast een glibc-2.3.5-cvs so, je zou je libc.so.6 link hier naartoe om kunnen zetten, maar de kans is erg groot dat een heleboel andere dingen daarna niet meer werken (het hele systeem is gecompileerd tegen een oudere glibc)

Altijd eerst backuppen en bereid zijn tot her-installatie, voordat je met libc's gaat prutsen.

 

Je zou eventueel deze libc in een andere libdir kunnen zetten, en in /etc/ld.so.conf deze libdir aan de library cache toe kunnen voegen, maar ik ben er niet van overtuigd dat je libc runtime kunt selecteren.

 

ipkg probeer ik nog te maken, maar daarvoor moet ik dieper in de nslu2 image duiken.

976100-libc-2.3.90.so.zip

Link naar reactie
Delen op andere sites

Maak een account aan of log in om te reageren

Je moet een lid zijn om een reactie te kunnen achterlaten

Account aanmaken

Registreer voor een nieuwe account in onze community. Het is erg gemakkelijk!

Registreer een nieuwe account

Inloggen

Heb je reeds een account? Log hier in.

Nu inloggen
  • Wie is er online   0 leden

    • Er zijn geen geregistreerde gebruikers deze pagina aan het bekijken
×
×
  • Nieuwe aanmaken...