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

Error in Build! #11

Open
QuestionPython opened this issue May 22, 2018 · 5 comments
Open

Error in Build! #11

QuestionPython opened this issue May 22, 2018 · 5 comments

Comments

@QuestionPython
Copy link

QuestionPython commented May 22, 2018

$ g++ -o objconv -O2 src/*.cpp

src/coff.cpp:142:1: error: narrowing conversion of ‘2147483648u’ from ‘unsigned int’ to ‘int’ inside { } [-Wnarrowing]
 };
 ^
src/disasm1.cpp: In member function ‘void CDisassembler::Pass1()’:
src/disasm1.cpp:816:36: warning: narrowing conversion of ‘((CDisassembler*)this)->CDisassembler::Section’ from ‘uint32 {aka unsigned int}’ to ‘int32 {aka int}’ inside { } [-Wnarrowing]
             SFunctionRecord fun = {Section, 0, Sections[Section].TotalSize, 0, 0};
                                    ^~~~~~~
src/disasm2.cpp:101:1: error: narrowing conversion of ‘2147483648u’ from ‘unsigned int’ to ‘int’ inside { } [-Wnarrowing]
 };
 ^

$ ls

extras  objconv-instructions.pdf  README.md  src

$ g++ -v

Using built-in specs.
COLLECT_GCC=/usr/bin/g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/6.3.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --disable-libgcj --with-isl --enable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 6.3.1 20161221 (Red Hat 6.3.1-1) (GCC) 
@QuestionPython
Copy link
Author

QuestionPython commented May 22, 2018

$ wget http://www.agner.org/optimize/objconv.zip
$ ./build.sh 

its work. 👍

@vertis
Copy link
Owner

vertis commented May 28, 2018 via email

@prodigy99
Copy link

you cold try use it with 32bit ubuntu 64bit has some error

@gaotianpeng
Copy link

That's interesting. I haven't changed anything in quite a while. I'll see about updating it.

On Tue, May 22, 2018 at 7:05 PM, Max @.***> wrote: $ wget http://www.agner.org/optimize/objconv.zip $ ./build.sh its work. 👍 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#11 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AABM-cF86ronNMKLSN7ZfbMdMgi9i2DVks5t09TlgaJpZM4UIPtH .
wow, nice!

@PSzczepanski1996
Copy link

I have the same problem in Linux Deploy running Arch ARM.

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

5 participants