Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Official thread: "zen-sources" - Part V
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5 ... 21, 22, 23  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Non_E
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 160
Location: Czech Republic

PostPosted: Wed Aug 27, 2008 5:01 pm    Post subject: Reply with quote

Hello,

Code:
Aug 27 18:33:45 linwood DMA: Out of SW-IOMMU space for 65536 bytes at device 0000:04:03.0


I get a lot of these messages when copying alrge amounts of files (hundreds GB). My computer is x86_64 gentoo at Intel Q6600, 4GB RAM, Intel P45 motherboard.

After some time the computer locks, only numlock and capslock keep blinking.
Any idea please?

EDIT: The device is firewire external disc. I will try changing to the stable firewire driver.
EDIT2: Probably solved.
EDIT3: It was hardware error.
_________________
Only Sith deals in absolutes.


Last edited by Non_E on Sun Aug 31, 2008 3:21 pm; edited 2 times in total
Back to top
View user's profile Send private message
mroconnor
Guru
Guru


Joined: 24 Feb 2006
Posts: 402
Location: USA

PostPosted: Thu Aug 28, 2008 1:08 pm    Post subject: Reply with quote

kernelOfTruth wrote:
Strayer wrote:
So, I just switched from zenmm to normal zen and my eyes catched the custom cflags stuff.

Crazy as I am I just copied my make.conf in the kernel config.
Code:
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"


It boots and everything seems to work - but I'm a little bit uneasy about this ;)

Will this change actually be worth it or will I just brick my hardware? :?


those settings are pretty safe & conservative,

these are my testing-flags:

Code:
CONFIG_CUSTOM_CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -fsched-spec-load -fno-strict-overflow -fearly-inlining --param max-gcse-passes=20 -ftree-loop-im -ftree-loop-ivcanon -fmodulo-sched -freschedule-modulo-scheduled-loops -mno-align-stringops -falign-functions=0 -falign-jumps=0 -falign-labels=0 -falign-loops=0 -mno-push-args -fno-defer-pop -fmove-loop-invariants -fgcse-las -fgcse-sm -ftree-vectorize -fno-delete-null-pointer-checks -fno-ident -freorder-blocks-and-partition -fpeel-loops -fvariable-expansion-in-unroller -fprefetch-loop-arrays -fgcse-lm -fivopts -fgcse-after-reload -finline-functions -minline-all-stringops -funroll-all-loops -combine -fwhole-program -fipa-struct-reorg -fipa-type-escape -fstack-protector -fstack-protector-all -D_FORTIFY_SOURCE=2"
:lol: (that way I'll find out pretty fast if the compiler has problems or the kernel ;) )


@KernelofTruth: are all those sane using gcc 4.3.1 -r1? Just asking becuase, well, I have never seen so many. No i have to really read the gcc docs 8O
Back to top
View user's profile Send private message
unK
l33t
l33t


Joined: 06 Feb 2007
Posts: 769

PostPosted: Thu Aug 28, 2008 1:20 pm    Post subject: Reply with quote

No, they definitely aren't sane ;)
_________________
ncmpcpp - featureful ncurses based MPD client inspired by ncmpc
Back to top
View user's profile Send private message
Palatis
n00b
n00b


Joined: 07 Oct 2006
Posts: 23
Location: Taipei/Taiwan

PostPosted: Fri Aug 29, 2008 8:32 pm    Post subject: Reply with quote

aufs cvs (as of 20080830) is compilable against 2.6.27-rc4-zen1.
all we have to do is to define TMPFS_MAGIC in super.h.

add something like these...
#ifndef TMPFS_MAGIC
# define TMPFS_MAGIC 0x01021994
#endif
Back to top
View user's profile Send private message
Palatis
n00b
n00b


Joined: 07 Oct 2006
Posts: 23
Location: Taipei/Taiwan

PostPosted: Sat Aug 30, 2008 8:30 am    Post subject: Reply with quote

after upgrade to 2.6.27-rc4-zen1, i found that NetworkManager now detects my wireless network as wired network.
here's a picture (i'm using Traditional Chinese but the picture itself should be pretty self-explainative)...
http://www.flickr.com/photos/29996584@N05/2809927642/

with 2.6.26-zen2.1 it was okay.
the ndiswrapper is a live svn ebuild i wrote myself, because 1.53 wouldn't compile against 2.6.27.
it does only checkout the svn but does not apply any patch.

here are some system information...
Code:
$ dmesg | grep ndiswrapper
[   12.835656] ndiswrapper version 1.53 loaded (smp=no, preempt=yes)
[   12.904073] ndiswrapper (link_pe_images:575): fixing KI_USER_SHARED_DATA address in the driver
[   12.905102] ndiswrapper: driver neti2220x64 (,17/01/2005,3.03.12.2006) loaded
[   12.906254] ndiswrapper 0000:02:09.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
[   12.942134] ndiswrapper: using IRQ 22
[   13.146799] usbcore: registered new interface driver ndiswrapper

$ sudo lspci
00:00.0 Host bridge: ATI Technologies Inc RS480 Host Bridge
00:01.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge
00:13.0 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller
00:13.1 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller
00:13.2 USB Controller: ATI Technologies Inc IXP SB400 USB2 Host Controller
00:14.0 SMBus: ATI Technologies Inc IXP SB400 SMBus Controller (rev 10)
00:14.1 IDE interface: ATI Technologies Inc Standard Dual Channel PCI IDE Controller
00:14.3 ISA bridge: ATI Technologies Inc IXP SB400 PCI-ISA Bridge
00:14.4 PCI bridge: ATI Technologies Inc IXP SB400 PCI-PCI Bridge
00:14.5 Multimedia audio controller: ATI Technologies Inc IXP SB400 AC'97 Audio Controller (rev 01)
00:14.6 Modem: ATI Technologies Inc SB400 AC'97 Modem Controller (rev 01)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:05.0 VGA compatible controller: ATI Technologies Inc Radeon XPRESS 200M 5955 (PCIE)
02:03.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
02:04.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ac)
02:04.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ac)
02:04.2 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 04)
02:09.0 Ethernet controller: Linksys, A Division of Cisco Systems [AirConn] INPROCOMM IPN 2220 Wireless LAN Adapter (rev 01)

$ for I in `hal-find-by-capability --capability net`;do hal-device ${I};done
udi = '/org/freedesktop/Hal/devices/net_00_11_09_0f_2b_8b'
  net.interface = 'wlan0'  (string)
  info.category = 'net.80203'  (string)
  net.address = '00:11:09:0f:2b:8b'  (string)
  info.interfaces = { 'org.freedesktop.Hal.Device.WakeOnLan' } (string list)
  linux.sysfs_path = '/sys/class/net/wlan0'  (string)
  info.capabilities = { 'net', 'net.80203', 'wake_on_lan' } (string list)
  net.linux.ifindex = 4  (0x4)  (int)
  info.subsystem = 'net'  (string)
  info.parent = '/org/freedesktop/Hal/devices/pci_17fe_2220'  (string)
  net.arp_proto_hw_id = 1  (0x1)  (int)
  info.product = 'Networking Interface'  (string)
  net.80203.mac_address = 73166433163  (0x11090f2b8b)  (uint64)
  info.udi = '/org/freedesktop/Hal/devices/net_00_11_09_0f_2b_8b'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  org.freedesktop.Hal.Device.WakeOnLan.method_names = { 'GetSupported', 'GetEnabled', 'SetEnabled' } (string list)
  linux.subsystem = 'net'  (string)
  org.freedesktop.Hal.Device.WakeOnLan.method_signatures = { '', '', 'b' } (string list)
  org.freedesktop.Hal.Device.WakeOnLan.method_argnames = { '', '', 'enable' } (string list)
  org.freedesktop.Hal.Device.WakeOnLan.method_execpaths = { 'hal-system-wol-supported', 'hal-system-wol-enabled', 'hal-system-wol-enable' } (string list)
  net.originating_device = '/org/freedesktop/Hal/devices/pci_17fe_2220'  (string)

udi = '/org/freedesktop/Hal/devices/net_00_10_dc_e8_3d_54'
  net.interface = 'eth0'  (string)
  info.category = 'net.80203'  (string)

  net.address = '00:10:dc:e8:3d:54'  (string)
  info.interfaces = { 'org.freedesktop.Hal.Device.WakeOnLan' } (string list)
  linux.sysfs_path = '/sys/class/net/eth0'  (string)
  info.capabilities = { 'net', 'net.80203', 'wake_on_lan' } (string list)
  net.linux.ifindex = 3  (0x3)  (int)
  info.subsystem = 'net'  (string)
  info.parent = '/org/freedesktop/Hal/devices/pci_10ec_8139'  (string)
  net.arp_proto_hw_id = 1  (0x1)  (int)
  info.product = 'Networking Interface'  (string)
  net.80203.mac_address = 72425684308  (0x10dce83d54)  (uint64)
  info.udi = '/org/freedesktop/Hal/devices/net_00_10_dc_e8_3d_54'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  org.freedesktop.Hal.Device.WakeOnLan.method_names = { 'GetSupported', 'GetEnabled', 'SetEnabled' } (string list)
  linux.subsystem = 'net'  (string)
  org.freedesktop.Hal.Device.WakeOnLan.method_signatures = { '', '', 'b' } (string list)
  org.freedesktop.Hal.Device.WakeOnLan.method_argnames = { '', '', 'enable' } (string list)
  org.freedesktop.Hal.Device.WakeOnLan.method_execpaths = { 'hal-system-wol-supported', 'hal-system-wol-enabled', 'hal-system-wol-enable' } (string list)
  net.originating_device = '/org/freedesktop/Hal/devices/pci_10ec_8139'  (string)

$ qlist -I -v zen-sources ndiswrapper
net-wireless/ndiswrapper-9999
sys-kernel/zen-sources-2.6.26-r21
sys-kernel/zen-sources-2.6.27_rc4-r10


i noticed that hal says my wlan0 is net.80211 for 2.6.26-zen2.1, but net.80203 for 2.6.27-rc4-zen1.
both kernel is with ndiswrapper-9999. is there a wlan hal change in kernel?

Code:
udi = '/org/freedesktop/Hal/devices/net_00_11_09_0f_2b_8b'
  info.category = 'net.80211'  (string)
  net.interface = 'wlan0'  (string)
  info.capabilities = { 'net', 'net.80211' } (string list)
  net.address = '00:11:09:0f:2b:8b'  (string)
  linux.sysfs_path = '/sys/class/net/wlan0'  (string)
  net.linux.ifindex = 4  (0x4)  (int)
  info.subsystem = 'net'  (string)
  info.parent = '/org/freedesktop/Hal/devices/pci_17fe_2220'  (string)
  net.arp_proto_hw_id = 1  (0x1)  (int)
  info.product = 'WLAN Interface'  (string)
  info.udi = '/org/freedesktop/Hal/devices/net_00_11_09_0f_2b_8b'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'net'  (string)
  net.80211.mac_address = 73166433163  (0x11090f2b8b)  (uint64)
  net.originating_device = '/org/freedesktop/Hal/devices/pci_17fe_2220'  (string)

udi = '/org/freedesktop/Hal/devices/net_00_10_dc_e8_3d_54'
  info.category = 'net.80203'  (string)
  net.interface = 'eth0'  (string)
  info.capabilities = { 'net', 'net.80203', 'wake_on_lan' } (string list)
  net.address = '00:10:dc:e8:3d:54'  (string)
  linux.sysfs_path = '/sys/class/net/eth0'  (string)
  net.linux.ifindex = 3  (0x3)  (int)
  info.subsystem = 'net'  (string)
  info.parent = '/org/freedesktop/Hal/devices/pci_10ec_8139'  (string)
  net.arp_proto_hw_id = 1  (0x1)  (int)
  info.product = 'Networking Interface'  (string)
  info.interfaces = { 'org.freedesktop.Hal.Device.WakeOnLan' } (string list)
  net.80203.mac_address = 72425684308  (0x10dce83d54)  (uint64)
  info.udi = '/org/freedesktop/Hal/devices/net_00_10_dc_e8_3d_54'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  org.freedesktop.Hal.Device.WakeOnLan.method_names = { 'GetSupported', 'GetEnabled', 'SetEnabled' } (string list)
  linux.subsystem = 'net'  (string)
  org.freedesktop.Hal.Device.WakeOnLan.method_signatures = { '', '', 'b' } (string list)
  org.freedesktop.Hal.Device.WakeOnLan.method_argnames = { '', '', 'enable' } (string list)
  org.freedesktop.Hal.Device.WakeOnLan.method_execpaths = { 'hal-system-wol-supported', 'hal-system-wol-enabled', 'hal-system-wol-enable' } (string list)
  net.originating_device = '/org/freedesktop/Hal/devices/pci_10ec_8139'  (string)


sorry for the god damn long post and poor english but i just can't file any issue on zen website...

--- edit 2008/08/30 05:29 ---
after saying Y to CONFIG_WIRELESS_EXT_SYSFS, the problem gone away.
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Sat Aug 30, 2008 3:39 pm    Post subject: Reply with quote

2,6,27-rc5-zen1, rebased by dodo -> now has aufs (again), l7filter (again), and the rest of the usual.

Strip debugging was dropped, don't ask me for it because it was a dumb patch.
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Aug 30, 2008 3:53 pm    Post subject: Reply with quote

cheater1034 wrote:
2,6,27-rc5-zen1, rebased by dodo -> now has aufs (again), l7filter (again), and the rest of the usual.

Strip debugging was dropped, don't ask me for it because it was a dumb patch.


does the l7filter compile now ? last time I wanted to use it, it failed ... :?

I will give that kernel a test-ride later, thanks :)

this kernel (zen-sources) + >177.70 nvidia-drivers makes working with this lappy a pleasure :D
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D


Last edited by kernelOfTruth on Sat Aug 30, 2008 5:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
Diskmaster
n00b
n00b


Joined: 13 Jul 2008
Posts: 23

PostPosted: Sat Aug 30, 2008 5:21 pm    Post subject: Reply with quote

cheater1034 wrote:
2,6,27-rc5-zen1, rebased by dodo -> now has aufs (again), l7filter (again), and the rest of the usual.

Strip debugging was dropped, don't ask me for it because it was a dumb patch.


zen-overlay ebuild bumped to match, also removed nvidia-drivers/settings 177.70 overlay due to intree.
_________________
Linux polished-diamond 3.0.9-00003-g3c676b1 x86_64 Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz GenuineIntel GNU/Linux
Something witty goes here.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Aug 30, 2008 10:44 pm    Post subject: Reply with quote

cheater1034 wrote:
2,6,27-rc5-zen1, rebased by dodo -> now has aufs (again), l7filter (again), and the rest of the usual.

Strip debugging was dropped, don't ask me for it because it was a dumb patch.


hey thanks for the updated l7filter-patch,

no need to insult people for using custom flags, though :?

I said I use them for testing compiler & kernel stability (this revealed problems in the past) & not on a stable system :cry:
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
unK
l33t
l33t


Joined: 06 Feb 2007
Posts: 769

PostPosted: Sun Aug 31, 2008 2:30 am    Post subject: Reply with quote

kernelOfTruth wrote:
no need to insult people for using custom flags, though :?

I said I use them for testing compiler & kernel stability (this revealed problems in the past) & not on a stable system :cry:

it wasn't insult, just a fact. you won't say these flags are sane, won't you? ;) I see nothing wrong, I was also playing around with my flags some time ago, but it's good to say btw "if you are not prepared for problems, don't use them".
_________________
ncmpcpp - featureful ncurses based MPD client inspired by ncmpc
Back to top
View user's profile Send private message
mieszkoslusarczyk
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2008
Posts: 92
Location: Kraków/Poland

PostPosted: Sun Aug 31, 2008 8:43 am    Post subject: Reply with quote

Compiling with unionfs gives me an error;(
Code:
ERROR: "vfs_splice_to" [fs/unionfs/unionfs.ko] undefined!
ERROR: "vfs_splice_from" [fs/unionfs/unionfs.ko] undefined!

Btw. in kernel config under 'file systems', there are two sections called 'layered filesystems'.
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Sun Aug 31, 2008 9:39 am    Post subject: Reply with quote

unK wrote:
kernelOfTruth wrote:
no need to insult people for using custom flags, though :?

I said I use them for testing compiler & kernel stability (this revealed problems in the past) & not on a stable system :cry:

it wasn't insult, just a fact. you won't say these flags are sane, won't you? ;) I see nothing wrong, I was also playing around with my flags some time ago, but it's good to say btw "if you are not prepared for problems, don't use them".

Most of your flags are redundant, kernelOfTruth. -march=native -O2 sets most of these itself. So i'd also say they are not sane.

To check what flags e.g. -march=native -O2 uses on your system, you can run
Code:
echo 'int main(){return 0;}' > test.c && gcc -v -Q -march=native -O2 test.c -o test && rm test.c test

_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
JoKo
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2004
Posts: 141
Location: Xanthi, Greece

PostPosted: Sun Aug 31, 2008 10:07 am    Post subject: Reply with quote

zen-sources-2.6.27-rc5-zen1 from the zen overlay seem not to have the reiser4 patches. Is there any problem?
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Aug 31, 2008 10:25 am    Post subject: Reply with quote

unK wrote:
kernelOfTruth wrote:
no need to insult people for using custom flags, though :?

I said I use them for testing compiler & kernel stability (this revealed problems in the past) & not on a stable system :cry:

it wasn't insult, just a fact. you won't say these flags are sane, won't you? ;) I see nothing wrong, I was also playing around with my flags some time ago, but it's good to say btw "if you are not prepared for problems, don't use them".


thanks,

no I wouldn't say they are sane, but - have a look at the source

(*sigh* - I guess in this case I was a little touchy :wink: )

gimpel wrote:
Most of your flags are redundant, kernelOfTruth. -march=native -O2 sets most of these itself. So i'd also say they are not sane.

To check what flags e.g. -march=native -O2 uses on your system, you can run
Code:
echo 'int main(){return 0;}' > test.c && gcc -v -Q -march=native -O2 test.c -o test && rm test.c test


thanks, I'll try that & note down the settings, last time it was something really strange :roll:
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Sun Aug 31, 2008 3:43 pm    Post subject: Reply with quote

kernelOfTruth wrote:
unK wrote:
kernelOfTruth wrote:
no need to insult people for using custom flags, though :?

I said I use them for testing compiler & kernel stability (this revealed problems in the past) & not on a stable system :cry:

it wasn't insult, just a fact. you won't say these flags are sane, won't you? ;) I see nothing wrong, I was also playing around with my flags some time ago, but it's good to say btw "if you are not prepared for problems, don't use them".


thanks,

no I wouldn't say they are sane, but - have a look at the source

(*sigh* - I guess in this case I was a little touchy :wink: )

gimpel wrote:
Most of your flags are redundant, kernelOfTruth. -march=native -O2 sets most of these itself. So i'd also say they are not sane.

To check what flags e.g. -march=native -O2 uses on your system, you can run
Code:
echo 'int main(){return 0;}' > test.c && gcc -v -Q -march=native -O2 test.c -o test && rm test.c test


thanks, I'll try that & note down the settings, last time it was something really strange :roll:


Why would you use those on a kernel build, that is one of the dumbest things i've ever seen.

for example:
Code:
-combine -fwhole-program


on a kernel build?
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
Non_E
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 160
Location: Czech Republic

PostPosted: Sun Aug 31, 2008 3:48 pm    Post subject: Reply with quote

Non_E wrote:
Hello,

I am unable to make xconfig. It shows
Code:
  HOSTCXX scripts/kconfig/qconf.o
scripts/kconfig/qconf.cc: In member function ‘void ConfigMainWindow::showIntro()’:
scripts/kconfig/qconf.cc:1644: error: invalid conversion from ‘const char*’ to ‘char*’
scripts/kconfig/qconf.cc:1644: error:   initializing argument 1 of ‘int sprintf(char*, const char*, ...)’
scripts/kconfig/qconf.cc:1645: error: expected `;' before ‘)’ token
make[1]: *** [scripts/kconfig/qconf.o] Error 1
make: *** [xconfig] Error 2


I am using the latest master (78e2dd61236abaa12cf4ea32c38325b44c01afa4).


Well, I took a look at the code and sort of repaired it myself.
Code:
$ diff -U 5 scripts/kconfig/qconf.cc.old scripts/kconfig/qconf.cc
--- scripts/kconfig/qconf.cc.old        2008-08-31 17:40:35.000000000 +0200
+++ scripts/kconfig/qconf.cc    2008-08-31 17:41:45.000000000 +0200
@@ -1628,22 +1628,22 @@
        }
 }

 void ConfigMainWindow::showIntro(void)
 {
-       static const QString str;
+       static char* str;
        sprintf(str, "Welcome to the qconf graphical kernel configuration tool for Linux. %s \"%s\".\n\n"
                "For each option, a blank box indicates the feature is disabled, a check\n"
                "indicates it is enabled, and a dot indicates that it is to be compiled\n"
                "as a module.  Clicking on the box will cycle through the three states.\n\n"
                "If you do not see an option (e.g., a device driver) that you believe\n"
                "should be present, try turning on Show All Options under the Options menu.\n"
                "Although there is no cross reference yet to help you figure out what other\n"
                "options must be enabled to support the option you are interested in, you can\n"
                "still view the help of a grayed-out option.\n\n"
                "Toggling Show Debug Info under the Options menu will show the dependencies,\n"
-               "which you can then match by examining other options.\n\n"),
+               "which you can then match by examining other options.\n\n",
                 getenv("KERNELRELEASE"), getenv("NAME"));


        QMessageBox::information(this, "Introduction", str);
 }


It works for me however I am not C programmer. I would be glad if someone who knows C could review these few lines.
_________________
Only Sith deals in absolutes.
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Sun Aug 31, 2008 4:36 pm    Post subject: Reply with quote

Non_E wrote:
Non_E wrote:
Hello,

I am unable to make xconfig. It shows
Code:
  HOSTCXX scripts/kconfig/qconf.o
scripts/kconfig/qconf.cc: In member function ‘void ConfigMainWindow::showIntro()’:
scripts/kconfig/qconf.cc:1644: error: invalid conversion from ‘const char*’ to ‘char*’
scripts/kconfig/qconf.cc:1644: error:   initializing argument 1 of ‘int sprintf(char*, const char*, ...)’
scripts/kconfig/qconf.cc:1645: error: expected `;' before ‘)’ token
make[1]: *** [scripts/kconfig/qconf.o] Error 1
make: *** [xconfig] Error 2


I am using the latest master (78e2dd61236abaa12cf4ea32c38325b44c01afa4).


Well, I took a look at the code and sort of repaired it myself.
Code:
$ diff -U 5 scripts/kconfig/qconf.cc.old scripts/kconfig/qconf.cc
--- scripts/kconfig/qconf.cc.old        2008-08-31 17:40:35.000000000 +0200
+++ scripts/kconfig/qconf.cc    2008-08-31 17:41:45.000000000 +0200
@@ -1628,22 +1628,22 @@
        }
 }

 void ConfigMainWindow::showIntro(void)
 {
-       static const QString str;
+       static char* str;
        sprintf(str, "Welcome to the qconf graphical kernel configuration tool for Linux. %s \"%s\".\n\n"
                "For each option, a blank box indicates the feature is disabled, a check\n"
                "indicates it is enabled, and a dot indicates that it is to be compiled\n"
                "as a module.  Clicking on the box will cycle through the three states.\n\n"
                "If you do not see an option (e.g., a device driver) that you believe\n"
                "should be present, try turning on Show All Options under the Options menu.\n"
                "Although there is no cross reference yet to help you figure out what other\n"
                "options must be enabled to support the option you are interested in, you can\n"
                "still view the help of a grayed-out option.\n\n"
                "Toggling Show Debug Info under the Options menu will show the dependencies,\n"
-               "which you can then match by examining other options.\n\n"),
+               "which you can then match by examining other options.\n\n",
                 getenv("KERNELRELEASE"), getenv("NAME"));


        QMessageBox::information(this, "Introduction", str);
 }


It works for me however I am not C programmer. I would be glad if someone who knows C could review these few lines.


No, that is no good, try going to help->introduction and you will most likely see a segfault/crash.

Code:
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index 587571b..44bc62e 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -1630,7 +1630,7 @@ void ConfigMainWindow::closeEvent(QCloseEvent* e)

 void ConfigMainWindow::showIntro(void)
 {
-       static const QString str;
+       static char str[1000];
        sprintf(str, "Welcome to the qconf graphical kernel configuration tool for Linux. %s \"%s\".\n\n"
                "For each option, a blank box indicates the feature is disabled, a check\n"
                "indicates it is enabled, and a dot indicates that it is to be compiled\n"
@@ -1641,7 +1641,7 @@ void ConfigMainWindow::showIntro(void)
                "options must be enabled to support the option you are interested in, you can\n"
                "still view the help of a grayed-out option.\n\n"
                "Toggling Show Debug Info under the Options menu will show the dependencies,\n"
-               "which you can then match by examining other options.\n\n"),
+               "which you can then match by examining other options.\n\n",
                 getenv("KERNELRELEASE"), getenv("NAME"));


Now fixed in zen's git.

edit:
Also fixed some things, it wasnt printing the release properly but now it is. This is all from daconfig only, and xconfig was working fine in vanilla so i hope you didnt bother kernel devs if you use zen.
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.


Last edited by cheater1034 on Sun Aug 31, 2008 4:49 pm; edited 2 times in total
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Aug 31, 2008 4:43 pm    Post subject: Reply with quote

cheater1034 wrote:
kernelOfTruth wrote:
unK wrote:
kernelOfTruth wrote:
no need to insult people for using custom flags, though :?

I said I use them for testing compiler & kernel stability (this revealed problems in the past) & not on a stable system :cry:

it wasn't insult, just a fact. you won't say these flags are sane, won't you? ;) I see nothing wrong, I was also playing around with my flags some time ago, but it's good to say btw "if you are not prepared for problems, don't use them".


thanks,

no I wouldn't say they are sane, but - have a look at the source

(*sigh* - I guess in this case I was a little touchy :wink: )

gimpel wrote:
Most of your flags are redundant, kernelOfTruth. -march=native -O2 sets most of these itself. So i'd also say they are not sane.

To check what flags e.g. -march=native -O2 uses on your system, you can run
Code:
echo 'int main(){return 0;}' > test.c && gcc -v -Q -march=native -O2 test.c -o test && rm test.c test


thanks, I'll try that & note down the settings, last time it was something really strange :roll:


Why would you use those on a kernel build, that is one of the dumbest things i've ever seen.

for example:
Code:
-combine -fwhole-program


on a kernel build?


that's anything but dumb:

see: Compile kernel with -fwhole-program --combine

now what ? :mrgreen:
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D


Last edited by kernelOfTruth on Sun Aug 31, 2008 5:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
Non_E
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 160
Location: Czech Republic

PostPosted: Sun Aug 31, 2008 5:43 pm    Post subject: Reply with quote

cheater1034 wrote:
Now fixed in zen's git.

edit:
Also fixed some things, it wasnt printing the release properly but now it is. This is all from daconfig only, and xconfig was working fine in vanilla so i hope you didnt bother kernel devs if you use zen.


I did not bother kernel developers. Thank you.
_________________
Only Sith deals in absolutes.
Back to top
View user's profile Send private message
lucke
n00b
n00b


Joined: 11 May 2005
Posts: 35

PostPosted: Mon Sep 01, 2008 11:55 am    Post subject: Reply with quote

I decided to give reiser4 with lzo compression a spin (partly because I'm kinda running out of space on /), but now whenever I boot into my system and then run fsck from a LiveCD, I have something to fix.

Are there any known incompatibilities between zen (I'm on master) and reiser4? I remember reading about problems with reiser4 and lockless, but lockless isn't in anymore, is it?

Any idea why it'd happen?

I'm using Arch.
Back to top
View user's profile Send private message
dusanc
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 248
Location: Serbia

PostPosted: Mon Sep 01, 2008 1:48 pm    Post subject: Reply with quote

Here's the answer about false fsck errors:
Quote:
Quote:
Yes, the kernel doesn't support i_bytes and i_blocks of compressed files
(because of performance reason), but fsck expects this to be set properly.
The option -n suppresses the screams..


And more:
Quote:
Quote:
Edward:
Ignore reports about wrong bytes.
This is because cryptcompress plugin doesn't keep a track about bytes,
and fsck calculates and insert correct value. Keeping a track of bytes
by kernel leads to performance drop (even worse then with atime), so
we decided to not support it.


More info: http://marc.info/?t=120397635400001&r=1&w=2
Back to top
View user's profile Send private message
lucke
n00b
n00b


Joined: 11 May 2005
Posts: 35

PostPosted: Mon Sep 01, 2008 2:02 pm    Post subject: Reply with quote

Thanks for the explanation. It looks kinda suboptimal, though, as it may cover up different errors.

I've reformatted without cryptcompress for now. Any reason to be using lzo compression, except additional saved space?
Back to top
View user's profile Send private message
dusanc
Apprentice
Apprentice


Joined: 19 Sep 2005
Posts: 248
Location: Serbia

PostPosted: Mon Sep 01, 2008 2:25 pm    Post subject: Reply with quote

I always advise to use compression because if it works things are way faster and if it doesn't it's all the same as plain reiser4 (maybe some funky multimedia files can be false positive as compressable).
And also because it checksums every compressed file.
I'm currently pushing the devs to make cryptocompress as default r4 disk format :)
Back to top
View user's profile Send private message
lucke
n00b
n00b


Joined: 11 May 2005
Posts: 35

PostPosted: Mon Sep 01, 2008 2:47 pm    Post subject: Reply with quote

Hah, I'm back on cryptcompress. I hope reiser4 won't prove to be a bumpy ride.

Thanks.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Mon Sep 01, 2008 3:31 pm    Post subject: Reply with quote

lucke wrote:
Hah, I'm back on cryptcompress. I hope reiser4 won't prove to be a bumpy ride.

Thanks.


it surely won't: the most annoying bugs have already been fixed :idea:

enjoy :D
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3, 4, 5 ... 21, 22, 23  Next
Page 4 of 23

 
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