gcc: warning -mcpu is deprecated use -mtune or -march instead
cc1: error: CPU you selected does not support x86-64 instruction set
Anyone have any ideas what's going on here? This is pretty much the only thing keeping me from pulling the plug on the change over...
Yeah, this is a real pain in the ass. I'll try to walk you through it, this should be updated on the wiki honestly.
Find the file ./tools/ccopts.sh and edit it.
Around line 591 you'll find an if block. Comment out the entire if
block. All the way from
if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ] || [ "$ARCH" = "x86_64"
] ;
all the way to the 'fi' that wraps up the if block.
Right under the commented 'fi', add the line
CCARGS="$CCARGS -march=native -mtune=native"
After that it should build for you.
--- Mystic BBS v1.12 A48 2022/07/11 (Linux/64)
* Origin: m O N T E R E Y b B S . c O M (21:4/173)
I can't compile cryptlib, downloaded 3.4.5 from the Mystic Wiki, and unzip'd it with no issues with the -a flag.. When trying to sudo make shared I get the following error
Yeah, this is a real pain in the ass. I'll try to walk you through it, this should be updated on the wiki honestly.
Right under the commented 'fi', add the line
CCARGS="$CCARGS -march=native -mtune=native"
Nice, I used a pre-compiled version that Deadbeatz released a while ago
- and I had tried to pass the -march thru the command-line with no success... thanks for telling us how to do it correctly, I exported yer message which will make it into my /mystictext folder. Thx, esc.
I can't compile cryptlib, downloaded 3.4.5 from the Mystic Wiki, andThe newest Ubuntu has an error compiling cryptlib - theres a pre-compiled version that I tested and works fine, and I uploaded it to 2o. Just
search 'cryptlib' in the file menu and make sure you download the Deadbeatz BBS Pre-Compiled one.
Yeah, this is a real pain in the ass. I'll try to walk you through it this should be updated on the wiki honestly.
Right under the commented 'fi', add the line
CCARGS="$CCARGS -march=native -mtune=native"
Nice, I used a pre-compiled version that Deadbeatz released a while ago
- and I had tried to pass the -march thru the command-line with no success... thanks for telling us how to do it correctly, I exported yer message which will make it into my /mystictext folder. Thx, esc.
Sysop: | Gary Ailes |
---|---|
Location: | Pittsburgh, PA |
Users: | 132 |
Nodes: | 5 (0 / 5) |
Uptime: | 109:57:07 |
Calls: | 733 |
Files: | 2,171 |
Messages: | 81,487 |