Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] OSS4 initial service start fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
JohnLM
n00b
n00b


Joined: 20 Apr 2009
Posts: 71
Location: LATVIA

PostPosted: Sun Sep 12, 2010 6:27 pm    Post subject: [SOLVED] OSS4 initial service start fails Reply with quote

EDIT: Marked as solved... see this post below for solution.

To make it short.
I've installed oss4, but it fails to start!

Code:
isg005 ~ # /etc/init.d/oss start
 * Caching service dependencies ...                                               [ ok ]
 * Starting OSS ...
Relinking OSS kernel modules for "2.6.34-gentoo-r6 SMP "
This may take few moments - please stand by...

OSS build environment set up for REGPARM kernels

Building module osscore
Failed to compile OSS
make -C /lib/modules/2.6.34-gentoo-r6/build M=/usr/lib64/oss/build modules
make[1]: Entering directory `/usr/src/linux-2.6.34-gentoo-r6'
  CC [M]  /usr/lib64/oss/build/osscore.o
/usr/lib64/oss/build/osscore.c: In function ‘oss_get_procname’:
/usr/lib64/oss/build/osscore.c:422: error: dereferencing pointer to incomplete type
/usr/lib64/oss/build/osscore.c: In function ‘oss_get_pid’:
/usr/lib64/oss/build/osscore.c:428: error: dereferencing pointer to incomplete type
/usr/lib64/oss/build/osscore.c: In function ‘oss_get_uid’:
/usr/lib64/oss/build/osscore.c:435: error: dereferencing pointer to incomplete type
/usr/lib64/oss/build/osscore.c: In function ‘oss_sleep’:
/usr/lib64/oss/build/osscore.c:723: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)
/usr/lib64/oss/build/osscore.c:723: error: (Each undeclared identifier is reported only once
/usr/lib64/oss/build/osscore.c:723: error: for each function it appears in.)
/usr/lib64/oss/build/osscore.c:723: error: implicit declaration of function ‘signal_pending’
/usr/lib64/oss/build/osscore.c:723: error: implicit declaration of function ‘schedule’
/usr/lib64/oss/build/osscore.c:726: error: implicit declaration of function ‘schedule_timeout’
/usr/lib64/oss/build/osscore.c: In function ‘oss_wakeup’:
/usr/lib64/oss/build/osscore.c:765: error: ‘TASK_NORMAL’ undeclared (first use in this function)
/usr/lib64/oss/build/osscore.c: In function ‘oss_pci_read_devpath’:
/usr/lib64/oss/build/osscore.c:1622: warning: passing argument 1 of ‘dev_name’ from incompatible pointer type
include/linux/device.h:452: note: expected ‘const struct device *’ but argument is of type ‘struct pci_dev *’
/usr/lib64/oss/build/osscore.c:1622: warning: return discards qualifiers from pointer target type
/usr/lib64/oss/build/osscore.c: In function ‘oss_fp_check’:
/usr/lib64/oss/build/osscore.c:1846: warning: comparison of distinct pointer types lacks a cast
/usr/lib64/oss/build/osscore.c:1848: warning: comparison of distinct pointer types lacks a cast
/usr/lib64/oss/build/osscore.c:1850: warning: comparison of distinct pointer types lacks a cast
/usr/lib64/oss/build/osscore.c:1855: warning: comparison of distinct pointer types lacks a cast
/usr/lib64/oss/build/osscore.c:1857: warning: comparison of distinct pointer types lacks a cast
make[2]: *** [/usr/lib64/oss/build/osscore.o] Error 1
make[1]: *** [_module_/usr/lib64/oss/build] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.34-gentoo-r6'
make: *** [default] Error 2

Relinking the OSS kernel modules failed
/dev/mixer: No such file or directory
 * Failed to start OSS                                             [ !! ]


OSS4 version seems irrelevant. All of overlays's ebuild ended up with same problem.
I'm using Audigy4 sound card. I also got an onboard HD one (which is supposedly disabled in BIOS).

Maybe there is something with kernel settings? Any ideas would be welcome.
_________________
"I reject your reality and substitute my own" - A. Savage


Last edited by JohnLM on Thu Sep 16, 2010 10:59 am; edited 3 times in total
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6097
Location: Dallas area

PostPosted: Sun Sep 12, 2010 6:38 pm    Post subject: Reply with quote

If you compiled ALSA into the kernel it would stop oss4 from loading.
If you compiled ALSA as modules and they are loaded, same thing.


what does
grep -E "ALSA|SOUND" /usr/src/linux/.config
return
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
JohnLM
n00b
n00b


Joined: 20 Apr 2009
Posts: 71
Location: LATVIA

PostPosted: Sun Sep 12, 2010 8:31 pm    Post subject: Reply with quote

Code:
johnlm@isg005 ~ $ grep -E 'ALSA|SOUND|SND' /usr/src/linux/.config
CONFIG_SOUND=y
# CONFIG_SOUND_OSS_CORE is not set
# CONFIG_SND is not set
# CONFIG_SOUND_PRIME is not set
# CONFIG_CRYPTO_SALSA20 is not set
# CONFIG_CRYPTO_SALSA20_X86_64 is not set


I got the above in .config
Tried rebuilding with CONFIG_SOUND disabled, but it didn't change anything (because it's a "menu switch" anyway).

/me is clueless :?:
_________________
"I reject your reality and substitute my own" - A. Savage
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6097
Location: Dallas area

PostPosted: Sun Sep 12, 2010 8:46 pm    Post subject: Reply with quote

what does "ossdetect -v" return (needs to be run as root)

I have mine set to
Code:
CONFIG_SOUND=m

and then I have snd-hda-intel in my blacklist file
If I remember correctly it loads some generic sound code, which interferes with oss.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
JohnLM
n00b
n00b


Joined: 20 Apr 2009
Posts: 71
Location: LATVIA

PostPosted: Sun Sep 12, 2010 8:57 pm    Post subject: Reply with quote

Code:
isg005 ~ # ossdetect -v
Detected Creative Sound Blaster Audigy2 Value/Audigy4
No USB support detected in the system - skipping USB


ossdetect seems to detect the card just fine
_________________
"I reject your reality and substitute my own" - A. Savage
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6097
Location: Dallas area

PostPosted: Sun Sep 12, 2010 9:15 pm    Post subject: Reply with quote

which version of oss4 are you using?
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
JohnLM
n00b
n00b


Joined: 20 Apr 2009
Posts: 71
Location: LATVIA

PostPosted: Sun Sep 12, 2010 9:51 pm    Post subject: Reply with quote

Anon-E-moose wrote:
which version of oss4 are you using?

Currently installed oss-4.0.1016
but I tried
oss-4.1.1052-r1 and oss-devel-4.2_rc1 with no luck

You seem to be running oss4 as well. What kernel version are you using?
_________________
"I reject your reality and substitute my own" - A. Savage
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6097
Location: Dallas area

PostPosted: Sun Sep 12, 2010 9:57 pm    Post subject: Reply with quote

https://bugs.gentoo.org/attachment.cgi?id=213194

save it as oss-4.2.2002.ebuild in your local overlay, and run ebuild manifest on it.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
JohnLM
n00b
n00b


Joined: 20 Apr 2009
Posts: 71
Location: LATVIA

PostPosted: Sun Sep 12, 2010 10:26 pm    Post subject: Reply with quote

Cool, local ebuilds are something new for me...
but a failure again.

EDIT: fixed the ebuild, but now another error jumped out
Code:
 ...  compilation messages ...

>>> Source compiled.
>>> Test phase [not enabled]: media-sound/oss-4.2.2002

>>> Install oss-4.2.2002 into /var/tmp/portage/media-sound/oss-4.2.2002/image/ category media-sound
 * OSS build environment set up for REGPARM kernels
 * Building module osscore
Makefile:1: /etc/oss.conf: No such file or directory
make: *** No rule to make target `/etc/oss.conf'.  Stop.
 * ERROR: media-sound/oss-4.2.2002 failed:
 *   Failed to compile OSS
 *
 * Call stack:
 *     ebuild.sh, line   54:  Called src_install
 *   environment, line 3584:  Called build_oss_modules
 *   environment, line  371:  Called die
 * The specific snippet of code:
 *       make KERNELDIR=$KERNELDIR || die "Failed to compile OSS";


Among other things I noticed something about CONFIG_REGPARM. I have no such option, but overlay ebuilds claim to be configured for REGPARM kernel (see my first post).
I have no idea what it is though.
_________________
"I reject your reality and substitute my own" - A. Savage
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6097
Location: Dallas area

PostPosted: Sun Sep 12, 2010 10:38 pm    Post subject: Reply with quote

are you root when you try and install the ebuild?

How are you trying to install it?
with "emerge -v oss"
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
JohnLM
n00b
n00b


Joined: 20 Apr 2009
Posts: 71
Location: LATVIA

PostPosted: Sun Sep 12, 2010 10:53 pm    Post subject: Reply with quote

Anon-E-moose wrote:
are you root when you try and install the ebuild?

How are you trying to install it?
with "emerge -v oss"


Yes and yes.
_________________
"I reject your reality and substitute my own" - A. Savage
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6097
Location: Dallas area

PostPosted: Sun Sep 12, 2010 11:13 pm    Post subject: Reply with quote

Something doesn't seem right with your setup.

what does "emerge --info" return
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
JohnLM
n00b
n00b


Joined: 20 Apr 2009
Posts: 71
Location: LATVIA

PostPosted: Sun Sep 12, 2010 11:26 pm    Post subject: Reply with quote

Code:
johnlm@isg005 ~ $ emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r6-x86_64-AMD_Phenom-tm-_9950_Quad-Core_Processor-with-gentoo-1.12.13
Timestamp of tree: Sun, 12 Sep 2010 22:15:01 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=barcelona -mcx16 -fomit-frame-pointer -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=barcelona -mcx16 -fomit-frame-pointer -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.tups.lv/source/ ftp://mirror.elen.ktu.lt/ http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB lv"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/oss-overlay /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 acl acpi amd64 bash-completion berkdb branding bzip2 cairo cli cracklib crypt css cxx dbus dri dts ffmpeg flac fontconfig fortran gdbm gnome gpm gtk gzip hal iconv jack jpeg kpathsea libnotify mad matroska mmx modules mp3 mudflap multilib ncurses nls nptl nptlonly ogg openexr opengl openmp pam pcre perl png policykit pppd python readline reflection session smp sndfile sse sse2 ssl svg sysfs tcpd threads truetype unicode vorbis x264 xcb xcomposite xinerama xml xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB lv" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fglrx" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

_________________
"I reject your reality and substitute my own" - A. Savage
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6097
Location: Dallas area

PostPosted: Sun Sep 12, 2010 11:43 pm    Post subject: Reply with quote

Could you post the build log /var/tmp/portage/media-sound/oss-4.2.2002/temp/build.log -- use http://pastebin.com/

and post what the link is
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
JohnLM
n00b
n00b


Joined: 20 Apr 2009
Posts: 71
Location: LATVIA

PostPosted: Mon Sep 13, 2010 12:00 am    Post subject: Reply with quote

For my convenience I dumped the thing on my site.
http://johnlm.hopto.org/oss-4.2.2002_build.log.bz2

P.S.
:/me thinking to himself (out loud): Why do bugs in my posts are so cryptic.
Hopefully because I don't waste forum's resources with trivial ones. :)
_________________
"I reject your reality and substitute my own" - A. Savage
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6097
Location: Dallas area

PostPosted: Mon Sep 13, 2010 12:20 am    Post subject: Reply with quote

I'm not really sure what is going on.
There may be something left over from a previous emerge

try doing "emerge --depclean oss" and then "emerge -v oss"

it worked fine for me when I did, but it's a while back so this is all from memory.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
JohnLM
n00b
n00b


Joined: 20 Apr 2009
Posts: 71
Location: LATVIA

PostPosted: Mon Sep 13, 2010 9:22 am    Post subject: Reply with quote

Well if there's nothing else, then it must be the CONFIG_REGPARM kernel option. Google says it's an obsolete (removed in 2.6.19) setting and applicable for i386 anyway.

I'm building for x86_64 (or the amd64) and I have no REGPARM option. So how do I force oss ebuild (and the module build in first oss startup) to use --no-regparm argument?
_________________
"I reject your reality and substitute my own" - A. Savage
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6097
Location: Dallas area

PostPosted: Mon Sep 13, 2010 10:54 am    Post subject: Reply with quote

Mine build with the regparm option. So doubtful it's that.

It acts like it only partially installs, which I don't understand.


Edit to add: I did look at your build log and this stands out
Code:
-O2 -pipe -O -O -O -D_KERNEL -O3


I'm not sure where the -O3 flag is coming from, the -O2 is from CFLAGS,
so something else is introducing it and that may be the cause of some of
your problems.

You're not setting CFLAGS in your profile (environment) are you?


Not sure why you are using -march=barcelona, instead of -march=native


Running this
Code:
gcc -march=native -E -v - </dev/null 2>&1 | sed -n 's/.* -v - //p'

will tell you what flags gcc thinks it should apply for your cpu.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
JohnLM
n00b
n00b


Joined: 20 Apr 2009
Posts: 71
Location: LATVIA

PostPosted: Mon Sep 13, 2010 2:32 pm    Post subject: Reply with quote

Anon-E-moose wrote:
Mine build with the regparm option. So doubtful it's that.

It acts like it only partially installs, which I don't understand.


Edit to add: I did look at your build log and this stands out
Code:
-O2 -pipe -O -O -O -D_KERNEL -O3


I'm not sure where the -O3 flag is coming from, the -O2 is from CFLAGS,
so something else is introducing it and that may be the cause of some of
your problems.

You're not setting CFLAGS in your profile (environment) are you?

Nope, I have no environment CFLAGS. Seems the oss4 ebuild gets it from it's own configure script or makefile.
And yes regparm doesn't seem to be the error anyway. I forcibly disabled it and the same thing happened (except it saying NOREGPARM everywhere).

Anon-E-moose wrote:
Not sure why you are using -march=barcelona, instead of -march=native

Running this
Code:
gcc -march=native -E -v - </dev/null 2>&1 | sed -n 's/.* -v - //p'

will tell you what flags gcc thinks it should apply for your cpu.

I don't use native setting because older gccs failed to properly detect my processor (falling back to generic x86_64), so I explicitly set it to barcelona so it optimizes for my Phenom. Now I just keep for "old habit" sake.
Anyway I got this:
Code:
johnlm@isg005 ~ $ gcc -march=native -E -v - </dev/null 2>&1 | sed -n 's/.* -v - //p'
-D_FORTIFY_SOURCE=2 -march=amdfam10 -mcx16 -msahf -mpopcnt --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=amdfam10

amdfam10 is (should be) an alias for barcelona. There was no amdfam10 when I first installed Gentoo.


Returning to the actual bug, I think I'm onto something.
It appears oss4 ebuild doesn't properly keep inside it's "build environment".

while the error was
Code:
>>> Install oss-4.2.2002 into /var/tmp/portage/media-sound/oss-4.2.2002/image/ category media-sound
 * OSS build environment set up for REGPARM kernels
 * Building module osscore
Makefile:1: /etc/oss.conf: No such file or directory
make: *** No rule to make target `/etc/oss.conf'.  Stop.
 * ERROR: media-sound/oss-4.2.2002 failed:
 *   Failed to compile OSS
 *
 * Call stack:
 *     ebuild.sh, line   54:  Called src_install
 *   environment, line 3584:  Called build_oss_modules
 *   environment, line  371:  Called die
 * The specific snippet of code:
 *       make KERNELDIR=$KERNELDIR || die "Failed to compile OSS";


I copied the oss.conf to my root tree.
Code:
cp /var/tmp/portage/media-sound/oss-4.2.2002/work/build/prototype/etc/oss.conf /etc/oss.conf

and the now the build fails like this
Code:
>>> Install oss-4.2.2002 into /var/tmp/portage/media-sound/oss-4.2.2002/image/ category media-sound
 * OSS build environment set up for REGPARM kernels
 * Building module osscore
make: /usr/sbin/ossvermagic: Command not found
make -C /lib/modules/2.6.34-gentoo-r6/build M=/var/tmp/portage/media-sound/oss-4.2.2002/work/build/prototype/usr/lib/oss/build modules
make[1]: Entering directory `/usr/src/linux-2.6.34-gentoo-r6'
Makefile:535: /usr/src/linux-2.6.34-gentoo-r6/arch/amd64/Makefile: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-2.6.34-gentoo-r6/arch/amd64/Makefile'.  Stop.
make[1]: Leaving directory `/usr/src/linux-2.6.34-gentoo-r6'
make: *** [default] Error 2
 * ERROR: media-sound/oss-4.2.2002 failed:
 *   Failed to compile OSS
 *
 * Call stack:
 *     ebuild.sh, line   54:  Called src_install
 *   environment, line 3584:  Called build_oss_modules
 *   environment, line  371:  Called die
 * The specific snippet of code:
 *       make KERNELDIR=$KERNELDIR || die "Failed to compile OSS";


Interesting... What do you think?

p.s. This might warrant as an actual bug report. Where would I report this? Gentoo Bug #184123 maybe?
_________________
"I reject your reality and substitute my own" - A. Savage
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6097
Location: Dallas area

PostPosted: Mon Sep 13, 2010 2:48 pm    Post subject: Reply with quote

Got me scratching my head, and I don't know what else to tell you, to get it going.
You're right about the "-O3" flag, I just checked my build.
I am going to assume that you have linux-headers installed


Yeah, you might put in a bug report.

or

go to the oss forum http://4front-tech.com/forum/viewforum.php?f=3
and see if they know what is going on. (I think you have to join to post)
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
JohnLM
n00b
n00b


Joined: 20 Apr 2009
Posts: 71
Location: LATVIA

PostPosted: Mon Sep 13, 2010 4:12 pm    Post subject: Reply with quote

SUCCESS!!!

I used https://bugs.gentoo.org/attachment.cgi?id=213156 instead. It doesn't try to compile modules in ebuild, but compiles them as soundon gets run.
Now works like a charm, well osstest at least.
Anon-E-moose, thanks for the help!

For reference and for sake of sanity of people going through the same thing... a step by step problem solver.
1. Try the oss-overlay ebuilds.
They didn't work for me, but they will get updated sometime. Then again, if you're reading this it is likely oss-overlay ebuilds didn't work for you either. Moving on...

2. Create your local overlay repository if you don't have one.
See http://en.gentoo-wiki.com/wiki/Overlay#Local_Overlays for info since it is out of scope for this topic and you should understand what you're doing.

3. Save https://bugs.gentoo.org/attachment.cgi?id=213156 as oss-4.2.2002.ebuild and put it in your local overlay.
Assuming usual paths it should be /usr/local/portage/media-sound/oss/oss-4.2.2002.ebuild

4. Build a manifest file for the ebuild.
Code:
# cd /usr/local/portage/media-sound/oss/
# ebuild oss-4.2.2002.ebuild manifest

You may substitute your path for cd to wherever you have your local overlay oss package.

5. Unless you have globally accepted ~amd64 keyword (subsitute it with ~x86 for 32bit system), you will need to make a keyword exception.
Code:
# echo "=media-sound/oss-4.2.2002 ~amd64" >> /etc/portage/package.keywords

and now it should be as simple as emerging it. (see if it tries to emerge the correct version)
Code:
# emerge -av oss


6. The ebuild might say it starts with /etc/init.d/oss start, but for this version IT IS A LIE!
The thing is the official non-gentoo init script. Then you can simply do
Code:
# soundon

If it scream about missing modules, reboot and try again (logging in and out won't work).
NEW: I've written a simple gentoo style init script. If you want it, download from http://johnlm.hopto.org/oss4

7. You may want to add oss to startup.
Code:
# rc-update add oss default

Rest of configurations are up to you! Enjoy!

Hope this helped!
_________________
"I reject your reality and substitute my own" - A. Savage


Last edited by JohnLM on Thu Sep 16, 2010 12:08 pm; edited 4 times in total
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6097
Location: Dallas area

PostPosted: Mon Sep 13, 2010 4:40 pm    Post subject: Reply with quote

glad it's solved.

The link on bugs.gentoo for all the ebuilds is https://bugs.gentoo.org/show_bug.cgi?id=184123
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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