Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17744 - package pm3/cm3 will not build due to errno/glibc
Summary: package pm3/cm3 will not build due to errno/glibc
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on: 16267
Blocks:
  Show dependency tree
 
Reported: 2003-03-18 05:25 UTC by Andrew Pullin
Modified: 2003-08-06 00:49 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pullin 2003-03-18 05:25:03 UTC
if I do emerge pm3, it fails. here is part of the output where it starts having
problems:


as -o Main_m.o  Main.ms
gcc    -c -o _m3main.o _m3main.c
gcc
-Wl,--wrap,adjtime,--wrap,getdirentries,--wrap,readv,--wrap,utimes,--wrap,wait3
-o m3build Main_m.o _m3main.o ../../m3config/LINUXLIBC6/libm3config.a ../../
m3templates/LINUXLIBC6/libm3templates.a ../../m3driver/LINUXLIBC6/libm3driver.a 
../../m3front/LINUXLIBC6/libm3front.a ../../m3linker/LINUXLIBC6/libm3link.a ../.
./m3quake/LINUXLIBC6/libm3quake.a ../../m3middle/LINUXLIBC6/libm3middle.a ../../
libm3/LINUXLIBC6/libm3.a ../../m3core/LINUXLIBC6/libm3core.a  -lm
../../m3core/LINUXLIBC6/libm3core.a(Uerror_m.o)(.text+0x31): In function `Uerror
__GetFrom_sys_errlist':
: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
../../libm3/LINUXLIBC6/libm3.a(ProcessPosix_m.o)(.text+0x21b): In function `Proc
ess__Create':
: undefined reference to `errno'
../../libm3/LINUXLIBC6/libm3.a(ProcessPosix_m.o)(.text+0x233): In function `Proc
ess__Create':
: undefined reference to `errno'
../../libm3/LINUXLIBC6/libm3.a(ProcessPosix_m.o)(.text+0x934): In function `Proc
essPosix__ExecChild__SetFd.0':
: undefined reference to `errno'
../../libm3/LINUXLIBC6/libm3.a(ProcessPosix_m.o)(.text+0xa62): In function `Proc
essPosix__ExecChild':
: undefined reference to `errno'
../../libm3/LINUXLIBC6/libm3.a(FSPosix_m.o)(.text+0x38b): In function `FSPosix__
CheckLink':
: undefined reference to `errno'
../../libm3/LINUXLIBC6/libm3.a(FilePosix_m.o)(.text+0x4df): more undefined refer
ences to `errno' follow
collect2: ld returned 1 exit status
make[1]: *** [m3build] Error 1
make[1]: Leaving directory `/var/tmp/portage/pm3-1.1.15/work/pm3/boot-LINUXLIBC6
/m3build/LINUXLIBC6'
make: *** [boot] Error 2

!!! ERROR: dev-lang/pm3-1.1.15 failed.
!!! Function src_compile, Line 38, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1. emerge pm3
2.
3.

Actual Results:  
it failed again, same thing
I also tried it with CFLAGS=" " and it still did not work

Expected Results:  
I was hoping it'd install...

Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r0)
=================================================================
System uname: 2.4.20 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
GENTOO_MIRRORS="http://toughguy.caltech.edu/pub/linux/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="3dnow crypt encode gif libg++ libwww mikmod mmx nls pdflib png spell
truetype xml2 xmms xv zlib gdbm berkdb slang readline arts tcltk guile sdl gpm
tcpd pam ssl perl python esd imlib oggvorbis qt motif opengl X gtk gnome alsa
oss apm cups dvd java mozilla mpeg jpeg avi ncurses oengl quicktime svga kde x86
sse sse2"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-march=pentium3 -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 SpanKY gentoo-dev 2003-04-15 06:19:50 UTC
way to steal my bug :) ... i'm also looking at cm3 since its been updated recently ...
Comment 2 Alastair Tse (RETIRED) gentoo-dev 2003-04-15 06:24:39 UTC
thank god! i was going to have nightmares about assembly :)
Comment 4 Andrew Pullin 2003-04-15 15:50:51 UTC
I rsynced and tried emerging it and I still get the same errors... :( 
Comment 5 SpanKY gentoo-dev 2003-04-29 22:49:55 UTC
would you try out dev-lang/cm3 ?
it is another m3 compiler and it should not have the errno problem ...

i talked to the dev's upstream and they fixed errno in their cvs, they just havent made a release ...
ill see what i can do ...
Comment 6 Andrew Pullin 2003-04-30 23:28:23 UTC
I tried building cm3, and after a while I get this error: 
 
 
=== package /var/tmp/portage/cm3-5.2.4/work/m3-sys/m3cgcat === 
 +++ cm3 -build -override -DROOT='/var/tmp/portage/cm3-5.2.4/work'  +++ 
new source -> compiling Main.m3 
 -> linking m3cgcat 
/var/tmp/portage/cm3-5.2.4/work/m3-libs/libm3/LINUXLIBC6/libm3.so: undefined 
reference to `errno' 
collect2: ld returned 1 exit status 
Fatal Error: package build failed 
 *** execution of  failed *** 
 
!!! ERROR: dev-lang/cm3-5.2.4 failed. 
!!! Function src_compile, Line 58, Exitcode 1 
!!! failed on do-cm3-core 
 
Comment 7 SpanKY gentoo-dev 2003-05-01 01:40:56 UTC
ok, so latest cm3 has errno issues too ;)

again ... the cvs version is fixed ... bleh
Comment 8 Zeek 2003-06-22 19:19:15 UTC
This really is a problem with glibc.  This entry in the RH bug tracker puts out the issues:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=90002
Comment 9 SpanKY gentoo-dev 2003-06-22 19:31:02 UTC
its not a glibc error really ... 
 
its an error with people who used glibc incorrectly ;) 
Comment 10 SpanKY gentoo-dev 2003-07-17 10:24:30 UTC
cm3 5.2.6 is now in portage ... it has all the errno fixes ...
i'd suggest using that for now since pm3 probably wont be releasing the next
ver for some time ...

ive been talking to the cm3 maintainer and he's been actively working on cm3 so
i'd support that over pm3 for now

i installed 2 scripts in addition to cm3 (m3build and m3ship) so as to support
older packages that expect them.  they're really just running `cm3 -build ${@}`
and `cm3 -ship ${@}` ;)
Comment 11 SpanKY gentoo-dev 2003-08-06 00:49:48 UTC
alright, we got cm3 in portage ... it works fine (afaik) as a replacement for pm3 ...

pm3 will be updated whenever the upstream guys get around to making a release ... but i wont bother back porting cvs to 1.1.5 since cvs has changed so very radically