Solved

compiler option -mpreferred-stack-boundary=2 problems

Posted on 2000-03-27
10
379 Views
Last Modified: 2013-11-13
When I try to make my Kernal the compiler barfs at a known option. Here's the nohup.out from "make xconfig" in directory /usr/src/linux:

rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts kconfig.tk
make[1]: Entering directory `/usr/src/linux-2.2.13/scripts'
gcc -O6 -fomit-frame-pointer -fno-exceptions -fno-rtti -pipe -s -mpentium -mcpu=pentium -march=pentium -ffast-math -fexpensive-optimizations -malign-loops=2 -malign-jumps=2 -malign-functions=2 -mpreferred-stack-boundary=2 -c -o tkparse.o tkparse.c
cc1: Invalid option `preferred-stack-boundary=2'
make[1]: *** [tkparse.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.2.13/scripts'
make: *** [xconfig] Error 2

Help! GNU's manual for gcc says that this option is fine. What's wrong? Is there a variable that should be set?
0
Comment
Question by:jnalexander
  • 4
  • 3
  • 3
10 Comments
 
LVL 4

Expert Comment

by:kiffney
ID: 2660903
Do 'gcc -v'.  The preferred-stack-option doesn't work with gcc < 2.95.  Your manual may not be the right one for the version of gcc you're using.
0
 

Author Comment

by:jnalexander
ID: 2661411
Yeah, I have version 2.91.66. But I got the makefile, libraries and compiler from the same CDROM. Why would they use a different version of the compiler to build my kernal than the one they included on the CD?

How do I fix this problem. Do I download the latest gcc package or edit the makefile and remove the option?
0
 

Expert Comment

by:hotbot
ID: 2673255
hello , try to edit the Makefile and remove the invalid option (backup your original Makefile first)
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 4

Expert Comment

by:kiffney
ID: 2673325
Whoever put together your distribution probably just made a booboo.  I'd get the latest gcc package and install it rather than futzing with the makefile - the preferred-stack-option might be important (or not - but a newer gcc is probably better anyway).
0
 

Author Comment

by:jnalexander
ID: 2674424
I tried to use the latest version of gcc but kpackage complained that there were "conflicts" during installation
0
 
LVL 4

Expert Comment

by:kiffney
ID: 2674498
does kpackage run rpm?  You could try running it from an xterm and do --force --nodeps, or at least see what rpm doesn't like about the package - maybe there's something else that needs to be installed first -
0
 

Author Comment

by:jnalexander
ID: 2678378
It turns out that hotbot had the correct idea after all. (Sorry hotbot!) http://mandrakeuser.org has a perl script that removes the "preferred-stack-boundary=2 option from the Makefiles.
0
 

Expert Comment

by:hotbot
ID: 2680165
if i know you have , mandrake i never help you , but that's ok :)
0
 

Expert Comment

by:hotbot
ID: 2680286
if i know you have , mandrake i never help you , but that's ok :)
0
 

Accepted Solution

by:
hotbot earned 50 total points
ID: 2681358
sorry for the repeating i don't know how i do that's , i'm newuser of this help system , i don't think i be a day an old one :)
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
is my large folder zipped corrupted 4 65
centos linux 65 125
android secure ftp 3 35
Office 365 Business installation on shared computer 5 23
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question