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

Build error on i686 targets #162

Closed
tesuji opened this issue May 19, 2019 · 1 comment · Fixed by #163
Closed

Build error on i686 targets #162

tesuji opened this issue May 19, 2019 · 1 comment · Fixed by #163

Comments

@tesuji
Copy link
Contributor

tesuji commented May 19, 2019

Caused by:
  process didn't exit successfully: `rustc --edition=2018 --crate-name goblin 'src\lib.rs' --color never --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="alloc"' --cfg 'feature="archive"' --cfg 'feature="default"' --cfg 'feature="elf32"' --cfg 'feature="elf64"' --cfg 'feature="endian_fd"' --cfg 'feature="log"' --cfg 'feature="mach32"' --cfg 'feature="mach64"' --cfg 'feature="pe32"' --cfg 'feature="pe64"' --cfg 'feature="scroll"' --cfg 'feature="std"' -C metadata=0a9055687c823b2b -C extra-filename=-0a9055687c823b2b --out-dir 'D:\a\1\s\target\i686-pc-windows-msvc\debug\deps' --target i686-pc-windows-msvc -C 'incremental=D:\a\1\s\target\i686-pc-windows-msvc\debug\incremental' -L 'dependency=D:\a\1\s\target\i686-pc-windows-msvc\debug\deps' -L 'dependency=D:\a\1\s\target\debug\deps' --extern 'log=D:\a\1\s\target\i686-pc-windows-msvc\debug\deps\liblog-5f46943fea12c10e.rlib' --extern 'plain=D:\a\1\s\target\i686-pc-windows-msvc\debug\deps\libplain-e92720d264c52477.rlib' --extern 'scroll=D:\a\1\s\target\i686-pc-windows-msvc\debug\deps\libscroll-60f8367b07e3aaf7.rlib' -Ctarget-feature=+crt-static` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: literal out of range for usize
  --> src\pe\section_table.rs:98:26
   |
98 |         } else if idx <= 0xfff_fff_fff { // 64^6 - 1
   |                          ^^^^^^^^^^^^^
   |
   = note: #[deny(overflowing_literals)] on by default
   = note: the literal `0xfff_fff_fff` (decimal `68719476735`) does not fit into an `usize` and will become `4294967295usize`

error: literal out of range for usize
   --> src\pe\section_table.rs:235:14
    |
235 |             (0xfff_fff_fff, b"////////"),
    |              ^^^^^^^^^^^^^
    |
    = note: the literal `0xfff_fff_fff` (decimal `68719476735`) does not fit into an `usize` and will become `4294967295usize`

error: literal out of range for usize
   --> src\pe\section_table.rs:241:41
    |
241 |         assert!(section.set_name_offset(0x1_000_000_000).is_err());
    |                                         ^^^^^^^^^^^^^^^
    |
    = note: the literal `0x1_000_000_000` (decimal `68719476736`) does not fit into an `usize` and will become `0usize`

error: aborting due to 3 previous errors
@philipc
Copy link
Collaborator

philipc commented May 19, 2019

Thanks for the report. See #163 for fix.

@m4b m4b closed this as completed in #163 May 19, 2019
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

Successfully merging a pull request may close this issue.

2 participants