Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on AMD64
  • Search

Pitfalls in compiling with make

Have an x86-64 problem? Post here.
Locked
Advanced search
6 posts • Page 1 of 1
Author
Message
Rinkhals
Apprentice
Apprentice
User avatar
Posts: 165
Joined: Fri May 02, 2003 12:02 pm
Location: Scotland

Pitfalls in compiling with make

  • Quote

Post by Rinkhals » Wed Mar 15, 2006 8:23 pm

Can anyone point out the pitfalls of installing software the traditional way.

ie. if I use
./configure
make and
make install

on my AMD64bit system, can I trust that my gcc (version 3.4.3) will compile correctly?

Or should I just boot back to my 32bit install to use that software?
"I'm a Snake if we Disagree" - Jethro Tull, "Bungle in the Jungle"
Top
EzInKy
Veteran
Veteran
User avatar
Posts: 1742
Joined: Fri Oct 11, 2002 10:24 pm
Location: Kentucky

Re: Pitfalls in compiling with make

  • Quote

Post by EzInKy » Thu Mar 16, 2006 9:28 pm

Rinkhals wrote:Can anyone point out the pitfalls of installing software the traditional way.

ie. if I use
./configure
make and
make install
Other than not being managed by portage there is nothing wrong with it at all.
Rinkhals wrote:
on my AMD64bit system, can I trust that my gcc (version 3.4.3) will compile correctly?
If the program is written correctly it should compile correctly.
Rinkhals wrote:
Or should I just boot back to my 32bit install to use that software?
For the apps that require to compiled and run as 32bit a chroot should work.
Time is what keeps everything from happening all at once.
Top
Xornot
n00b
n00b
Posts: 10
Joined: Fri Apr 02, 2004 4:45 am

  • Quote

Post by Xornot » Thu Mar 16, 2006 10:22 pm

Is that it? There are no options we need to be aware of or anything? How do we know if a 64bit binary is the result?

Also, I am confused as to how to install the result. It appears that portage puts libs in /usr/lib64 but when I compile other libs the traditional way, the wind up in /usr/lib or /usr/local/lib. Will this be a problem for building other 64 bit binaries that link against those libs?

Thanks
Iain
Top
EzInKy
Veteran
Veteran
User avatar
Posts: 1742
Joined: Fri Oct 11, 2002 10:24 pm
Location: Kentucky

  • Quote

Post by EzInKy » Fri Mar 17, 2006 12:04 am

Xornot wrote:Is that it? There are no options we need to be aware of or anything? How do we know if a 64bit binary is the result?
The configure host should detect you arch correctly. Also if you compile a program with gcc -S you should see 64bit output in the assembly.

Code: Select all

.globl main
	.type	main, @function
main:
.LFB2:
	pushq	%rbp  <--- 64bit instruction saving the stack pointer.
.LCFI0:
	movq	%rsp, %rbp
.LCFI1:
	subq	$16, %rsp
.LCFI2:
	movl	%edi, -4(%rbp)
	movq	%rsi, -16(%rbp)
	movq	app+24(%rip), %rcx
	movzbl	app+16(%rip), %eax
	movsbl	%al,%edx
	movq	app(%rip), %rsi
	movl	$.LC3, %edi
	movl	$0, %eax
	call	printf
	movl	$0, %eax
	leave
	ret

Xornot wrote:
Also, I am confused as to how to install the result. It appears that portage puts libs in /usr/lib64 but when I compile other libs the traditional way, the wind up in /usr/lib or /usr/local/lib. Will this be a problem for building other 64 bit binaries that link against those libs?

Thanks
Iain
If you want to be sure of where your binaries are installed and what options are available use ./configure --help and --prefix= options. Installing libraries can cause problems if they overwrite those managed by portage.
Time is what keeps everything from happening all at once.
Top
Rinkhals
Apprentice
Apprentice
User avatar
Posts: 165
Joined: Fri May 02, 2003 12:02 pm
Location: Scotland

  • Quote

Post by Rinkhals » Sat Mar 18, 2006 6:56 am

EzInky,

Many thanks for your help.

I'm thinking of putting BRLCAD (http://sourceforge.net/projects/brlcad/ ) on my system to see what it can do

AFAIK, there is no portage implementation
"I'm a Snake if we Disagree" - Jethro Tull, "Bungle in the Jungle"
Top
Rosjahh
Apprentice
Apprentice
User avatar
Posts: 182
Joined: Thu Jan 16, 2003 9:40 pm
Location: Below sealevel

  • Quote

Post by Rosjahh » Sat Mar 18, 2006 4:25 pm

Rinkhals wrote: I'm thinking of putting BRLCAD (http://sourceforge.net/projects/brlcad/ ) on my system to see what it can do
AFAIK, there is no portage implementation
There is an ebuild in bugzilla. It seems to work for some people, but not for me.
Bug here
Top
Locked

6 posts • Page 1 of 1

Return to “Gentoo on AMD64”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic