Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 419153 - USE=build emerge =freebsd-lib-9.0-r3 fails on x86-fbsd?
Summary: USE=build emerge =freebsd-lib-9.0-r3 fails on x86-fbsd?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-01 20:49 UTC by Yuta SATOH
Modified: 2012-06-11 13:58 UTC (History)
0 users

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


Attachments
sample patch for freebsd-lib-9.0-r3.ebuild (freebsd-lib-9.0-r3.ebuild.patch,1.10 KB, patch)
2012-06-01 20:52 UTC, Yuta SATOH
Details | Diff
sample patch for freebsd-lib-9.0-r3.ebuild (419153.patch,431 bytes, patch)
2012-06-01 22:35 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2012-06-01 20:49:24 UTC
Major upgrade fails freebsd-lib-9.0-r3 from -8.0.

upgrade will fail freebsd-lib-9.0-r3 from -8.0.
9.0-r1 was no problem.

freebsd-lib-9.0-r3 is /usr/include to the include path is specified, refers to an older version of the include file.

Please change can be upgraded as well for the future.

important error messages:
i686-gentoo-freebsd8.0-gcc -O2 -march=i686 -mtune=i686 -pipe -fno-strict-aliasing -fno-strict-overflow -isystem /usr/include  -I/var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/libc/include -I/var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/libc/../../include -I/var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/libc/i386 -DNLS  -D__DBINTERFACE_PRIVATE -I/var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/libc/../../contrib/gdtoa -DINET6 -I/var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/i686-gentoo-freebsd8.0/var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/libc -I/var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/libc/../../contrib/tzcode/stdtime -I/var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/libc/stdtime -I/var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -fstack-protector -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/libc/db/btree/bt_close.c
In file included from /usr/include/sys/param.h:64,
                 from /var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/libc/db/btree/bt_close.c:40:
/usr/include/sys/types.h:146: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'cpumask_t'
In file included from /var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/libc/../../include/machine/param.h:36,
                 from /usr/include/sys/param.h:110,
                 from /var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/libc/db/btree/bt_close.c:40:
/var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/libc/../../include/machine/_align.h:6:24: error: x86/_align.h: No such file or directory
*** Error code 1
1 error
*** Error code 2
1 error
Comment 1 Yuta SATOH 2012-06-01 20:52:36 UTC
Created attachment 313869 [details, diff]
sample patch for freebsd-lib-9.0-r3.ebuild
Comment 2 Yuta SATOH 2012-06-01 22:31:09 UTC
I have noticed that -isystem is not set properly when USE=build has been specified.

 * before_bootstrap_CFLAGS:-O2 -march=i686 -mtune=i686 -pipe -fno-strict-aliasing -fno-strict-overflow -isystem /var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/include_proper
 * bootstrap_csu_CFLAGS: -O2 -march=i686 -mtune=i686 -pipe -fno-strict-aliasing -fno-strict-overflow /var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/include_proper -B /var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/i686-gentoo-freebsd9.0//var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/csu/i386-elf
 * after_bootstrap_CFLAGS:-O2 -march=i686 -mtune=i686 -pipe -fno-strict-aliasing -fno-strict-overflow /var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/include_proper -B /var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/i686-gentoo-freebsd9.0//var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/csu/i386-elf
 * Building in lib... with CC=i686-gentoo-freebsd9.0-gcc and CFLAGS=-O2 -march=i686 -mtune=i686 -pipe -fno-strict-aliasing -fno-strict-overflow /var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/include_proper -B /var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/i686-gentoo-freebsd9.0//var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/csu/i386-elf
Comment 3 Yuta SATOH 2012-06-01 22:35:46 UTC
Created attachment 313881 [details, diff]
sample patch for freebsd-lib-9.0-r3.ebuild

When you apply this patch, CFLAGS will be set as follows.

 * before_bootstrap_CFLAGS:-O2 -march=i686 -mtune=i686 -pipe -fno-strict-aliasing -fno-strict-overflow -isystem /var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/include_proper
 * bootstrap_csu_CFLAGS: -O2 -march=i686 -mtune=i686 -pipe -fno-strict-aliasing -fno-strict-overflow -isystem /var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/include_proper -B /var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/i686-gentoo-freebsd9.0//var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/csu/i386-elf
 * after_bootstrap_CFLAGS:-O2 -march=i686 -mtune=i686 -pipe -fno-strict-aliasing -fno-strict-overflow -isystem /var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/include_proper -B /var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/i686-gentoo-freebsd9.0//var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/csu/i386-elf
 * Building in lib... with CC=i686-gentoo-freebsd9.0-gcc and CFLAGS=-O2 -march=i686 -mtune=i686 -pipe -fno-strict-aliasing -fno-strict-overflow -isystem /var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/include_proper -B /var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/i686-gentoo-freebsd9.0//var/tmp/portage/sys-freebsd/freebsd-lib-9.0-r3/work/lib/csu/i386-elf
Comment 4 Alexis Ballier gentoo-dev 2012-06-11 13:34:15 UTC
(In reply to comment #3)
> Created attachment 313881 [details, diff] [details, diff]
> sample patch for freebsd-lib-9.0-r3.ebuild
> 

applied this one, thanks


i'll try to find a simpler way of letting major upgrades happen than asking people to set USE=build
Comment 5 Alexis Ballier gentoo-dev 2012-06-11 13:58:18 UTC
ok, so now you should not need to set USE=build with major updates, it should detect it and bootstrap itself instead (you are still really advised to rebuild freebsd-lib after the major update though)