[Open64-devel] 回复: FreeBSD
Brought to you by:
ributzka,
suneeljain
From: Jian-Xin L. <la...@gm...> - 2009-01-28 05:47:12
|
Hi, >> 1. Is is possible to pass the path to the gcc in use? The first GCC found in $PATH will be used. So you can adjust your $PATH. >> 2. Where can the filesystem layout be changed? On linux, Open64 read the /proc/cpuinfo to get the CPU type and determine the target model. I don't know how to get the CPU info on BSD. But you can add -march=anyx86 or -march=opteron to specify the CPU type. These code are all in osprey/driver/*.* >> 3. Ever seen the "Cannot allocate memory" during Writing WHIRL file phase? Never. You can buld a debugable open64 to debug the compiler by gdb. I guess it may caused by unaligned access. We can find out the root cause by gdb. To build a debugable compiler, you can append BUILD_OPTIMIZE=DEBUG to the make like this: $ make V=1 BUILD_OPTIMIZE=DEBUG 2009/1/25, Dirk Meyer <dir...@di...>: > Hello, > > I am trying to port open64 to FreeBSD. > So far the frontend seens to work, > but the backend fails with signal 4. > > 1. Is is possible to pass the path to the gcc in use? > 2. Where can the filesystem layout be changed? > 3. Ever seen the "Cannot allocate memory" during Writing WHIRL file phase? > > Do you have any suggestiosn where to dig deeper into this? > > kind regards Dirk > > - [dir...@di...],[dir...@gu...],[dinoex@FreeBSD.org] > http://people.freebsd.org/~dinoex/errorlogs/ > > FreeBSD 6.4 i386$ env TOOLDIR=/ust/local openCC hello.c > openCC WARNING: cannot read /proc/cpuinfo, defaulting to basic 32-bit x86. > ### Error during Writing WHIRL file phase: > ### I/O error in /tmp/ccB#.1pT5O3: Cannot allocate memory > openCC INTERNAL ERROR: /usr/local/usr/lib/gfecc returned non-zero status 1 > > FreeBSD 7.1 amd64$ env TOOLDIR=/ust/local openCC hello.c > openCC WARNING: cannot read /proc/cpuinfo, defaulting to basic 32-bit x86. > ### Error during Writing WHIRL file phase: > ### I/O error in /tmp/ccB#.egghM8: No such file or directory > openCC INTERNAL ERROR: /usr/local/usr/lib/wgen42 returned non-zero status 1 > > FreeBSD 6.4 i386$ env TOOLDIR=/ust/local openCC src/dinoex_irc.c > openCC WARNING: cannot read /proc/cpuinfo, defaulting to basic 32-bit x86. > src/dinoex_irc.c: In function `char* setup_dcc_local(ir_sockaddr_union_t*)': > src/dinoex_irc.c:329: error: invalid conversion from `void*' to `char*' > src/dinoex_irc.c: In function `int connectirc2(res_addrinfo_t*)': > src/dinoex_irc.c:528: error: invalid conversion from `void*' to `char*' > src/dinoex_irc.c: In function `int has_joined_channels(int)': > src/dinoex_irc.c:605: error: invalid conversion from `void*' to `channel_t*' > src/dinoex_irc.c:605: error: invalid conversion from `void*' to `channel_t*' > src/dinoex_irc.c: In function `igninfo* get_ignore(const char*)': > src/dinoex_irc.c:621: error: invalid conversion from `void*' to `igninfo*' > src/dinoex_irc.c:623: error: invalid conversion from `void*' to `igninfo*' > src/dinoex_irc.c:632: error: invalid conversion from `void*' to `igninfo*' > Signal: Bus error: 10 in Writing WHIRL file phase. > Error: Signal Bus error: 10 in phase Writing WHIRL file -- processing > aborted > openCC INTERNAL ERROR: /usr/local/usr/lib/gfecc died due to signal 4 > pid 65950 (gfecc), uid 1000: exited on signal 4 > > FreeBSD 7.1 amd64$ env TOOLDIR=/ust/local openCC src/dinoex_irc.c > openCC WARNING: cannot read /proc/cpuinfo, defaulting to basic 32-bit x86. > src/dinoex_irc.c: In function 'char* setup_dcc_local(ir_sockaddr_union_t*)': > src/dinoex_irc.c:329: error: invalid conversion from 'void*' to 'char*' > src/dinoex_irc.c: In function 'int connectirc2(res_addrinfo_t*)': > src/dinoex_irc.c:528: error: invalid conversion from 'void*' to 'char*' > src/dinoex_irc.c: In function 'int has_joined_channels(int)': > src/dinoex_irc.c:605: error: invalid conversion from 'void*' to 'channel_t*' > src/dinoex_irc.c:605: error: invalid conversion from 'void*' to 'channel_t*' > src/dinoex_irc.c: In function 'igninfo* get_ignore(const char*)': > src/dinoex_irc.c:621: error: invalid conversion from 'void*' to 'igninfo*' > src/dinoex_irc.c:623: error: invalid conversion from 'void*' to 'igninfo*' > src/dinoex_irc.c:632: error: invalid conversion from 'void*' to 'igninfo*' > pid 56404 (wgen42), uid 1000: exited on signal 4 > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Open64-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/open64-devel > -- Regards, Lai Jian-Xin |