[openbeos] Re: Build error: bfs.h error: cast from ‘const small_data*’ to ‘fssh_addr_t’ loses precision
- From: Raymond Rodgers <obos@xxxxxxxxxxxx>
- To: openbeos@xxxxxxxxxxxxx
- Date: Mon, 07 Apr 2008 18:03:01 -0700
Ingo Weinhold wrote:
On 2008-04-07 at 23:33:43 [+0200], Raymond Rodgers <obos@xxxxxxxxxxxx>
wrote:
I've been getting a build error under Linux (Fedora 8 x86_64 regardless
of whether in normal or "linux32" mode) for the last couple of weeks:
src/add-ons/kernel/file_systems/bfs/bfs.h: In member function ‘bool
small_data::IsLast(const bfs_inode*) const’:
src/add-ons/kernel/file_systems/bfs/bfs.h:375: error: cast from ‘const
small_data*’ to ‘fssh_addr_t’ loses precision
src/add-ons/kernel/file_systems/bfs/bfs.h:375: error: cast from ‘const
bfs_inode*’ to ‘fssh_addr_t’ loses precision
Looks like you're still in 64 bit mode. Otherwise a cast from a pointer to
a 32 bit integer shouldn't lose any precision.
CU, Ingo
Thanks for responding Ingo, but it doesn't appear that's the problem
unless linux32 is broken on my machine. After I got your message, I
removed the "generated" directory, and rebuilt the build tools while in
linux32 mode, and I still got the same error. Thinking that perhaps my
sources were corrupt afterwards, I completely removed my source
directories, and fetched them again via svn, rebuilt the build tools,
and tried again with the same results. (Again in linux32 mode.)
So either my linux32 executable doesn't currently work, or perhaps
there's something else about my system that the build process doesn't
like at the moment.
Thanks again,
Raymond
- Follow-Ups:
- References:
Other related posts:
- » [openbeos] Build error: bfs.h error: cast from ‘const small_data*’ to ‘fssh_addr_t’ loses precision
- » [openbeos] Re: Build error: bfs.h error: cast from ‘const small_data*’ to ‘fssh_addr_t’ loses precision
- » [openbeos] Re: Build error: bfs.h error: cast from ‘const small_data*’ to ‘fssh_addr_t’ loses precision
- » [openbeos] Re: Build error: bfs.h error: cast from ‘const small_data*’ to ‘fssh_addr_t’ loses precision
- » [openbeos] Re: Build error: bfs.h error: cast from ‘const small_data*’ to ‘fssh_addr_t’ loses precision
- » [openbeos] Re: Build error: bfs.h error: cast from ‘const small_data*’ to ‘fssh_addr_t’ loses precision
- » [openbeos] Re: Build error: bfs.h error: cast from ‘const small_data*’ to ‘fssh_addr_t’ loses precision
- » [openbeos] Re: Build error: bfs.h error: cast from ‘const small_data*’ to ‘fssh_addr_t’ loses precision
I've been getting a build error under Linux (Fedora 8 x86_64 regardless of whether in normal or "linux32" mode) for the last couple of weeks: src/add-ons/kernel/file_systems/bfs/bfs.h: In member function ‘bool small_data::IsLast(const bfs_inode*) const’: src/add-ons/kernel/file_systems/bfs/bfs.h:375: error: cast from ‘const small_data*’ to ‘fssh_addr_t’ loses precision src/add-ons/kernel/file_systems/bfs/bfs.h:375: error: cast from ‘const bfs_inode*’ to ‘fssh_addr_t’ loses precision
Looks like you're still in 64 bit mode. Otherwise a cast from a pointer to a 32 bit integer shouldn't lose any precision.
CU, Ingo