objconv icon indicating copy to clipboard operation
objconv copied to clipboard

Error in Build!

Open QuestionPython opened this issue 7 years ago • 5 comments

$ 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 avatar May 22 '18 09:05 QuestionPython

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

its work. :+1:

QuestionPython avatar May 22 '18 09:05 QuestionPython

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 [email protected] 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 https://github.com/vertis/objconv/issues/11#issuecomment-390917823, or mute the thread https://github.com/notifications/unsubscribe-auth/AABM-cF86ronNMKLSN7ZfbMdMgi9i2DVks5t09TlgaJpZM4UIPtH .

vertis avatar May 28 '18 01:05 vertis

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

prodigy99 avatar Feb 28 '19 05:02 prodigy99

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!

gaotianpeng avatar May 07 '19 10:05 gaotianpeng

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

memegauste avatar Jul 29 '19 20:07 memegauste