Giter Site home page Giter Site logo

Comments (7)

STashakkori avatar STashakkori commented on July 28, 2024 1

**Update:

Trying this on a different machine that is ubuntu20 instead of 21 and has a newer SoC worked.

from enigma.

STashakkori avatar STashakkori commented on July 28, 2024 1

Ah ok thank you @BaderEddineOuaich . By the way this is a finely crafted tool. My compliments to the craftsman

from enigma.

STashakkori avatar STashakkori commented on July 28, 2024

Actually, better yet, can you provide prebuilt binaries? I've followed all the steps and ran into this when trying to build:

In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:53,
from chacha_avx.cpp:26:
/usr/lib/gcc/x86_64-linux-gnu/10/include/avx2intrin.h: In function ‘__m256i {anonymous}::RotateLeft(__m256i) [with unsigned int R = 8]’:
/usr/lib/gcc/x86_64-linux-gnu/10/include/avx2intrin.h:588:1: error: inlining failed in call to ‘always_inline’ ‘__m256i _mm256_shuffle_epi8(__m256i, __m256i)’: target specific option mismatch
588 | _mm256_shuffle_epi8 (__m256i __X, __m256i __Y)
| ^~~~~~~~~~~~~~~~~~~
chacha_avx.cpp:73:31: note: called from here
73 | return _mm256_shuffle_epi8(val, mask);
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:53,
from chacha_avx.cpp:26:
/usr/lib/gcc/x86_64-linux-gnu/10/include/avx2intrin.h:588:1: error: inlining failed in call to ‘always_inline’ ‘__m256i _mm256_shuffle_epi8(__m256i, __m256i)’: target specific option mismatch
588 | _mm256_shuffle_epi8 (__m256i __X, __m256i __Y)
| ^~~~~~~~~~~~~~~~~~~
chacha_avx.cpp:73:31: note: called from here
73 | return _mm256_shuffle_epi8(val, mask);
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
make[1]: *** [Makefile:400: Bin-Intermediate/Release-linux-x86_64/cryptopp/chacha_avx.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:124: cryptopp] Error 2

from enigma.

baderouaich avatar baderouaich commented on July 28, 2024

Hello @STashakkori,

Sadly, the only way to build CLI alone is by modifying the Source/Main.cpp, the compiler will cast out the unused libraries. however, libs like x11 should still be present at compile time.

There are already built binaries for Linux & Windows in the Releases, which can be used directly, but they contain CLI and UI code as well.

About the failed build attempt you did, can you give more details on the OS and Distro you are using ?

Thank you.

from enigma.

baderouaich avatar baderouaich commented on July 28, 2024

**Update:

Trying this on a different machine that is ubuntu20 instead of 21 and has a newer SoC worked.

Glad it worked! by the way you can modify the Source/Main.cpp for CLI only.
Main.cpp for CLI only will look like this:

/**
*	Enigma Entry Point
*/
#include <pch.hpp>

#if ! ENIGMA_TESTING
	#include <Enigma.hpp>
#else	
	#include <Tests/TestsAll.hpp>
#endif

int main(int argc, char* argv[])
{	
	// Initialize Logger
	Enigma::Logger::Initialize();
	// Initialize SQLite3 Database
	Enigma::Database::Initialize();

	Enigma::i32 exit_code = -1;
	
	try
	{
		//========= CLI Entry =========//
		const auto _Cli = std::make_unique<Enigma::CLI>(argc, argv);
		exit_code = _Cli->Run();
	}
	catch (const std::exception& e)
	{
		// Exit Abnormally
		ENIGMA_CRITICAL(e.what());
		exit_code = EXIT_FAILURE;
	}

	// Shutdown SQLite3 Database
	Enigma::Database::Shutdown();
	// Shutdown Logger
	Enigma::Logger::Shutdown();

	return exit_code;
}


/**
*	Windows Entry Point (for Release & Distribution)
*	Note: even when using WinMain, release & dist are built as ConsoleApp so CLI will work properly.
*/
#if defined(ENIGMA_PLATFORM_WINDOWS) && (defined(ENIGMA_RELEASE) || defined(ENIGMA_DIST))

int WINAPI WinMain(
	[[maybe_unused]] _In_ HINSTANCE instance,
	[[maybe_unused]] _In_opt_ HINSTANCE prev_instance,
	[[maybe_unused]] _In_ LPSTR cmd_line,
	[[maybe_unused]] _In_ int cmd_show)
{
	return ::main(__argc, __argv);
}

#endif

from enigma.

baderouaich avatar baderouaich commented on July 28, 2024

You're welcome!
If you encounter any problems, questions or clarifications, please don't hesitate to open an issue or contact me 👍
Have a nice day!

from enigma.

STashakkori avatar STashakkori commented on July 28, 2024

from enigma.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.