Closed TeroFrondelius closed 5 years ago
Hi Tero,
It seems that this is a side effect of removing --march=native
(-Denable-portable-build=ON). See this thread: https://stackoverflow.com/questions/35884832/compile-error-undefined-reference-to-atomic-fetch-add-4
Would you try to enable this option again to see if this solve the issue ?
Yes, I will try. Thanks for your help.
@thelfer sorry for the stupid question, but can I do it like this:
cmake -DCMAKE_CXX_FLAGS="-march=native"
Unfortunately no. For (probably) bad reasons, CMAKE_CXX_FLAGS
is overriden during the configuration steps.
Alright, no problem. I will try again, now interactively. Now I'm more convinced that I will need a good linux laptop as a work computer.
Unfortunately no. For (probably) bad reasons,
CMAKE_CXX_FLAGS
is overriden during the configuration steps.
It looks like the CXXFLAGS
is overwritten. I tried adding set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
both at the beginning and at the end of the file CMakeLists.txt
, but it didn't help. I will try to dig deeper and find where is it overwritten.
I used ccmake
to interactively study the environment and I got the -march=native
and -latomic
correctly. Maybe it is something else.
I got it working. I needed these changes in the CMakeLists.txt
:
link_libraries("-latomic")
include_directories($prefix/include/julia)
I think the latter is because of the "collapsed" folder structure. Anyway one step forward. Here is the link to the actual implementation: https://github.com/TeroFrondelius/mgisBuilder/blob/52c30b37acd43bb286ec269cd34241323d00fb28/build_tarballs.jl#L28-L30
Hi, I'm trying to cross-compile Windows binaries and got this error message:
Here is the full output: https://travis-ci.org/TeroFrondelius/mgisBuilder/builds/558838925?utm_source=github_status&utm_medium=notification