Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196292 - gawk on prefixed portage (illegal instruction + Darwin linker command fix)
Summary: gawk on prefixed portage (illegal instruction + Darwin linker command fix)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: x86 OS X
: High major
Assignee: osx porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 196294
  Show dependency tree
 
Reported: 2007-10-18 14:31 UTC by Dirk Tilger
Modified: 2007-10-21 14:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for gawk to apply the ${P}-darwin.patch (gawk-3.1.5-r5.ebuild.diff,462 bytes, patch)
2007-10-18 14:33 UTC, Dirk Tilger
Details | Diff
Make the extension being a bundle instead of dynamiclib (gawk-3.1.5-darwin.patch,685 bytes, patch)
2007-10-18 14:36 UTC, Dirk Tilger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Tilger 2007-10-18 14:31:59 UTC
The gawk in prefixed portage triggered 'illegal instruction' exception due to a spelling mistake in the Makefile. That spelling mistake was triggered by me using the following CFLAGS:

-march=prescott -O2 -pipe -mfpmath=sse -msse2 -msse3 -fno-builtin

However, the CFLAGS didn't get passed along with the gawk extension module which then probably used FPU floating point numbers. Anyways, passing along CFLAGS fixed the issue.

Secondly, I believe that the proper type for the gawk extension is a module (something that is loaded by the application itself by using dlopen&co), rather than a dynamic library (something that is loaded by the dynamic linker).

The modification consists of a patch to the gawk ebuild as well as a patch to the gawk extension itself.
Comment 1 Dirk Tilger 2007-10-18 14:33:54 UTC
Created attachment 133757 [details, diff]
Patch for gawk to apply the ${P}-darwin.patch
Comment 2 Dirk Tilger 2007-10-18 14:36:29 UTC
Created attachment 133758 [details, diff]
Make the extension being a bundle instead of dynamiclib

The -install_name was cut out as it is not supported for bundles.
The -O2 was cut out as it would be in CFLAGS normally.

I guess this patch should go upstream.
Comment 3 Fabian Groffen gentoo-dev 2007-10-21 14:20:39 UTC
fixed, thanks!