Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 187145 - dev-embedded/avra-1.0.1 ~amd64 keyword request
Summary: dev-embedded/avra-1.0.1 ~amd64 keyword request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High enhancement
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-30 16:02 UTC by Marcus Hähnel
Modified: 2007-11-23 21:40 UTC (History)
1 user (show)

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


Attachments
Don't use strip-all by default in LDFLAGS, and honor Gentoo CFLAGS (avra-1.0.1.ebuild.ldflags_cflags.patch,326 bytes, patch)
2007-07-31 20:12 UTC, Tiago Cunha (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Hähnel 2007-07-30 16:02:57 UTC
I keyworded avra because I needed it for compiling some programs for my AVR and it did compile just fine and also seems to work without flaws. So I would suggest it to be marked as testing for ~amd64.

Reproducible: Always

Steps to Reproduce:
echo "dev-embedded/avra ~* *" >> /etc/portage/package.keywords
emerge avra
Actual Results:  
it compiled fine (just as expected)
Comment 1 Tiago Cunha (RETIRED) gentoo-dev 2007-07-31 20:10:43 UTC
dev-embedded/avra-1.0.1  USE="doc"

1. Emerges on AMD64 (doesn't honor Gentoo CFLAGS and has LDFLAGS = -s - ebuild patch follows).
2. No collisions.
3. No test phase.
4. Compiles some examples from the internet. But segfaults with avra --listmac.

(with FEATURES="nostrip" CFLAGS="-O1 -pipe -g -ggdb" and the patch applied)
$ gdb --args avra --listmac
GNU gdb 6.6
[...]
(gdb) run
Starting program: /usr/bin/avra --listmac
AVRA: advanced AVR macro assembler Version 1.0.1 Build 113 (12. February 2004)
[...]
Program received signal SIGSEGV, Segmentation fault.
get_rootpath (pi=0x5131a0, args=0x513010) at avra.c:158
158     avra.c: No such file or directory.
        in avra.c
(gdb) bt
#0  get_rootpath (pi=0x5131a0, args=0x513010) at avra.c:158
#1  0x000000000040194f in main (argc=<value optimized out>, argv=0x7ffff7094228) at avra.c:124

Portage 2.1.2.9 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.20-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r8 x86_64 Intel(R) Pentium(R) D CPU 3.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 30 Jul 2007 07:50:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/init.d /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-k"
FEATURES="ccache collision-protect distlocks metadata-transfer multilib-strict parallel-fetch sandbox sfperms strict test userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://mirrors1.netvisao.pt/gentoo http://darkstar.ist.utl.pt/pub/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 apache2 arts bash-completion bitmap-fonts cairo cdr cli cracklib crypt dbus dri dts dvd dvdr dvdread emboss encode evo fam firefox flac fortran gif gnome gpm gtk hal iconv ipv6 isdnlog jpeg kde kdeenablefinal kdehiddenvisibility libg++ mad midi mikmod mmx mp3 mpeg mudflap musepack musicbrainz mysql ncurses nptl nptlonly offensive ogg opengl openmp pam pcre pdf perl png postgres pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd test tiff truetype truetype-fonts type1-fonts unicode vorbis xcomposite xml xorg xscreensaver xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Tiago Cunha (RETIRED) gentoo-dev 2007-07-31 20:12:33 UTC
Created attachment 126536 [details, diff]
Don't use strip-all by default in LDFLAGS, and honor Gentoo CFLAGS
Comment 3 Tiago Cunha (RETIRED) gentoo-dev 2007-07-31 20:21:33 UTC
CC'ing the maintainer, see comment #1
Comment 4 Marcus Hähnel 2007-08-01 14:13:42 UTC
it segfaults only if not filename is given, so this seems to be a bug in the program. It doesn't seem to catch the invalid argument.

Calling that works (without segfaulting):
avra -l listfile.lst --listmac <sourcefile.asm> 

Calling that does NOT work:

avra --listmac
avra -l --listmac <sourcefile.asm>

But then again it is not supposed to work anyways. But it should print out an error message... So -> bug in the program. 
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2007-11-23 21:40:05 UTC
+  23 Nov 2007; Samuli Suominen <drac@gentoo.org> avra-1.0.1.ebuild:
+  Keyword ~amd64 wrt #187145, Fix LD, CC, LDFLAGS, CFLAGS, pre-stripped files,
+  and clean up.