Bug 2839

Summary: compile fails in various packages with a odd message "error: impossible constraint in 'asm'"
Product: buildroot Reporter: Sérgio <sergio>
Component: OtherAssignee: unassigned
Status: VERIFIED FIXED    
Severity: normal CC: buildroot, gustavo
Priority: P5    
Version: 2009.11   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: make libmad >& errors.txt
dot config of this case
same compile error for gmp
dot config updated
same compile error for libgcrypt
completed compile log for gmp
completed compile log for libgcrypt

Description Sérgio 2010-11-17 21:34:34 UTC
Created attachment 2677 [details]
make libmad  >& errors.txt

With buildroot git version , I got several packages which I got this odd errror 

make libmad  >& errors.txt
Comment 1 Sérgio 2010-11-17 21:44:07 UTC
Created attachment 2683 [details]
dot config of this case

after compile gcc or on first error :
edit 
/home/sergio/hardware/moviecube/buildroot/output/staging/usr/include/bits/wordsize.h

and change _MIPS_SZPTR by 32 
which is the correct value.

BTW I Had compile all this with buildroot-2010.08

Thanks,
Comment 2 Sérgio 2010-11-19 00:04:44 UTC
Created attachment 2701 [details]
same compile error for gmp
Comment 3 Sérgio 2010-11-19 00:05:26 UTC
Created attachment 2707 [details]
dot config updated
Comment 4 Sérgio 2010-11-19 00:15:10 UTC
Created attachment 2713 [details]
same compile error for libgcrypt
Comment 5 Sérgio 2010-11-19 00:23:31 UTC
Created attachment 2719 [details]
completed compile log for gmp

Sorry for spam , I am sending complete logs instead just the errors on 2nd make.
Comment 6 Sérgio 2010-11-19 00:27:12 UTC
Created attachment 2725 [details]
completed compile log for libgcrypt

Again sorry about spam.
I am sending complete logs instead just the errors on 2nd
make.
Hope don't mistakes this time
Comment 7 Gustavo Zacarias 2010-11-19 15:53:26 UTC
Try using gcc 4.3.x instead of the (experimental) 4.5.x, this will probably fix most of your constraint issues.
Since gcc 4.4+ MIPS became more sensitive to some optimizations thus breaking some source code.

libmad is fixed in git.
libgcrypt will probably be fixed soon (fixed in my tree
GMP will have to wait IMHO since it's pretty tied up to the internal toolchain. I've got a fix for it but don't expect it to ship for the 2010.11 release since it's part of an internal toolchain revamp.
Comment 8 Sérgio 2010-11-20 05:35:42 UTC
libmad is fixed with last git, great. For me, just libmad was blocker, so I change the bug importance to normal.

Thanks,
Comment 9 Sérgio 2010-11-24 04:16:52 UTC
(In reply to comment #7)
> Try using gcc 4.3.x instead of the (experimental) 4.5.x, this will probably fix
> most of your constraint issues.
> Since gcc 4.4+ MIPS became more sensitive to some optimizations thus breaking
> some source code.
> 
> libmad is fixed in git.
> libgcrypt will probably be fixed soon (fixed in my tree
> GMP will have to wait IMHO since it's pretty tied up to the internal toolchain.
> I've got a fix for it but don't expect it to ship for the 2010.11 release since
> it's part of an internal toolchain revamp.

After back to gcc 4.3 and with lastest git I had also compile libgcrypt and GMP.

so may be we can close the bug has fixed.
Comment 10 Gustavo Zacarias 2011-01-31 20:14:37 UTC
Solved in git for gmp, libgcrypt and libmad.
Comment 11 Sérgio 2011-02-06 23:20:34 UTC
gmp, libgcrypt and libmad works here,
 thanks,