Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to compile a few key programs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Naib
Advocate
Advocate


Joined: 21 May 2004
Posts: 4104
Location: Removed by Neddy

PostPosted: Mon Nov 04, 2013 1:03 am    Post subject: Unable to compile a few key programs Reply with quote

I am starting to see a worrying trend on my system, more and more programs are refusing to compile.
It started with Ruby2

Code:
num2int.c: In function ‘print_num2ll’:
num2int.c:82:21: error: expected ‘)’ before ‘PRI_LL_PREFIX’
num2int.c:82:21: warning: spurious trailing ‘%’ in format [-Wformat]
num2int.c: In function ‘print_num2ull’:
num2int.c:94:21: error: expected ‘)’ before ‘PRI_LL_PREFIX’
num2int.c:94:21: warning: spurious trailing ‘%’ in format [-Wformat]
make[2]: *** [num2int.o] Error 1



and then I noticed binutils was not emerging.

Code:
/media/portage/portage_tmp/portage/sys-devel/binutils-2.23.2/work/binutils-2.23.2/libiberty/fibheap.c:261:36: error: ‘LONG_MIN’ undeclared (first use in this function)


and then gcc ( gcc-4.8.1-r1, gcc-4.8.0)
Code:
/media/portage/portage_tmp/portage/sys-devel/gcc-4.8.0/work/gcc-4.8.0/libiberty/fibheap.c:220:30: error: ‘LONG_MIN’ undeclared (first use in this function)


This last one was worrying, the common LONG_MIN. So I tried to re-emerge my present gcc ( gcc-4.7.3-r1 ) and I received the same error.

Googling around esp w.r.t. gentoo and everything was pointing to re-emerging linux-headers. This I have done (3.11) and downgraded to 3.9 and still no luck.

Looking into /usr/include/linux/limits.h (provided by linux-headers) I do not see a LONG_MIN in that file.


anyone have any advice or info on this?
_________________
A free press is the unsleeping guardian of every other right that free men prize; it is the most dangerous foe of tyranny. Where men have the habit of liberty, the Press will continue to be the vigilant guardian of the rights of the ordinary citizen.
Back to top
View user's profile Send private message
mackal
n00b
n00b


Joined: 04 Aug 2011
Posts: 54

PostPosted: Mon Nov 04, 2013 2:34 am    Post subject: Reply with quote

LONG_MIN should be defined in /usr/include/limits.h which belongs to sys-libs/glibc
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum