Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

How can use codeblocks like a normal user? (Can't compile)

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
35 posts
  • Previous
  • 1
  • 2
Author
Message
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

  • Quote

Post by DaggyStyle » Wed Sep 05, 2012 6:02 am

Hu wrote:My user is not in the portage group and I have never had problems invoking gcc from my user account. What does strace say about the failure?
well for some reason he cannot compile as normal user which is strange it self although he has permissions to the file, as he can update his system (I think so), I've started to think out of the box what can cause it, portage groups was a long shot which didn't worked.
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Wed Sep 05, 2012 7:23 am

For reference, /usr/bin/gcc is a wrapper program to invoke the currently configured gcc implementation which appears to be /usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4/gcc in your case. Try to execute that one directly with your user account, hopefully it will yield a more useful error message.
Top
Yczo
Apprentice
Apprentice
User avatar
Posts: 225
Joined: Sat Jul 09, 2011 9:42 pm

  • Quote

Post by Yczo » Fri Sep 07, 2012 8:27 pm

Hello.

Ok DaggyStyle avr-gcc is a compiler from the atmel microcontrollers. I use it with another specific gui that only serves for itself

You're right Hu, is not a problem from codeblocks.

Recently i discovered that:

$ gcc -o counter.c
gcc-config: error: could not run/locate 'gcc'


$ ls -l //I'm enigma, I'm allowed
-rwxr-xr-x 1 enigma enigma 733 dic 22 2011 counter.c

And on father directory

drwxr-xr-x 5 enigma enigma 4096 sep 7 22:11 example

and following the advice from Genone
$ /usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4/gcc
bash: /usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4/gcc: Permission denied


regards
Top
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

  • Quote

Post by DaggyStyle » Fri Sep 07, 2012 10:39 pm

Yczo wrote:Hello.

Ok DaggyStyle avr-gcc is a compiler from the atmel microcontrollers. I use it with another specific gui that only serves for itself

You're right Hu, is not a problem from codeblocks.

Recently i discovered that:

$ gcc -o counter.c
gcc-config: error: could not run/locate 'gcc'


$ ls -l //I'm enigma, I'm allowed
-rwxr-xr-x 1 enigma enigma 733 dic 22 2011 counter.c

And on father directory

drwxr-xr-x 5 enigma enigma 4096 sep 7 22:11 example

and following the advice from Genone
$ /usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4/gcc
bash: /usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4/gcc: Permission denied


regards
what is the output of ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4/gcc ?
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Top
wjb
l33t
l33t
User avatar
Posts: 681
Joined: Sun Jul 10, 2005 9:40 am
Location: Fife, Scotland

  • Quote

Post by wjb » Sat Sep 08, 2012 8:27 am

Can't selinux stop things running like this? (not that I know anything about selinux)
Top
Yczo
Apprentice
Apprentice
User avatar
Posts: 225
Joined: Sat Jul 09, 2011 9:42 pm

  • Quote

Post by Yczo » Sat Sep 08, 2012 8:58 pm

Hello guys. I hope that all of this will respond the questions.

$ eix-installed all |grep selinux
$ //no response

# ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4/gcc
lrwxrwxrwx 1 root root 23 ago 22 21:54 /usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4/gcc -> x86_64-pc-linux-gnu-gcc

$ gcc-config -c
x86_64-pc-linux-gnu-4.5.4 //could came because i have x86_64-pc-linux-gnu-gcc
//and not x86_64-linux-gnu-4.5.4?

$ gcc-config -l
[1] avr-4.4.5 * //Asterisk in blue

[2] x86_64-pc-linux-gnu-4.5.4 * //Asterisk in green


regards.
Top
DaggyStyle
Watchman
Watchman
User avatar
Posts: 5969
Joined: Wed Mar 22, 2006 6:57 am

  • Quote

Post by DaggyStyle » Sun Sep 09, 2012 5:11 am

Yczo wrote:Hello guys. I hope that all of this will respond the questions.

$ eix-installed all |grep selinux
$ //no response

# ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4/gcc
lrwxrwxrwx 1 root root 23 ago 22 21:54 /usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4/gcc -> x86_64-pc-linux-gnu-gcc

$ gcc-config -c
x86_64-pc-linux-gnu-4.5.4 //could came because i have x86_64-pc-linux-gnu-gcc
//and not x86_64-linux-gnu-4.5.4?

$ gcc-config -l
[1] avr-4.4.5 * //Asterisk in blue

[2] x86_64-pc-linux-gnu-4.5.4 * //Asterisk in green


regards.
yes but as x86_64-pc-linux-gnu/gcc-bin/4.5.4/gcc is a link, it would have been better if you've added the ls -l output of the target, e.g. /usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4/x86_64-pc-linux-gnu-gcc
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Top
Yczo
Apprentice
Apprentice
User avatar
Posts: 225
Joined: Sat Jul 09, 2011 9:42 pm

  • Quote

Post by Yczo » Tue Sep 11, 2012 6:17 pm

# ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4/x86_64-pc-linux-gnu-gcc

-rwxr-xr-x 1 root root 263544 sep 9 17:29 /usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4/x86_64-pc-linux-gnu-gcc


out of ideas. Regards!
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Tue Sep 25, 2012 9:02 am

Yczo wrote:# ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4/x86_64-pc-linux-gnu-gcc

-rwxr-xr-x 1 root root 263544 sep 9 17:29 /usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4/x86_64-pc-linux-gnu-gcc
Tried running that one directly yet?
Top
wjb
l33t
l33t
User avatar
Posts: 681
Joined: Sun Jul 10, 2005 9:40 am
Location: Fife, Scotland

  • Quote

Post by wjb » Tue Sep 25, 2012 7:46 pm

If it works in root but not your normal account, how about creating a new user account - just a normal user - and see if gcc works there.
Top
Post Reply

35 posts
  • Previous
  • 1
  • 2

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic