charm icon indicating copy to clipboard operation
charm copied to clipboard

charmc does not make ASM object but call to plain Apple clang call does

Open BJWiley233 opened this issue 3 years ago • 3 comments

Not sure what I am missing with the unix assembly boost module. Only running without charmc will actually make the ASM object.

Meaning this doesn't output an -o *.S.o object at all:

/Users/brian/tools/NAMD_Git-2022-01-26_Source/charm/build_charm/bin/charmc /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -DAMPI_ERRHANDLER_RETURN=0  -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g -o CMakeFiles/boost-context.dir/ontop_x86_64_sysv_macho_gas.S.o -c /Users/brian/tools/NAMD_Git-2022-01-26_Source/charm/src/util/boost-context/ontop_x86_64_sysv_macho_gas.S

but this does:

/Applications/Xcode.app/Contents/Developer/usr/bin/gcc -DAMPI_ERRHANDLER_RETURN=0  -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -g -o CMakeFiles/boost-context.dir/ontop_x86_64_sysv_macho_gas.S.o -c /Users/brian/tools/NAMD_Git-2022-01-26_Source/charm/src/util/boost-context/ontop_x86_64_sysv_macho_gas.S

BJWiley233 avatar Feb 13 '22 21:02 BJWiley233

This only occurred cloning the most recent master repo. I downloaded v7.0.0 and it built the ASM objects fine no problem from the build command.

BJWiley233 avatar Feb 14 '22 00:02 BJWiley233

It believe that PR #3475 changed the default assumptions of charmc. Future versions (after v7.0.0) will now require passing flags like -c and -S explicitly. Also, you may not need to pass gcc to charmc. Please let us know if trying those suggestions resolves this issue.

jszaday avatar Feb 17 '22 17:02 jszaday

Sure I will try it. I am going to try a few namd tutorials probably before I get to it since I got it compiled. Thanks!

BJWiley233 avatar Feb 18 '22 05:02 BJWiley233