Re: [gentoo-user] Re: btop fails to compile

2022-12-14 Thread Jochen Kirchner

Am 2022-12-05 07:30, schrieb Walter Dnes:

On Wed, Nov 30, 2022 at 01:50:02PM +0100, Jochen Kirchner wrote


this is my make.conf: (its a web - and mail server)

MAKEOPTS="-j17 -l17"


  Ouch!!!  How much ram do you have on that machine?  The Gentoo 
install

handbook has a dire warning at...

https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#MAKEOPTS

...that you need approx 2 gigabytes free ram for each increment in
"MAKEOPTS".


* Warning
Using a large number of jobs can significantly impact memory
consumption. A good recommendation is to have at least 2 GiB of RAM
for every job specified (so, e.g. -j6 requires at least 12 GiB). To
avoid running out of memory, lower the number of jobs to fit the
available memory.


  If you have a fancy-schmancy "desktop environment" allow another 3 or
4 Gigs, especially if you're simultaneously running Chrome or
calculating large spreadsheets or processing large documents.  For
"MAKEOPTS=-j17" you'll need at least 36-to-40 gigabytes.


Hi,

it's a Hetzner dedicated Server with 64GB of ram :)
But now I switched to Netcup.de kvm server.

---
Mit freundlichen Grüßen,
Jochen Kirchner

eMail: jk@jk-foto.design
Web: https://www.jk-foto.design



Re: [gentoo-user] Re: btop fails to compile

2022-11-30 Thread Jochen Kirchner

Am 2022-11-30 12:45, schrieb Dale:

Nuno Silva wrote:

On 2022-11-30, Jochen Kirchner wrote:

[...]

make -j17 -l17 VERBOSE=true OPTFLAGS= CXX=x86_64-pc-linux-gnu-g++

Can you try emerging with -j1 in MAKEOPTS?

Sadly, the makefile[1] does not print out the mkdir commands (recipe 
on
lines 202 thru 204), so it's not possible to spot in the output when 
are
these being executed, but, from a quick glance (I might have 
overlooked

something!), it sounds like the target that runs mkdir is not a
dependency of the targets that generate and link the object files 
(line

262, line 273), so it'd be possible for this to happen just because
the second mkdir did not complete before the first g++ was checking 
for

the directory.

[1] https://github.com/aristocratos/btop/blob/main/Makefile




That's a good idea.  Just to test if that error happens to everybody, I
installed btop-1.2.12 here.  Actually, it's kinda neat looking.  
Anyway,
it installed fine here on my 8 core machine with normal -j settings, 
-j9
I think.  It could help using -j1 tho.  Still, it installed here 
without

any problems. 

If -j1 doesn't work, maybe sync the tree again to see if maybe some 
typo

got fixed or something else was wrong during last sync.  That is rare
nowadays but when grasping at straws, grab what you can. 

Oh, my google search earlier didn't yield anything either.  This seems
to be a odd failure.

Dale

:-)  :-) 


Thank you both :)

-j1 did it :)

this is my make.conf: (its a web - and mail server)

COMMON_FLAGS="-O2 -march=znver2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

# NOTE: This stage was built with the bindist Use flag enabled

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

MAKEOPTS="-j17 -l17"
PORTAGE_NICENESS="1"
EMERGE_DEFAULT_OPTS="--jobs=17 --load-average=17 --with-bdeps y 
--complete-graph y"

FEATURES="candy fixlafiles unmerge-orphans parallel-install split-elog"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="-* @FREE @BINARY-REDISTRIBUTABLE"
GENTOO_MIRRORS="https://ftp.tu-ilmenau.de/mirror/gentoo/ 
https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ 
https://mirror.leaseweb.com/gentoo/ 
https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ 
https://ftp.fau.de/gentoo https://ftp.halifax.rwth-aachen.de/gentoo/;


USE="-bindist -systemd acpi avif berkdb branding brotli cgi clamav crypt 
cryptsetup dbus \
device-mapper elogind exif fastcgi ftp gd geoip geoip2 gif git 
gmp gpg hddtemp heif hwloc \
icu idn imagemagick imap inotify jpeg jpeg2k llvm llvm-libunwind 
lm-sensors maildir memcached \
mmap mysql mysqli offensive php png samba sasl smp soap sockets 
subversion tidy \
truetype udev udisks verify-sig vhosts vim-syntax webp xml 
xmlrpc zip zstd"


NGINX_MODULES_HTTP="access addition auth_basic autoindex brotli browser 
charset dav dav_ext echo \
empty_gif fancyindex fastcgi geo geoip geoip2 grpc gunzip gzip 
headers_more limit_conn \
limit_req map memcached metrics mirror mp4 proxy realip referer 
rewrite scgi security \
split_clients ssi stub_status upstream_hash upstream_ip_hash 
upstream_keepalive \
upstream_least_conn upstream_zone userid uwsgi 
vhost_traffic_status xslt"

NGINX_MODULES_MAIL="imap smtp"
NGINX_MODULES_STREAM="geo geoip geoip2 realip upstream_hash 
upstream_least_conn upstream_zone"

PHP_TARGETS="php8-0"

GRUB_PLATFORMS="pc"

--
Mit freundlichen Grüßen,
Jochen Kirchner

eMail: jk@jk-foto.design
Web: https://jk-foto.design

Public Key: B67B 24AA CB0F E646 8E35 CF12 7FC8 C135 CEEB C714

0xCEEBC714.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


[gentoo-user] btop fails to compile

2022-11-30 Thread Jochen Kirchner

Hi,

on my Hetzner server btop fails to compile. If I go to the build 
directory and compile it manuallly (just type make) it compiles fine.


 * Package:sys-process/btop-1.2.12:0
 * Repository: gentoo
 * Maintainer: nex+b-...@nexadn.de proxy-ma...@gentoo.org
 * Upstream:   https://github.com/aristocratos/btop/issues
 * USE:abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv 
usersandbox

Unpacking source...
Unpacking btop-1.2.12.tar.gz to 
/var/tmp/portage/sys-process/btop-1.2.12/work

Source unpacked in /var/tmp/portage/sys-process/btop-1.2.12/work
Preparing source in 
/var/tmp/portage/sys-process/btop-1.2.12/work/btop-1.2.12 ...

 * Applying 876319-verbose-makefile.patch ...
 [ ok ]

Source prepared.
Configuring source in 
/var/tmp/portage/sys-process/btop-1.2.12/work/btop-1.2.12 ...

Source configured.
Compiling source in 
/var/tmp/portage/sys-process/btop-1.2.12/work/btop-1.2.12 ...

make -j17 -l17 VERBOSE=true OPTFLAGS= CXX=x86_64-pc-linux-gnu-g++

 ██╗ ╗ ██╗ ██╗
 ██╔══██╗╚══██╔══╝██╔═══██╗██╔══██╗   ██╗██╗
 ██╔╝   ██║   ██║   ██║██╔╝ ██╗██╗
 ██╔══██╗   ██║   ██║   ██║██╔═══╝  ╚═██╔═╝╚═██╔═╝
 ██╔╝   ██║   ╚██╔╝██║╚═╝╚═╝
 ╚═╝╚═╝╚═╝ ╚═╝  Makefile v1.5
PLATFORM   ?| Linux
ARCH   ?| amd64
CXX?| x86_64-pc-linux-gnu-g++ (11.3.0)
THREADS:| 16
REQFLAGS   !| -std=c++20
WARNFLAGS  :| -Wall -Wextra -pedantic
OPTFLAGS   :|
LDCXXFLAGS :| -pthread -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS 
-fexceptions -fstack-clash-protection -fcf-protection -fstack-protector
CXXFLAGS   +| $(REQFLAGS) $(LDCXXFLAGS) $(OPTFLAGS) $(WARNFLAGS) -O2 
-march=znver2 -pipe
LDFLAGS+| $(LDCXXFLAGS) $(OPTFLAGS) $(WARNFLAGS) -Wl,-O1 
-Wl,--as-needed


Building btop++ (v1.2.12) Linux amd64
Compiling src/linux/btop_collect.cpp
x86_64-pc-linux-gnu-g++ -O2 -march=znver2 -pipe -std=c++20 -pthread 
-D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fexceptions 
-fstack-clash-protection -fcf-protection -fstack-protector   -Wall 
-Wextra -pedantic -Iinclude -Isrc -MMD -c -o obj/linux/btop_collect.o 
src/linux/btop_collect.cpp

Assembler messages:
Fatal error: can't create obj/linux/btop_collect.o: No such file or 
directory

make: *** [Makefile:269: obj/linux/btop_collect.o] Error 1
 * ERROR: sys-process/btop-1.2.12::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info 
'=sys-process/btop-1.2.12::gentoo'`,
 * the complete build log and the output of `emerge -pqv 
'=sys-process/btop-1.2.12::gentoo'`.
 * The complete build log is located at 
'/var/tmp/portage/sys-process/btop-1.2.12/temp/build.log'.
 * The ebuild environment file is located at 
'/var/tmp/portage/sys-process/btop-1.2.12/temp/environment'.
 * Working directory: 
'/var/tmp/portage/sys-process/btop-1.2.12/work/btop-1.2.12'

 * S: '/var/tmp/portage/sys-process/btop-1.2.12/work/btop-1.2.12'


--
Mit freundlichen Grüßen,
Jochen Kirchner

eMail: jk@jk-foto.design
Web: https://www.jk-foto.design

Public Key: B67B 24AA CB0F E646 8E35 CF12 7FC8 C135 CEEB C714

0xCEEBC714.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Pulseaudio - Asus Xonar STX II 7.1 - 5.1 Surround - Front audio is coming from rear speakers in Firefox

2017-01-29 Thread Jochen Kirchner


On 01/28/2017 10:30 PM, Nikos Chantziaras wrote:
> On 01/28/2017 09:57 PM, Jochen Kirchner wrote:
>> while playing a mix on mixcloud.com the sound suddenly switched to rear
>> speakers again :(
>>
>> Strange thing is:
>>
>> When I lower the volume from the front speaker on the device
>> "pulseaudio" the rear speakers gets quiet.
>>
>> And when I lower the volume from the front speaker on the device "Xonar"
>> the front speakers get quiet.
>>
>> So I guess something IS wrong here :/
>
> emerge media-sound/pavucontrol and run it. Check if the PA settings
> are correct in the "configuration" tab.
>
> Also, did you make sure you're using the virtuoso kernel driver and
> NOT the oxygen one?
>
>

Analog Surround 5.1 + Analog Stereo Input is selected in the
configuration tab in pavucontrol

Front left+right speaker volume is shown on firefox (CubebUtils:
audiostream) under the playback tab
But the sound is coming from the rear speakers.

Another strange thing: If I start Diablo 3 with wine and select stereo
in the audio settings of Diablo, the sound is coming through the front
speakers... wtf :)

This is my kernel sound config:

zcat /proc/config.gz | grep SND_ | grep -v "not set"
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_HWDEP=y
CONFIG_SND_RAWMIDI=y
CONFIG_SND_JACK=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_SEQ_DUMMY=y
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_PCM_TIMER=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_HRTIMER=y
CONFIG_SND_SEQ_HRTIMER_DEFAULT=y
CONFIG_SND_SUPPORT_OLD_API=y
CONFIG_SND_PROC_FS=y
CONFIG_SND_VERBOSE_PROCFS=y
CONFIG_SND_VERBOSE_PRINTK=y
CONFIG_SND_VMASTER=y
CONFIG_SND_DMA_SGBUF=y
CONFIG_SND_RAWMIDI_SEQ=y
CONFIG_SND_MPU401_UART=y
CONFIG_SND_DRIVERS=y
CONFIG_SND_PCI=y
CONFIG_SND_OXYGEN_LIB=y
CONFIG_SND_VIRTUOSO=y
CONFIG_SND_HDA=y
CONFIG_SND_HDA_INTEL=y
CONFIG_SND_HDA_HWDEP=y
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
CONFIG_SND_HDA_CORE=y
CONFIG_SND_HDA_PREALLOC_SIZE=2048
CONFIG_SND_USB=y
CONFIG_SND_USB_AUDIO=y

Currently I'm rebuilding the kernel without "HD-Audio" and the old alsa
API. I will report back.



Re: [gentoo-user] Re: Pulseaudio - Asus Xonar STX II 7.1 - 5.1 Surround - Front audio is coming from rear speakers in Firefox

2017-01-28 Thread Jochen Kirchner
On 01/28/2017 08:30 PM, Jochen Kirchner wrote:
>
> On 01/28/2017 02:18 AM, Nikos Chantziaras wrote:
>> On 01/27/2017 06:15 PM, Jochen Kirchner wrote:
>>> Hi fellow gentoo'ers,
>>>
>>>
>>> I'm running XFCE with pulseaudio.
>>>
>>> Hardware is Asus Xonar STX II with the 7.1 daughterboard
>>>
>>> Analog Surround 5.1 is selected in xfce4-volumed-pulse.
>>>
>>> If I do speaker-test -c 6 all is right. Front audio is put through the
>>> front speakers.
>>>
>>> But if I play sound in Firefox and/or Chromium (eg. youtube) the sound
>>> is mainly coming through the rear speakers.
>>>
>>> Any advice? If you need more info please let me know, thanks!
>> Run alsamixer (media-sound/alsa-utils). Press F6, select the Xonar and
>> look for a "Stereo Upmix" setting.
>>
>> Also, make sure you're using the "Virtuoso" kernel driver
>> (SND_VIRTUOSO), not the C-Media "Oxygen" one (SND_OXYGEN). The
>> Virtuoso driver should provide the correct mixer controls for Xonar
>> cards.
>>
>> (The Oxygen driver works too, since the Xonar cards use the Oxygen
>> chip, but it might not provide Xonar-specific mixer controls.)
>>
>>
> Hi Nikos,
>
> that worked! "Front+Surround" was set at Stereo Upmix. I changed it to
> "Front" and now it works and sound is coming mainly from the front speakers.
>
> Thank you!
>
> Kind Regards,
> Jochen
>

hi again :)

while playing a mix on mixcloud.com the sound suddenly switched to rear
speakers again :(

Strange thing is:

When I lower the volume from the front speaker on the device
"pulseaudio" the rear speakers gets quiet.

And when I lower the volume from the front speaker on the device "Xonar"
the front speakers get quiet.

So I guess something IS wrong here :/




Re: [gentoo-user] Re: Pulseaudio - Asus Xonar STX II 7.1 - 5.1 Surround - Front audio is coming from rear speakers in Firefox

2017-01-28 Thread Jochen Kirchner


On 01/28/2017 02:18 AM, Nikos Chantziaras wrote:
> On 01/27/2017 06:15 PM, Jochen Kirchner wrote:
>> Hi fellow gentoo'ers,
>>
>>
>> I'm running XFCE with pulseaudio.
>>
>> Hardware is Asus Xonar STX II with the 7.1 daughterboard
>>
>> Analog Surround 5.1 is selected in xfce4-volumed-pulse.
>>
>> If I do speaker-test -c 6 all is right. Front audio is put through the
>> front speakers.
>>
>> But if I play sound in Firefox and/or Chromium (eg. youtube) the sound
>> is mainly coming through the rear speakers.
>>
>> Any advice? If you need more info please let me know, thanks!
>
> Run alsamixer (media-sound/alsa-utils). Press F6, select the Xonar and
> look for a "Stereo Upmix" setting.
>
> Also, make sure you're using the "Virtuoso" kernel driver
> (SND_VIRTUOSO), not the C-Media "Oxygen" one (SND_OXYGEN). The
> Virtuoso driver should provide the correct mixer controls for Xonar
> cards.
>
> (The Oxygen driver works too, since the Xonar cards use the Oxygen
> chip, but it might not provide Xonar-specific mixer controls.)
>
>

Hi Nikos,

that worked! "Front+Surround" was set at Stereo Upmix. I changed it to
"Front" and now it works and sound is coming mainly from the front speakers.

Thank you!

Kind Regards,
Jochen



Re: [gentoo-user] Pulseaudio - Asus Xonar STX II 7.1 - 5.1 Surround - Front audio is coming from rear speakers in Firefox

2017-01-27 Thread Jochen Kirchner


On 01/27/2017 05:15 PM, Jochen Kirchner wrote:
>
> Hi fellow gentoo'ers,
>
>
> I'm running XFCE with pulseaudio.
>
> Hardware is Asus Xonar STX II with the 7.1 daughterboard
>
> Analog Surround 5.1 is selected in xfce4-volumed-pulse.
>
> If I do speaker-test -c 6 all is right. Front audio is put through the
> front speakers.
>
> But if I play sound in Firefox and/or Chromium (eg. youtube) the sound
> is mainly coming through the rear speakers.
>
> Any advice? If you need more info please let me know, thanks!
>
>
> Kind Regards,
>
> Jochen
>

I'm running systemd if that matters!

emerge --info
http://pastebin.com/4C9AcGhs

emerge -pv pulseaudio
[ebuild   R] media-sound/pulseaudio-9.0::gentoo  USE="X alsa
alsa-plugin asyncns caps gdbm glib gtk ipv6 orc ssl systemd tcpd udev
webrtc-aec -bluetooth -dbus -doc -equalizer -gnome -jack (-libressl)
-libsamplerate -lirc -native-headset (-neon) -ofono-headset (-oss) -qt4
-realtime (-selinux) -sox (-system-wide) {-test} -xen -zeroconf"
ABI_X86="32 (64) (-x32)" 0 KiB



[gentoo-user] Pulseaudio - Asus Xonar STX II 7.1 - 5.1 Surround - Front audio is coming from rear speakers in Firefox

2017-01-27 Thread Jochen Kirchner
Hi fellow gentoo'ers,


I'm running XFCE with pulseaudio.

Hardware is Asus Xonar STX II with the 7.1 daughterboard

Analog Surround 5.1 is selected in xfce4-volumed-pulse.

If I do speaker-test -c 6 all is right. Front audio is put through the
front speakers.

But if I play sound in Firefox and/or Chromium (eg. youtube) the sound
is mainly coming through the rear speakers.

Any advice? If you need more info please let me know, thanks!


Kind Regards,

Jochen



Re: [gentoo-user] SystemD + Gnome 3.8 I can log in as root but not as normal user

2013-10-01 Thread Jochen Kirchner

Am 01.10.2013 08:30, schrieb Carlos Sura:

Hello Mates,

I finally thought that I got this working, so now I am dealing this issue:
I choose the latest kernel with systemd and GDM starts good, but I 
cannot log in to gnome as a normal user, I can only log in to gnome as 
root.


What I have done before this started:

emerge -uDvaN world
emerge --depclean --ask
emerge @preserved-rebuild

Then it just happened.

What I've tried so far:
- .xinitrc with exec gnome-session for user and root
- emerge -1 $( qlist -IC x11-drivers/ )
- emerge @x11-module-rebuild
-  X -configure


Another note:
Starting gnome as normal user just hang, apparently it wants to start 
but it cannot start. Neither doing: startx.


I am using for xorg:
VIDEO_CARDS=intel vesa

Any help?

Regards

--
Carlos Sura.-
www.carlossura.com http://www.carlossura.com
www.carlossura.com/blog http://www.carlossura.com/blog


Hi,

have you looked in your /var/log/Xorg.0.log?

And I think the GDM session log is in /home/*user*/.cache/gdm/session.log.

Regards,

Jochen

--
There is only one god, and his name is Death.
And there is only one thing we say to Death: 'Not today'.
- Syrio Forel, Game of Thrones

http://acidc0re.info



Re: [gentoo-user] SystemD + Gnome 3.8 I can log in as root but not as normal user

2013-10-01 Thread Jochen Kirchner

Am 01.10.2013 09:07, schrieb Carlos Sura:

In another note:

I've just installed enlightenment and it works fine. Gnome works fine 
ONLY as root, but not as normal user.



On 1 October 2013 01:06, Carlos Sura carlos.su...@googlemail.com 
mailto:carlos.su...@googlemail.com wrote:


Hello Jochen,

Thank you for your help.

Here is the Xorg log: http://tny.cz/69b4662a

Regarding the gdm session.log I don't have it. Here is
the /var/log/gdm/:0.log : http://tny.cz/35e886e2

Here is my emerge --info: http://tny.cz/10262247




On 1 October 2013 00:52, Jochen Kirchner j...@acidc0re.info
mailto:j...@acidc0re.info wrote:

Am 01.10.2013 08:30, schrieb Carlos Sura:

Hello Mates,

I finally thought that I got this working, so now I am
dealing this issue:
I choose the latest kernel with systemd and GDM starts good,
but I cannot log in to gnome as a normal user, I can only log
in to gnome as root.

What I have done before this started:

emerge -uDvaN world
emerge --depclean --ask
emerge @preserved-rebuild

Then it just happened.

What I've tried so far:
- .xinitrc with exec gnome-session for user and root
- emerge -1 $( qlist -IC x11-drivers/ )
- emerge @x11-module-rebuild
-  X -configure


Another note:
Starting gnome as normal user just hang, apparently it wants
to start but it cannot start. Neither doing: startx.

I am using for xorg:
VIDEO_CARDS=intel vesa

Any help?

Regards

-- 
Carlos Sura.-

www.carlossura.com http://www.carlossura.com
www.carlossura.com/blog http://www.carlossura.com/blog


Hi,

have you looked in your /var/log/Xorg.0.log?

And I think the GDM session log is in
/home/*user*/.cache/gdm/session.log.

Regards,

Jochen

-- 
There is only one god, and his name is Death.

And there is only one thing we say to Death: 'Not today'.
- Syrio Forel, Game of Thrones

http://acidc0re.info




-- 
Carlos Sura.-

www.carlossura.com http://www.carlossura.com
www.carlossura.com/blog http://www.carlossura.com/blog




--
Carlos Sura.-
www.carlossura.com http://www.carlossura.com
www.carlossura.com/blog http://www.carlossura.com/blog

hm, that's strange. Is your user in the video group?

And I don't think you need vesa in VIDEO_CARDS. intel should be sufficient.

Best Regards,
Jochen

--
There is only one god, and his name is Death.
And there is only one thing we say to Death: 'Not today'.
- Syrio Forel, Game of Thrones

http://acidc0re.info