View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002579 | Spring engine | General | public | 2011-07-29 00:49 | 2014-02-03 14:17 |
| Reporter | abma | Assigned To | jK | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | not fixable | ||
| Summary | 0002579: (master) cmake always prints "Building Spring for 32bit environment" when march is set | ||||
| Description | when doing a "cmake ." as default i've march="" when setting it to march=athlon64, i get this: cmake . -- Building Spring for 32bit environment -- Building Assimp with flags -march=athlon64 -msse -mfpmath=sse -frounding-math -mieee-fp -pipe -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -pthread | ||||
| Tags | No tags attached. | ||||
| Checked infolog.txt for Errors | |||||
|
|
looks like this is not the cause of desyncs :-/ |
|
|
Relevant parts of CMakeLists.txt: if (CMAKE_SIZEOF_VOID_P EQUAL 8) message (STATUS "Building Spring for 64bit environment") set (MARCH_FLAG CACHE STRING "CPU optimization (use i686 for generic optimization)") else (CMAKE_SIZEOF_VOID_P EQUAL 8) message (STATUS "Building Spring for 32bit environment") set (MARCH_FLAG "i686" CACHE STRING "CPU optimization (use i686 for generic optimization)") endif (CMAKE_SIZEOF_VOID_P EQUAL 8) followed by if ($ENV{CXX} MATCHES "icpc") ... else ($ENV{CXX} MATCHES "icpc") if (MARCH_FLAG) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=${MARCH_FLAG}") endif (MARCH_FLAG) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SSE_FLAGS}") # SSE1 if (MINGW) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mthreads") endif (MINGW) set(CXX_FLAGS_DEBUG_ADDITIONAL "") endif ($ENV{CXX} MATCHES "icpc") If you call cmake with -DMARCH_FLAG=blabla, then that overrides the auto-detection for the entire project, but it still runs and so you always get the "building Spring for 32bit environment" message (on a 32bit system). You can check this via "make spring VERBOSE=1". |
|
|
sorry, missunderstood you. i adjusted this report |
|
|
march has nothing todo with bitness |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-07-29 00:49 | abma | New Issue | |
| 2011-07-29 00:49 | abma | Graphics Card | => unknown |
| 2011-07-29 01:39 | abma | Severity | block => major |
| 2011-07-29 01:39 | abma | Note Added: 0007106 | |
| 2011-07-29 01:42 | Kloot | Note Added: 0007107 | |
| 2011-07-29 01:43 | Kloot | Note Edited: 0007107 | |
| 2011-07-29 01:44 | Kloot | Note Edited: 0007107 | |
| 2011-08-02 21:18 | abma | Severity | major => minor |
| 2011-08-02 21:18 | abma | Summary | (master) compile flags detection on some platforms seems to be broken => (master) cmake always prints "Building Spring for 32bit environment" when march is set |
| 2011-08-02 21:18 | abma | Additional Information Updated | |
| 2011-08-02 21:19 | abma | Note Added: 0007207 | |
| 2014-02-03 14:17 | jK | Note Added: 0012815 | |
| 2014-02-03 14:17 | jK | Status | new => closed |
| 2014-02-03 14:17 | jK | Assigned To | => jK |
| 2014-02-03 14:17 | jK | Resolution | open => not fixable |