Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223869 - portage-2.2.00.10418 no longer builds on IRIX (2.2.00.10385 was fine)
Summary: portage-2.2.00.10418 no longer builds on IRIX (2.2.00.10385 was fine)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High normal (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-27 17:25 UTC by Stuart Shelton
Modified: 2008-05-27 18:09 UTC (History)
0 users

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


Attachments
portage-2.2.00.10418 config.log (config.log,177.37 KB, text/plain)
2008-05-27 17:32 UTC, Stuart Shelton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2008-05-27 17:25:57 UTC
Making all in src
make[2]: Entering directory `/usr/opt/portage/var/tmp/portage/sys-apps/portage-2.2.00.10418/work/prefix-portage-2.2.00.10418/src'
make[3]: Entering directory `/usr/opt/portage/var/tmp/portage/sys-apps/portage-2.2.00.10418/work/prefix-portage-2.2.00.10418/src'
cc -DPACKAGE_NAME=\"portage\" -DPACKAGE_TARNAME=\"portage-prefix\" -DPACKAGE_VERSION=\"2.1.20\" -DPACKAGE_STRING=\"portage\ 2.1.20\" -DPACKAGE_BUGREPORT=\"grobian@gentoo.org\" -DPACKAGE=\"portage-prefix\" -DVERSION=\"2.1.20\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_ERRNO_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UTIME_H=1 -DHAVE_UTIMES=1 -DATIME_SEC=st_atim.tv_sec -DATIME_NSEC=st_atim.tv_nsec -DMTIME_SEC=st_mtim.tv_sec -DMTIME_NSEC=st_mtim.tv_nsec -DHAVE_LCHOWN=1 -I.     -c99 -O2 -n32 -mips4 -r14000 -float_const -use_readonly_const -TARG:isa=mips4:platform=ip35:processor=r14000 -TENV:zeroinit_in_bss=ON -OPT:fast_io=ON:Olimit=8192:reorg_common=ON:swp=ON -LNO:auto_dist=ON:fusion_peeling_limit=8:gather_scatter=2 -woff 1174,1183,1185,1552,3968,3970 -MT chpathtool.o -MD -MP -MF .deps/chpathtool.Tpo -c -o chpathtool.o chpathtool.c
cc-1565 cc: ERROR File = chpathtool.c, Line = 309
  The struct "stat" has no field "ATIME_SEC".

                        times[0].tv_sec = s.ATIME_SEC;
                                            ^

cc-1565 cc: ERROR File = chpathtool.c, Line = 315
  The struct "stat" has no field "MTIME_SEC".

                        times[1].tv_sec = s.MTIME_SEC;
                                            ^

cc-1565 cc: ERROR File = chpathtool.c, Line = 328
  The struct "stat" has no field "ATIME_SEC".

                        ub.actime = s.ATIME_SEC;
                                      ^

cc-1565 cc: ERROR File = chpathtool.c, Line = 329
  The struct "stat" has no field "MTIME_SEC".

                        ub.modtime = s.MTIME_SEC;
                                       ^

cc-1565 cc: ERROR File = chpathtool.c, Line = 397
  The struct "stat" has no field "ATIME_SEC".

        times[0].tv_sec = s.ATIME_SEC;
                            ^

cc-1565 cc: ERROR File = chpathtool.c, Line = 403
  The struct "stat" has no field "MTIME_SEC".

        times[1].tv_sec = s.MTIME_SEC;
                            ^

cc-1565 cc: ERROR File = chpathtool.c, Line = 416
  The struct "stat" has no field "ATIME_SEC".

        ub.actime = s.ATIME_SEC;
                      ^

cc-1565 cc: ERROR File = chpathtool.c, Line = 417
  The struct "stat" has no field "MTIME_SEC".

        ub.modtime = s.MTIME_SEC;
                       ^

cc-1196 cc: WARNING File = chpathtool.c, Line = 468
  The indicated function is declared implicitly.

                char *src = alloca(sizeof(char) * MAX_PATH);
                            ^

cc-1140 cc: ERROR File = chpathtool.c, Line = 468
  A value of type "int" cannot be used to initialize an entity of type "char *".

                char *src = alloca(sizeof(char) * MAX_PATH);
                            ^

cc-1140 cc: ERROR File = chpathtool.c, Line = 469
  A value of type "int" cannot be used to initialize an entity of type "char *".

                char *trg = alloca(sizeof(char) * MAX_PATH);
                            ^

10 errors detected in the compilation of "chpathtool.c".
make[3]: *** [chpathtool.o] Error 2
make[3]: Leaving directory `/usr/opt/portage/var/tmp/portage/sys-apps/portage-2.2.00.10418/work/prefix-portage-2.2.00.10418/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/opt/portage/var/tmp/portage/sys-apps/portage-2.2.00.10418/work/prefix-portage-2.2.00.10418/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/opt/portage/var/tmp/portage/sys-apps/portage-2.2.00.10418/work/prefix-portage-2.2.00.10418'
make: *** [all] Error 2
 * ERROR: sys-apps/portage-2.2.00.10418 failed:
 *   emake failed
 * 
 * Call stack:
 *               ebuild.sh:  49: <call src_compile>
 *             environment:2710:     emake || die "emake failed";
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * build log: '/usr/opt/portage/var/tmp/portage/sys-apps/portage-2.2.00.10418/temp/build.log'
 * ebuild environment: '/usr/opt/portage/var/tmp/portage/sys-apps/portage-2.2.00.10418/temp/environment'
 * S: '/usr/opt/portage/var/tmp/portage/sys-apps/portage-2.2.00.10418/work/prefix-portage-2.2.00.10418'
Comment 1 Fabian Groffen gentoo-dev 2008-05-27 17:31:54 UTC
interesting... nothing has changed there...
Comment 2 Stuart Shelton 2008-05-27 17:32:10 UTC
Created attachment 154497 [details]
portage-2.2.00.10418 config.log


Note that some of the output is from IRIX-MIPSpro-wrapper, as described and included in Bug 223351.

(This script has received minor updates to perform more thorough LDFLAGS checking to fix the fact that sys-libs/db doesn't add '-shared' as a CFLAG when building shared libraries.  I'll update that bug shortly.)
Comment 3 Stuart Shelton 2008-05-27 17:42:54 UTC
Actually - it looks as if it's a wrapper problem: after digging around in the system includes to see what the stat struct should contain, it looks as if the configured values are correct but that they're not getting through.

I'll update/close this bug shortly...
Comment 4 Fabian Groffen gentoo-dev 2008-05-27 17:43:34 UTC
configure:6042: $? = 0
configure:6069: result: st_*tim

-DATIME_SEC=st_atim.tv_sec

times[0].tv_sec = s.ATIME_SEC;

The struct "stat" has no field "ATIME_SEC".

feels like something is wrong here with the compiler, is your wrapper properly passing through the -D stuff?
Comment 5 Fabian Groffen gentoo-dev 2008-05-27 17:44:10 UTC
maybe my analysis helps you further if you haven't passed that point yet ;)
Comment 6 Stuart Shelton 2008-05-27 18:09:47 UTC
Many thanks for looking at that: this one's purely my fault ;)

The function to ensure that CFLAGS are valid for MIPSpro was being called, and a certain code-path that was only followed because it thought invalid options were detected was clobbering all previous arguments, dropping the -Defines in the process.

This only occurs in the updated version which allows sys-libs/db to compile with USE="-nocxx", not the one from Bug 223351.  That's safe.

My bad. I get a bit jumpy when something as key as portage suddenly fails to build on me :D