View previous topic :: View next topic |
Author |
Message |
qubloo n00b

Joined: 10 Jan 2021 Posts: 41
|
Posted: Tue Jan 12, 2021 3:40 pm Post subject: Xorg installation failure [SOLVED] |
|
|
Im trying to install Xorg for XFCE and whenever I do it, it fails. Here is the log: https://dpaste.com/56XE78S7Z and here is my make.conf: https://dpaste.com/G8UQYQTWP
Last edited by qubloo on Fri Jan 15, 2021 3:34 pm; edited 1 time in total |
|
Back to top |
|
 |
mike155 Advocate

Joined: 17 Sep 2010 Posts: 2671 Location: Frankfurt, Germany
|
|
Back to top |
|
 |
qubloo n00b

Joined: 10 Jan 2021 Posts: 41
|
Posted: Tue Jan 12, 2021 4:13 pm Post subject: |
|
|
Changed from intel to intel i915 now. And here is emerge —info: https://dpaste.com/77NJP68HW before I began to install xfce but then i realized in the middle of it I needed Xorg so i ctrl c out of it and I think that is what is causing these problems |
|
Back to top |
|
 |
Buffoon Veteran


Joined: 17 Jun 2015 Posts: 1303 Location: EU or US
|
Posted: Tue Jan 12, 2021 4:18 pm Post subject: |
|
|
Code: | configure: error: C compiler cannot create executables
See `config.log' for more details |
It tells you to look at config.log. Did you?
By any chance, did you switch from a no-multilib profile to multilib?
Edit: I see now, you have -02 instead of -O2 in your CFLAGS. |
|
Back to top |
|
 |
qubloo n00b

Joined: 10 Jan 2021 Posts: 41
|
Posted: Tue Jan 12, 2021 4:34 pm Post subject: |
|
|
Buffoon wrote: | Code: | configure: error: C compiler cannot create executables
See `config.log' for more details |
It tells you to look at config.log. Did you?
By any chance, did you switch from a no-multilib profile to multilib?
Edit: I see now, you have -02 instead of -O2 in your CFLAGS. |
My current profile is 17.1/desktop and here is the new make.conf https://dpaste.com/9BCGKN9D8 everything look good now? This is the config.log : https://dpaste.com/G6WA796ZJ |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 47626 Location: 56N 3W
|
Posted: Tue Jan 12, 2021 4:48 pm Post subject: |
|
|
qubloo,
configure.log: | configure:3534: x86_64-pc-linux-gnu-gcc -march=native -02 -pipe -Wl,-O1 -Wl,--as-needed conftest.c >&5
x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-02' |
Is the error. You have numeral 0 in place of letter O.
That's not what you have in Code: | COMMON_FLAGS="-march=native -O2 -pipe" | so it looks like you have fixed it.
On to your next Gentoo learning opportunity. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
qubloo n00b

Joined: 10 Jan 2021 Posts: 41
|
Posted: Tue Jan 12, 2021 9:26 pm Post subject: |
|
|
NeddySeagoon wrote: | qubloo,
configure.log: | configure:3534: x86_64-pc-linux-gnu-gcc -march=native -02 -pipe -Wl,-O1 -Wl,--as-needed conftest.c >&5
x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-02' |
Is the error. You have numeral 0 in place of letter O.
That's not what you have in Code: | COMMON_FLAGS="-march=native -O2 -pipe" | so it looks like you have fixed it.
On to your next Gentoo learning opportunity. |
So I successfully emerged xorg now, but when I do startx I get a black screen and a second later im back to the terminal with this screen: https://imgur.com/a/6li9aiA then i checked my logs and the very end it said something about a dbus error. https://dpaste.com/B6C94X5KC |
|
Back to top |
|
 |
Buffoon Veteran


Joined: 17 Jun 2015 Posts: 1303 Location: EU or US
|
Posted: Tue Jan 12, 2021 9:59 pm Post subject: |
|
|
It looks like X server starts successfully, looks around, finds no job to do and shuts down. You must run an application on X server for it to stay up and work. Usually it is a Desktop Environment (DE), or at least Window Manager (WM), although in special cases it can be something else. I have a dedicated Kodi box for instance, I run Kodi on Xorg in this box, there is no DE nor WM. To conclude, you have to run something on it. There is plenty of reading about it in Gentoo Wiki. |
|
Back to top |
|
 |
qubloo n00b

Joined: 10 Jan 2021 Posts: 41
|
Posted: Tue Jan 12, 2021 10:26 pm Post subject: |
|
|
Buffoon wrote: | It looks like X server starts successfully, looks around, finds no job to do and shuts down. You must run an application on X server for it to stay up and work. Usually it is a Desktop Environment (DE), or at least Window Manager (WM), although in special cases it can be something else. I have a dedicated Kodi box for instance, I run Kodi on Xorg in this box, there is no DE nor WM. To conclude, you have to run something on it. There is plenty of reading about it in Gentoo Wiki. |
Okay! I’ll start the installation process of XFCE and i will let y’all know if it goes smoothly |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 47626 Location: 56N 3W
|
Posted: Tue Jan 12, 2021 10:58 pm Post subject: |
|
|
qubloo,
The traditional test is Code: | emerge -1av twm xclock xterm |
That's what startx tries to run by default but you have to install it.
Hint: twm only uses the primary mouse button. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
mike155 Advocate

Joined: 17 Sep 2010 Posts: 2671 Location: Frankfurt, Germany
|
Posted: Wed Jan 13, 2021 12:36 am Post subject: |
|
|
qubloo wrote: | Okay! I’ll start the installation process of XFCE and i will let y’all know if it goes smoothly |
Don't forget to follow the instructions on https://wiki.gentoo.org/wiki/Xfce. |
|
Back to top |
|
 |
qubloo n00b

Joined: 10 Jan 2021 Posts: 41
|
Posted: Wed Jan 13, 2021 5:00 pm Post subject: |
|
|
NeddySeagoon wrote: | qubloo,
The traditional test is Code: | emerge -1av twm xclock xterm |
That's what startx tries to run by default but you have to install it.
Hint: twm only uses the primary mouse button. |
Hi, I did emerge rust-bin before doing anything with xfce https://imgur.com/a/RChWPpD and it said this: should i change anything? |
|
Back to top |
|
 |
Hu Moderator

Joined: 06 Mar 2007 Posts: 16707
|
Posted: Wed Jan 13, 2021 6:09 pm Post subject: |
|
|
qubloo wrote: | Hi, I did emerge rust-bin before doing anything with xfce https://imgur.com/a/RChWPpD and it said this: should i change anything? | Yes. You should use a pastebin, not imgur. Screenshots cannot be quoted or properly indexed by search engines. Pastebins can. Additionally, that imgur link currently fails to load for me, and possibly for other users, so some of us cannot work on your problem. |
|
Back to top |
|
 |
qubloo n00b

Joined: 10 Jan 2021 Posts: 41
|
Posted: Wed Jan 13, 2021 6:18 pm Post subject: |
|
|
Hu wrote: | qubloo wrote: | Hi, I did emerge rust-bin before doing anything with xfce https://imgur.com/a/RChWPpD and it said this: should i change anything? | Yes. You should use a pastebin, not imgur. Screenshots cannot be quoted or properly indexed by search engines. Pastebins can. Additionally, that imgur link currently fails to load for me, and possibly for other users, so some of us cannot work on your problem. |
How do i do that? |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 47626 Location: 56N 3W
|
Posted: Wed Jan 13, 2021 9:43 pm Post subject: |
|
|
qubloo,
Like this, to paste a file.
Code: | $ wgetpaste /usr/src/linux/.config
Pasting > 25 kB often tend to fail with dpaste. Use --verbose or --debug to see the
error output from wget if it fails. Alternatively use another pastebin service.
Your paste can be seen here: https://dpaste.com/4QKECQN32 |
or
Code: | $ wgetpaste -c 'emerge --info'
Your paste can be seen here: https://dpaste.com/9RLYDHSNL | for command output.
You will need to install wgetpaste before you can use it.
is worth reading.
https://imgur.com/a/RChWPpD shows that rust-bin has been successfully unpacked and the install phase has just started.
There is nothing for you to do. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
qubloo n00b

Joined: 10 Jan 2021 Posts: 41
|
Posted: Wed Jan 13, 2021 11:40 pm Post subject: |
|
|
NeddySeagoon wrote: | qubloo,
Like this, to paste a file.
Code: | $ wgetpaste /usr/src/linux/.config
Pasting > 25 kB often tend to fail with dpaste. Use --verbose or --debug to see the
error output from wget if it fails. Alternatively use another pastebin service.
Your paste can be seen here: https://dpaste.com/4QKECQN32 |
or
Code: | $ wgetpaste -c 'emerge --info'
Your paste can be seen here: https://dpaste.com/9RLYDHSNL | for command output.
You will need to install wgetpaste before you can use it.
is worth reading.
https://imgur.com/a/RChWPpD shows that rust-bin has been successfully unpacked and the install phase has just started.
There is nothing for you to do. |
Hey, I got xfce working all fine and dandy now. But my user cant startx successfully only root can, any way to fix this? |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 47626 Location: 56N 3W
|
Posted: Thu Jan 14, 2021 10:07 am Post subject: |
|
|
qubloo,
See the news item Code: | 2020-06-24 xorg-server dropping default suid |
will tell you how. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
qubloo n00b

Joined: 10 Jan 2021 Posts: 41
|
Posted: Thu Jan 14, 2021 5:04 pm Post subject: |
|
|
NeddySeagoon wrote: | qubloo,
See the news item Code: | 2020-06-24 xorg-server dropping default suid |
will tell you how. |
I read through it, added elogind as a use flag and did emerge —newuse @world. But when i startx on my user it still fails here is the log. https://dpaste.com/FJK269494 and here is my make.conf https://dpaste.com/8B9PAJZLL |
|
Back to top |
|
 |
Hu Moderator

Joined: 06 Mar 2007 Posts: 16707
|
Posted: Thu Jan 14, 2021 8:34 pm Post subject: |
|
|
Did you also enable elogind to run as a service, start it (either manually or by rebooting), and then log out and back in so that PAM could notify it of your existence? The error handling for that failure mode leaves a bit to be desired. |
|
Back to top |
|
 |
qubloo n00b

Joined: 10 Jan 2021 Posts: 41
|
Posted: Thu Jan 14, 2021 8:47 pm Post subject: |
|
|
Hu wrote: | Did you also enable elogind to run as a service, start it (either manually or by rebooting), and then log out and back in so that PAM could notify it of your existence? The error handling for that failure mode leaves a bit to be desired. |
Yea, I did rc-update elogind boot and then i rebooted but the user couldn’t startx
edit: got it working now |
|
Back to top |
|
 |
|