Mailinglist Archive: opensuse-buildservice (203 mails)

< Previous Next >
[opensuse-buildservice] Re: [opensuse-arm] ARM gcc47 build issue (strange "gcc/build" behaviour)
On Sat, April 21, 2012 11:45 am, Joop Boonen wrote:
Hi all,

An ARM build issue exists.

I see:
/emul/x86_64-for-arm/lib64:/emul/x86_64-for-arm/usr/lib64

Is still gcc 4.6.3.

Form the config.log of for instance binutils I see it tries to compile
against gcc4.6.3

<quote>
Thread model: posix
gcc version 4.6.3 (SUSE Linux)
configure:4018: $? = 0
configure:4007: gcc -V >&5
gcc: error: unrecognized option '-V'
gcc: fatal error: no input files
compilation terminated.
</quote>

instead of 4.7. Which is installed correctly in:
drwxr-xr-x 3 root root 4.0K Apr 20 18:30 armv7l-suse-linux-gnueabi
lrwxrwxrwx 1 root root 7 Apr 21 11:10 ./build-root/usr/bin/gcc -> gcc-4.7
lrwxrwxrwx 1 root root 10 Apr 21 11:08 ./build-root/usr/lib64/gcc ->
../lib/gcc

These are gcc 4.6.3 binaries.
lrwxrwxrwx 1 root root 12 Apr 21 11:08
./build-root/emul/x86_64-for-arm/usr/lib/gcc -> ../lib64/gcc
-rwxr-xr-x 1 root root 322K Apr 20 10:29
./build-root/emul/x86_64-for-arm/usr/bin/gcc

From package:
qemu-accel-arm ( qemu-accel-arm-0.2-8.5.x86_64.rpm )

Package:
openSUSE:Factory:ARM qemu-accel
cant be rebuild due to:
openSUSE:Factory:ARM cross-armv7l-binutils for x86_64 ( qemu_accel )

Will enabling this build resolve this issue?
I don't see a spec file for: cross-armv7l-binutils only cross-arm-binutils

I've just build this package locally without a problem:
osc build --alternative-project=openSUSE:Factory:ARM qemu_accel x86_64
cross-arm-binutils.spec


I did more checks, via the specfile of binutils.

I something quite strange.
/usr/bin/gcc shows gcc 4.6.3 while /usr/bin/gcc-4.7 where /usr/bin/gcc
links to shows version 4.7.

++ which gcc
+ ls -al /usr/bin/gcc
lrwxrwxrwx 1 root root 7 Apr 21 09:58 /usr/bin/gcc -> gcc-4.7
+ ls -alH /usr/bin/gcc
-rwxr-xr-x 1 root root 396888 Apr 20 16:36 /usr/bin/gcc
+ ls -al /usr/bin/gcc-4.7
-rwxr-xr-x 1 root root 396888 Apr 20 16:36 /usr/bin/gcc-4.7
+ /usr/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
Target: armv7l-suse-linux-gnueabi
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++ --enable-checking=release
--with-gxx-include-dir=/usr/include/c++/4.6 --enable-ssp --disable-libssp
--disable-plugin --with-bugurl=http://bugs.opensuse.org/
--with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap
--with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--enable-version-specific-runtime-libs --enable-linker-build-id
--with-sysroot=/ --enable-linux-futex --disable-nls
--target=armv7l-suse-linux-gnueabi --with-arch=armv7-a
--with-tune=cortex-a9 --with-float=hard --with-mode=thumb
--with-abi=aapcs-linux --with-fpu=vfpv3-d16 --disable-sjlj-exceptions
--build=x86_64-suse-linux
Thread model: posix
gcc version 4.6.3 (SUSE Linux)
+ /usr/bin/gcc-4.7 -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc-4.7
COLLECT_LTO_WRAPPER=/usr/lib/gcc/armv7l-suse-linux-gnueabi/4.7/lto-wrapper
Target: armv7l-suse-linux-gnueabi
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib
--enable-languages=c,c++,objc,fortran,obj-c++,java
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.7
--enable-ssp --disable-libssp --disable-libitm --disable-plugin
--with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux'
--disable-libgcj --disable-libmudflap --with-slibdir=/lib
--with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new
--disable-libstdcxx-pch --enable-version-specific-runtime-libs
--enable-linker-build-id --program-suffix=-4.7 --enable-linux-futex
--without-system-libunwind --with-arch=armv7-a --with-tune=cortex-a9
--with-float=hard --with-mode=thumb --with-abi=aapcs-linux
--with-fpu=vfpv3-d16 --disable-sjlj-exceptions
--build=armv7l-suse-linux-gnueabi
Thread model: posix
gcc version 4.7.0 20120413 [gcc-4_7-branch revision 186417] (SUSE Linux)


So it might not be related to qemu-accel, but something else.


Regards,

Joop.



--
To unsubscribe, e-mail: opensuse-arm+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-arm+owner@xxxxxxxxxxxx




--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages