On Mon, Nov 24, 2008 at 5:37 AM, Barney Barumba <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've built an arm toolchain and root fs with buildroot, and I'm trying to set 
> up scratchbox2 to use it. When I run sb2-init, I get the following error:
>
> $ sb2-init -c /usr/bin/qemu-arm arm 
> ~/dev/buildroot/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibcgnueabi-gcc
>
> ...
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... no
> checking for mawk... mawk
> checking whether make sets $(MAKE)... yes
> checking for gcc... gcc
> checking for C compiler default output file name...
> configure: error: C compiler cannot create executables
> See `config.log' for more details.
>
> Checking the config.log file reveals the following:
>
> configure:2846: gcc -v >&5
> Using built-in specs.
> Reading specs from 
> /home/barney/local/share/scratchbox2/modeconf/gcc-specs.simple
> rename spec cpp to old_cpp
> Target: arm-linux-uclibcgnueabi
> Configured with: 
> /home/barney/dev/buildroot/buildroot/toolchain_build_arm/gcc-4.2.4/configure 
> --prefix=/usr --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu 
> --target=arm-linux-uclibcgnueabi --enable-languages=c 
> --with-sysroot=/home/barney/dev/buildroot/buildroot/build_arm/staging_dir 
> --with-build-time-tools=/home/barney/dev/buildroot/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin
>  --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld 
> --enable-shared 
> --with-gmp=/home/barney/dev/buildroot/buildroot/toolchain_build_arm/gmp 
> --with-mpfr=/home/barney/dev/buildroot/buildroot/toolchain_build_arm/mpfr 
> --disable-nls --enable-threads --disable-multilib --disable-largefile
> Thread model: posix
> gcc version 4.2.4
> configure:2849: $? = 0
> configure:2856: gcc -V >&5
> arm-linux-uclibcgnueabi-gcc: couldn't run 
> '/home/barney/dev/buildroot/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibcgnueabi-gcc--specs=/home/barney/local/share/scratchbox2/modeconf/gcc-specs.simple':
>  No such file or directory
> configure:2859: $? = 1
>
> The second last line would appear to me to be the problem: there is no space 
> between the compiler path "...uclibcgnueabi-gcc" and the "--specs=...". I've 
> had a look through the configure script, but it's a bit beyond me and I can't 
> see where this is being set. I've tried 1.99.0.24, 1.99.0.26 and the latest 
> git, and they all seem to do the same thing.
>
> Anyone have any clues on how I can get past this?

The real problem is a bit further down, what you see above is just an
unfortunate side effect for SB2 appending the --specs stuff to all gcc
command lines, harmless. To reproduce manually, just
run gcc -V --specs=blah, the -V doesn't like any additional arguments
behind it, but that's not the
reason why your ./configure fails.

/lauri
_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to