Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeBSD build, error: non-ASCII characters are not allowed outside of literals and identifiers #612

Closed
VisualPrankDude opened this issue Feb 7, 2014 · 7 comments

Comments

@VisualPrankDude
Copy link
Contributor

In file included from /usr/home/prank/src/radare2/libr/..//libr/anal/p/../../../../../../../../../../../../../../../../../../../../..///usr/home/prank/src/radare2/libr/..//libr/asm/arch/tms320/tms320_dasm.c:1023:
/usr/home/prank/src/radare2/libr/..//libr/anal/p/../../../../../../../../../../../../../../../../../../../../..///usr/home/prank/src/radare2/libr/..//libr/asm/arch/tms320/c55x/table_e.h:694:29: error: non-ASCII characters are not allowed outside of literals and identifiers
                .syntax = INSN_SYNTAX(MOV <U+2013>k4, dst),
                                          ^~~~~~~~
/usr/home/prank/src/radare2/libr/..//libr/anal/p/../../../../../../../../../../../../../../../../../../../../..///usr/home/prank/src/radare2/libr/..//libr/asm/arch/tms320/c55x/table_e.h:736:38: error: non-ASCII characters are not allowed outside of literals and identifiers
                                .syntax = INSN_SYNTAX(SFTS dst, #<U+2212>1),
                                                                 ^~~~~~~~
/usr/home/prank/src/radare2/libr/..//libr/anal/p/../../../../../../../../../../../../../../../../../../../../..///usr/home/prank/src/radare2/libr/..//libr/asm/arch/tms320/c55x/table_e.h:974:38: error: non-ASCII characters are not allowed outside of literals and identifiers
                                .syntax = INSN_SYNTAX(SFTL dst, #<U+2212>1),
                                                                 ^~~~~~~~
3 errors generated.
gmake[3]: *** [/usr/home/prank/src/radare2/libr/..//libr/anal/p/../../../../../../../../../../../../../../../../../../../../..///usr/home/prank/src/radare2/libr/..//libr/asm/arch/tms320/tms320_dasm.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
/usr/home/prank/src/radare2/libr/..//libr/anal/p/../../../../../../../../../../../../../../../../../../../../..///usr/home/prank/src/radare2/libr/..//libr/asm/arch/tms320/c55x_plus/decode.c:111:15: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
        if((ins_bits >= 0 && ins_bits <= 31) | (ins_bits >= 128 && ins_bits < 160)) {
            ~~~~~~~~ ^  ~
/usr/home/prank/src/radare2/libr/..//libr/anal/p/../../../../../../../../../../../../../../../../../../../../..///usr/home/prank/src/radare2/libr/..//libr/asm/arch/tms320/c55x_plus/decode.c:503:33: warning: expression result unused [-Wunused-value]
                *next_ins_pos += ins_len_dec, reg_len_dec;
                                              ^~~~~~~~~~~
/usr/home/prank/src/radare2/libr/..//libr/anal/p/../../../../../../../../../../../../../../../../../../../../..///usr/home/prank/src/radare2/libr/..//libr/asm/arch/tms320/c55x_plus/decode.c:757:18: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
                        ((magic_value < 0) && strchr(reg_arg, 'w'))) {
                          ~~~~~~~~~~~ ^ ~
/usr/home/prank/src/radare2/libr/..//libr/anal/p/../../../../../../../../../../../../../../../../../../../../..///usr/home/prank/src/radare2/libr/..//libr/asm/arch/tms320/c55x_plus/decode.c:863:20: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
                           (magic_value < 0 && *ins_token == 'Y' && strchr(reg_arg, 'w'))
                            ~~~~~~~~~~~ ^ ~
4 warnings generated.
gmake[2]: *** [anal] Error 2
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [all] Error 2
gmake: *** [all] Error 2

build before error:

radare2 0.9.7git @ freebsd-little-x86-32 git.0.9.6-432-g9825896
commit: 9825896 build: 2014-01-26

FreeBSD dude 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Fri Jan 17 01:46:25 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386

@radare
Copy link
Collaborator

radare commented Feb 7, 2014

which compiler is freebsd using?

On 07 Feb 2014, at 20:18, VisualPrankDude notifications@github.com wrote:

/usr/home/prank/src/radare2/libr/..//libr/anal/p/../../../../../../../../../../../../../../../../../../../../..///usr/home/prank/src/radare2/libr/..//libr/asm/arch/tms320/c55x/table_e.h:694:29: error: non-ASCII characters are not allowed outside of literals and identifiers
.syntax = INSN_SYNTAX(MOV k4, dst),
^~~~~~~~
/usr/home/prank/src/radare2/libr/..//libr/anal/p/../../../../../../../../../../../../../../../../../../../../..///usr/home/prank/src/radare2/libr/..//libr/asm/arch/tms320/c55x/table_e.h:736:38: error: non-ASCII characters are not allowed outside of literals and identifiers
.syntax = INSN_SYNTAX(SFTS dst, #1),
^~~~~~~~
/usr/home/prank/src/radare2/libr/..//libr/anal/p/../../../../../../../../../../../../../../../../../../../../..///usr/home/prank/src/radare2/libr/..//libr/asm/arch/tms320/c55x/table_e.h:974:38: error: non-ASCII characters are not allowed outside of literals and identifiers
.syntax = INSN_SYNTAX(SFTL dst, #1),
^~~~~~~~
3 errors generated.
gmake[3]: **\* [/usr/home/prank/src/radare2/libr/..//libr/anal/p/../../../../../../../../../../../../../../../../../../../../..///usr/home/prank/src/radare2/libr/..//libr/asm/arch/tms320/tms320_dasm.o] Error 1
gmake[3]: **\* Waiting for unfinished jobs....
/usr/home/prank/src/radare2/libr/..//libr/anal/p/../../../../../../../../../../../../../../../../../../../../..///usr/home/prank/src/radare2/libr/..//libr/asm/arch/tms320/c55x_plus/decode.c:111:15: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
if((ins_bits >= 0 && ins_bits <= 31) | (ins_bits >= 128 && ins_bits < 160)) {
~~~~~~~~ ^ ~
/usr/home/prank/src/radare2/libr/..//libr/anal/p/../../../../../../../../../../../../../../../../../../../../..///usr/home/prank/src/radare2/libr/..//libr/asm/arch/tms320/c55x_plus/decode.c:503:33: warning: expression result unused [-Wunused-value]
next_ins_pos += ins_len_dec, reg_len_dec;
^~~~~~~~~~~
/usr/home/prank/src/radare2/libr/..//libr/anal/p/../../../../../../../../../../../../../../../../../../../../..///usr/home/prank/src/radare2/libr/..//libr/asm/arch/tms320/c55x_plus/decode.c:757:18: warning: comparison of unsigned expression < 0 is always false -Wtautological-compare)) {
~~~~~~~~~~~ ^ ~
/usr/home/prank/src/radare2/libr/..//libr/anal/p/../../../../../../../../../../../../../../../../../../../../..///usr/home/prank/src/radare2/libr/..//libr/asm/arch/tms320/c55x_plus/decode.c:863:20: warning: comparison of unsigned expression < 0 is always false -Wtautological-compare)
~~~~~~~~~~~ ^ ~
4 warnings generated.
gmake[2]: *\* [anal] Error 2
gmake[2]: **\* Waiting for unfinished jobs....
gmake[1]: **\* [all] Error 2
gmake: **\* [all] Error 2

build before error: 

radare2 0.9.7git @ freebsd-little-x86-32 git.0.9.6-432-g9825896
commit: 9825896e7ca1aa17edf33844b95788f624216c18 build: 2014-01-26

FreeBSD dude 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Fri Jan 17 01:46:25 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  i386

—
Reply to this email directly or view it on GitHub.

@VisualPrankDude
Copy link
Contributor Author

FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: i386-unknown-freebsd10.0
Thread model: posix

@radare
Copy link
Collaborator

radare commented Feb 8, 2014

strange. it builds fine here on osx (clang 3.3)

On 08 Feb 2014, at 02:03, VisualPrankDude notifications@github.com wrote:

FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: i386-unknown-freebsd10.0
Thread model: posix


Reply to this email directly or view it on GitHub.

@VisualPrankDude
Copy link
Contributor Author

tried with gcc46, same thing :/

@radare
Copy link
Collaborator

radare commented Feb 8, 2014

Make a clean checkout. Or hexdump -C the .c file to identify those non ascii chars

On 08 Feb 2014, at 04:21, VisualPrankDude notifications@github.com wrote:

tried with gcc46, same thing :/


Reply to this email directly or view it on GitHub.

@VisualPrankDude
Copy link
Contributor Author

I did already two clean checkouts. The problem is that echo -e '\u2013' gives -, but does not in the FreeBSD box. env is:

HOST=dude
TERM=xterm
SHELL=/bin/csh
OLDPWD=/usr/home/prank/src
GROUP=wheel
USER=prank
ENV=/home/prank/.shrc
HOSTTYPE=FreeBSD
PAGER=more
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
MAIL=/var/mail/prank
BLOCKSIZE=K
PWD=/usr/home/prank/src/radare2
EDITOR=vi
SHLVL=1
HOME=/root
OSTYPE=FreeBSD
VENDOR=intel
MACHTYPE=i386
LOGNAME=prank
_=/usr/bin/env

@VisualPrankDude
Copy link
Contributor Author

haha fixed. here is what I did: tried port installation, that one screwed up on 'gcc not found'
adding symlink to gcc46 let port and latest checkout build just fine.

yossizap pushed a commit to yossizap/radare2 that referenced this issue Dec 30, 2019
* Add getBreakpointsAddresses to list breakpoints offsets

* Add breakpoint highligthing and improve of disassembly UIs

* Improve dialogs and positions

* Add graph,offset option to preference

* Tiny text fix

* Updated radare2 sumodule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants