Public bug reported:

This works with CodeSourcery's "arm-none-eabi-gcc2 but not with ubuntu's
arm-linux-gnueabi-gcc. If I remove "-lm" it builds with Ubuntu's gcc.

$ make
arm-linux-gnueabi-gcc -c -g -O -Wa,-adhlns=main.lst  -std=gnu99 -mthumb 
-mcpu=cortex-m3 main.c -o main.o
arm-linux-gnueabi-gcc -g -O -Wa,-adhlns=main.o  -std=gnu99 -mthumb 
-mcpu=cortex-m3 main.o   --output main.elf -Wl,-Map=main.map,--cref  -lm -T 
link -nostdlib 
/usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../../../arm-linux-gnueabi/bin/ld: 
error: 
/usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../../../arm-linux-gnueabi/lib/../lib/libm.so:
 Conflicting architecture profiles A/M
/usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../../../arm-linux-gnueabi/bin/ld: 
failed to merge target specific data of file 
/usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../../../arm-linux-gnueabi/lib/../lib/libm.so
collect2: ld returnerade avslutningsstatus 1
make: *** [main.elf] Fel 1

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: gcc-4.6-arm-linux-gnueabi 4.6.1-9ubuntu3cross1.55
ProcVersionSignature: Ubuntu 3.2.0-8.14-generic 3.2.0
Uname: Linux 3.2.0-8-generic x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Wed Feb  8 09:41:56 2012
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, no user)
 LANG=sv_SE.UTF-8
SourcePackage: gcc-4.6-armel-cross
UpgradeStatus: Upgraded to oneiric on 2011-11-09 (91 days ago)

** Affects: gcc-4.6-armel-cross (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug oneiric running-unity

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/928699

Title:
  libm.so: Conflicting architecture profiles A/M

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.6-armel-cross/+bug/928699/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to