| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0013166 | CMake | CMake | public | 2012-04-24 23:44 | 2012-04-25 09:42 | ||||
| Reporter | Adrien Pensart | ||||||||
| Assigned To | Eric NOULARD | ||||||||
| Priority | normal | Severity | block | Reproducibility | always | ||||
| Status | closed | Resolution | no change required | ||||||
| Platform | x86-64 | OS | GNU/Linux | OS Version | Debian Sid amd64 | ||||
| Product Version | CMake 2.8.8 | ||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0013166: Can't set CMAKE_ASM_NASM_OBJECT_FORMAT = 'bin', always resetted to 'elf' | ||||||||
| Description | I don't understand why this variable is always resetted to 'elf' value... | ||||||||
| Steps To Reproduce | The errors is shown when I do a make VERBOSE=1 : [100%] Building ASM_NASM object CMakeFiles/main.dir/BareMetal.asm.o /usr/bin/nasm -f elf -o CMakeFiles/main.dir/BareMetal.asm.o /home/crunch/backtometal/sources/samples/BareMetal.asm /home/crunch/backtometal/sources/samples/BareMetal.asm:2: error: parser: instruction expected | ||||||||
| Additional Information | CMakeLists.txt : cmake_minimum_required (VERSION 2.8) project(sample ASM_NASM) set(CMAKE_ASM_NASM_OBJECT_FORMAT bin) add_executable(main BareMetal.asm) | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0029331) Eric NOULARD (developer) 2012-04-25 03:11 |
You should define set(CMAKE_ASM_NASM_OBJECT_FORMAT bin) before enabling ASM. i.e. cmake_minimum_required (VERSION 2.8) set(CMAKE_ASM_NASM_OBJECT_FORMAT bin) project(sample ASM_NASM) add_executable(main BareMetal.asm) or: cmake_minimum_required (VERSION 2.8) project(sample NONE) set(CMAKE_ASM_NASM_OBJECT_FORMAT bin) enable_language(ASM_NASM) add_executable(main BareMetal.asm) |
|
(0029338) Adrien Pensart (reporter) 2012-04-25 09:27 |
Thx a lot, this resolved my problem ! You can close the ticket. |
|
(0029339) Eric NOULARD (developer) 2012-04-25 09:42 |
As per reporter request this is not an issue anymore. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2012-04-24 23:44 | Adrien Pensart | New Issue | |
| 2012-04-24 23:44 | Adrien Pensart | File Added: BareMetal.asm | |
| 2012-04-25 03:11 | Eric NOULARD | Note Added: 0029331 | |
| 2012-04-25 09:27 | Adrien Pensart | Note Added: 0029338 | |
| 2012-04-25 09:42 | Eric NOULARD | Note Added: 0029339 | |
| 2012-04-25 09:42 | Eric NOULARD | Status | new => closed |
| 2012-04-25 09:42 | Eric NOULARD | Assigned To | => Eric NOULARD |
| 2012-04-25 09:42 | Eric NOULARD | Resolution | open => no change required |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |