Skip to ContentSkip to Footer
Start of content
- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- General
- >
- gcc problem
General
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-12-2008 03:28 AM
12-12-2008 03:28 AM
gcc problem
Hello I need to compile a 32bit application on a 64bit platfrom:
# uname -a
Linux pippo 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
if I run the gcc command with "-m32" option I get the following error:
# gcc -m32 -o output32 hello.c
In file included from /usr/include/features.h:352,
from /usr/include/stdio.h:28,
from hello.c:1:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
infact the stubs-32.h file is missing in my platform
Must I specify further options, or install additional software?
Many thanks
Giuseppe
# uname -a
Linux pippo 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
if I run the gcc command with "-m32" option I get the following error:
# gcc -m32 -o output32 hello.c
In file included from /usr/include/features.h:352,
from /usr/include/stdio.h:28,
from hello.c:1:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
infact the stubs-32.h file is missing in my platform
Must I specify further options, or install additional software?
Many thanks
Giuseppe
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-12-2008 04:44 PM
12-12-2008 04:44 PM
Re: gcc problem
"linux32" is a command that sets up the proper environment variables and gcc flags.
Under debian this is provided by the package:
util-linux
linux32 is a symbolic link to "setarch"
YMMV on other Linux versions
Under debian this is provided by the package:
util-linux
linux32 is a symbolic link to "setarch"
YMMV on other Linux versions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-12-2008 04:48 PM
12-12-2008 04:48 PM
Re: gcc problem
You may want to check for util-linux-ng in your distribution. (Originally developed at Red Hat.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-13-2008 12:33 AM
12-13-2008 12:33 AM
Re: gcc problem
http://groups.google.se/group/linux.debian.ports.x86-64/browse_thread/thread/ded2c55b7e7b6a58
This is a good thread when you are trying to cross-compile.
This is a good thread when you are trying to cross-compile.
Debian GNU/Linux for the Enterprise! Ask HP ...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
End of content
United States
Hewlett Packard Enterprise International
Communities
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP