[vlc] Re: Cross Compile VLC for mips32

Danny Brown danbrwn at gmail.com
Wed Oct 12 20:24:38 CEST 2005


I would check what I have suggested earlier since you are targetting another
device. One thing about processors is the way they store data. Some are
BIG_ENDIAN and some are LITTLE_ENDIAN. Meaning one stores data backwards
from the other. If a part of your system is built one way and another the
other, you may get file errors and crashes. Other than that I really can't
help much more. Good Luck.

On 10/12/05, Arthur Chiu <arthurchiu at gmail.com> wrote:
>
> Hi, thanks for your reply. The function that prints this error message out
> is actually the "Read" function in <VLC-0.8.2>/modules/access/file.c,
> around line 404 or so. It uses a function call "read", which is defined by
> the C function "fread", which reads from a file stream to a buffer pointed
> by the pointer passed in. Seems like it is returning a -1, meaning read
> failed. I haven't find what function calls this "Read" function in file.cyet though. Here's a more detailed log when I ran VLC.
>
> [00000001] main vlc debug: translation test: code is "C"
> [00000001] main vlc debug: checking builtin modules
> [00000001] main vlc debug: module bank initialized, found 155 modules
> [00000001] main vlc debug: opening config file /root/.vlc/vlcrc
> [00000001] main vlc warning: config file /root/.vlc/vlcrc does not exist
> yet
> [00000001] main vlc debug: CPU has capabilities
> [00000001] main vlc debug: looking for memcpy module: 1 candidate
> [00000021] main module debug: using memcpy module "memcpy"
> [00000195] main playlist debug: waiting for thread completion
> [00000195] main playlist debug: thread 1026 (playlist) created at priority
> 0 (src/playlist/playlist.c:152)
> [00000196] main private debug: waiting for thread completion
> [00000196] main private debug: thread 2051 (preparser) created at priority
> 0 (src/playlist/playlist.c:174)
> [00000197] main interface debug: looking for interface module: 1 candidate
> [00000123] main module debug: using interface module "hotkeys"
> [00000197] main interface debug: interface initialized
> [00000197] main interface debug: thread 3076 (interface) created at
> priority 0 (src/interface/interface.c:211)
> [00000195] main playlist debug: adding playlist item `../complete_58.mp3'
> ( ../complete_58.mp3 )
> [00000198] main interface debug: looking for interface module: 1 candidate
> Remote control interface initialized, `h' for help
> [00000121] main module debug: using interface module "rc"
> [00000198] main interface debug: interface initialized
> [00000198] main interface debug: thread 4101 (manager) created at priority
> 0 (src/interface/interface.c:196)
> [00000195] main playlist debug: creating new input thread
> [00000199] main input debug: waiting for thread completion
> [00000199] main input debug: `../complete_58.mp3' gives access `' demux `'
> path `../complete_58.mp3'
> [00000199] main input debug: creating demux: access='' demux=''
> path='../complete_58.mp3'
> [00000200] main demuxer debug: looking for access_demux module: 0
> candidates
> [00000200] main demuxer warning: no access_demux module matched "any"
> [00000199] main input debug: creating access '' path='../complete_58.mp3'
> [00000201] main access debug: looking for access2 module: 2 candidates
> [00000199] main input debug: thread 5126 (input) created at priority 0
> (src/input/input.c:230)
> [00000201] access_file access debug: opening file `../complete_58.mp3'
> [00000106] main module debug: using access2 module "access_file"
> [00000202] main private debug: pre buffering
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> [00000201] access_file access error: read failed (Bad address)
> signal 2 received, terminating vlc - do it again in case it gets stuck
> <----------- WHEN I PRESS CTRL+C
> [00000201] access_file access error: read failed (Bad address)
> [00000001] main vlc debug: removing all interfaces
> [00000198] main interface debug: thread 4101 joined
> (src/interface/interface.c:238)
> [00000121] main module debug: unlocking module "rc"
> [00000197] main interface debug: thread 3076 joined
> (src/interface/interface.c:238)
> [00000123] main module debug: unlocking module "hotkeys"
> [00000001] main vlc debug: removing all playlists
> [00000196] main private debug: thread 2051 joined
> (src/playlist/playlist.c:206)
> [00000202] main private debug: prebuffering done 0 bytes in 4s - 0
> kbytes/s
> [00000202] main private error: cannot pre fill buffer
> [00000199] main input warning: cannot create a stream_t from access
> [00000106] main module debug: unlocking module "access_file"
> [00000199] main input debug: thread 5126 joined (src/input/input.c:386)
> [00000195] main playlist debug: thread 1026 joined
> (src/playlist/playlist.c:207)
> [00000195] main playlist: stopping playback
> [00000195] main playlist debug: deleting playlist item
> `../complete_58.mp3'
> [00000001] main vlc debug: removing all video outputs
> [00000001] main vlc debug: removing all audio outputs
> [00000001] main vlc debug: removing announce handler
> [00000021] main module debug: unlocking module "memcpy"
>
> The same file can be played by vlc-0.8.1 (on an x86 machine though) which
> is downloaded directly through yum. So I wouldn't assume VLC-0.8.2 is
> broken would it? Thanks a lot.
>
> Cheers,
>
> Arthur
>
>
>
> On 10/12/05, Rémi Denis-Courmont <rem at videolan.org> wrote:
> >
> > Le Mardi 11 Octobre 2005 23:55, Arthur Chiu a écrit :
> > > I tried to compile using --disable-plugins and make everything built
> > > in, and I don't get the seg fault anymore. However, I am getting an
> > > error saying:
> > >
> > > [00000178] access_file access error: read failed (Bad address)
> >
> > What errno is that ? I can't find it in the specification for POSIX
> > read.
> >
> > Also, please try the latest 0.8.4-test release. I think some linking
> > problems were fixed since 0.8.2.
> >
> > --
> > Rémi Denis-Courmont
> > http://www.simphalempin.com/home/
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20051012/d16850cd/attachment.html>


More information about the vlc mailing list